@veeqo/ui 6.0.0-beta.7 → 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/README.md +4 -3
- package/dist/components/Accordion/Accordion.d.ts +2 -11
- package/dist/components/Accordion/styled.d.ts +12 -1
- package/dist/components/Accordion/types.d.ts +15 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +16 -0
- package/dist/components/ActionMenu/index.d.ts +1 -0
- package/dist/components/ActionMenu/styled.d.ts +3 -0
- package/dist/components/Alert/Alert.d.ts +3 -0
- package/dist/components/Alert/constants.d.ts +6 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/styled.d.ts +4 -0
- package/dist/components/Alert/types.d.ts +20 -0
- package/dist/components/Anchor/Anchor.d.ts +6 -7
- package/dist/components/AnimatedDropdown/AnimatedDropdown.d.ts +1 -1
- package/dist/components/AnimatedDropdown/components/BasicDropdown.d.ts +6 -0
- package/dist/components/AnimatedDropdown/components/styled.d.ts +1 -14
- package/dist/components/AnimatedDropdown/styled.d.ts +9 -1
- package/dist/components/AnimatedDropdown/types.d.ts +6 -8
- package/dist/components/Choice/Choice.d.ts +5 -1
- package/dist/components/Choice/components/styled.d.ts +0 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/components/ColumnDivider.d.ts +11 -0
- package/dist/components/DataTable/hooks/useColumnWidths.d.ts +10 -0
- package/dist/components/DataTable/hooks/useColumns.d.ts +54 -4
- package/dist/components/DataTable/renderers/renderHeader.d.ts +6 -2
- package/dist/components/DataTable/types.d.ts +12 -0
- package/dist/components/DataTable/utils/customEventEmitter.d.ts +1 -0
- package/dist/components/DateRangeInput/DateRangeInput.d.ts +21 -0
- package/dist/components/DateRangeInput/index.d.ts +2 -0
- package/dist/components/DateRangeInput/styled.d.ts +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +3 -0
- package/dist/components/DateRangePicker/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/components/ComparePreviousPeriod.d.ts +8 -0
- package/dist/components/DateRangePicker/components/ComparePreviousPeriod.test.d.ts +1 -0
- package/dist/components/DateRangePicker/components/Divider.d.ts +1 -0
- package/dist/components/DateRangePicker/components/constants.d.ts +4 -0
- package/dist/components/DateRangePicker/constants.d.ts +25 -0
- package/dist/components/DateRangePicker/index.d.ts +3 -0
- package/dist/components/DateRangePicker/types.d.ts +37 -0
- package/dist/components/DateRangePicker/utils.d.ts +6 -0
- package/dist/components/DateRangePicker/utils.test.d.ts +1 -0
- package/dist/components/DimensionsInput/styled.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/components/Dropdown/DropdownPopover.d.ts +3 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/styled.d.ts +11 -0
- package/dist/components/Dropdown/types.d.ts +16 -0
- package/dist/components/FilterTag/FilterTag.d.ts +1 -1
- package/dist/components/FilterTag/styled.d.ts +4 -2
- package/dist/components/FilterTag/types.d.ts +3 -0
- package/dist/components/Modal/types.d.ts +3 -3
- package/dist/components/Pagination/styled.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/hooks/useHandleFocus.d.ts +2 -2
- package/dist/components/Popover/hooks/useUpdateAriaAnchor.d.ts +1 -2
- package/dist/components/Popover/types.d.ts +6 -6
- package/dist/components/PriceInput/styled.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +3 -1
- package/dist/components/RangeCalendar/RangeCalendar.d.ts +10 -0
- package/dist/components/RangeCalendar/RangeCalendar.test.d.ts +1 -0
- package/dist/components/RangeCalendar/components/CalendarGrid.d.ts +3 -0
- package/dist/components/RangeCalendar/components/StyledRangeCalendar/StyledRangeCalendar.d.ts +2 -0
- package/dist/components/RangeCalendar/components/StyledRangeCalendar/buttonStyles.d.ts +1 -0
- package/dist/components/RangeCalendar/components/StyledRangeCalendar/calendarCellStyles.d.ts +1 -0
- package/dist/components/RangeCalendar/components/StyledRangeCalendar/headerStyles.d.ts +1 -0
- package/dist/components/RangeCalendar/components/StyledRangeCalendar/index.d.ts +1 -0
- package/dist/components/RangeCalendar/components/utils.d.ts +2 -0
- package/dist/components/RangeCalendar/index.d.ts +1 -0
- package/dist/components/ScreenReaderOnly/ScreenReaderOnly.d.ts +20 -0
- package/dist/components/ScreenReaderOnly/ScreenReaderOnly.test.d.ts +2 -0
- package/dist/components/ScreenReaderOnly/index.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +2 -27
- package/dist/components/Search/styled.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -3
- package/dist/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +1 -1
- package/dist/components/TextField/types.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/styled.d.ts +1 -1
- package/dist/components/Toggle/types.d.ts +2 -1
- package/dist/components/UploadFile/components/UploadedFile/UploadedFile.d.ts +2 -1
- package/dist/components/ViewTab/ViewTab.d.ts +13 -2
- package/dist/components/ViewTab/types.d.ts +3 -5
- package/dist/components/WeightInput/styled.d.ts +1 -1
- package/dist/components/index.d.ts +8 -3
- package/dist/hoc/withLabels/withLabels.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDropdown.d.ts +5 -1
- package/dist/hooks/useId.d.ts +4 -0
- package/dist/hooks/useId.test.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tempIcons/RecommendIcon.d.ts +2 -0
- package/dist/tempIcons/WarningIcon.d.ts +2 -0
- package/dist/theme/index.d.ts +1 -312
- package/dist/theme/modules/text.d.ts +10 -311
- package/dist/utils/blockInvalidCharacters.d.ts +1 -0
- package/dist/utils/generateId.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/invalidCharactersNumeric.d.ts +1 -0
- package/dist/utils/isExternalLink.d.ts +9 -0
- package/dist/utils/isExternalLink.test.d.ts +1 -0
- package/package.json +16 -14
- package/dist/components/ActionList/ActionList.d.ts +0 -3
- package/dist/components/ActionList/index.d.ts +0 -1
- package/dist/components/ActionList/styled.d.ts +0 -36
- package/dist/components/ActionList/types.d.ts +0 -19
- package/dist/components/AnimatedDropdown/components/Dropdown.d.ts +0 -3
- package/dist/components/PageHeader/PageHeader.d.ts +0 -29
- package/dist/components/PageHeader/index.d.ts +0 -1
- package/dist/components/PageHeader/styled.d.ts +0 -23
- package/dist/components/PaginationRange/Items/Item/Item.d.ts +0 -3
- package/dist/components/PaginationRange/Items/Item/index.d.ts +0 -1
- package/dist/components/PaginationRange/Items/Item/styled.d.ts +0 -5
- package/dist/components/PaginationRange/Items/Item/types.d.ts +0 -5
- package/dist/components/PaginationRange/Items/Items.d.ts +0 -7
- package/dist/components/PaginationRange/Items/index.d.ts +0 -1
- package/dist/components/PaginationRange/PaginationRange.d.ts +0 -3
- package/dist/components/PaginationRange/index.d.ts +0 -1
- package/dist/components/PaginationRange/styled.d.ts +0 -2
- package/dist/components/PaginationRange/types.d.ts +0 -15
- /package/dist/components/{ActionList/ActionList.test.d.ts → ActionMenu/ActionMenu.test.d.ts} +0 -0
- /package/dist/components/{AnimatedDropdown/components/Dropdown.test.d.ts → Alert/Alert.test.d.ts} +0 -0
- /package/dist/components/{PageHeader/PageHeader.test.d.ts → AnimatedDropdown/components/BasicDropdown.test.d.ts} +0 -0
- /package/dist/components/{PaginationRange/PaginationRange.test.d.ts → DateRangeInput/DateRangeInput.test.d.ts} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as t,PureComponent as n,useEffect as o,useMemo as i,forwardRef as r,useRef as l,useCallback as a,Component as s,Fragment as d,useImperativeHandle as c}from"react";import{motion as u,AnimatePresence as m}from"framer-motion";import p,{css as g,createGlobalStyle as h}from"styled-components";import{usePopper as b}from"react-popper";import f from"resize-observer-polyfill";import v,{createPortal as x}from"react-dom";import y from"lodash.throttle";import{useScroll as w}from"react-use";import{TransitionGroup as $,CSSTransition as C}from"react-transition-group";import E from"react-scrolllock-configurable";const k=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,S={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},N=(e,t)=>e||(t?S[t]:void 0),I={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},z={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var F,j;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(F||(F={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(j||(j={}));const B=function({increment:e,unit:t,count:n}){const o={};for(let i=0;i<=n;i++){const n=i*e;o[i]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),M={[j.none]:"0",[j.line]:"1px",[j.xs]:B[1],[j.sm]:B[2],[j.base]:B[4],[j.md]:B[6],[j.lg]:B[8],[j.xl]:B[12],[j.xxl]:B[16]},D=Object.assign(Object.assign({},M),B),R={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},H={headingXXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},O=Object.assign(Object.assign({},R),{breakpoints:L,colors:I,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:F,sizes:D,text:H}),{text:T,colors:A,fontFamily:W}=O,P=p.span.attrs((({as:e,variant:t})=>({as:N(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--m0sc57"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${W};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?A.neutral.ink.lightest:T[e].color;return`\n font-family: ${T[e].fontFamily};\n font-style: ${T[e].fontStyle};\n font-weight: ${T[e].fontWeight};\n font-size: ${T[e].fontSize};\n line-height: ${T[e].lineHeight};\n color: ${n};\n text-decoration: ${T[e].textDecoration};\n letter-spacing: ${T[e].letterSpacing};\n `}}`,V=p(k).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,Z=p(V).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${D.base};width:${D.base};color:${({glyphColor:e})=>e};}`,q=p(V).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,X=p.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1lgp9cv"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${O.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${O.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${O.colors.secondary.blue.light};}`,G=p(k).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,K=p(P).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,_=p(u(k)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,U=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,Y=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:D.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"})),J=({className:n,children:o,label:i,iconSlot:r,glyphColor:l=I.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d})=>{const[c,m]=t(!!d);return e.createElement(U,{open:!!d,className:n},e.createElement(X,{onClick:()=>m(!c)},e.createElement(G,null,e.createElement(Z,{glyphColor:l},r,e.createElement(P,{variant:"body"},i)),e.createElement(q,null,e.createElement(u.span,{animate:{rotate:c?180:0}},e.createElement(Y,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(K,{variant:"hintText"},s)),c&&e.createElement(_,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}},o))};function Q(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ee=e=>`${e}-${Math.floor(1e3*Math.random())}`;class te extends n{constructor(e){super(e),this.id=ee("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?x(e,this.portalNode):null}}const ne=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,oe=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ie=e=>e.filter(Boolean).join(" "),re=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},le=(e,t)=>{const n=re(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ae='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',se=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:i=!1})=>{o((()=>{if(!e||i)return;const t=e.querySelectorAll(ae);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,i]),o((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(ae);if(o.length<1)return void n();o[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",o),()=>null==t?void 0:t.removeEventListener("keydown",o)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():i||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(ae),o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())})(t))}}},de=n=>{var{id:r,children:l,zIndex:a=O.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,useAnchorWidth:g,supressWarnings:h}=n,v=Q(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","useAnchorWidth","supressWarnings"]);const[x,y]=t(null),{styles:w,attributes:$,update:C}=b(d,x,{placement:s}),E=i((()=>r||ee("popover")),[r]);(({anchorElement:e,popoverId:t,supressWarnings:n=!1})=>{o((()=>{if(e){try{e.hasAttribute("aria-expanded")||(n||console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(n||console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(n||console.warn("Popover - aria-haspopup not set on anchor element.",e),e.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t,n])})({anchorElement:d,popoverId:E,supressWarnings:h});const k=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:S}=se({popperElement:x,anchorElement:d,onClose:k,disableFocusLock:p});return o((()=>{if(!C||!x)return;const e=new f(C);return e.observe(x),()=>e.disconnect()}),[C,x]),o((()=>{if(C)return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)}),[C]),e.createElement(te,{rootElementRef:c},e.createElement(oe,{onClick:k,zIndex:a,"data-testid":"popover-backdrop"}),e.createElement(ne,Object.assign({open:!0,id:E,zIndex:a,ref:y,style:Object.assign(Object.assign(Object.assign({},w.popper),m),g?{width:null==d?void 0:d.clientWidth}:{}),onKeyDown:S},$.popper,v),l))},ce=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:i,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:i,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:i,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ue=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":r},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),me=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"aria-label":r},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),pe=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(ue,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(me,{className:t,height:n,width:o,color:i});default:return e.createElement(ce,{className:t,height:n,width:o,color:i})}},ge=p.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>D[e]};height:${({size:e})=>D[e]};}`,he=p.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--1xsghtl"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${O.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",r="16px",l="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",l="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${l};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,be=p(he).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${O.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?O.colors.neutral.ink.base:O.colors.secondary.blue.base};&:hover{background-color:${O.colors.neutral.grey.lightest};}&:active{background-color:${O.colors.neutral.grey.lightest};border-color:${O.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${O.colors.neutral.grey.base} !important;border-color:${O.colors.neutral.grey.base} !important;color:${O.colors.neutral.ink.light} !important;}`,fe=p(be).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${O.colors.secondary.red.base};&:hover{color:${O.colors.secondary.red.dark};}&:active{border-color:${O.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};color:${O.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}`,ve=p(be).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${O.colors.secondary.blue.base};border-color:${O.colors.secondary.blue.base};color:white;&:hover{background-color:${O.colors.secondary.blue.dark};border-color:${O.colors.secondary.blue.dark};}&:active{background-color:${O.colors.secondary.blue.dark};border-color:${O.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}`,xe=p(ve).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${O.colors.secondary.red.base};border-color:${O.colors.secondary.red.base};color:white;&:hover{background-color:${O.colors.secondary.red.dark};border-color:${O.colors.secondary.red.dark};}&:active{background-color:${O.colors.secondary.red.dark};border-color:${O.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}`,ye=p(he).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${O.colors.neutral.ink.base};&:hover{background-color:${O.colors.neutral.grey.light};}&:active{background-color:${O.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,we=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,$e=p(we).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${O.text.link.fontFamily};font-size:${O.text.link.fontSize};line-height:${O.text.link.fontSize};font-weight:${O.text.link.fontWeight};line-height:${O.text.link.lineHeight};text-decoration:${O.text.link.textDecoration};color:${O.colors.secondary.blue.base};&:hover{color:${O.colors.secondary.blue.dark};}& > * + *{margin-left:${O.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${O.colors.secondary.blue.light};border-radius:4px;}`,Ce=p.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--cvu4hf"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,Ee=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ke={default:be,primary:ve,destructive:fe,primaryDestructive:xe,flat:ye,link:$e,unstyled:we},Se=r(((t,n)=>{var{className:o,children:i,icon:r,variant:l="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=Q(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return e.createElement(we,Object.assign({ref:n,className:o},c),i);const u=ke[l],m=void 0!==i,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:a,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(ge,{$loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},r&&r,void 0!==i&&i,s&&e.createElement(Ee,null)),d&&e.createElement(Ce,null,e.createElement(pe,null)))})),Ne=p.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${D.md};padding-right:${D.md};padding-left:${D.md};margin-bottom:${D.md};& > * + *{margin-top:${D.xs};}`,Ie=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${D.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Le=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:D.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),ze=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Fe=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:l,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(Ne,null,e.createElement(Ie,null,e.createElement(P,{id:t,variant:i},n),r&&e.createElement(Se,{variant:"link",onClick:r.onClick},r.title),l,s&&e.createElement(Se,{variant:"flat",icon:a?e.createElement(Le,null):e.createElement(Y,null),onClick:s}),d&&e.createElement(Se,{variant:"flat",icon:e.createElement(ze,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(P,{variant:"subheadingSmall"},o)),{grey:je}=I.neutral,Be={0:"none",1:F.sm,2:F.base,3:F.md,4:F.lg},Me={info:I.secondary.blue.base,success:I.secondary.green.base,error:I.secondary.red.base},De=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${D.base};padding:${D.md};z-index:2;`,Re=p.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${D.md};padding-left:${D.md};margin-top:${D.md};margin-bottom:${D.md};font-family:${H.body.fontFamily};font-size:${H.body.fontSize};font-weight:${H.body.fontWeight};line-height:${H.body.lineHeight};color:${H.body.color};& + &{border-top:${D.line} solid ${je.base};padding-top:${D.md};}`,He=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${D.md};margin-right:-${D.md};`,Oe=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${Re}:first-child{margin-top:0;}`,Te=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${D.line} solid ${je.base};box-shadow:${e=>void 0!==e.elevation?Be[e.elevation]:F.sm};border-radius:${z.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${D.xs};\n background-color: ${Me[e]};\n }\n `}`,Ae={expanded:{height:"auto"},collapsed:{height:0}},We=({className:n,style:o,title:i,subtitle:r,HeaderActionSlot:l,action:a,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(Fe,{title:i,subtitle:r,ActionSlot:l,action:a,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(Oe,{animate:f?"expanded":"collapsed",variants:Ae,transition:{duration:.3,ease:"easeOut"}},e.createElement(Re,null,u)),x=void 0!==p&&e.createElement(De,null,p());return e.createElement(Te,{className:n,style:o,elevation:d,accent:c},b,v,x)};We.Surface=Te,We.Section=Re,We.FullBleed=He,We.Footer=De;const{sizes:Pe,colors:Ve,text:Ze}=O,qe=p(We.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${Pe.base} 0;display:flex;flex-direction:column;`,Xe=p.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Ve.neutral.grey.base};margin-top:${Pe.base};padding-top:${Pe.base};}`,Ge=p(P).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${Pe.sm} ${Pe.base} ${Pe.sm};`,Ke=p(Se).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${Pe.lg};padding:${Pe.xs} ${Pe.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ze.body.fontFamily};font-size:${Ze.body.fontSize};font-weight:${Ze.body.fontWeight};&:hover{background-color:${Ve.neutral.grey.light};color:${Ve.secondary.blue.base};}& > * + *{margin-left:${Pe[3]};}`,_e={item:Ke,action:p(Ke).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${Ve.secondary.blue.base};`,link:p(Ke).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${Ve.secondary.blue.base};text-decoration:underline;`},Ue=({title:n,items:o=[],sections:i,buttonVariant:r,buttonSize:l})=>{const[a,s]=t(!1),[d,c]=t(null),u=t=>{const n=_e[t.variant||"item"];return e.createElement(n,{onClick:()=>{return e=t.onClick,s(!1),void e();var e},key:t.title},t.icon&&t.icon,e.createElement("span",null,t.title))},m=i?i.map((t=>e.createElement(Xe,{key:t.title},t.title&&e.createElement(Ge,null,t.title),t.items.map(u)))):o.map(u);return e.createElement(e.Fragment,null,e.createElement(Se,{dropdown:!0,variant:r,size:l,onClick:()=>s(!a),ref:c},n),a&&e.createElement(de,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(qe,null,m)))},Ye=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${O.text.link.fontFamily};font-style:${O.text.link.fontStyle};font-weight:${O.text.link.fontWeight};font-size:${O.text.link.fontSize};line-height:${O.text.link.lineHeight};color:${O.colors.secondary.blue.base};text-decoration:${O.text.link.textDecoration};&:hover{color:${O.colors.secondary.blue.dark};}`,Je=({children:t,className:n,text:o,href:i,target:r})=>e.createElement(Ye,{href:i,target:r,className:n},t||o),Qe=p(k).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,et=p(k).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,tt=p(u(k)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1b87uvb"})`display:inline-flex;position:absolute;flex-direction:column;overflow:hidden;${({useAnchorWidth:e})=>e?"width: 100%;":""} background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;${({reversed:e})=>e?"bottom: 8px;":"top: 6px;"}`,nt=t=>{var{id:n,children:i,className:r,reversed:l,anchorElement:a,useAnchorWidth:s,onShouldClose:d}=t,c=Q(t,["id","children","className","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return o((()=>()=>null==a?void 0:a.focus()),[a]),e.createElement(de,Object.assign({id:n,"data-testid":n,anchorElement:a,onShouldClose:d,useAnchorWidth:s},c),e.createElement(tt,{className:r,useAnchorWidth:s,reversed:l,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},i))},ot=n=>{var{id:o,cta:r,shouldShowDropdown:l,children:a,className:s="animated-dropdown",reversed:d=!1,placement:c="bottom-start",onClick:u,onMouseEnter:p,onMouseLeave:g,useAnchorWidth:h}=n,b=Q(n,["id","cta","shouldShowDropdown","children","className","reversed","placement","onClick","onMouseEnter","onMouseLeave","useAnchorWidth"]);const[f,v]=t(null),x=i((()=>r?e.cloneElement(r,{ref:v}):null),[r]);return e.createElement(Qe,{className:`${s}-container ${s}`,onClick:u,onMouseEnter:p,onMouseLeave:g},!d&&x,e.createElement(et,{className:`${s}-wrap ${s}`},e.createElement(m,null,l&&e.createElement(nt,Object.assign({id:o,useAnchorWidth:h,className:`${s}-basic-dropdown ${s}`,anchorElement:f,placement:c},b),a))),d&&x)},it=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${O.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${O.text.bodySmallBold.fontFamily};font-weight:${O.text.bodySmallBold.fontWeight};font-size:${O.text.bodySmallBold.fontSize};line-height:${O.text.bodySmallBold.lineHeight};}`,rt=({width:t="40px",name:n="Veeqo",bgColor:o=O.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(it,{width:t,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},lt=p.div.withConfig({displayName:"vui--Container",componentId:"vui--t7r6of"})`display:inline-block;`,at=p(lt).withConfig({displayName:"vui--Hoverable",componentId:"vui--1yesgsr"})``,st=p(P).withConfig({displayName:"vui--TooltipText",componentId:"vui--14vro0x"})`color:${O.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,dt=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--yf0fwi"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,ct=p.div.withConfig({displayName:"vui--Tip",componentId:"vui--ll0nnf"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,ut=p(lt).withConfig({displayName:"vui--Wrap",componentId:"vui--1u8lm59"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var mt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(mt||(mt={}));const pt={duration:400,side:mt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},gt=({content:n,text:o,hoverableElement:i,config:r,reversed:l,withTriangle:a,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},pt),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:f}=u,{styles:v,attributes:x}=b(i,d,{placement:`${p}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:O.layers.tooltip});return e.createElement(ct,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),e.createElement(ut,{className:s.wrap,tipMinWidth:h,tipMaxWidth:f},null!=n?n:e.createElement(st,null,o)),a&&e.createElement(dt,{id:"veeqo-components-triangle",className:s.triangle}))},ht=({children:n,text:o,content:i,config:r,reversed:l=!1,className:a,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,b={container:a&&`${a} ${a}-container`,tip:a&&`${a}-tip`,wrap:a&&`${a}-wrap`,triangle:a&&`${a}-triangle`,hoverable:a&&`${a}-hoverable`},f=!(!i&&!h);if(!f)return n;const x=u&&f&&e.createElement(gt,{classNames:b,hoverableElement:p,config:r,reversed:l,withTriangle:s,text:o,content:i});return e.createElement(lt,{className:b.container},c?v.createPortal(x,document.body):x,e.createElement(at,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},bt=p(k).withConfig({displayName:"vui--BaseBadge",componentId:"vui--idt2e7"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${H.bodySmall.fontFamily};font-weight:${H.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${D.base};height:${D.base};}`,ft={default:p(bt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${I.secondary.blue.base};color:${I.secondary.blue.base};`,primary:p(bt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};color:${I.secondary.blue.base};`,warning:p(bt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${I.secondary.yellow.base};background-color:${I.secondary.yellow.lightest};color:${I.secondary.orange.dark};`},vt=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:l,children:a})=>{const s=ft[t];return e.createElement(ht,{text:i},e.createElement(s,{className:ie([r,l]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},xt=p(k).withConfig({displayName:"vui--BannerLayout",componentId:"vui--5tzoxx"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,yt=p(k).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,wt=p(k).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,$t=p(wt).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${D.md};height:${D.md};color:${({accentColor:e})=>e};}`,Ct=p(k).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,Et=p(wt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,kt=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,St={help:I.secondary.blue.base,info:I.neutral.ink.base,error:I.secondary.red.base,success:I.secondary.green.base},Nt=t=>{var{type:n="info",text:o,icon:i,onClose:r,className:l,header:a,children:s,backgroundColor:d="white"}=t,c=Q(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=St[n];return e.createElement(xt,Object.assign({accentColor:u,className:l,backgroundColor:d},c),e.createElement(yt,null,i&&e.createElement($t,{style:{marginRight:D.md},accentColor:u},i),s?e.createElement(Ct,null,s):e.createElement(e.Fragment,null,e.createElement(Et,null,a||e.createElement(kt,{variant:"headingSmall"},o)),e.createElement(wt,null,r&&e.createElement(Se,{variant:"flat","aria-label":"Close",icon:e.createElement(ze,null),onClick:r})))))},It=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${H.body.fontFamily};font-weight:${H.body.fontWeight};font-size:${H.body.fontSize};line-height:${H.body.lineHeight};`,Lt=p.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--19n9row"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,zt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),Ft=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(Lt,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(Lt,{className:"breadcrumb"},n,t),jt=()=>e.createElement(zt,{className:"separator",width:D.base,height:D.base}),Bt=({children:t,href:n})=>e.createElement("a",{href:n},t),Mt=({children:t})=>e.createElement("span",null,t),Dt=({items:t,Separator:n=e.createElement(jt,null),LinkComponent:o=Bt})=>e.createElement(It,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(Ft,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Mt},t.length!==r+1&&n))));var Rt;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Rt||(Rt={}));const Ht=p.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let r,l,a,s,d="",c="";return"vertical"===t?(r=n&&Rt[n],l=o&&Rt[o],d=O.sizes[i],a="column"):(r=o&&Rt[o],l=n&&Rt[n],c=O.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${l};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Ht.displayName="Stack";const Ot={top:"flex-start",center:"center"},Tt=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${O.sizes.base};}`,At=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>Ot[e.align]};width:24px;height:24px;`,Wt=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,Pt=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${O.sizes.sm};}`,Vt=p.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${O.text.body.fontFamily};font-size:${O.text.body.fontSize};font-weight:${O.text.body.fontWeight};line-height:${O.sizes.md};color:${O.text.body.color};`,Zt=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`,qt=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};`,Xt=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Gt=p(Xt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${O.colors.neutral.grey.dark};border-radius:${O.radius.md};padding:${O.sizes.base} 0.75rem;&:hover{border-color:${O.colors.secondary.blue.base};}& ${Vt}{font-weight:${O.text.bodyBold.fontWeight};}`,Kt=p(ht).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,_t=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Ut=({id:t,label:n,hint:o,tooltip:i,error:r,bordered:l,Badge:a,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(Tt,null,e.createElement(At,{align:s?"center":"top"},c),s&&e.createElement(Wt,null,s),n||o||r||a||d?e.createElement(Pt,null,e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},a,n&&e.createElement(Vt,null,n),i&&e.createElement(Kt,{text:i},e.createElement(_t,{name:"help",width:O.sizes.base,color:O.colors.neutral.ink.lightest}))),o&&e.createElement(Zt,null,o),r&&e.createElement(qt,null,r),d):null);return l?e.createElement(Gt,{disabled:u,htmlFor:t},m):e.createElement(Xt,{disabled:u,htmlFor:t},m)},{colors:Yt,sizes:Jt,radius:Qt}=O,en=p.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Yt.neutral.ink.lightest};border-radius:${Qt.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Yt.secondary.blue.base};border-color:${Yt.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${Jt[4]};background-position:center;}&:hover{border-color:${Yt.secondary.blue.base};}&:active{border-color:${Yt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Yt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Yt.secondary.blue.base};border-color:${Yt.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${Jt[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Yt.neutral.grey.base};border-color:${Yt.neutral.grey.base};color:${Yt.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,tn=t=>{var{checked:n,indeterminate:r,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=Q(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=i((()=>ee("checkbox")),[]),b=l(null),f=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{b.current&&(b.current.indeterminate=!0===r)}),[r]),e.createElement(Ut,Object.assign({id:h,disabled:c},g),e.createElement(en,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,className:m,onChange:f}))},nn=p.input.withConfig({displayName:"vui--Input",componentId:"vui--14lc9u"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,on=r(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d}=t,c=Q(t,["checked","value","name","disabled","onChange","id"]);const u=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),m=null!=d?d:ee("radio");return e.createElement(Ut,Object.assign({id:m,disabled:l},c),e.createElement(nn,{id:m,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:u,ref:n}))})),rn=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,ln=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${O.text.inputLabel.fontFamily};font-size:${O.text.inputLabel.fontSize};font-style:${O.text.inputLabel.fontStyle};font-weight:${O.text.inputLabel.fontWeight};line-height:${O.text.inputLabel.lineHeight};text-decoration:${O.text.inputLabel.textDecoration};color:${O.text.inputLabel.color};`;class an extends s{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let i=[];i=t?[...n,e]:n.filter((t=>t!==e)),o(i)}}render(){const{allowMultiple:t,options:n,selected:o,title:i,disabled:r,bordered:l}=this.props,a=t?tn:on;return e.createElement(rn,{disabled:r},i&&e.createElement(ln,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:l,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const sn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),dn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),cn={width:D.base,height:D.base},un=p(Se).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${D.base};width:${D.base};top:unset;}`,mn=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),l=a((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(ht,{text:i?"Copied!":"Copy to clipboard"},e.createElement(un,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(sn,Object.assign({color:I.secondary.green.base},cn)):e.createElement(dn,Object.assign({color:I.secondary.blue.base},cn)),onClick:l}))};function pn(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function gn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${gn(e.min,"max-content")}, ${gn(e.max)})`;default:return t||"1fr"}}function hn({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){const l=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),a=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),s="start"!==o&&"none"!==o,d=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${O.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${O.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${O.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${O.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>gn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?l:""}\n ${t.length>0?a:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var bn;!function(e){e.ascending="ascending",e.descending="descending"}(bn||(bn={}));const fn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),xn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),yn=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===bn.ascending?e.createElement(vn,{color:O.colors.neutral.ink.dark,size:o}):e.createElement(xn,{color:O.colors.neutral.ink.dark,size:o}):e.createElement(fn,{size:o});function wn(e,n){const[i,r]=t([]),l=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));r(n)};return o((()=>{l()}),[e.current]),o((()=>{if(!n.current)return;const e=y(l,50),t=new f(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function $n(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),i=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...i,...o],pinnedLeft:n,pinnedRight:o}}function Cn(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},l=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",l),()=>null==n?void 0:n.removeEventListener("mousedown",l)}),[e.current])}function En(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,o)=>{if(o)if(t){if(e.includes(o))return;const t=[...e,o];n(t)}else{const t=e.findIndex((e=>e===o));if(t<0)return;const i=[...e];i.splice(t,1),n(i)}}}}}function kn(e){const[n,i]=t("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",r),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",r)}}),[e.current]),o((()=>{if(!e.current)return;const t=y(r,50),n=new f(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Sn="56px",Nn=p.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${Sn};display:flex;align-items:center;justify-content:${({align:e="left"})=>pn(e)};background-color:white;padding-left:${({spacing:e=3})=>O.sizes[e]};padding-right:${({spacing:e=3})=>O.sizes[e]};border-bottom:1px solid ${O.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function In(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,l=Q(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Nn,Object.assign({},l)):e.createElement(Nn,Object.assign({},l),e.createElement(tn,{checked:n,indeterminate:o,onChange:i}))}const Ln=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>pn(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>O.sizes[e]};padding-right:${({spacing:e=3})=>O.sizes[e]};color:${O.text.bodySmall.color};font-family:${O.text.bodySmall.fontFamily};font-size:${O.text.bodySmall.fontSize};font-style:${O.text.bodySmall.fontStyle};font-weight:${O.text.bodySmall.fontWeight};line-height:${O.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${O.colors.secondary.blue.base};background-color:${O.colors.neutral.grey.lightest};}`;function zn(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:l}=t,a=Q(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Ln,Object.assign({},a),e.createElement(on,{value:o,checked:n,disabled:l,onChange:i})):e.createElement(Ln,Object.assign({},a),e.createElement(tn,{value:o,checked:n,disabled:l,onChange:i}))}const Fn=[[],()=>{}];function jn({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,l]=n||Fn,a=()=>{r.length!==o.length?l(o):l([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(In,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(zn,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)l([n]);else if(e){if(r.includes(n))return;const e=[...r,n];l(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),l(t)}}}}const Bn=p.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${O.colors.neutral.ink.lightest};`,Mn=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${O.text.headingTable.color};font-family:${O.text.headingTable.fontFamily};font-size:${O.text.headingTable.fontSize};font-style:${O.text.headingTable.fontStyle};font-weight:${O.text.headingTable.fontWeight};line-height:${O.text.headingTable.lineHeight};`,Dn=p(Mn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--p1ald0"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${Bn}{background-color:${O.colors.neutral.grey.light};color:${O.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${O.colors.secondary.blue.light};}`;function Rn({column:t,sortState:n,onChangeSort:o}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const i={key:t.id.toString(),id:`datatable-header-${t.id}`,role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,i);const r=t.sortable?Dn:Mn,l=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===bn.ascending;let i=bn.ascending;return n&&o&&(i=bn.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Nn,Object.assign({},i),e.createElement(ht,{text:t.tooltip},e.createElement(r,Object.assign({},l),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Bn,null,e.createElement(yn,{sortState:n,columnId:t.id,size:5})))))}const Hn=O.colors.neutral.grey.base,On=O.colors.neutral.grey.dark,Tn=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${O.radius.base};background:${Hn};background-image:linear-gradient(\n to right,\n ${Hn} 0%,\n ${On} 20%,\n ${Hn} 40%,\n ${Hn} 100%\n );background-repeat:no-repeat;background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear;@keyframes placeholderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}`;const An=p.div.withConfig({displayName:"vui--Container",componentId:"vui--uoc40o"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${Sn};background-color:white;`,Wn=p.div.withConfig({displayName:"vui--Content",componentId:"vui--x1996k"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${O.colors.neutral.grey.base};& > *{flex:1;}`;function Pn({selectionColumn:n,intersectionTargetRef:i,containerRef:r,children:l}){var a;const[s,d]=t(!1);o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(i.current),()=>e.disconnect()}),[i.current]);const c=null===(a=r.current)||void 0===a?void 0:a.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(An,{style:m},Rn({column:n}),e.createElement(Wn,null,l))}const Vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Zn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),qn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Xn=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${O.sizes.lg};padding-bottom:${O.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${O.sizes.md};`,Gn=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${O.sizes.md};background-color:${O.colors.neutral.grey.light};border-radius:${O.radius.full};`,Kn=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,_n=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${O.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Un=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Yn=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${O.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Jn=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Qn={full:`border-width: 1px; border-radius: ${O.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},eo=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${O.colors.neutral.grey.dark};${({borderMode:e="full"})=>Qn[e]} &,& *{box-sizing:border-box;}`;function to({children:n,intersectionTargetRef:i,containerRef:r,cellWidths:a,tableCss:s}){const d=l(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),g=()=>{var e;const t=null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};p(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=y(g,33),t=new f(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),o((()=>{h()}),[c]),o((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",h)}}),[r.current]),!c)return null;const b=Object.assign(Object.assign({},m),{height:Sn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${O.colors.neutral.grey.base}`}),v=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:b,ref:d},e.createElement(Yn,{css:v},e.createElement("thead",null,n)))}const no=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),oo=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),e.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),e.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),io={icon:e.createElement(oo,{width:48,height:48}),heading:"No results"},ro=()=>{},lo=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=io,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f})=>{const v=l(null),x=l(null),y=l(null);Cn(v);const w=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:$,selectedRowIds:C,selectionColumn:E,setSelected:k}=jn({selectionMode:m,selectionState:p,enabledRowIds:w}),S={setSelected:k||ro,setExpanded:g||ro},N=[E,...o],I=$?N:o,L=wn(x,v),{visible:z,pinnedLeft:F,pinnedRight:j}=$n(I),{scrollPosition:B}=kn(v),M=hn({pinnedLeft:F,pinnedRight:j,cellWidths:L,scrollPosition:B,visible:z,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(eo,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Yn,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(_n,{role:"row"},z.map((e=>Rn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(_n,{key:t.id},z.map((n=>function(t,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(Ln,Object.assign({},o),e.createElement(Tn,null))}(t,n))))))))))}if(0===c.length)return e.createElement(eo,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Yn,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(_n,{role:"row"},z.map((e=>Rn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Xn,{columnCount:z.length},e.createElement(Gn,null,i.icon),e.createElement(Ht,{spacing:"sm",alignX:"center"},e.createElement(P,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(P,{variant:"subheadingMedium"},i.subheading)))))));const D=t=>{const{e2eClassName:n="",accentColor:o}=t,i=no(t.id,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:u});return e.createElement(_n,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),z.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,S,i))))},R=(t,n)=>{var o,i;const l=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,a=no(n,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:u});return e.createElement(_n,{role:"row",key:t.id,className:l},z.map((n=>function(t,n,o){if(n.hidden)return null;const i={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,i,o):e.createElement(Ln,Object.assign({},i))}(t,n,a))))},H=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},D(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>R(e,t.id)))))},O=e.createElement(_n,{role:"row"},z.map((e=>Rn({column:e,sortState:h,onChangeSort:d})))),T=o.some((e=>!!e.renderFooter)),A=C.length>0&&!!t;return e.createElement(eo,{borderMode:n},A&&e.createElement(Pn,{selectionColumn:E,intersectionTargetRef:y,containerRef:v},t),e.createElement(Un,{ref:v},f&&e.createElement(to,{tableCss:M,intersectionTargetRef:y,containerRef:v,cellWidths:L},O),e.createElement("div",{ref:y,style:{height:0}}),e.createElement(Yn,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!r;return t&&"nested"===b?c.map(H):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[D(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>R(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(D))})(),T&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(_n,{role:"row"},z.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(Ln,Object.assign({},n))}({column:t}))))))))};lo.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},lo.Cell=Ln,lo.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,l]=t(null),[a,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=o.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const o=u[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),i(r)};return e.createElement(e.Fragment,null,e.createElement(Se,{ref:l,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(de,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(We,{style:{width:600}},e.createElement(Ht,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(Ht,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Se,{variant:"flat",icon:e.createElement(qn,null)}),e.createElement(Ht,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Ht,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Se,{variant:"flat",icon:e.createElement(Zn,null),onClick:()=>m(n,!1),style:{color:O.colors.neutral.ink.lightest}}):e.createElement(Se,{variant:"flat",icon:e.createElement(Vn,null),onClick:()=>m(n,!0)})))))))))},lo.SelectionCell=zn,lo.SelectionHeader=In,lo.Header=Nn,lo.Truncate=Jn,lo.NoWrap=Kn;const ao=p.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${O.sizes.base};}`,so=p.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${O.sizes.xs};}`,co=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${O.sizes.base};}`,uo=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${O.sizes.xs};}`,mo=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${O.text.bodyBold.fontFamily};font-size:${O.text.bodyBold.fontSize};font-weight:${O.text.bodyBold.fontWeight};line-height:${O.text.bodyBold.lineHeight};color:${O.text.bodyBold.color};`,po=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${O.text.body.fontFamily};font-size:${O.text.body.fontSize};font-weight:${O.text.body.fontWeight};line-height:${O.text.body.lineHeight};color:${O.text.body.color};`,go=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(po,{key:t},t))):e.createElement(po,null,t);return e.createElement(ao,null,t.map((t=>n?e.createElement(co,{key:t.term},e.createElement(mo,null,t.term),e.createElement(uo,null,o(t.description))):e.createElement(so,{key:t.term},e.createElement(mo,null,t.term),o(t.description)))))},{sizes:ho,colors:bo}=O,fo=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${ho.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${ho.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,vo=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${ho.md};overflow-x:hidden;background-color:${bo.neutral.grey.lightest};`,xo=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(vo,null,e.createElement(fo,{showSidebar:i},o)))},yo=p.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--2b6aqg"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var wo;!function(e){e.base="base",e.sm="sm"}(wo||(wo={}));const $o=p.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${O.text.inputLabel.fontFamily};font-size:${O.text.inputLabel.fontSize};font-weight:${O.text.inputLabel.fontWeight};line-height:${O.text.inputLabel.lineHeight};color:${O.text.inputLabel.color};`,Co=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`,Eo=p.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${O.sizes[2]} * -1);width:2px;background-color:${O.colors.secondary.red.base};}`,ko=p(Ht).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,So=p(ht).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,No=t=>n=>{var{label:o,hint:r,error:l,tooltip:a}=n,s=Q(n,["label","hint","error","tooltip"]);const d=i((()=>ee(t.name)),[]);return o?e.createElement(ko,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement($o,{htmlFor:d},o),a&&e.createElement(So,{text:a},e.createElement(_t,{width:O.sizes.base,height:O.sizes.base,color:O.colors.neutral.ink.light}))),r&&e.createElement(Co,null,r)),e.createElement(t,Object.assign({id:d,hasError:!!l},s)),l&&e.createElement(Eo,null,l)):e.createElement(t,Object.assign({hasError:!!l},s))},Io=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Lo=({hasError:e,inputSize:t})=>g`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,zo=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${O.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${Lo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Fo=p.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1jp908v"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${Lo}`,jo=/^-?[0-9]*\.?[0-9]+$/,Bo=No(r(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,max:s,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:b=wo.base,step:f,type:v="text",value:x,spellCheck:y=!1}=t,w=Q(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const $=a((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(jo).test(t)&&m(t)}),[m,v]),C=null!=o?o:ee("textfield");return"text"===v&&c?e.createElement(Fo,Object.assign({className:i,disabled:r,hasError:l,id:C,name:u,onChange:$,placeholder:g,rows:h,value:x,spellCheck:y,ref:n},w)):e.createElement(zo,Object.assign({className:i,disabled:r,hasError:l,id:C,inputSize:b,max:s,min:d,name:u,onChange:$,placeholder:g,step:f,type:v,value:x,spellCheck:y,ref:n},w))})));Bo.displayName="TextField";const Mo=p(k).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,Do=p(k).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Ro=p(Bo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${O.colors.neutral.ink.lightest};}`,Ho=p(Se).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${O.colors.neutral.ink.lightest};`;p(P).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${O.sizes[2]} * -1);width:2px;background-color:${O.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`;const Oo=No((t=>{var{size:n=wo.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:l,height:a,width:s,length:d,unit:c}=t,u=Q(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Mo,{className:l},e.createElement(Do,null,e.createElement(Ro,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d},u)),e.createElement(ze,{height:O.sizes.base,width:O.sizes.base}),e.createElement(Ro,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s},u)),e.createElement(ze,{height:O.sizes.base,width:O.sizes.base}),e.createElement(yo,null,e.createElement(Ro,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a},u)),e.createElement(Ho,{size:n},c))))}));Oo.displayName="DimensionsInput";const To=(e,t)=>{const n=l(null),i=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=a((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",r),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",i)}}),[r,i,e]),n},Ao=(e,n)=>{const[i,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function Wo(){const[e,n]=t(!1),o=a((()=>n(!e)),[e,n]),i=a((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:i}}const Po=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Vo({children:n}){const[i,r]=t(!0);return o((()=>{function e(){r(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function i(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function l(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",l,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",l,!0),o()}}),[r]),e.createElement(Po.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function Zo(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(Po),r=e.useCallback((()=>{t||n(!0)}),[t]),l=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:r,onBlur:l})),[a,l,r])}const qo=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},Xo=e=>{const[n,i]=t(!1),[r,l]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;l(o-n-i<=0)}}},Go=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,l]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&l(t)}]},Ko=p(k).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${I.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${D.base};height:${D.base};}`,_o=p(P).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Uo=p(_o).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Yo=p(Le).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,Jo=p(ze).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Qo=p(k).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,ei=p(k).withConfig({displayName:"vui--Header",componentId:"vui--188pxr2"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${I.neutral.grey.base};svg{color:${({color:e})=>e};width:${D[5]};height:${D[5]};margin-right:10px;}`,ti=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ni=({className:t,e2eClassName:n,label:o,text:i,iconSlot:r,fill:l=I.secondary.blue.base,content:a,footer:s,onClick:d})=>{const c=ti(t),u=ti(n),{shouldShowDropdown:m,toggleShouldShowDropdown:p,closeDropdown:g}=Wo();return!a?e.createElement(Ko,{className:ie([null==c?void 0:c.container,null==u?void 0:u.container]),onClick:d},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(P,null,i),e.createElement(Jo,{className:ie([null==c?void 0:c.cross,null==u?void 0:u.cross]),name:"cross",size:"base",color:I.neutral.ink.base})):e.createElement(ot,{className:c.filterTagDropdown,shouldShowDropdown:m,onShouldClose:g,cta:e.createElement(Ko,{className:c.container,onClick:p},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(P,null,i),e.createElement(Yo,{color:I.neutral.ink.base,name:"downArrow",shouldShow:m}))},e.createElement(Qo,null,e.createElement(ei,{color:l},r,e.createElement(P,{variant:"bodyBold"},o)),a,s))},oi=p(k).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?D[e]:0};`,ii=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),ri=p.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,li=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,ai=p.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,si=p.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,di=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),ci=({src:n,alt:o="",className:i,e2eClassName:r,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:f=!1})=>{const v=di(i),y=di(r),[w,$]=t(!1),[C,E]=t({isLoaded:!1,isError:!1}),[k,S]=e.useState(null),[N,I]=e.useState(null),{styles:L,attributes:z}=b(k,N,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=a((()=>m?$(!0):{}),[m]),j=a((()=>m?$(!1):{}),[m]),B=!C.isLoaded||C.isError;return e.createElement(ri,{className:ie([null==v?void 0:v.container,null==y?void 0:y.container,i])},e.createElement(li,{src:n,alt:o,className:ie([null==v?void 0:v.image,null==y?void 0:y.image]),width:l,height:s,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:F,onMouseLeave:j,style:B?{display:"none"}:{},ref:S}),!f&&B&&(p||e.createElement(ii,{className:ie([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:g||l,height:h||s})),w&&x(e.createElement(ai,Object.assign({ref:I,style:L.popper},z.popper,{className:ie([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(si,{src:n,alt:"",width:d,height:c})),document.body))},ui={width:64,height:64},mi={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},ui)),title:"No data found"},pi={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},ui)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var gi;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(gi||(gi={}));const{text:hi,sizes:bi}=O,{blue:fi}=O.colors.secondary,{grey:vi}=O.colors.neutral,{scrollbar:xi}=O.colors.system,yi='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',wi=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,$i=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--8prdgq"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${vi.dark};border-bottom:1px solid ${vi.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${xi.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${xi.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${yi};\n\n ${o===gi.middle||o===gi.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${yi};\n\n ${o===gi.start||o===gi.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ci=p($i).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${vi.dark};border-radius:4px;`,Ei=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,ki=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${vi.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;p.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${vi.lightest};padding:1.5rem 1rem;border-top:1px solid ${fi.base};}`;const Si=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ostkmy"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Ni=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--9fl65z"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${hi.bodySmall.fontFamily};font-size:${hi.bodySmall.fontSize};font-weight:${hi.bodySmall.fontWeight};color:${hi.bodySmall.color};line-height:${bi.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Ii=p(Ni).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${vi.dark};font-family:${hi.bodySmallBold.fontFamily};font-size:${hi.bodySmallBold.fontSize};font-weight:${hi.bodySmallBold.fontWeight};color:${hi.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${vi.light};}`,Li={left:"flex-start",center:"center",right:"flex-end"},zi=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Li[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Fi=p.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${ki}:nth-child(even) td {\n background-color: ${vi.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Ii}, & ${Ii} span {\n white-space: nowrap;\n }\n `}`,ji=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Ni}{border-top:1px solid ${vi.dark};background-color:${vi.lightest};padding-top:${bi.base};padding-bottom:${bi.base};line-height:2rem;}`,Bi=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Mi=p(Fi).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,Di=p(k).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--120wsfh"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Ri=p(k).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${O.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Hi=p(P).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,Oi=p(P).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,Ti=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Di,{height:t},e.createElement(Ri,null,n),e.createElement(Hi,{variant:"headingLarge"},o),i&&e.createElement(Oi,{variant:"subheadingMedium"},i)),Ai=p.button.withConfig({displayName:"vui--CellButton",componentId:"vui--14e2rl4"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${O.sizes.base};border-radius:${O.radius.base};&:hover{cursor:pointer;background-color:${O.colors.secondary.blue.lightest};}`,Wi=p(Ai).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${O.text.link.color};text-decoration:${O.text.link.textDecoration};`,Pi=p.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Vi}=O.colors.neutral,Zi=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,qi=p.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--yfc89o"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${Vi.base} 8%, ${Vi.dark} 15%, ${Vi.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Xi=({isLoading:t,style:n})=>e.createElement(Zi,{style:n},e.createElement(qi,{isLoading:t})),Gi=t=>{var{style:n}=t,o=Q(t,["style"]);return e.createElement(Ni,Object.assign({},o),e.createElement(Xi,{style:n}))};Gi.defaultProps={style:{}};const Ki=({renderHeader:n,tableRef:i,wrapperRef:r,isFixedLayout:l,wrapperStyle:s})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[i,r]=t(!1),l=a((({top:e,bottom:t})=>{let o=i;o=e<=(n||0)&&t>0?!i||o:!i&&o,o!==i&&r(o)}),[i,n]);return o((()=>{const t=()=>{var t;e.current&&l(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[l,e]),{isSticky:i}})(i,parseInt("string"==typeof(null==s?void 0:s.top)?null==s?void 0:s.top:`${null==s?void 0:s.top}`,10)),p=((null===(d=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;w(r);const g=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),m?e.createElement(Bi,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Mi,{style:{tableLayout:l?"fixed":"auto"}},n())):null},_i=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},Ui=t=>{var{style:n,width:o,isLoading:i}=t,r=Q(t,["style","width","isLoading"]);return e.createElement(Ii,Object.assign({},r,{style:{width:o}}),e.createElement(Xi,{style:n,isLoading:i}))},Yi=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Ji=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Qi=()=>e.createElement(fn,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),er=()=>e.createElement(Yi,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),tr=()=>e.createElement(Ji,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),nr=({borderless:n=!1,striped:r=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:b,renderFooterLoadingRow:f,omitFooterSelectionCell:v=!1,selectedRowIds:x,disabledSelectionInputRowIds:y,selectionMode:w="multiple",onChangeSelectedRowIds:$,sortColumnId:C,sortDirection:E,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:j=375,startFixedColumnsNumber:B,endFixedColumnsNumber:M})=>{const D=n?$i:Ci,R=!!u&&0===u.length,H=Boolean(B||M),O=!B&&!M,T=l(null),A=l(null),[W,P]=t(gi.none);o((()=>{var e;let t=null;const n=()=>{if(!A.current||O)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?P(gi.none):0===n?P(gi.start):n>0&&i<t?P(gi.middle):i===t&&P(gi.end)};return A.current&&(t=A.current,n(),null===(e=A.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[T,O]);const V=a((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),Z=a(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),q=a((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(B){x&&(e.push(Z(1,n,"left")),n+=58);for(let t=0;t<B;t+=1){const o=V(c[t].width);o&&(e.push(Z(x?t+2:t+1,n,"left")),n+=o)}}if(M)for(let e=0;e<M;e+=1){const n=V(c.slice(-e-1)[0].width);n&&(t.push(Z(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,V,M,Z,c,B,x]),X=i((()=>q()),[q]),G=a(((e,t)=>{if(!x||!$)return;if(e)return"single"===w?void $([t.id]):void $([...x,t.id]);const n=[...x],o=n.findIndex((e=>e===t.id));n.splice(o,1),$(n)}),[$,x,w]),K=a((()=>{if(!x||!$)return;if(x.length===u.length)return void $([]);const e=u.map((e=>e.id));$(e)}),[$,u,x]),_=a((e=>{if(void 0===C||void 0===k)return;let t=C,n="ascending";"ascending"===E&&(n="descending"),e!==C&&(t=e,n="ascending"),k(t,n)}),[k,C,E]),U=a(((t,n)=>{let o="",i=()=>{},r=e.createElement(Qi,null);const{tooltip:l,align:a,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",i=()=>_(u),C===u&&(r="ascending"===E?e.createElement(er,null):e.createElement(tr,null)));const m=e.createElement(zi,{align:a},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(Ii,{key:u,id:`data-table-header-${u}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},l?e.createElement(ht,{text:l},e.createElement(wi,null,m)):m)}),[_,C,E]),Y=a(((t,n)=>e.createElement(Ui,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=a((()=>{if(!c)return null;const t=q(),n=t?t[0].style:{};return e.createElement(Ei,null,e.createElement(Si,null,x&&e.createElement(Ii,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(tn,{checked:u.length>0&&(null==x?void 0:x.length)===u.length||!1,onChange:K,disabled:y&&y.length>0||N||R,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=x?n+2:n+1,i=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||R)?Y(e,e.skeletonStyle||{}):U(e,(null==r?void 0:r.style)||{})}))))}),[q,K,c,R,S,N,Y,U,u.length,x,w,y]),Q=a(((t,n)=>{const o={checked:t,onChange:e=>G(e,n),disabled:(null==y?void 0:y.includes(n.id))||!1};return"single"===w?e.createElement(on,Object.assign({},o)):e.createElement(tn,Object.assign({},o))}),[G,w,y]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Gi,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Gi,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=a(((t,n)=>{var o,i;if(!p)return null;const r=p(t);if(!r)return null;const l=(null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row)||"";return e.createElement(Si,{key:t.id,className:`${l} ${n?"hidden":""}`},x&&e.createElement(Ni,null),r)}),[p,x]),ne=a((t=>{if(!c)return e.createElement(Gi,null);const n=c.map((n=>e.createElement(Gi,{key:`${t}-${n.id}`})));return x&&n.unshift(ee(t)),n}),[c,ee,x]),oe=()=>b?N&&!f||!N&&R?null:e.createElement(ji,{fixedColumnsStyle:_i(X||[])},e.createElement(Si,null,x&&!v&&e.createElement(Ni,null),!N&&b(u),N&&f&&f())):null;let ie=B;x&&ie&&(ie+=1);const re=i((()=>u.map((t=>{var n,o,i;const{data:r}=t,l=!!x&&x.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=l?`selected ${d}`:`${d}`;return e.createElement(ki,{key:t.id,className:s,fixedColumnsStyle:_i(X||[])},e.createElement(Si,{key:t.id,className:c,accentColor:t.accentColor},x&&e.createElement(Ni,null,Q(l,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[u,g,X,te,m,Q,x]);if(N){const t=[];for(let n=0;n<I;n+=1)t.push(e.createElement(ki,{key:`loading-row-${n}`,fixedColumnsStyle:_i(X||[])},e.createElement(Si,null,h?e.createElement(e.Fragment,null,x&&ee(),h()):ne(n))));return e.createElement(D,{ref:A,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M},L&&c&&e.createElement(Ki,{renderHeader:J,tableRef:T,wrapperRef:A,isFixedLayout:H,wrapperStyle:z}),e.createElement(Fi,{ref:T,striped:r,noWrap:s,tableLoading:!0,isFixedLayout:H},J(),t,oe()))}if(R||S){let t=mi;return F?t=F:S&&(t=pi),e.createElement(D,{scrollDisabled:!0},e.createElement(Fi,{ref:T,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:H},J(),oe()),e.createElement(Ti,Object.assign({height:j},t)))}return e.createElement(D,{scrollDisabled:!1,ref:A,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M,showScrollbar:d},L&&c&&e.createElement(Ki,{renderHeader:J,tableRef:T,wrapperRef:A,isFixedLayout:H,wrapperStyle:z}),e.createElement(Fi,{ref:T,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:H},J(),re,oe()))};nr.Cell=Ni,nr.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Q(t,["onClick","children"]);return e.createElement(Ni,Object.assign({},i),e.createElement(Wi,{onClick:n},o))},nr.EditableCell=t=>{var{onClick:n,children:o}=t,i=Q(t,["onClick","children"]);return e.createElement(Ni,Object.assign({},i),e.createElement(Ai,{onClick:n},e.createElement(Pi,null,o)))},nr.SkeletonCell=Gi,nr.SkeletonContent=Xi;const or=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,ir="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",rr="Log in with Amazon",lr=n=>{const[o,i]=t(ir);return e.createElement(or,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(ir)},"aria-label":rr},n),e.createElement("img",{src:o,alt:rr}))},ar=h`body{overflow:hidden;scrollbar-gutter:stable;}`,sr=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${O.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${We.Footer} {\n box-shadow: 0px 10px 15px 0px ${O.colors.neutral.ink.dark};\n }\n `}`,dr=e=>!!e.footerSlot,cr={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},ur={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},mr={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:pr}=O,gr=p(u.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--hfuefb"})`padding:0;border:none;border-radius:${O.sizes.sm};box-shadow:${O.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${We.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${cr[e]};`} ${sr}{padding-bottom:${O.sizes.md};}${We.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${pr.mobile} + 1px))and (max-width: ${pr.tablet}){max-width:${({variant:e})=>ur[pr.tablet][e]};}@media (min-width: ${pr.tablet})and (max-width: ${pr.lgTablet}){max-width:${({variant:e})=>ur[pr.lgTablet][e]};}@media (min-width: ${pr.lgTablet})and (max-width: ${pr.desktop}){max-width:${({variant:e})=>ur[pr.desktop][e]};}@media (min-width: ${pr.desktop}){max-width:${({variant:e})=>ur[pr.lgDesktop][e]};}@media (max-width: ${({variant:e})=>mr[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${We.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${le(O.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,hr=e.forwardRef(((t,n)=>{var o=Q(t,[]);return e.createElement(gr,Object.assign({ref:n},o))})),br=n=>{const{shouldShow:i,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(null),[p,g]=t(null);o((()=>{var e,t;i&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[i]);const{isOverflowing:h,onScroll:b}=Xo(p),f=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(m,null,i&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(ar,null),e.createElement(hr,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(We.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Fe,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:f})),e.createElement(sr,{onScroll:b,ref:g,isScrollable:h,fullBleed:a},c),dr(n)&&n.footerSlot,!dr(n)&&(n.leftActions||n.rightActions)&&e.createElement(We.Footer,null,e.createElement(Ht,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Ht,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=Q(t,["label"]);return e.createElement(Se,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Ht,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=Q(t,["label"]);return e.createElement(Se,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:fr,text:vr,shadows:xr}=O,{grey:yr}=O.colors.neutral,wr=p.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${fr.base} ${fr.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&xr[e]};`,$r=p.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${vr.headingXL.fontFamily};font-size:${vr.headingXL.fontSize};font-weight:${vr.headingXL.fontWeight};margin:unset;line-height:1;`,Cr=p.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${vr.subheadingLarge.fontFamily};font-weight:${vr.subheadingLarge.fontWeight};font-size:${vr.subheadingLarge.fontSize};line-height:${vr.subheadingLarge.lineHeight};`,Er=p.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${O.radius.base};border:${fr.line} solid ${yr.base};object-fit:cover;`,kr=p.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Sr=p(Se).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${O.text.link.fontFamily};font-size:${O.text.link.fontSize};font-weight:${O.text.link.fontWeight};line-height:${O.text.link.lineHeight};color:${O.text.link.color};&:hover{text-decoration:${O.text.link.textDecoration};}& > * + *{margin-left:${O.sizes.xs};}`,Nr=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--498dtg"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${fr.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Ir=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Lr=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:r,backAction:l,Accessory:a,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=i&&e.createElement(Ue,{buttonVariant:r?"default":"primary",title:"Actions",sections:i}),p=null==r?void 0:r.map((t=>e.createElement(Se,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=l&&e.createElement(Se,{onClick:l.onClick,icon:e.createElement(Ir,null),variant:"link"},l.title),h=u&&e.createElement(Ht,{direction:"horizontal",alignX:"end"},e.createElement(Sr,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(zt,{width:D.md})));return e.createElement(wr,{shadow:s},e.createElement(Ht,null,g,e.createElement(Nr,null,e.createElement(Ht,{direction:"horizontal",spacing:"md"},o&&e.createElement(Er,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Ht,{alignX:"stretch"},e.createElement($r,null,t),a,n&&e.createElement(Cr,null,n)))),e.createElement(kr,null,e.createElement(Ht,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Se,{icon:e.createElement(Ir,null),onClick:d}),c&&e.createElement(Se,{icon:e.createElement(zt,null),onClick:c})),h))))},zr=p(Ht).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${O.sizes.lg};height:30px;background-color:${O.colors.neutral.grey.light};border:1px solid ${O.colors.neutral.grey.base};border-radius:${O.sizes.xs};`,Fr=p(Se).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${O.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,jr=p(Bo).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,Br=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(P,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(zr,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(P,{variant:"bodySmall"},t))),Mr=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[r,l]=t(`${e}`);o((()=>{l(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(r||l(`${e}`),r===`${e}`)return;const t=parseInt(r,10);a(t)&&i(t)};return{pageInputValue:r,handleIncrement:()=>{a(e+1)&&i(e+1)},handleDecrement:()=>{a(e-1)&&i(e-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;a(n=t)&&l(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Dr=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Rr=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Hr=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:l,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=Mr({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Fr,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Dr,null),size:"sm","aria-label":"go to first page"}),e.createElement(Fr,{onClick:s,icon:e.createElement(Ir,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(jr,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:wo.sm,type:"number",value:l,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(Br,{count:i}),e.createElement(Fr,{onClick:a,icon:e.createElement(zt,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(Fr,{onClick:()=>{o!==i&&r(i)},icon:e.createElement(Rr,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Or=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Tr=p(k).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Ar=p(k).attrs({as:"button"}).withConfig({displayName:"vui--ItemButton",componentId:"vui--1ibay0g"})`&:first-of-type{margin-top:2px;}border-radius:${O.radius.sm};overflow:hidden;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:0 2px 2px;border-radius:${O.radius.sm};overflow:hidden;background:none;border:none;&:active,&:focus-visible{box-shadow:0 0 0 2px ${O.colors.secondary.blue.light};outline:none;}`,Wr=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${I.secondary.blue.base};background:${I.neutral.grey.lightest};}`,Pr=({item:t,handleRangeListChange:n})=>{const o=a((()=>n(t)),[n,t]);return e.createElement(Ar,{onClick:o},e.createElement(Wr,{variant:"body"},t.label.replace(/ /g," ")))},Vr=t=>{const{handleRangeListChange:n,paginationRange:o=Or}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(Pr,{item:t,handleRangeListChange:n})))))},Zr="pagination-range-dropdown",qr=({className:n,paginationRange:i=Or,reversedDropdown:r,onPaginationRangeChange:l,dropdownValue:a=Or[1]})=>{const[s,d]=t(a),[c,u]=t(!1),m=()=>u((e=>!e));return o((()=>{a!==s&&d(a)}),[a]),e.createElement(Tr,{className:n},e.createElement(ot,{useAnchorWidth:!0,id:Zr,cta:e.createElement(Se,{"data-testid":"pagination-range",onClick:m,dropdown:!0,size:"sm","aria-haspopup":!0,"aria-controls":Zr,"aria-expanded":c},s.label),shouldShowDropdown:c,onShouldClose:m,reversed:r,placement:"bottom-start"},e.createElement(Vr,{paginationRange:i,handleRangeListChange:e=>{u(!1),d(e),l(e)}})))},Xr=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Gr=p.button.withConfig({displayName:"vui--StepButton",componentId:"vui--1myicuk"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Kr=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(Xr,{size:i},e.createElement(Gr,{type:"button",onClick:t,disabled:o},e.createElement(Y,{height:O.sizes.base,width:O.sizes.base,color:O.colors.neutral.ink.base})),e.createElement(Gr,{type:"button",onClick:n,disabled:o},e.createElement(Le,{height:O.sizes.base,width:O.sizes.base,color:O.colors.neutral.ink.base}))),_r=p(Bo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${O.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${O.colors.neutral.ink.lightest};}`,Ur=p(k).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${O.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?O.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Yr=p(P).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,Jr=p(yo).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--1sahwox"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${O.colors.secondary.red.light};\n\n > * {\n border-top-color: ${O.colors.secondary.red.base};\n border-bottom-color: ${O.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${O.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${O.colors.secondary.red.base};\n border-right-color: ${O.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${O.colors.secondary.red.base};\n border-bottom-color: ${O.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${O.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}}`;const Qr=No((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:l,onPriceChange:a,priceValue:s,step:d="0.1",size:c=wo.base}=t,u=Q(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(Jr,{className:n,hasError:o},e.createElement(Ur,{disabled:r,size:c},e.createElement(Yr,{variant:"hintText"},i)),e.createElement(_r,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void a("");const o=parseFloat(n.replace(",",".")).toFixed(2);a(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(l),"ArrowDown"===t&&p(l)},disabled:r,size:c},u)),e.createElement(Kr,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));Qr.displayName="PriceInput";const el=p(Bo).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,tl=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,nl=p(k).withConfig({displayName:"vui--Container",componentId:"vui--g7dno3"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${el} {\n ${t}\n }\n\n & ${tl} {\n ${n}\n }\n `}}`,ol=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),il=e.forwardRef((({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:b,reversed:f=!1,autoComplete:v="on",size:x="base",style:y},w)=>{const $=c&&c.length>0;return e.createElement(nl,{className:p,iconPosition:f?"left":"right"},e.createElement(el,{ref:w,size:x,type:t,value:c,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:v,style:y}),e.createElement(tl,null,h?e.createElement(pe,{height:24,color:b||O.colors.secondary.blue.base}):$&&o?e.createElement(Se,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(ze,{color:b||O.colors.neutral.ink.dark})):e.createElement(Se,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(ol,{color:b||O.colors.neutral.ink.dark,height:D.md,width:D.md}))))})),rl=O.colors.neutral.grey.lightest,ll=O.colors.neutral.grey.dark,al=O.colors.secondary.blue.dark,sl=p(k).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${rl};border-color:${ll};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${al};border-color:${al};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${O.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,dl=({options:t,selected:n,className:o,onChange:i})=>e.createElement(sl,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Se,{variant:t.value===n?"primary":"default",key:t.key,onClick:()=>i(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),cl=p.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1h93380"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,ul=No(r(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,u=Q(t,["className","options","value","onChange","size","disabled","hasError"]);const m=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(cl,Object.assign({className:o,sizeVariant:s,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));ul.displayName="Select";const ml=p.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--jhvnbb"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${O.colors.neutral.ink.base});font-family:${O.text.bodySmall.fontFamily};font-style:${O.text.bodySmall.fontStyle};font-size:${O.text.bodySmall.fontSize};line-height:${O.text.bodySmall.lineHeight};font-weight:${O.text.bodySmall.fontWeight};text-decoration:${O.text.bodySmall.textDecoration};letter-spacing:${O.text.bodySmall.letterSpacing};`,pl=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--y1tr49"})`box-sizing:border-box;color:var(--kbdTextColor, ${O.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${O.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${O.text.bodySmall.fontFamily};font-style:${O.text.bodySmall.fontStyle};`,gl={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},hl={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},bl=t=>{var{shortcut:n,label:o,inverse:i=!1,displayLabel:r=!1}=t,l=Q(t,["shortcut","label","inverse","displayLabel"]);const a=n.split("+").map((t=>gl[t]?e.createElement(pl,{key:`Key: ${t}`,"aria-label":hl[t]},gl[t]):e.createElement(pl,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(ml,Object.assign({"aria-label":o,$inverse:i},l),a," ",r?e.createElement("span",null,o):null)},{blue:fl}=I.secondary,{grey:vl}=I.neutral,xl=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,yl=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${fl.lightest};}`,wl=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,$l=p.td.withConfig({displayName:"vui--TableCell",componentId:"vui--1o4t01c"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${H.bodySmall.fontFamily};font-size:${H.bodySmall.fontSize};font-weight:${H.bodySmall.fontWeight};color:${H.bodySmall.color};line-height:${D.base};& > *{vertical-align:middle;}`,Cl=p($l).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${vl.dark};font-family:${H.bodySmallBold.fontFamily};font-size:${H.bodySmallBold.fontSize};font-weight:${H.bodySmallBold.fontWeight};color:${H.bodySmallBold.color};`,El=p.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${yl} tr:nth-child(even) td {\n background-color: ${vl.lightest};\n }\n `}`,kl=({striped:t=!0,className:n,children:o})=>e.createElement(El,{striped:t,className:n},o);kl.Header=xl,kl.Body=yl,kl.Row=wl,kl.HeaderCell=Cl,kl.Cell=$l;const Sl=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Nl=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${O.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Il=p.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--19twtgm"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${O.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${O.colors.secondary.blue.light};}`,Ll=p(Nl).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${O.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,zl=e=>({container:e?`${e}-slider-container`:void 0,sliderRange:e?`${e}-slider-range`:void 0,slider:e?`${e}-slider`:void 0,startSlider:e?`${e}-start-slider`:void 0,endSlider:e?`${e}-end-slider`:void 0}),Fl=({id:n,value:i,min:r,max:s,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,b]=t(!1),[f,v]=t(-1),x=l(null),y=l(null),w=l(null),$=zl(u),C=zl(m),E=a((e=>{var t;if(!h||!x.current)return;const n=f>-1?i[f]:i,o=x.current.getBoundingClientRect();let l=100*(e.pageX-o.x)/o.width/100*(s-r)+r;const a=n-l;if(a>0&&(l=n+Math.ceil(l/d-n/d)*d),a<0&&(l=n+Math.floor(l/d-n/d)*d),n===l)return;l>s&&(l=s),l<r&&(l=r),Array.isArray(i)&&(0===f&&l>i[1]&&([,l]=i),1===f&&l<i[0]&&([l]=i));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;l=Number(l.toFixed(u)),m=Array.isArray(i)?0===f?[l,i[1]]:[i[0],l]:l,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===f&&v(1),1===f&&v(0))}),[f,h,s,r,c,d,i]),k=a((()=>{b(!1),g()}),[g]),S=a(((e,t)=>{b(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);o((()=>{const e=e=>S(e,Array.isArray(i)?0:1),t=e=>S(e,1),n=y.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k)}}),[S,E,k,i]);const N=(t,n,o)=>{let i;return i=ie("number"==typeof o?0===o?[null==$?void 0:$.startSlider,null==C?void 0:C.startSlider]:[null==$?void 0:$.endSlider,null==C?void 0:C.endSlider]:[null==$?void 0:$.slider,null==C?void 0:C.slider]),e.createElement(Il,{role:"slider",ref:1===o?w:y,className:i,left:t,"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":n})},I=t=>{const n=100*(t[0]<r?0:t[0]-r)/(s-r),o=100*(t[1]>s?100:t[1]-r)/(s-r),i=o-n;return e.createElement(e.Fragment,null,e.createElement(Ll,{className:ie([null==$?void 0:$.sliderRange,null==C?void 0:C.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let L;return L=Array.isArray(i)?I(i):(e=>{if(Array.isArray(i))return I(i);let t;return t=i>s?100:i<r?0:100*(e-r)/(s-r),N(t,e)})(i),e.createElement(Sl,{className:ie([null==$?void 0:$.container,null==C?void 0:C.container]),id:n,ref:x},e.createElement(Nl,null),L)},jl=p(k).withConfig({displayName:"vui--Tag",componentId:"vui--qsag0v"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:I.neutral.ink.base};\n background-color: ${null!=e?e:I.neutral.grey.base};\n `}`,Bl=p(Ht).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Ml=p(Ht).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${O.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${O.shadows.lg};border-radius:${O.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,Dl=p(k).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${O.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${D.md};height:${D.md};}`,Rl=p(Ht).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,Hl=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,Ol={info:{accentColor:I.brand.blue.base,icon:e.createElement(oo,null)},success:{accentColor:I.secondary.green.base,icon:e.createElement(sn,null)},error:{accentColor:I.secondary.red.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:I.secondary.purple.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},Tl=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Al=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:l,minWidth:a,cta:s,onClose:d})=>{const c=Tl(t),u=Tl(n);return e.createElement(Ml,{className:ie([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:a,last:l},e.createElement(Dl,{color:Ol[o].accentColor,className:ie([c.icon,u.icon])},null!=i?i:Ol[o].icon),e.createElement(Rl,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Hl,{variant:"body"},r),s),e.createElement(Se,{variant:"flat",icon:e.createElement(ze,{color:"white"}),onClick:d,"aria-label":"Close"}))},Wl=({className:t,e2eClassName:n,toasts:i,minWidth:r="50vw",max:l=3,onClose:a})=>(o((()=>{l&&i.length>l&&a(i[0].key)}),[i,l,a]),x(e.createElement(Bl,{direction:"vertical",alignX:"center",spacing:4},e.createElement($,{component:null},[...i].reverse().map(((o,l)=>e.createElement(C,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Al,Object.assign({className:t,e2eClassName:n,minWidth:r,last:l===i.length-1,onClose:()=>a(o.key)},o))))))),document.body)),Pl=p.span.withConfig({displayName:"vui--Slider",componentId:"vui--10ka3tn"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?O.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Vl=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${Pl}{box-shadow:0 0 0 4px ${O.colors.brand.blue.light};}&:checked + ${Pl}{background-color:#0079d1;}&:disabled + ${Pl}{background-color:${O.colors.neutral.grey.base};}&:checked:disabled + ${Pl}{background-color:${O.colors.secondary.blue.light};}`,Zl=p.label.withConfig({displayName:"vui--Switch",componentId:"vui--16c93z6"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${Pl}:after{height:${({small:e})=>e?"22px":"28px"};width:${({small:e})=>e?"22px":"28px"};left:${({small:e})=>e?"3px":"4px"};bottom:${({small:e})=>e?"3px":"4px"};}${Vl}:checked + ${Pl}{&:after,svg{-webkit-transform:translateX(${({small:e})=>e?"28px":"36px"});-ms-transform:translateX(${({small:e})=>e?"28px":"36px"});transform:translateX(${({small:e})=>e?"28px":"36px"});}}`,ql=p(k).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Xl=r((({id:t,className:n,name:o,switched:i,small:r,onClick:l=(()=>{}),disabled:a,ariaLabel:s},d)=>e.createElement(ql,{className:n,disabled:a},e.createElement(Zl,{small:r,disabled:a,role:"switch"},e.createElement(Vl,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:a?void 0:l,disabled:a,ref:d}),e.createElement(Pl,{switched:i,disabled:a}))))),Gl=p.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--xt3hiw"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${O.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",i="24px",r="8px",l="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",l="14px",a="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${a};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${l};\n\n background-color: ${s};\n border-color: ${d};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Kl=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(Gl,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),_l=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--ljd9es"})`display:flex;align-items:center;justify-content:center;padding:${D.md};border-radius:${z.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${I.neutral.ink.lightest};background-color:${I.neutral.grey.lightest};:hover{border:2px dashed ${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};}:active{border:2px dashed ${I.secondary.blue.base};box-shadow:0 0 0 4px ${I.secondary.blue.light};background-color:${I.secondary.blue.lightest};}:focus-within{border:2px dashed ${I.secondary.blue.base};box-shadow:0 0 0 4px ${I.secondary.blue.light};background-color:${I.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${I.secondary.red.base};:hover{border:2px dashed ${I.secondary.red.base};background-color:${I.secondary.red.lightest};}:active{border:2px dashed ${I.secondary.red.base};box-shadow:0 0 0 4px ${I.secondary.red.light};background-color:${I.secondary.red.lightest};}:focus-within{border:2px dashed ${I.secondary.red.base};box-shadow:0 0 0 4px ${I.secondary.red.light};background-color:${I.secondary.red.lightest};}}`;var Ul,Yl,Jl;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(Ul||(Ul={})),function(e){e.KB="KB",e.MB="MB"}(Yl||(Yl={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(Jl||(Jl={}));const Ql=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),ea=()=>e.createElement(Ht,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(Ql,null),e.createElement(P,{variant:"subheadingSmall",style:{paddingTop:D.sm}},"Browse files or drag them here")),ta=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Ht,{alignX:"start",spacing:"xs"},t&&e.createElement(P,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(P,{variant:"errorSmall"},"File is too big (",n,")")):null,na=p(P).withConfig({displayName:"vui--SingleLineText",componentId:"vui--2zjkq9"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,oa=p(Ht).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--r41a54"})`border:1px solid ${I.neutral.ink.lightest};border-radius:${z.base};padding:${D.xs};${P}{padding-left:${D.xs};}`,ia=({file:t,resetSelection:n})=>t?e.createElement(oa,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(na,{variant:"body"},null==t?void 0:t.name),e.createElement(Se,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(ze,null),"aria-label":"Remove file"})):null,ra=r((({id:n,name:i,maxBytes:r=1e6,format:s=Yl.MB,fileTypes:d,label:u="Upload file",required:m},p)=>{const g=l(null);c(p,(()=>g.current),[]);const[h,b]=t(),[f,v]=t(Jl.VALID),x=f===Jl.INVALID_FORMAT||f===Jl.INVALID_FORMAT_AND_SIZE,y=f===Jl.INVALID_SIZE||f===Jl.INVALID_FORMAT_AND_SIZE,w=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case Yl.KB:return`${o}${Number(e)/1e3} KB`;case Yl.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:r,format:s}),$=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const i=o.length>1,r=t===o.length-1&&i,l=t===o.length-2&&i;switch(r&&(n+=" and "),e){case Ul.CSV:n+="CSV";break;case Ul.GIF:n+="GIF";break;case Ul.JPEG:n+="JPEG";break;case Ul.JPG:n+="JPG";break;case Ul.PNG:n+="PNG"}!l&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:d}),C=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const i=o.length-1===n&&o.length>1;t+=i?`${e}`:`${e}, `})),t.trim()})({fileTypes:d}),E=()=>{var e;(null===(e=g.current)||void 0===e?void 0:e.value)&&(g.current.value="")},k=({overMaxSize:e,invalidFormat:t})=>{var n;let o=Jl.VALID;t&&!e?o=Jl.INVALID_FORMAT:!t&&e?o=Jl.INVALID_SIZE:t&&e&&(o=Jl.INVALID_FORMAT_AND_SIZE),null===(n=g.current)||void 0===n||n.setCustomValidity(o),v(o)},S=a((e=>{if(!e.length)return void k({invalidFormat:!0});const[t]=e,o=t.size>r,[,i]=t.type.split("/"),l=!d.find((e=>e.substring(1)===i));o||l?E():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:n}),k({invalidFormat:l,overMaxSize:o}),b(t)}),[d,n,r]),N=a((()=>{var e;const t=null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&S(t)}),[S]),I=a((()=>{E(),b(void 0),k({invalidFormat:!1,overMaxSize:!1})}),[]);return o((()=>{const e=null==g?void 0:g.current;return null==e||e.addEventListener("change",N),()=>{null==e||e.removeEventListener("change",N)}}),[N]),e.createElement(ko,{spacing:"sm",alignX:"stretch"},e.createElement($o,{htmlFor:n},u,e.createElement(Ht,{spacing:3,alignX:"stretch",style:{paddingTop:D.sm}},e.createElement(Co,null,e.createElement("div",null,$),e.createElement("div",null,w)),e.createElement(_l,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&S(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=g.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=g.current)||void 0===t||t.blur()}},e.createElement(ea,null),e.createElement("input",{ref:g,id:n,type:"file",accept:C,name:i,required:m})))),e.createElement(Ht,{alignX:"stretch",spacing:"sm"},e.createElement(ia,{file:h,resetSelection:I}),e.createElement(ta,{acceptedTypesCopy:x?$:void 0,maxSizeCopy:y?w:void 0})))})),la="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",aa=p(k).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${la} display:${e=>e.shouldShow?"initial":"none"};z-index:${O.layers.modal};`,sa=p(k).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${la} background-color:rgba(55,66,77,0.5);`,da=p(k).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,ca=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(te,null,n):n),ua=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(ca,{usePortal:i},e.createElement(aa,{className:ie([`${t}-container`,t]),shouldShow:o},e.createElement(sa,null),e.createElement(E,{isActive:o},e.createElement(da,{className:ie([`${t}-wrap`,t])},n)))),ma=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,pa=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,ga=p(Se).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`,ha=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=To(o,i);return e.createElement(ua,{shouldShow:o,className:`${t}-video`},e.createElement(ma,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(pa,{ref:r},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(ga,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement(ze,{color:"white"})}))))};var ba;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(ba||(ba={}));const fa=p(k).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,va=p(P).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,xa=p(k).withConfig({displayName:"vui--Contour",componentId:"vui--b8oq7f"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${P} {\n color: ${null!=t?t:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ya=p(P).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1xuhw17"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${va} {\n color: #fff;\n }\n `}`,wa={style:{marginLeft:D.xs,padding:D.xs,height:D.base,width:D.base}},$a=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${D.sm};svg{height:${D.base};width:${D.base};}`,Ca=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Ea=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0}),ka=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=I.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Ea(r),b=Ea(g),[f,v,x]=qo(),y=a((()=>u(t)),[t,u]),w=a((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),C=i===ba.draft,E=i===ba.saved,k=c?I.neutral.ink.dark:I.neutral.ink.base;return e.createElement(fa,{className:`${ie([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:y},e.createElement(xa,{active:c,onMouseEnter:v,onMouseLeave:x,colourPalette:l,customTextColour:s},n&&e.createElement($a,null,n),e.createElement(P,{variant:"bodyBold"},o),d&&e.createElement(ya,{active:c||f,colourPalette:l,customTextColour:s},e.createElement(va,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),C&&e.createElement(ze,Object.assign({},wa,{color:k,className:null==b?void 0:b.delete,onClick:w})),E&&c&&e.createElement(Ca,Object.assign({},wa,{color:k,className:null==b?void 0:b.edit,onClick:$}))))};var Sa;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Sa||(Sa={}));const Na=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Ia=p(P).withConfig({displayName:"vui--CounterText",componentId:"vui--3am01d"})`line-height:1;`,La=p(Na).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--1uc98sf"})``,za=p(ze).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--1te682y"})``,Fa=p(P).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1giom5i"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Ia} {\n color: ${I.neutral.grey.lightest};\n }\n `}`,ja=p(k).withConfig({displayName:"vui--Contour",componentId:"vui--jegwey"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${I.neutral.grey.base};\n & > ${Fa} {\n background-color: ${I.neutral.grey.base};\n & > ${Ia} {\n color: ${I.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n & > ${La} {\n color: ${I.neutral.ink.dark};\n }\n & > ${za} {\n color: ${I.neutral.ink.dark};\n }\n }\n\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${La} {\n color: ${t.dark};\n }\n & > ${za} {\n color: ${t.dark};\n }\n\n & > ${P} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Ba=p(ye).withConfig({displayName:"vui--ViewButton",componentId:"vui--176jtjf"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${ja} {\n background-color: ${I.neutral.grey.base};\n & > ${Fa} {\n background-color: ${I.neutral.grey.base};\n & > ${Ia} {\n color: ${I.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n & > ${La} {\n color: ${I.neutral.ink.dark};\n }\n & > ${za} {\n color: ${I.neutral.ink.dark};\n }\n }\n `}`,Ma={style:{marginLeft:D.xs,padding:D.xs,height:D.base,width:D.base}},Da=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1omb2tl"})`display:flex;align-items:center;margin-right:${D.sm};svg{height:${D.base};width:${D.base};}`,Ra=e.forwardRef((({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=I.secondary.blue,customTextColour:a,count:s,active:d=!1,onClick:c,subAction:u,ariaContext:m},p)=>{const g={delete:(h=r)?`${h}-delete`:void 0,edit:h?`${h}-edit`:void 0,container:h?`${h}-view`:void 0,active:h?`${h}-active`:void 0,counter:h?`${h}-counter`:void 0};var h;const[b,f,v]=qo(),x=d&&u?u:c,y=i===Sa.draft,w=i===Sa.saved;return e.createElement(Ba,{className:ie([null==g?void 0:g.container]),onClick:()=>x(t),role:"tab","aria-selected":d,"aria-label":`${d&&y?"Delete":d&&w?"Edit":""} ${o} view ${s?`with ${s} ${m}`:""}`,customTextColour:a,ref:p},e.createElement(ja,{active:d,onMouseEnter:f,onMouseLeave:v,colourPalette:l,customTextColour:a},n&&e.createElement(Da,null,n),e.createElement(P,{variant:"bodyBold"},o),s&&e.createElement(Fa,{active:d||b,colourPalette:l,customTextColour:a},e.createElement(Ia,{variant:"subheadingSmall"},s)),y&&e.createElement(za,Object.assign({},Ma,{"aria-label":"delete icon"})),w&&d&&e.createElement(La,Object.assign({},Ma,{"aria-label":"edit icon"}))))})),Ha=p(Ht).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--1p01q6"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Oa=p(Ht).withConfig({displayName:"vui--Container",componentId:"vui--jg3tdl"})`background-color:${I.neutral.grey.lightest};`,Ta=p(Ir).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--gdu1c8"})`color:${I.neutral.ink.base};`,Aa=p(zt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--tvozdf"})`color:${I.neutral.ink.base};`,Wa=p(Na).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--1vjvhoa"})`color:${I.neutral.ink.base};`,Pa=p(Se).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--q5etoj"})`background-color:white;&:hover{background-color:${I.neutral.grey.lightest};}`,Va=p(Se).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--jo62ep"})`background-color:white;&:disabled{background-color:white;${Ta}{color:${I.neutral.ink.lightest};}}&:hover{background-color:${I.neutral.grey.lightest};}`,Za=p(Se).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1yb1huw"})`background-color:white;&:disabled{background-color:white;${Aa}{color:${I.neutral.ink.lightest};}}&:hover{background-color:${I.neutral.grey.lightest};}`,qa=p(yo).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--1voa90"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Xa=(e,n)=>{const[i,r]=t(!0),[l,s]=t(!1),[d,c]=t([]),u=a((()=>{var t,n;e.current.scrollLeft>0?r(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),r(!0));const o=e.current.scrollWidth-e.current.clientWidth;e.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),s(!0)):s(!1)}),[e]),m=a((()=>{e.current.scrollWidth-e.current.getBoundingClientRect().width<5?s(!0):s(!1)}),[e]),p=a((()=>{const t=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(d,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]),g=a((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(d,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]);return o((()=>{if(e)return n.length>d.length&&d.length>0&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),c([...d,d[d.length-1]+e.current.children[d.length].getBoundingClientRect().x-20])),0===d.length&&c((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m(),window.addEventListener("resize",(()=>m())),e.current.addEventListener("scroll",(()=>u())),()=>{window.removeEventListener("resize",(()=>m()))}}),[e,n,m,u,d]),{rightDisabled:l,leftDisabled:i,toNextScrollPosition:p,toPrevScrollPosition:g}},Ga=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const a=l(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=Xa(a,t);return e.createElement(Oa,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Ha,{ref:a,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(qa,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Va,{id:"left-arrow",icon:e.createElement(Ta,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Za,{id:"right-arrow",icon:e.createElement(Aa,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(Pa,{icon:e.createElement(Wa,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),Ka=p(k).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,_a=p(k).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,Ua=p(Bo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,Ya=p(Se).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${O.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${O.colors.secondary.red.base};\n `};`,Ja=No((t=>{var{size:n=wo.base,hasError:o,className:i}=t,r=Q(t,["size","hasError","className"]);return e.createElement(Ka,{className:i},e.createElement(_a,null,"g"===r.weightUnit&&e.createElement(yo,null,e.createElement(Ua,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o},r)),e.createElement(Ya,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(yo,null,e.createElement(Ua,Object.assign({size:n,onChange:r.handleChangePound,name:"ounce",type:"number",value:r.pound,hasError:o},r)),e.createElement(Ya,{hasError:o,size:n},"lb")),e.createElement(yo,null,e.createElement(Ua,Object.assign({size:n,onChange:r.handleChangeOunce,name:"pound",type:"number",value:r.ounce,hasError:o},r)),e.createElement(Ya,{hasError:o,size:n},"oz")))))}));Ja.displayName="WeightInput",Ja.defaultProps={weightUnit:"lb"};export{Ul as AcceptedFileTypes,J as Accordion,Ue as ActionList,Je as Anchor,ot as AnimatedDropdown,rt as Avatar,vt as Badge,Nt as Banner,k as BaseContainer,Dt as Breadcrumbs,Se as Button,We as Card,Fe as CardHeader,tn as Checkbox,Ut as Choice,an as ChoiceList,mn as CopyToClipboard,lo as DataTable,go as DescriptionList,xo as DetailPage,Oo as DimensionsInput,Yl as FileSizeUnit,ni as FilterTag,Vo as FocusVisibleManager,oi as Grid,ci as Image,yo as InputGroup,nr as LegacyDataTable,pe as Loader,lr as LoginWithAmazonButton,br as Modal,Lr as PageHeader,Hr as Pagination,qr as PaginationRange,de as Popover,ua as Popup,te as Portal,Qr as PriceInput,on as Radio,il as Search,dl as SegmentedControl,ul as Select,bl as ShortcutKeys,kl as SimpleTable,Fl as Slider,Ht as Stack,Kr as Stepper,jl as Tag,P as Text,Bo as TextField,Wl as ToastsLayout,Xl as Toggle,Kl as ToggleButton,ht as Tooltip,ra as UploadFile,ha as VideoModal,ka as View,Ra as ViewTab,Ga as ViewsContainer,Ja as WeightInput,ie as buildClassnames,ee as generateId,le as getOpaqueHexColor,re as hexToRgb,O as theme,wn as useCellWidths,To as useClickOutside,$n as useColumns,Ao as useDebounce,Cn as useDragToScroll,Wo as useDropdown,Zo as useFocusVisible,qo as useHover,Xo as useIsOverflowing,En as useNested,kn as useScrollPosition,jn as useSelection,Go as useTabs,Io as withDeprecated,No as withLabels};
|
|
1
|
+
import e,{useState as t,forwardRef as n,PureComponent as o,useEffect as i,useMemo as r,useRef as l,useCallback as a,Component as s,createRef as d,useImperativeHandle as c}from"react";import{motion as u,AnimatePresence as m}from"framer-motion";import p,{css as g,createGlobalStyle as h}from"styled-components";import{MenuItem as b,Section as f,Menu as v,Text as y,CalendarGrid as x,CalendarGridHeader as w,CalendarHeaderCell as E,CalendarGridBody as C,CalendarCell as $,RangeCalendar as k,useLocale as S,Button as N,Heading as L,Group as I,DateField as z,DateInput as D,DateSegment as F}from"react-aria-components";import{usePopper as M}from"react-popper";import T from"resize-observer-polyfill";import O,{createPortal as B}from"react-dom";import{uid as R}from"uid/secure";import{CSSTransition as j,TransitionGroup as A}from"react-transition-group";import{isWeekend as H,now as W,getLocalTimeZone as P,startOfYear as _,startOfMonth as V,startOfWeek as Z,endOfMonth as Y,CalendarDate as q}from"@internationalized/date";import X from"lodash.throttle";import{useScroll as K,usePrevious as U}from"react-use";import G from"react-scrolllock-configurable";const J=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,Q={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},ee=(e,t)=>e||(t?Q[t]:void 0),te={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},ne={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},oe={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var ie,re;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(ie||(ie={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(re||(re={}));const le=function({increment:e,unit:t,count:n}){const o={};for(let i=0;i<=n;i++){const n=i*e;o[i]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),ae={[re.none]:"0",[re.line]:"1px",[re.xs]:le[1],[re.sm]:le[2],[re.base]:le[4],[re.md]:le[6],[re.lg]:le[8],[re.xl]:le[12],[re.xxl]:le[16]},se=Object.assign(Object.assign({},ae),le),de={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},ce={headingXXL:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:te.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:te.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:te.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:te.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:te.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:te.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:te.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:te.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:te.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:te.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:de.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:te.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},ue=Object.assign(Object.assign({},de),{breakpoints:ne,colors:te,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:oe,shadows:ie,sizes:se,text:ce}),{text:me,colors:pe,fontFamily:ge}=ue,he=p.span.attrs((({as:e,variant:t})=>({as:ee(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${ge};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?pe.neutral.ink.lightest:me[e].color;return`\n font-family: ${me[e].fontFamily};\n font-style: ${me[e].fontStyle};\n font-weight: ${me[e].fontWeight};\n font-size: ${me[e].fontSize};\n line-height: ${me[e].lineHeight};\n color: ${n};\n text-decoration: ${me[e].textDecoration};\n letter-spacing: ${me[e].letterSpacing};\n `}}`,be=p(J).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,fe=p(be).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${se.base};width:${se.base};color:${({glyphColor:e})=>e};}`,ve=p(be).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,ye=p.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${ue.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${ue.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${ue.colors.secondary.blue.light};}`,xe=p(J).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,we=p(he).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,Ee=p(u(J)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Ce=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,$e=p(u(J)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,ke=p.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${ue.colors.secondary.blue.light};}`,Se=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:se.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"})),Ne=({className:n,children:o,label:i,iconSlot:r,glyphColor:l=te.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d,variant:c="default",summaryTextVariant:m="body"})=>{const[p,g]=t(!!d),h=()=>g(!p),b={initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}};return"unstyled"===c?e.createElement(Ce,{open:!!d,className:n},e.createElement(ke,{onClick:h},e.createElement(xe,null,e.createElement(fe,{glyphColor:l},r,e.createElement(he,{variant:m},i)),e.createElement(ve,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(Se,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(we,{variant:"hintText"},s)),p&&e.createElement($e,Object.assign({},b),o)):e.createElement(Ce,{open:!!d,className:n},e.createElement(ye,{onClick:h},e.createElement(xe,null,e.createElement(fe,{glyphColor:l},r,e.createElement(he,{variant:m},i)),e.createElement(ve,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(Se,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(we,{variant:"hintText"},s)),p&&e.createElement(Ee,Object.assign({},b),o))};function Le(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const Ie=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:i,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:i,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:i,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ze=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":r},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),De=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"aria-label":r},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),Fe=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(ze,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(De,{className:t,height:n,width:o,color:i});default:return e.createElement(Ie,{className:t,height:n,width:o,color:i})}},Me=p.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>se[e]};height:${({size:e})=>se[e]};}`,Te=p.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${ue.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",r="16px",l="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",l="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${l};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,Oe=p(Te).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${ue.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?ue.colors.neutral.ink.base:ue.colors.secondary.blue.base};&:hover{background-color:${ue.colors.neutral.grey.lightest};}&:active{background-color:${ue.colors.neutral.grey.lightest};border-color:${ue.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${ue.colors.neutral.grey.base} !important;border-color:${ue.colors.neutral.grey.base} !important;color:${ue.colors.neutral.ink.light} !important;}`,Be=p(Oe).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${ue.colors.secondary.red.base};&:hover{color:${ue.colors.secondary.red.dark};}&:active{border-color:${ue.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.red.light};color:${ue.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.red.light};}`,Re=p(Oe).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${ue.colors.secondary.blue.base};border-color:${ue.colors.secondary.blue.base};color:white;&:hover{background-color:${ue.colors.secondary.blue.dark};border-color:${ue.colors.secondary.blue.dark};}&:active{background-color:${ue.colors.secondary.blue.dark};border-color:${ue.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};}`,je=p(Re).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${ue.colors.secondary.red.base};border-color:${ue.colors.secondary.red.base};color:white;&:hover{background-color:${ue.colors.secondary.red.dark};border-color:${ue.colors.secondary.red.dark};}&:active{background-color:${ue.colors.secondary.red.dark};border-color:${ue.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.red.light};}`,Ae=p(Te).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${ue.colors.neutral.ink.base};&:hover{background-color:${ue.colors.neutral.grey.light};}&:active{background-color:${ue.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,He=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,We=p(He).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${ue.text.link.fontFamily};font-size:${ue.text.link.fontSize};line-height:${ue.text.link.fontSize};font-weight:${ue.text.link.fontWeight};line-height:${ue.text.link.lineHeight};text-decoration:${ue.text.link.textDecoration};color:${ue.colors.secondary.blue.base};&:hover{color:${ue.colors.secondary.blue.dark};}& > * + *{margin-left:${ue.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${ue.colors.secondary.blue.light};border-radius:4px;}`,Pe=p.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,_e=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Ve={default:Oe,primary:Re,destructive:Be,primaryDestructive:je,flat:Ae,link:We,unstyled:He},Ze=n(((t,n)=>{var{className:o,children:i,icon:r,variant:l="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=Le(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return e.createElement(He,Object.assign({ref:n,className:o},c),i);const u=Ve[l],m=void 0!==i,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:a,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(Me,{$loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},r&&r,void 0!==i&&i,s&&e.createElement(_e,null)),d&&e.createElement(Pe,null,e.createElement(Fe,null)))})),Ye=p.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${se.md};padding-right:${se.md};padding-left:${se.md};margin-bottom:${se.md};& > * + *{margin-top:${se.xs};}`,qe=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${se.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Xe=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:se.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),Ke=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Ue=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:l,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(Ye,null,e.createElement(qe,null,e.createElement(he,{id:t,variant:i},n),r&&e.createElement(Ze,{variant:"link",onClick:r.onClick},r.title),l,s&&e.createElement(Ze,{variant:"flat",icon:a?e.createElement(Xe,null):e.createElement(Se,null),onClick:s}),d&&e.createElement(Ze,{variant:"flat",icon:e.createElement(Ke,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(he,{variant:"subheadingSmall"},o)),{grey:Ge}=te.neutral,Je={0:"none",1:ie.sm,2:ie.base,3:ie.md,4:ie.lg},Qe={info:te.secondary.blue.base,success:te.secondary.green.base,error:te.secondary.red.base},et=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${se.base};padding:${se.md};z-index:2;`,tt=p.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${se.md};padding-left:${se.md};margin-top:${se.md};margin-bottom:${se.md};font-family:${ce.body.fontFamily};font-size:${ce.body.fontSize};font-weight:${ce.body.fontWeight};line-height:${ce.body.lineHeight};color:${ce.body.color};& + &{border-top:${se.line} solid ${Ge.base};padding-top:${se.md};}`,nt=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${se.md};margin-right:-${se.md};`,ot=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${tt}:first-child{margin-top:0;}`,it=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${se.line} solid ${Ge.base};box-shadow:${e=>void 0!==e.elevation?Je[e.elevation]:ie.sm};border-radius:${oe.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${se.xs};\n background-color: ${Qe[e]};\n }\n `}`,rt={expanded:{height:"auto"},collapsed:{height:0}},lt=({className:n,style:o,title:i,subtitle:r,HeaderActionSlot:l,action:a,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(Ue,{title:i,subtitle:r,ActionSlot:l,action:a,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(ot,{animate:f?"expanded":"collapsed",variants:rt,transition:{duration:.3,ease:"easeOut"}},e.createElement(tt,null,u)),y=void 0!==p&&e.createElement(et,null,p());return e.createElement(it,{className:n,style:o,elevation:d,accent:c},b,v,y)};lt.Surface=it,lt.Section=tt,lt.FullBleed=nt,lt.Footer=et;const at=p(u(lt.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${ue.colors.neutral.grey.base};border-radius:${ue.radius.base};padding:${ue.sizes.base};`,st=e=>{const t=R();return e?`${e}-${t}`:t};class dt extends o{constructor(e){super(e),this.id=st("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?B(e,this.portalNode):null}}const ct=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,ut=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,mt=e=>e.filter(Boolean).join(" "),pt=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},gt=(e,t)=>{const n=pt(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ht=["app.veeqo.com"];function bt(e,t=ht){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const ft='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',vt=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:o=!1})=>{i((()=>{if(!e||o)return;const t=e.querySelectorAll(ft);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,o]),i((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(ft);if(o.length<1)return void n();o[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",o),()=>null==t?void 0:t.removeEventListener("keydown",o)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():o||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(ft),o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())})(t))}}},yt=n=>{var{id:o,children:l,zIndex:a=ue.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1,useAnchorWidth:h}=n,b=Le(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[f,v]=t(null),{styles:y,attributes:x,update:w}=M(d,f,{placement:s}),E=r((()=>o||st("popover")),[o]);(({anchorElement:e,popoverId:t})=>{i((()=>{if(e){try{e.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",e),e.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t])})({anchorElement:d,popoverId:E});const C=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:$}=vt({popperElement:f,anchorElement:d,onClose:C,disableFocusLock:p});return i((()=>{if(!w||!f)return;const e=new T(w);return e.observe(f),()=>e.disconnect()}),[w,f]),i((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),e.createElement(dt,{rootElementRef:c},!g&&e.createElement(ut,{onClick:C,zIndex:a,"data-testid":"popover-backdrop"}),e.createElement(ct,Object.assign({open:!0,id:E,zIndex:a,ref:v,style:Object.assign(Object.assign(Object.assign({},y.popper),m),h?{minWidth:null==d?void 0:d.clientWidth}:{}),onKeyDown:$},x.popper,b),l))},xt=t=>{var{id:n,children:o,className:r,style:l,reversed:a,anchorElement:s,useAnchorWidth:d,onShouldClose:c}=t,u=Le(t,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return i((()=>()=>null==s?void 0:s.focus()),[s]),e.createElement(yt,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:c,useAnchorWidth:d,placement:"bottom-start"},u),e.createElement(m,null,e.createElement(at,{className:r,style:l,useAnchorWidth:d,reversed:a,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},wt=t=>{var{id:n,shouldShow:o,setShouldShow:i,ctaIconSlot:r,ctaProps:a}=t,s=Le(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=l(null);return e.createElement(e.Fragment,null,e.createElement(Ze,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":n,onClick:()=>null==i?void 0:i(!o),icon:r,dropdown:!0},a)),o&&e.createElement(xt,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==i?void 0:i(!1)},s)))},Et=(e,t)=>{const n=l(null),o=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=a((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return i((()=>{if(e)return document.addEventListener("click",r),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",o)}}),[r,o,e]),n},Ct=(e,n)=>{const[o,r]=t(e);return i((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),o},$t=({anchorElement:e}={})=>{const[n,o]=t(!1),i=a((()=>o(!n)),[n,o]),r=a((()=>{o(!1),setTimeout((()=>{null==e||e.focus()}),0)}),[o,e]);return{shouldShowDropdown:n,toggleShouldShowDropdown:i,setShouldShowDropdown:o,closeDropdown:r}},kt=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function St({children:n}){const[o,r]=t(!0);return i((()=>{function e(){r(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function i(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function l(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",l,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",l,!0),o()}}),[r]),e.createElement(kt.Provider,{value:{hadKeyboardEvent:o,isInitialized:!0}},n)}function Nt(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(kt),r=e.useCallback((()=>{t||n(!0)}),[t]),l=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:r,onBlur:l})),[a,l,r])}const Lt=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},It=e=>{const[n,o]=t(!1),[r,l]=t(!1);i((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;o(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;l(o-n-i<=0)}}},zt=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,l]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&l(t)}]},Dt=({id:e,prefix:t})=>r((()=>e||st(t)),[e,t]),Ft=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,Mt=p(b).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:grid;grid-template-areas:'label''description';cursor:pointer;margin:${ue.sizes.xs};padding:${ue.sizes.sm};border-radius:${ue.radius.base};outline:0;&:is(a){${Ft(ue.text.link)}}&:is(div){${Ft(ue.text.body)}}white-space:nowrap;&[data-focused]{color:${ue.colors.secondary.blue.base};box-shadow:0 0 0 4px ${ue.colors.secondary.blue.light};}&[data-hovered]{background-color:${ue.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${ue.colors.neutral.grey.lightest};color:${ue.colors.neutral.ink.light};}[slot='label']{grid-area:label;}[slot='description']{grid-area:description;color:${ue.colors.neutral.ink.light};font-size:12px;}`,Tt=p(f).withConfig({displayName:"vui--Section",componentId:"vui--1lpesff"})`&:not(:first-child){margin-top:0.5rem;border-top:1px solid ${ue.colors.neutral.grey.base};padding-top:0.5rem;}`,Ot=({id:n,menuLabel:o,ctaProps:i,actions:r,children:l})=>{var a;const[s,d]=t(!1),c=Dt({id:n,prefix:"action-menu"});return e.createElement(wt,{id:c,style:{padding:"0"},shouldShow:s,setShouldShow:d,ctaProps:Object.assign({size:"sm"},i),useAnchorWidth:!0,onKeyDown:e=>{"Escape"!==e.code&&"Tab"!==e.code||d(!1),e.preventDefault()}},e.createElement(v,{onClose:()=>d(!1),"aria-label":o||(null===(a=i.children)||void 0===a?void 0:a.toString())},null==r?void 0:r.map((t=>{var n;return e.createElement(Mt,Object.assign({},t,{key:t.id||(null===(n=t.children)||void 0===n?void 0:n.toString())}))})),l))};var Bt;Ot.Item=Mt,Ot.Section=Tt,Ot.Text=y,function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Bt||(Bt={}));const Rt=p.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let r,l,a,s,d="",c="";return"vertical"===t?(r=n&&Bt[n],l=o&&Bt[o],d=ue.sizes[i],a="column"):(r=o&&Bt[o],l=n&&Bt[n],c=ue.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${l};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Rt.displayName="Stack";const jt=p(Rt).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${ue.radius.base};background-color:${({colours:{background:e}})=>e};`,At=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})),Ht=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Wt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),e.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),e.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Pt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),_t={base:ue.sizes.base,sm:ue.sizes[3],xs:ue.sizes.sm},Vt={base:ue.sizes.md,sm:ue.sizes[5],xs:ue.sizes[5]},Zt={default:Wt,error:At,success:Pt,info:Ht,warning:t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:t=>e.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),e.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),e.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},Yt={default:{primary:ue.colors.neutral.ink.base,background:ue.colors.neutral.grey.lightest},error:{primary:ue.colors.secondary.red.base,background:ue.colors.secondary.red.lightest},success:{primary:ue.colors.secondary.green.base,background:ue.colors.secondary.green.lightest},info:{primary:ue.colors.secondary.blue.base,background:ue.colors.secondary.blue.lightest},warning:{primary:ue.colors.secondary.orange.base,background:ue.colors.secondary.orange.lightest},recommend:{primary:ue.colors.secondary.purple.dark,background:ue.colors.secondary.purple.lightest}},qt=t=>{var{size:n="base",variant:o="default",colours:i,rightActions:r,title:l,titleSlot:a,message:s,children:d,iconSlot:c,onClickClose:u}=t,m=Le(t,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const p=null!=i?i:Yt[o],g=c||Zt[o],h="xs"===n;return e.createElement(jt,Object.assign({colours:p,direction:"horizontal",alignX:"between",spacing:"0"},m),e.createElement(Rt,{direction:"horizontal",alignY:h?"center":"start",style:{margin:_t[n],gap:_t[n]},spacing:0},e.createElement(g,{"aria-hidden":!0,style:{minWidth:Vt[n],minHeight:Vt[n],width:Vt[n],height:Vt[n]},color:p.primary}),e.createElement(Rt,{direction:"vertical",spacing:h?0:"xs"},a||e.createElement(he,{variant:h?"bodySmallBold":"bodyBold",style:"base"===n?{lineHeight:"24px"}:{}},l),d||e.createElement(he,{variant:h?"bodySmall":"body"},s))),e.createElement(Rt,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:h?void 0:ue.sizes[3],gap:h?void 0:_t[n],alignItems:"center"}},r&&e.createElement(Rt,{alignY:"center",spacing:0,style:{gap:_t[n]}},r.map((t=>{var{label:n}=t,o=Le(t,["label"]);return e.createElement(Ze,Object.assign({key:n,type:"button",size:"sm"},o),n)}))),u&&e.createElement(Rt,{alignY:h?"center":"start",style:{height:"100%",padding:h?ue.sizes.xs:void 0}},e.createElement(Ze,{variant:"flat",icon:e.createElement(Ke,null),onClick:u,"aria-label":"Close",size:"sm"}))))},Xt=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${ue.text.link.fontFamily};font-style:${ue.text.link.fontStyle};font-weight:${ue.text.link.fontWeight};font-size:${ue.text.link.fontSize};line-height:${ue.text.link.lineHeight};color:${ue.colors.secondary.blue.base};text-decoration:${ue.text.link.textDecoration};&:hover{color:${ue.colors.secondary.blue.dark};}`,Kt=t=>{var{children:n,href:o,rel:i,allowedHostnames:r=ht}=t,l=Le(t,["children","href","rel","allowedHostnames"]);const a=bt(o,r),s=i||(a?"noopener noreferrer":void 0);return e.createElement(Xt,Object.assign({href:o,rel:s},l),n)},Ut=p(J).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Gt=n(((t,n)=>{const{children:o,className:i,role:r}=t;return e.createElement(Ut,{className:i,ref:n,role:r},o)})),Jt=p(J).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Qt=p(J).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,en=p(Gt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${ue.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,tn=({cta:t,shouldShowDropdown:n,children:o,className:r="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=l(null);return((e,t)=>{i((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(g,(e=>{n&&s(e)})),e.createElement(Jt,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!a&&t,e.createElement(Qt,{className:`${r}-wrap ${r}`},e.createElement(j,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(en,{role:"dialog",reversed:a,className:`${r}-basic-dropdown ${r}`},o))),a&&t)},nn=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${ue.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${ue.text.bodySmallBold.fontFamily};font-weight:${ue.text.bodySmallBold.fontWeight};font-size:${ue.text.bodySmallBold.fontSize};line-height:${ue.text.bodySmallBold.lineHeight};}`,on=({width:t="40px",name:n="Veeqo",bgColor:o=ue.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(nn,{width:t,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},rn=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,ln=p(rn).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,an=p(he).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${ue.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,sn=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,dn=p.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,cn=p(rn).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var un;!function(e){e.BOTTOM="bottom",e.TOP="top"}(un||(un={}));const mn={duration:400,side:un.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},pn=({content:n,text:o,hoverableElement:i,config:r,reversed:l,withTriangle:a,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},mn),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:f,attributes:v}=M(i,d,{placement:`${p}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},f.popper),{zIndex:ue.layers.tooltip});return e.createElement(dn,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},v.popper,{role:"tooltip"}),e.createElement(cn,{className:s.wrap,tipMinWidth:h,tipMaxWidth:b},null!=n?n:e.createElement(an,null,o)),a&&e.createElement(sn,{id:"veeqo-components-triangle",className:s.triangle}))},gn=({children:n,text:o,content:i,config:r,reversed:l=!1,className:a,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,b={container:a&&`${a} ${a}-container`,tip:a&&`${a}-tip`,wrap:a&&`${a}-wrap`,triangle:a&&`${a}-triangle`,hoverable:a&&`${a}-hoverable`},f=!(!i&&!h);if(!f)return n;const v=u&&f&&e.createElement(pn,{classNames:b,hoverableElement:p,config:r,reversed:l,withTriangle:s,text:o,content:i});return e.createElement(rn,{className:b.container},c?O.createPortal(v,document.body):v,e.createElement(ln,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},hn=p(J).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${ce.bodySmall.fontFamily};font-weight:${ce.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${se.base};height:${se.base};}`,bn={default:p(hn).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${te.secondary.blue.base};color:${te.secondary.blue.base};`,primary:p(hn).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${te.secondary.blue.base};background-color:${te.secondary.blue.lightest};color:${te.secondary.blue.base};`,warning:p(hn).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${te.secondary.yellow.base};background-color:${te.secondary.yellow.lightest};color:${te.secondary.orange.dark};`},fn=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:l,children:a})=>{const s=bn[t];return e.createElement(gn,{text:i},e.createElement(s,{className:mt([r,l]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},vn=p(J).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,yn=p(J).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,xn=p(J).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,wn=p(xn).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${se.md};height:${se.md};color:${({accentColor:e})=>e};}`,En=p(J).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Cn=p(xn).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,$n=p(he).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,kn={help:te.secondary.blue.base,info:te.neutral.ink.base,error:te.secondary.red.base,success:te.secondary.green.base},Sn=t=>{var{type:n="info",text:o,icon:i,onClose:r,className:l,header:a,children:s,backgroundColor:d="white"}=t,c=Le(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=kn[n];return e.createElement(vn,Object.assign({accentColor:u,className:l,backgroundColor:d},c),e.createElement(yn,null,i&&e.createElement(wn,{style:{marginRight:se.md},accentColor:u},i),s?e.createElement(En,null,s):e.createElement(e.Fragment,null,e.createElement(Cn,null,a||e.createElement($n,{variant:"headingSmall"},o)),e.createElement(xn,null,r&&e.createElement(Ze,{variant:"flat","aria-label":"Close",icon:e.createElement(Ke,null),onClick:r})))))},Nn=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${ce.body.fontFamily};font-weight:${ce.body.fontWeight};font-size:${ce.body.fontSize};line-height:${ce.body.lineHeight};`,Ln=p.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,In=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),zn=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(Ln,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(Ln,{className:"breadcrumb"},n,t),Dn=()=>e.createElement(In,{className:"separator",width:se.base,height:se.base}),Fn=({children:t,href:n})=>e.createElement("a",{href:n},t),Mn=({children:t})=>e.createElement("span",null,t),Tn=({items:t,Separator:n=e.createElement(Dn,null),LinkComponent:o=Fn})=>e.createElement(Nn,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(zn,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Mn},t.length!==r+1&&n)))),On=t=>e.createElement(x,Object.assign({weekdayStyle:"short"},t),e.createElement(w,null,(t=>e.createElement(E,null,t.slice(0,2)))),e.createElement(C,null,(t=>e.createElement($,{date:t})))),Bn=g`.react-aria-Button{color:${ue.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${ue.sizes.base};height:${ue.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ue.colors.secondary.blue.light};}&:active,&:hover{background-color:${ue.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${ue.colors.neutral.grey.base};cursor:default;}}`,Rn=g`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${ue.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${ue.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${ue.colors.secondary.blue.light};}&[data-selected]{background:${ue.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${ue.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${ue.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${ue.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${ue.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${ue.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,jn=g`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Ft(ue.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${ue.sizes.sm};}`,An=p(k).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${ue.colors.neutral.ink.base};font-size:14px;font-family:${ue.fontFamily};${jn} ${Bn} ${Rn} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Hn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Wn=t=>{var n,{disabledRanges:o=[],disallowWeekends:r=!1,isMultiMonth:l=!1}=t,s=Le(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=e.useState(null===(n=s.value)||void 0===n?void 0:n.start),{locale:u}=S(),m=a((e=>!!r&&H(e,u)||o.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[o,r,u]);return i((()=>{var e;c(null===(e=s.value)||void 0===e?void 0:e.start)}),[s.value]),e.createElement(An,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:l?{months:2}:void 0},s),e.createElement("header",null,e.createElement(N,{slot:"previous"},e.createElement(Hn,null)),e.createElement(L,null),e.createElement(N,{slot:"next"},e.createElement(In,null))),l?e.createElement("div",{style:{display:"flex",gap:ue.sizes.sm,overflow:"auto"}},e.createElement(On,null),e.createElement(On,{offset:{months:1}})):e.createElement(On,null))},Pn={top:"flex-start",center:"center"},_n=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${ue.sizes.base};}`,Vn=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Pn[e.align]};`,Zn=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Yn=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${ue.sizes.sm};}`,qn=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${ue.fontFamily};font-size:${ue.sizes[3]};line-height:${ue.sizes[4]};color:${ue.colors.neutral.ink.light};`,Xn=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${ue.text.error.fontFamily};font-size:${ue.text.error.fontSize};font-weight:${ue.text.error.fontWeight};line-height:${ue.text.error.lineHeight};color:${ue.text.error.color};`,Kn=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Un=p(Kn).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${ue.colors.neutral.grey.dark};border-radius:${ue.radius.md};padding:${ue.sizes.base} 0.75rem;&:hover{border-color:${ue.colors.secondary.blue.base};}`,Gn=p(gn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,Jn=({id:t,className:n,label:o,hint:i,tooltip:r,error:l,bordered:a,Badge:s,Accessory:d,Footer:c,children:u,disabled:m=!1,labelVariant:p="body",inputPosition:g="left"})=>{const h={hint:(b=n)?"choice__hint":void 0,label:b?"choice__label":void 0,tooltip:b?"choice__tooltip":void 0,error:b?"choice__error":void 0};var b;const f=e.createElement(_n,null,"left"===g&&e.createElement(Vn,{align:d?"center":"top"},u),d&&e.createElement(Zn,null,d),o||i||l||s||c?e.createElement(Yn,null,e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},s,o&&e.createElement(he,{variant:p,className:h.label},o),r&&e.createElement(Gn,{text:r,className:h.tooltip},e.createElement(Ht,{name:"help",width:ue.sizes.base,color:ue.colors.neutral.ink.lightest}))),i&&e.createElement(qn,{className:h.hint},i),l&&e.createElement(Xn,{className:h.error},l),c):null,"right"===g&&e.createElement(Vn,{align:d?"center":"top"},u));return a?e.createElement(Un,{disabled:m,htmlFor:t,className:n},f):e.createElement(Kn,{disabled:m,htmlFor:t,className:n},f)},{colors:Qn,sizes:eo,radius:to}=ue,no=p.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Qn.neutral.ink.lightest};border-radius:${to.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Qn.secondary.blue.base};border-color:${Qn.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${eo[4]};background-position:center;}&:hover{border-color:${Qn.secondary.blue.base};}&:active{border-color:${Qn.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Qn.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Qn.secondary.blue.base};border-color:${Qn.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${eo[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Qn.neutral.grey.base};border-color:${Qn.neutral.grey.base};color:${Qn.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,oo=t=>{var{checked:n,indeterminate:o,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=Le(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=r((()=>st("checkbox")),[]),b=l(null),f=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return i((()=>{b.current&&(b.current.indeterminate=!0===o)}),[o]),e.createElement(Jn,Object.assign({id:h,disabled:c,className:m},g),e.createElement(no,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,onChange:f}))},io=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,ro=n(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d,children:c}=t,u=Le(t,["checked","value","name","disabled","onChange","id","children"]);const m=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),p=null!=d?d:st("radio");return e.createElement(Jn,Object.assign({id:p,disabled:l},u),e.createElement(io,{id:p,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:m,ref:n}),c)})),lo=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,ao=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${ue.text.inputLabel.fontFamily};font-size:${ue.text.inputLabel.fontSize};font-style:${ue.text.inputLabel.fontStyle};font-weight:${ue.text.inputLabel.fontWeight};line-height:${ue.text.inputLabel.lineHeight};text-decoration:${ue.text.inputLabel.textDecoration};color:${ue.text.inputLabel.color};`;class so extends s{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let i=[];i=t?[...n,e]:n.filter((t=>t!==e)),o(i)}}render(){const{allowMultiple:t,options:n,selected:o,title:i,disabled:r,bordered:l}=this.props,a=t?oo:ro;return e.createElement(lo,{disabled:r},i&&e.createElement(ao,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:l,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const co=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),uo={width:se.base,height:se.base},mo=p(Ze).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${se.base};width:${se.base};top:unset;}`,po=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),l=a((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(gn,{text:i?"Copied!":"Copy to clipboard"},e.createElement(mo,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(Pt,Object.assign({color:te.secondary.green.base},uo)):e.createElement(co,Object.assign({color:te.secondary.blue.base},uo)),onClick:l}))},go=p.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${ue.text.inputLabel.fontFamily};font-size:${ue.text.inputLabel.fontSize};font-weight:${ue.text.inputLabel.fontWeight};line-height:${ue.text.inputLabel.lineHeight};color:${ue.text.inputLabel.color};`,ho=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${ue.fontFamily};font-size:${ue.sizes[3]};line-height:${ue.sizes[4]};color:${ue.colors.neutral.ink.light};`,bo=p.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${ue.text.error.fontFamily};font-size:${ue.text.error.fontSize};font-weight:${ue.text.error.fontWeight};line-height:${ue.text.error.lineHeight};color:${ue.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ue.sizes[2]} * -1);width:2px;background-color:${ue.colors.secondary.red.base};}`,fo=p(Rt).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,vo=p(gn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,yo=t=>n=>{var{label:o,hint:i,error:r,tooltip:l}=n,a=Le(n,["label","hint","error","tooltip"]);const s=Dt({id:null==a?void 0:a.id,prefix:t.name});return o?e.createElement(fo,{spacing:"sm",alignX:"stretch"},e.createElement("div",{style:{marginBottom:ue.sizes.xs}},e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(go,{id:`${s}-label`,htmlFor:s},o),l&&e.createElement(vo,{text:l},e.createElement(Ht,{width:ue.sizes.base,height:ue.sizes.base,color:ue.colors.neutral.ink.light}))),i&&e.createElement(ho,null,i)),e.createElement(t,Object.assign({id:s,hasError:!!r},a)),r&&e.createElement(bo,null,r)):e.createElement(t,Object.assign({hasError:!!r},a))},xo=t=>n=>(i((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),wo=p(I).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${Ft(ue.text.body)} display:flex;align-items:center;border:1px solid ${ue.colors.neutral.ink.lightest};border-radius:${ue.radius.base};gap:${ue.sizes.xs};padding:${ue.sizes.sm};margin-top:${ue.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${ue.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${ue.colors.secondary.red.light};border:1px solid ${ue.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${ue.colors.secondary.red.light};\n border: 1px solid ${ue.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${ue.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${ue.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${ue.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${ue.radius.base};&[data-invalid]{color:${ue.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${ue.colors.secondary.blue.dark};&[data-invalid]{background-color:${ue.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${ue.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,Eo=yo((({id:t,className:n,style:o,shouldForceLeadingZeros:i=!0,hasError:r,minValue:l,maxvalue:a,startValue:s,endValue:d,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>e.createElement(wo,{style:o,className:n,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,$hasError:r,isDisabled:c},e.createElement(z,{shouldForceLeadingZeros:i,onChange:h,value:s,minValue:l,maxValue:a,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},e.createElement(D,{slot:"start"},(t=>e.createElement(F,{segment:t})))),e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement(z,{shouldForceLeadingZeros:i,onChange:b,value:d,minValue:l,maxValue:a,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},e.createElement(D,{slot:"end"},(t=>e.createElement(F,{segment:t}))))))),Co=p.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,$o=yo(n(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,u=Le(t,["className","options","value","onChange","size","disabled","hasError"]);const m=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(Co,Object.assign({className:o,sizeVariant:s,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled,hidden:t.hidden},t.label))))})));$o.displayName="Select";const ko=p.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?ue.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,So=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${ue.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${ko}{box-shadow:0 0 0 4px ${ue.colors.brand.blue.light};}&:checked + ${ko}{background-color:#0079d1;}&:disabled + ${ko}{background-color:${ue.colors.neutral.grey.base};}&:checked:disabled + ${ko}{background-color:${ue.colors.secondary.blue.light};}`,No=p.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;position:relative;height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};z-index:1;input{position:absolute;opacity:0;}${ko}:after{height:${({small:e})=>e?"22px":"28px"};width:${({small:e})=>e?"22px":"28px"};left:${({small:e})=>e?"3px":"4px"};bottom:${({small:e})=>e?"3px":"4px"};}${So}:checked + ${ko}{&:after,svg{-webkit-transform:translateX(${({small:e})=>e?"28px":"36px"});-ms-transform:translateX(${({small:e})=>e?"28px":"36px"});transform:translateX(${({small:e})=>e?"28px":"36px"});}}`,Lo=p(J).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,Io=n(((t,n)=>{var{id:o="testid",className:i,name:r,switched:l,small:a,onClick:s=(()=>{}),disabled:d,ariaLabel:c,inputPosition:u="right"}=t,m=Le(t,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return e.createElement(Jn,Object.assign({id:o,inputPosition:u},m),e.createElement(Lo,{className:i,disabled:d},e.createElement(No,{small:a,disabled:d,className:i},e.createElement(So,{id:o,role:"switch",type:"checkbox",name:r,"aria-label":c,checked:!!l,onChange:e=>d?void 0:s(e),disabled:d,ref:n}),e.createElement(ko,{switched:l,disabled:d}))))})),zo=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],Do=({options:n=zo,selectedPreviousPeriod:o,setSelectedPreviousPeriod:r})=>{const[l,a]=t(!!o);return i((()=>{o||null==r||r(n[0])}),[o,r,n]),e.createElement(e.Fragment,null,e.createElement(he,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:ue.sizes.sm,whiteSpace:"nowrap"}},e.createElement(Io,{small:!0,switched:l,onClick:()=>{l&&(null==r||r(null)),a(!l)}}),"Compare previous period"),l&&e.createElement($o,{"aria-label":"Period to compare against",options:n,value:(null==o?void 0:o.value)||n[0].value,onChange:e=>{const t=n.find((({value:t})=>t===e));t&&(null==r||r(t))}}))};var Fo;!function(e){e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS",e.LAST_90_DAYS="LAST_90_DAYS",e.LAST_MONTH="LAST_MONTH",e.LAST_12_MONTHS="LAST_12_MONTHS",e.WEEK_TO_DATE="WEEK_TO_DATE",e.MONTH_TO_DATE="MONTH_TO_DATE",e.YEAR_TO_DATE="YEAR_TO_DATE"}(Fo||(Fo={}));const Mo=e=>{const t=W(P());let n;switch(e){case Fo.TODAY:n={start:t,end:t};break;case Fo.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case Fo.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case Fo.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case Fo.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case Fo.LAST_MONTH:{const e=V(t.subtract({months:1}));n={start:e,end:Y(e)};break}case Fo.LAST_12_MONTHS:{const e=V(t.subtract({months:1}));n={start:V(e).subtract({months:12}),end:Y(e)};break}case Fo.WEEK_TO_DATE:n={start:Z(t,navigator.language),end:t};break;case Fo.MONTH_TO_DATE:n={start:V(t),end:t};break;case Fo.YEAR_TO_DATE:n={start:_(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new q(t.year,t.month,t.day),end:new q(n.year,n.month,n.day)}})(n)},To=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:Fo.TODAY},{label:"Yesterday",value:Fo.YESTERDAY},{label:"Last 7 Days",value:Fo.LAST_7_DAYS},{label:"Last 30 Days",value:Fo.LAST_30_DAYS},{label:"Last 90 Days",value:Fo.LAST_90_DAYS},{label:"Last Month",value:Fo.LAST_MONTH},{label:"Last 12 Months",value:Fo.LAST_12_MONTHS},{label:"Week to Date",value:Fo.WEEK_TO_DATE},{label:"Month to Date",value:Fo.MONTH_TO_DATE},{label:"Year to Date",value:Fo.YEAR_TO_DATE}],Oo=Fo.LAST_30_DAYS,Bo=Mo(Oo),Ro=To.find((({value:e})=>e===Oo)),jo=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:o}=t,[i,r]=[n,o].sort();return e.some((([e,t])=>i>=e&&i<=t||r>=e&&r<=t||i<=e&&r>=t))},Ao=p.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${ue.sizes.base};border-top:1px solid ${ue.colors.neutral.grey.base};`,Ho=t=>{var{className:n,style:o,isDisabled:l,isMultiMonth:s=!1,showDatePresets:d=!0,onReset:c,disabledRanges:u,selectedPreset:m,setSelectedPreset:p,selectedRange:g,setSelectedRange:h,"aria-describedby":b,"aria-label":f}=t,v=Le(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const y=a((e=>t=>{const n={start:"start"===e?t:null==g?void 0:g.start,end:"end"===e?t:null==g?void 0:g.end};h(n)}),[null==g?void 0:g.end,null==g?void 0:g.start,h]),x=r((()=>jo({disabledRanges:u,selectedRange:g})),[u,g]),w=r((()=>g?(e=>To.reduce(((t,n)=>{if(n.hidden||t)return t;const o=Mo(n.value);if(!o)return t;const{start:i,end:r}=o;return 0===e.start.compare(i)&&0===e.end.compare(r)?n:t}),void 0))(g):null),[g]);return i((()=>{p(w||To[0])}),[w,p]),e.createElement(Rt,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:ue.sizes.base},o),className:n,"aria-describedby":b,"aria-label":f},d&&e.createElement($o,{disabled:l,label:"Date Range",options:To,value:null==m?void 0:m.value,onChange:e=>{h(Mo(Fo[e])),p(To.find((({value:t})=>t===e))||To[0])}}),e.createElement(Eo,{isDisabled:l,label:"Start date - End date",onChangeStartDate:y("start"),onChangeEndDate:y("end"),startValue:g&&g.start,endValue:g&&g.end,error:x?"Range contains invalid dates":void 0}),v.showPreviousPeriod&&e.createElement(Do,Object.assign({},v)),e.createElement(Ao,null),e.createElement(Rt,{alignX:"center"},e.createElement(Wn,{"aria-label":"Selected Date Range",isDisabled:l,isMultiMonth:s,value:g,onChange:h,disabledRanges:u})),!!c&&e.createElement(e.Fragment,null,e.createElement(Ao,null),e.createElement(lt.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},e.createElement(Ze,{variant:"default",size:"sm",onClick:c,disabled:l},"Reset"))))};function Wo(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Po(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Po(e.min,"max-content")}, ${Po(e.max)})`;default:return t||"1fr"}}function _o({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){const l=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),a=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),s="start"!==o&&"none"!==o,d=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${ue.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${ue.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${ue.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${ue.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>Po(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?l:""}\n ${t.length>0?a:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var Vo;!function(e){e.ascending="ascending",e.descending="descending"}(Vo||(Vo={}));const Zo=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),Yo=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),qo=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),Xo=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===Vo.ascending?e.createElement(Yo,{color:ue.colors.neutral.ink.dark,size:o}):e.createElement(qo,{color:ue.colors.neutral.ink.dark,size:o}):e.createElement(Zo,{size:o});function Ko(e,n){const[o,r]=t([]),l=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));r(n)};return i((()=>{l()}),[e.current]),i((()=>{if(!n.current)return;const e=X(l,50),t=new T(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}class Uo extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const Go=({tableRef:e,columns:n,columnIds:o})=>{const r=e=>e.reduce(((e,t)=>(e[t.id]=t.width,e)),{}),[l,a]=t(r(n));return i((()=>{const e=r(n),t=Object.assign({},l);Object.keys(e).forEach((n=>{void 0===typeof l[n]&&(t[n]=e[n])})),a(t)}),[JSON.stringify(o)]),{setColumnWidth:({columnId:t,width:o})=>{const i=Object.assign({},l);n.forEach(((r,a)=>{const s=a===n.length-1,d=r.id===t?o:((t,n)=>{var o,i,r;return n?l[t.id]||t.width:l[t.id]||t.width||(null===(r=null===(i=null===(o=e.current)||void 0===o?void 0:o.querySelector(`th[data-columnid="${t.id}"]`))||void 0===i?void 0:i.getBoundingClientRect())||void 0===r?void 0:r.width)||void 0})(r,s);i[r.id]=d})),a(i),((e,t)=>{const n=new Uo(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:e,columnWidths:i})},columnWidths:l}};function Jo(e,t){const{columnWidths:n,setColumnWidth:o}=Go({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e))}),i=e.map((e=>Object.assign(Object.assign({},e),{width:n[e.id]||e.width}))).filter((e=>!0!==e.hidden)),r=i.filter((e=>"left"===e.pinned)),l=i.filter((e=>"right"===e.pinned)),a=i.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...r,...a,...l],pinnedLeft:r,pinnedRight:l,setColumnWidth:o}}function Qo(e){i((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},l=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",l),()=>null==n?void 0:n.removeEventListener("mousedown",l)}),[e.current])}function ei(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,o)=>{if(o)if(t){if(e.includes(o))return;const t=[...e,o];n(t)}else{const t=e.findIndex((e=>e===o));if(t<0)return;const i=[...e];i.splice(t,1),n(i)}}}}}function ti(e){const[n,o]=t("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:i}=e.current;o(i<t?"none":0!==n?n+t>=i?"end":"middle":"start")};return i((()=>{if(e.current)return e.current.addEventListener("scroll",r),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",r)}}),[e.current]),i((()=>{if(!e.current)return;const t=X(r,50),n=new T(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const ni="56px",oi=p.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ni};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>Wo(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>ue.sizes[e]};padding-right:${({spacing:e=3})=>ue.sizes[e]};border-bottom:1px solid ${ue.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function ii(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,l=Le(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(oi,Object.assign({},l)):e.createElement(oi,Object.assign({},l),e.createElement(oo,{checked:n,indeterminate:o,onChange:i}))}const ri=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Wo(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>ue.sizes[e]};padding-right:${({spacing:e=3})=>ue.sizes[e]};color:${ue.text.bodySmall.color};font-family:${ue.text.bodySmall.fontFamily};font-size:${ue.text.bodySmall.fontSize};font-style:${ue.text.bodySmall.fontStyle};font-weight:${ue.text.bodySmall.fontWeight};line-height:${ue.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${ue.colors.secondary.blue.base};background-color:${ue.colors.neutral.grey.lightest};}`;function li(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:l}=t,a=Le(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(ri,Object.assign({},a),e.createElement(ro,{value:o,checked:n,disabled:l,onChange:i})):e.createElement(ri,Object.assign({},a),e.createElement(oo,{value:o,checked:n,disabled:l,onChange:i}))}const ai=[[],()=>{}];function si({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,l]=n||ai,a=()=>{r.length!==o.length?l(o):l([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(ii,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(li,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)l([n]);else if(e){if(r.includes(n))return;const e=[...r,n];l(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),l(t)}}}}const di=p.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${ue.colors.neutral.ink.lightest};`,ci=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${ue.text.headingTable.color};font-family:${ue.text.headingTable.fontFamily};font-size:${ue.text.headingTable.fontSize};font-style:${ue.text.headingTable.fontStyle};font-weight:${ue.text.headingTable.fontWeight};line-height:${ue.text.headingTable.lineHeight};`,ui=p(ci).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${di}{background-color:${ue.colors.neutral.grey.light};color:${ue.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${ue.colors.secondary.blue.light};}`,mi=p.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${ue.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,pi=({columnId:t,setColumnWidth:n})=>{const o=d(),i=e=>{const{minTranslate:t,dragDivider:n,dragInitX:o}=window.tableHeaders,i=Math.max(e.clientX-(o||0),t||0);n.parentElement.parentElement.classList.add("hideHeaderDetails"),n.style.transform=`translateX(${i}px)`},r=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:o}=n,i=null==o?void 0:o.getBoundingClientRect().width,r=o.querySelector(".headerContent").getBoundingClientRect().width,l=(e.clientX||0)-(t||0);return Math.max((i||0)+l,r+24)},l=e=>{window.removeEventListener("mouseup",l),window.removeEventListener("dragend",l),window.removeEventListener("mousemove",i),window.removeEventListener("drag",i),null==n||n({columnId:t,width:r({event:e})}),window.tableHeaders&&(window.tableHeaders.dragDivider.style.transform="translateX(0)",window.tableHeaders.dragDivider.parentElement.style.justifyContent="",window.tableHeaders.dragInitX=void 0,window.tableHeaders.minTranslate=void 0,window.tableHeaders.dragDivider.parentElement.parentElement.classList.remove("hideHeaderDetails"))},a=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:o.current},window.tableHeaders.minTranslate=(()=>{const{parentElement:e}=window.tableHeaders.dragDivider;return e.querySelector(".headerContent").getBoundingClientRect().width-e.getBoundingClientRect().width+24})(),window.addEventListener("mouseup",l),window.addEventListener("dragend",l),window.addEventListener("mousemove",i),window.addEventListener("drag",i))};return e.createElement(mi,{ref:o,className:"th-divider",onMouseDown:a,onDragStart:a})};function gi({column:t,sortState:n,onChangeSort:o,resizeableColumns:i,setColumnWidth:r,columnCount:l=1,columnI:a=0}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const s={key:t.id.toString(),id:`datatable-header-${t.id}`,"data-columnid":String(t.id),role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,s);const d=t.sortable?ui:ci,c=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===Vo.ascending;let i=Vo.ascending;return n&&o&&(i=Vo.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(oi,Object.assign({},s,{zIndex:3}),e.createElement(gn,{text:t.tooltip},e.createElement(d,Object.assign({},c,{className:"headerContent"}),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(di,null,e.createElement(Xo,{sortState:n,columnId:t.id,size:5})))),i&&a<l-1&&e.createElement(pi,{columnId:t.id,setColumnWidth:r}))}const hi=ue.colors.neutral.grey.base,bi=ue.colors.neutral.grey.dark,fi=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${ue.radius.base};background:${hi};background-image:linear-gradient(\n to right,\n ${hi} 0%,\n ${bi} 20%,\n ${hi} 40%,\n ${hi} 100%\n );background-repeat:no-repeat;background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear;@keyframes placeholderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}`;const vi=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${ni};background-color:white;`,yi=p.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${ue.colors.neutral.grey.base};& > *{flex:1;}`;function xi({selectionColumn:n,intersectionTargetRef:o,containerRef:r,children:l}){var a;const[s,d]=t(!1);i((()=>{if(!o.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(o.current),()=>e.disconnect()}),[o.current]);const c=null===(a=r.current)||void 0===a?void 0:a.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(vi,{style:m},gi({column:n}),e.createElement(yi,null,l))}const wi=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Ei=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Ci=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const $i=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${ue.sizes.lg};padding-bottom:${ue.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${ue.sizes.md};`,ki=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${ue.sizes.md};background-color:${ue.colors.neutral.grey.light};border-radius:${ue.radius.full};`,Si=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ni=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${ue.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Li=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Ii=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${ue.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,zi=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Di={full:`border-width: 1px; border-radius: ${ue.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Fi=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${ue.colors.neutral.grey.dark};${({borderMode:e="full"})=>Di[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function Mi({children:n,intersectionTargetRef:o,containerRef:r,cellWidths:a,tableCss:s}){const d=l(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),g=()=>{var e;const t=null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};p(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(i((()=>{if(!o.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(o.current),()=>e.disconnect()}),[o.current]),i((()=>{c&&r.current&&g()}),[r.current,c]),i((()=>{if(!c)return;if(!r.current)return;const e=X(g,33),t=new T(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),i((()=>{h()}),[c]),i((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",h)}}),[r.current]),!c)return null;const b=Object.assign(Object.assign({},m),{height:ni,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${ue.colors.neutral.grey.base}`}),f=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:b,ref:d},e.createElement(Ii,{css:f},e.createElement("thead",null,n)))}const Ti=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),Oi={icon:e.createElement(Wt,{width:48,height:48}),heading:"No results"},Bi=()=>{},Ri=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=Oi,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f,resizeableColumns:v})=>{const y=l(null),x=l(null),w=l(null);Qo(y);const E=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:k,setSelected:S}=si({selectionMode:m,selectionState:p,enabledRowIds:E}),N={setSelected:S||Bi,setExpanded:g||Bi},L=[k,...o],I=C?L:o,z=Ko(x,y),{visible:D,pinnedLeft:F,pinnedRight:M,setColumnWidth:T}=Jo(I,x),O=z.length===D.length?D.map(((e,t)=>Number.isNaN(e.width||"")?z[t]:e.width)):z,{scrollPosition:B}=ti(y),R=_o({pinnedLeft:F,pinnedRight:M,cellWidths:O,scrollPosition:B,visible:D,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Fi,{borderMode:n},e.createElement(Li,{ref:y},e.createElement(Ii,{css:R,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ni,{role:"row"},D.map(((e,t)=>gi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Ni,{key:t.id},D.map((n=>function(t,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(ri,Object.assign({},o),e.createElement(fi,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Fi,{borderMode:n},e.createElement(Li,{ref:y},e.createElement(Ii,{css:R,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ni,{role:"row"},D.map(((e,t)=>gi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement($i,{columnCount:D.length},e.createElement(ki,null,i.icon),e.createElement(Rt,{spacing:"sm",alignX:"center"},e.createElement(he,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(he,{variant:"subheadingMedium"},i.subheading)))))));const j=t=>{const{e2eClassName:n="",accentColor:o}=t,i=Ti(t.id,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ni,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),D.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,N,i))))},A=(t,n)=>{var o,i;const l=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,a=Ti(n,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ni,{role:"row",key:t.id,className:l},D.map((n=>function(t,n,o){if(n.hidden)return null;const i={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,i,o):e.createElement(ri,Object.assign({},i))}(t,n,a))))},H=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},j(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>A(e,t.id)))))},W=e.createElement(Ni,{role:"row"},D.map(((e,t)=>gi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t})))),P=o.some((e=>!!e.renderFooter)),_=$.length>0&&!!t;return e.createElement(Fi,{borderMode:n},_&&e.createElement(xi,{selectionColumn:k,intersectionTargetRef:w,containerRef:y},t),e.createElement(Li,{ref:y},f&&e.createElement(Mi,{tableCss:R,intersectionTargetRef:w,containerRef:y,cellWidths:O},W),e.createElement("div",{ref:w,style:{height:0}}),e.createElement(Ii,{css:R,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},W),(()=>{const t=!!r;return t&&"nested"===b?c.map(H):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[j(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>A(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(j))})(),P&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Ni,{role:"row"},D.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(ri,Object.assign({},n))}({column:t}))))))))};Ri.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ri.Cell=ri,Ri.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,l]=t(null),[a,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=o.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const o=u[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),i(r)};return e.createElement(e.Fragment,null,e.createElement(Ze,{ref:l,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(yt,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(lt,{style:{width:600}},e.createElement(Rt,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(Rt,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Ze,{variant:"flat",icon:e.createElement(Ci,null)}),e.createElement(Rt,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Rt,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Ze,{variant:"flat",icon:e.createElement(Ei,null),onClick:()=>m(n,!1),style:{color:ue.colors.neutral.ink.lightest}}):e.createElement(Ze,{variant:"flat",icon:e.createElement(wi,null),onClick:()=>m(n,!0)})))))))))},Ri.SelectionCell=li,Ri.SelectionHeader=ii,Ri.Header=oi,Ri.Truncate=zi,Ri.NoWrap=Si;const ji=p.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${ue.sizes.base};}`,Ai=p.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${ue.sizes.xs};}`,Hi=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${ue.sizes.base};}`,Wi=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${ue.sizes.xs};}`,Pi=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${ue.text.bodyBold.fontFamily};font-size:${ue.text.bodyBold.fontSize};font-weight:${ue.text.bodyBold.fontWeight};line-height:${ue.text.bodyBold.lineHeight};color:${ue.text.bodyBold.color};`,_i=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${ue.text.body.fontFamily};font-size:${ue.text.body.fontSize};font-weight:${ue.text.body.fontWeight};line-height:${ue.text.body.lineHeight};color:${ue.text.body.color};`,Vi=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(_i,{key:t},t))):e.createElement(_i,null,t);return e.createElement(ji,null,t.map((t=>n?e.createElement(Hi,{key:t.term},e.createElement(Pi,null,t.term),e.createElement(Wi,null,o(t.description))):e.createElement(Ai,{key:t.term},e.createElement(Pi,null,t.term),o(t.description)))))},{sizes:Zi,colors:Yi}=ue,qi=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Zi.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Zi.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Xi=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Zi.md};overflow-x:hidden;background-color:${Yi.neutral.grey.lightest};`,Ki=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(Xi,null,e.createElement(qi,{showSidebar:i},o)))},Ui=p.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var Gi;!function(e){e.base="base",e.sm="sm"}(Gi||(Gi={}));const Ji=({hasError:e,inputSize:t})=>g`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,Qi=p.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${ue.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${Ji} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,er=p.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${Ji}`,tr=/^-?[0-9]*\.?[0-9]+$/,nr=yo(n(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,max:s,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:b=Gi.base,step:f,type:v="text",value:y,spellCheck:x=!1}=t,w=Le(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=a((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(tr).test(t)&&m(t)}),[m,v]),C=null!=o?o:st("textfield");return"text"===v&&c?e.createElement(er,Object.assign({className:i,disabled:r,hasError:l,id:C,name:u,onChange:E,placeholder:g,rows:h,value:y,spellCheck:x,ref:n},w)):e.createElement(Qi,Object.assign({className:i,disabled:r,hasError:l,id:C,inputSize:b,max:s,min:d,name:u,"aria-label":u,onChange:E,placeholder:g,step:f,type:v,value:y,spellCheck:x,ref:n},w))})));nr.displayName="TextField";const or=p(J).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,ir=p(J).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,rr=p(nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${ue.colors.neutral.ink.lightest};}`,lr=p(Ze).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${ue.colors.neutral.ink.lightest};`;p(he).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${ue.text.error.fontFamily};font-size:${ue.text.error.fontSize};font-weight:${ue.text.error.fontWeight};line-height:${ue.text.error.lineHeight};color:${ue.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ue.sizes[2]} * -1);width:2px;background-color:${ue.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${ue.fontFamily};font-size:${ue.sizes[3]};line-height:${ue.sizes[4]};color:${ue.colors.neutral.ink.light};`;const ar=(e,t)=>{t.includes(e.key)&&e.preventDefault()},sr=["-","+","E","e"],dr=e=>ar(e,sr),cr=yo((t=>{var{size:n=Gi.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:l,height:a,width:s,length:d,unit:c}=t,u=Le(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(or,{className:l},e.createElement(ir,null,e.createElement(rr,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:dr},u)),e.createElement(Ke,{height:ue.sizes.base,width:ue.sizes.base}),e.createElement(rr,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:dr},u)),e.createElement(Ke,{height:ue.sizes.base,width:ue.sizes.base}),e.createElement(Ui,null,e.createElement(rr,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a,min:"0",step:"any",onKeyDown:dr},u)),e.createElement(lr,{size:n},c))))}));cr.displayName="DimensionsInput";const ur=p(J).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${te.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${te.neutral.grey.dark};border-radius:4px;svg{width:${se.base};height:${se.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${ue.colors.secondary.blue.light};}`,mr=p(he).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,pr=p(mr).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,gr=p(Xe).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,hr=p(Ke).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,br=p(J).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,fr=p(J).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${te.neutral.grey.base};svg{color:${({color:e})=>e};width:${se[5]};height:${se[5]};margin-right:10px;}`,vr=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),yr=({className:n,e2eClassName:o,label:i,text:r,iconSlot:l,fill:s=te.secondary.blue.base,content:d,footer:c,header:u,onClickAway:m,onClick:p,shouldCloseOnClickAway:g=!0})=>{const h=vr(n),b=vr(o),[f,v]=t(null),[y,x]=t(null),{shouldShowDropdown:w,toggleShouldShowDropdown:E,closeDropdown:C}=$t({anchorElement:f}),{handleKeyDown:$}=vt({popperElement:y,anchorElement:f,onClose:C}),k=a((e=>{w?C():E(),m&&w&&m(e)}),[w,C,E,m]),S=a((e=>{m&&m(e,C),g&&C()}),[m,C,g]);return!d?e.createElement(ur,{className:mt([null==h?void 0:h.container,null==b?void 0:b.container]),onClick:p},i&&e.createElement(pr,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(he,null,r),e.createElement(hr,{className:mt([null==h?void 0:h.cross,null==b?void 0:b.cross]),name:"cross",size:"base",color:te.neutral.ink.base})):e.createElement(tn,{className:h.filterTagDropdown,shouldShowDropdown:w,onClickAway:S,cta:e.createElement(ur,{className:h.container,onClick:k,ref:v},i&&e.createElement(pr,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(he,null,r),e.createElement(gr,{color:te.neutral.ink.base,name:"downArrow",$shouldShow:w}))},e.createElement(br,{ref:x,onKeyDown:$},e.createElement(fr,{color:s},u||e.createElement(e.Fragment,null,l,e.createElement(he,{variant:"bodyBold"},i))),d,c))},xr=p(J).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?se[e]:0};`,wr=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Er=p.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Cr=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,$r=p.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,kr=p.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Sr=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),Nr=({src:n,alt:o="",className:i,e2eClassName:r,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const f=Sr(i),v=Sr(r),[y,x]=t(!1),[w,E]=t({isLoaded:!1,isError:!1}),[C,$]=e.useState(null),[k,S]=e.useState(null),{styles:N,attributes:L}=M(C,k,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),I=a((()=>m?x(!0):{}),[m]),z=a((()=>m?x(!1):{}),[m]),D=!w.isLoaded||w.isError;return e.createElement(Er,{className:mt([null==f?void 0:f.container,null==v?void 0:v.container,i])},e.createElement(Cr,{src:n,alt:o,className:mt([null==f?void 0:f.image,null==v?void 0:v.image]),width:l,height:s,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:I,onMouseLeave:z,style:D?{display:"none"}:{},ref:$}),!b&&D&&(p||e.createElement(wr,{className:mt([null==f?void 0:f.placeholder,null==v?void 0:v.placeholder]),width:g||l,height:h||s})),y&&B(e.createElement($r,Object.assign({ref:S,style:N.popper},L.popper,{className:mt([null==f?void 0:f.previewImageContainer,null==v?void 0:v.previewImageContainer])}),e.createElement(kr,{src:n,alt:"",width:d,height:c})),document.body))},Lr={width:64,height:64},Ir={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},Lr)),title:"No data found"},zr={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},Lr)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var Dr;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Dr||(Dr={}));const{text:Fr,sizes:Mr}=ue,{blue:Tr}=ue.colors.secondary,{grey:Or}=ue.colors.neutral,{scrollbar:Br}=ue.colors.system,Rr='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',jr=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Ar=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Or.dark};border-bottom:1px solid ${Or.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${Br.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Br.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Rr};\n\n ${o===Dr.middle||o===Dr.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${Rr};\n\n ${o===Dr.start||o===Dr.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Hr=p(Ar).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Or.dark};border-radius:4px;`,Wr=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Pr=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Or.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;p.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Or.lightest};padding:1.5rem 1rem;border-top:1px solid ${Tr.base};}`;const _r=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Vr=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${Fr.bodySmall.fontFamily};font-size:${Fr.bodySmall.fontSize};font-weight:${Fr.bodySmall.fontWeight};color:${Fr.bodySmall.color};line-height:${Mr.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Zr=p(Vr).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Or.dark};font-family:${Fr.bodySmallBold.fontFamily};font-size:${Fr.bodySmallBold.fontSize};font-weight:${Fr.bodySmallBold.fontWeight};color:${Fr.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Or.light};}`,Yr={left:"flex-start",center:"center",right:"flex-end"},qr=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Yr[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Xr=p.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Pr}:nth-child(even) td {\n background-color: ${Or.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Zr}, & ${Zr} span {\n white-space: nowrap;\n }\n `}`,Kr=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Vr}{border-top:1px solid ${Or.dark};background-color:${Or.lightest};padding-top:${Mr.base};padding-bottom:${Mr.base};line-height:2rem;}`,Ur=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Gr=p(Xr).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Jr=p(J).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Qr=p(J).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${ue.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,el=p(he).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,tl=p(he).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,nl=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Jr,{height:t},e.createElement(Qr,null,n),e.createElement(el,{variant:"headingLarge"},o),i&&e.createElement(tl,{variant:"subheadingMedium"},i)),ol=p.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${ue.sizes.base};border-radius:${ue.radius.base};&:hover{cursor:pointer;background-color:${ue.colors.secondary.blue.lightest};}`,il=p(ol).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${ue.text.link.color};text-decoration:${ue.text.link.textDecoration};`,rl=p.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:ll}=ue.colors.neutral,al=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,sl=p.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${ll.base} 8%, ${ll.dark} 15%, ${ll.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,dl=({isLoading:t,style:n})=>e.createElement(al,{style:n},e.createElement(sl,{isLoading:t})),cl=t=>{var{style:n}=t,o=Le(t,["style"]);return e.createElement(Vr,Object.assign({},o),e.createElement(dl,{style:n}))};cl.defaultProps={style:{}};const ul=({renderHeader:n,tableRef:o,wrapperRef:r,isFixedLayout:l,wrapperStyle:s})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[o,r]=t(!1),l=a((({top:e,bottom:t})=>{let i=o;i=e<=(n||0)&&t>0?!o||i:!o&&i,i!==o&&r(i)}),[o,n]);return i((()=>{const t=()=>{var t;e.current&&l(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[l,e]),{isSticky:o}})(o,parseInt("string"==typeof(null==s?void 0:s.top)?null==s?void 0:s.top:`${null==s?void 0:s.top}`,10)),p=((null===(d=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;K(r);const g=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),m?e.createElement(Ur,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Gr,{style:{tableLayout:l?"fixed":"auto"}},n())):null},ml=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},pl=t=>{var{style:n,width:o,isLoading:i}=t,r=Le(t,["style","width","isLoading"]);return e.createElement(Zr,Object.assign({},r,{style:{width:o}}),e.createElement(dl,{style:n,isLoading:i}))},gl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),hl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),bl=()=>e.createElement(Zo,{width:ue.sizes.base,height:ue.sizes.base,color:"lightgrey"}),fl=()=>e.createElement(gl,{width:ue.sizes.base,height:ue.sizes.base,color:"lightgrey"}),vl=()=>e.createElement(hl,{width:ue.sizes.base,height:ue.sizes.base,color:"lightgrey"}),yl=({borderless:n=!1,striped:o=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:b,renderFooterLoadingRow:f,omitFooterSelectionCell:v=!1,selectedRowIds:y,disabledSelectionInputRowIds:x,selectionMode:w="multiple",onChangeSelectedRowIds:E,sortColumnId:C,sortDirection:$,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:L=5,isHeaderSticky:I=!0,stickyHeaderStyle:z,customSpecificState:D,bodyHeightInSpecificStates:F=375,startFixedColumnsNumber:M,endFixedColumnsNumber:T})=>{const O=n?Ar:Hr,B=!!u&&0===u.length,R=Boolean(M||T),j=!M&&!T,A=l(null),H=l(null),[W,P]=t(Dr.none);i((()=>{var e;let t=null;const n=()=>{if(!H.current||j)return;const e=H.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?P(Dr.none):0===n?P(Dr.start):n>0&&i<t?P(Dr.middle):i===t&&P(Dr.end)};return H.current&&(t=H.current,n(),null===(e=H.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[A,j]);const _=a((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),V=a(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),Z=a((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(M){y&&(e.push(V(1,n,"left")),n+=58);for(let t=0;t<M;t+=1){const o=_(c[t].width);o&&(e.push(V(y?t+2:t+1,n,"left")),n+=o)}}if(T)for(let e=0;e<T;e+=1){const n=_(c.slice(-e-1)[0].width);n&&(t.push(V(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,_,T,V,c,M,y]),Y=r((()=>Z()),[Z]),q=a(((e,t)=>{if(!y||!E)return;if(e)return"single"===w?void E([t.id]):void E([...y,t.id]);const n=[...y],o=n.findIndex((e=>e===t.id));n.splice(o,1),E(n)}),[E,y,w]),X=a((()=>{if(!y||!E)return;if(y.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,y]),K=a((e=>{if(void 0===C||void 0===k)return;let t=C,n="ascending";"ascending"===$&&(n="descending"),e!==C&&(t=e,n="ascending"),k(t,n)}),[k,C,$]),U=a(((t,n)=>{let o="",i=()=>{},r=e.createElement(bl,null);const{tooltip:l,align:a,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",i=()=>K(u),C===u&&(r="ascending"===$?e.createElement(fl,null):e.createElement(vl,null)));const m=e.createElement(qr,{align:a},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(Zr,{key:u,id:`data-table-header-${u}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},l?e.createElement(gn,{text:l},e.createElement(jr,null,m)):m)}),[K,C,$]),G=a(((t,n)=>e.createElement(pl,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=a((()=>{if(!c)return null;const t=Z(),n=t?t[0].style:{};return e.createElement(Wr,null,e.createElement(_r,null,y&&e.createElement(Zr,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(oo,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:X,disabled:x&&x.length>0||N||B,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=y?n+2:n+1,i=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||B)?G(e,e.skeletonStyle||{}):U(e,(null==r?void 0:r.style)||{})}))))}),[Z,X,c,B,S,N,G,U,u.length,y,w,x]),Q=a(((t,n)=>{const o={checked:t,onChange:e=>q(e,n),disabled:(null==x?void 0:x.includes(n.id))||!1};return"single"===w?e.createElement(ro,Object.assign({},o)):e.createElement(oo,Object.assign({},o))}),[q,w,x]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(cl,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(cl,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=a(((t,n)=>{var o,i;if(!p)return null;const r=p(t);if(!r)return null;const l=(null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row)||"";return e.createElement(_r,{key:t.id,className:`${l} ${n?"hidden":""}`},y&&e.createElement(Vr,null),r)}),[p,y]),ne=a((t=>{if(!c)return e.createElement(cl,null);const n=c.map((n=>e.createElement(cl,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>b?N&&!f||!N&&B?null:e.createElement(Kr,{fixedColumnsStyle:ml(Y||[])},e.createElement(_r,null,y&&!v&&e.createElement(Vr,null),!N&&b(u),N&&f&&f())):null;let ie=M;y&&ie&&(ie+=1);const re=r((()=>u.map((t=>{var n,o,i;const{data:r}=t,l=!!y&&y.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=l?`selected ${d}`:`${d}`;return e.createElement(Pr,{key:t.id,className:s,fixedColumnsStyle:ml(Y||[])},e.createElement(_r,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(Vr,null,Q(l,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[u,g,Y,te,m,Q,y]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement(Pr,{key:`loading-row-${n}`,fixedColumnsStyle:ml(Y||[])},e.createElement(_r,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(O,{ref:H,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:T},I&&c&&e.createElement(ul,{renderHeader:J,tableRef:A,wrapperRef:H,isFixedLayout:R,wrapperStyle:z}),e.createElement(Xr,{ref:A,striped:o,noWrap:s,tableLoading:!0,isFixedLayout:R},J(),t,oe()))}if(B||S){let t=Ir;return D?t=D:S&&(t=zr),e.createElement(O,{scrollDisabled:!0},e.createElement(Xr,{ref:A,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:R},J(),oe()),e.createElement(nl,Object.assign({height:F},t)))}return e.createElement(O,{scrollDisabled:!1,ref:H,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:T,showScrollbar:d},I&&c&&e.createElement(ul,{renderHeader:J,tableRef:A,wrapperRef:H,isFixedLayout:R,wrapperStyle:z}),e.createElement(Xr,{ref:A,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:R},J(),re,oe()))};yl.Cell=Vr,yl.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Le(t,["onClick","children"]);return e.createElement(Vr,Object.assign({},i),e.createElement(il,{onClick:n},o))},yl.EditableCell=t=>{var{onClick:n,children:o}=t,i=Le(t,["onClick","children"]);return e.createElement(Vr,Object.assign({},i),e.createElement(ol,{onClick:n},e.createElement(rl,null,o)))},yl.SkeletonCell=cl,yl.SkeletonContent=dl;const xl=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,wl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",El="Log in with Amazon",Cl=n=>{const[o,i]=t(wl);return e.createElement(xl,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(wl)},"aria-label":El},n),e.createElement("img",{src:o,alt:El}))},$l=h`body{overflow:hidden;scrollbar-gutter:stable;}`,kl=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${ue.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${lt.Footer} {\n box-shadow: 0px 10px 15px 0px ${ue.colors.neutral.ink.dark};\n }\n `}`,Sl=e=>!!e.footerSlot,Nl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ll={[ne.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[ne.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[ne.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[ne.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[ne.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Il={xs:ne.mobile,sm:ne.mobile,base:ne.tablet,lg:ne.lgTablet},{breakpoints:zl}=ue,Dl=p(u.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${ue.sizes.sm};box-shadow:${ue.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${lt.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Nl[e]};`} ${kl}{padding-bottom:${ue.sizes.md};}${lt.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${zl.mobile} + 1px))and (max-width: ${zl.tablet}){max-width:${({variant:e})=>Ll[zl.tablet][e]};}@media (min-width: ${zl.tablet})and (max-width: ${zl.lgTablet}){max-width:${({variant:e})=>Ll[zl.lgTablet][e]};}@media (min-width: ${zl.lgTablet})and (max-width: ${zl.desktop}){max-width:${({variant:e})=>Ll[zl.desktop][e]};}@media (min-width: ${zl.desktop}){max-width:${({variant:e})=>Ll[zl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Il[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${lt.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${gt(ue.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Fl=e.forwardRef(((t,n)=>{var o=Le(t,[]);return e.createElement(Dl,Object.assign({ref:n},o))})),Ml=n=>{const{shouldShow:o,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(null),[p,g]=t(null);i((()=>{var e,t;o&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:h,onScroll:b}=It(p),f=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(m,null,o&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement($l,null),e.createElement(Fl,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(lt.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Ue,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:f})),e.createElement(kl,{onScroll:b,ref:g,isScrollable:h,fullBleed:a},c),Sl(n)&&n.footerSlot,!Sl(n)&&(n.leftActions||n.rightActions)&&e.createElement(lt.Footer,null,e.createElement(Rt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Rt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=Le(t,["label"]);return e.createElement(Ze,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Rt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=Le(t,["label"]);return e.createElement(Ze,Object.assign({key:n,type:"button"},o),n)})))))))))},Tl=p(Rt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${ue.sizes.lg};height:30px;background-color:${ue.colors.neutral.grey.light};border:1px solid ${ue.colors.neutral.grey.base};border-radius:${ue.sizes.xs};`,Ol=p(Ze).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${ue.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Bl=p(nr).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Rl=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(he,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Tl,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(he,{variant:"bodySmall"},t))),jl=({currentPage:e,totalPagesCount:n,handleChangePage:o})=>{const[r,l]=t(`${e}`);i((()=>{l(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(r||l(`${e}`),r===`${e}`)return;const t=parseInt(r,10);a(t)&&o(t)};return{pageInputValue:r,handleIncrement:()=>{a(e+1)&&o(e+1)},handleDecrement:()=>{a(e-1)&&o(e-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;a(n=t)&&l(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Al=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Hl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Wl=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:l,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=jl({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Ol,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Al,null),size:"sm","aria-label":"go to first page"}),e.createElement(Ol,{onClick:s,icon:e.createElement(Hn,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Bl,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:Gi.sm,type:"number",value:l,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(Rl,{count:i}),e.createElement(Ol,{onClick:a,icon:e.createElement(In,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(Ol,{onClick:()=>{o!==i&&r(i)},icon:e.createElement(Hl,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Pl=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,_l=p.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Vl=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(Pl,{size:i},e.createElement(_l,{type:"button",onClick:t,disabled:o},e.createElement(Se,{height:ue.sizes.base,width:ue.sizes.base,color:ue.colors.neutral.ink.base})),e.createElement(_l,{type:"button",onClick:n,disabled:o},e.createElement(Xe,{height:ue.sizes.base,width:ue.sizes.base,color:ue.colors.neutral.ink.base}))),Zl=p(nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${ue.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${ue.colors.neutral.ink.lightest};}`,Yl=p(J).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${ue.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?ue.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,ql=p(he).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Xl=p(Ui).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${ue.colors.secondary.red.light};\n\n > * {\n border-top-color: ${ue.colors.secondary.red.base};\n border-bottom-color: ${ue.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${ue.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${ue.colors.secondary.red.base};\n border-right-color: ${ue.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${ue.colors.secondary.red.base};\n border-bottom-color: ${ue.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${ue.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ue.colors.secondary.red.base:ue.colors.secondary.blue.base};}}`;const Kl=yo((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:l,onPriceChange:a,priceValue:s,step:d="0.1",size:c=Gi.base}=t,u=Le(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(Xl,{className:n,hasError:o},e.createElement(Yl,{disabled:r,size:c},e.createElement(ql,{variant:"hintText"},i)),e.createElement(Zl,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void a("");const o=parseFloat(n.replace(",",".")).toFixed(2);a(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(l),"ArrowDown"===t&&p(l)},disabled:r,size:c},u)),e.createElement(Vl,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));Kl.displayName="PriceInput";const Ul=p.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Gl=({children:t})=>e.createElement(Ul,null,t),Jl=p(nr).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ql=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,ea=p(J).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Jl} {\n ${t}\n }\n\n & ${Ql} {\n ${n}\n }\n `}}`,ta=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),na=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:b,reversed:f=!1,autoComplete:v="on",size:y="base"})=>{const x=c&&c.length>0;return e.createElement(ea,{className:p,iconPosition:f?"left":"right"},e.createElement(Jl,{size:y,type:t,value:c,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:v}),e.createElement(Ql,null,h?e.createElement(Fe,{height:24,color:b||ue.colors.secondary.blue.base}):x&&o?e.createElement(Ze,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(Ke,{color:b||ue.colors.neutral.ink.dark})):e.createElement(Ze,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(ta,{color:b||ue.colors.neutral.ink.dark,height:se.md,width:se.md}))))},oa=ue.colors.neutral.grey.lightest,ia=ue.colors.neutral.grey.dark,ra=ue.colors.secondary.blue.dark,la=p(J).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${oa};border-color:${ia};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${ue.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${ra};border-color:${ra};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${ue.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,aa=({options:t,selected:n,className:o,onChange:i})=>e.createElement(la,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ze,{type:"button","aria-pressed":t.value===n,variant:t.value===n?"primary":"default",key:t.key,onClick:()=>i(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),sa=p.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${ue.colors.neutral.ink.base});font-family:${ue.text.bodySmall.fontFamily};font-style:${ue.text.bodySmall.fontStyle};font-size:${ue.text.bodySmall.fontSize};line-height:${ue.text.bodySmall.lineHeight};font-weight:${ue.text.bodySmall.fontWeight};text-decoration:${ue.text.bodySmall.textDecoration};letter-spacing:${ue.text.bodySmall.letterSpacing};`,da=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${ue.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${ue.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${ue.text.bodySmall.fontFamily};font-style:${ue.text.bodySmall.fontStyle};`,ca={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},ua={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},ma=t=>{var{shortcut:n,label:o,inverse:i=!1,displayLabel:r=!1}=t,l=Le(t,["shortcut","label","inverse","displayLabel"]);const a=n.split("+").map((t=>ca[t]?e.createElement(da,{key:`Key: ${t}`,"aria-label":ua[t]},ca[t]):e.createElement(da,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(sa,Object.assign({"aria-label":o,$inverse:i},l),a," ",r?e.createElement("span",null,o):null)},{blue:pa}=te.secondary,{grey:ga}=te.neutral,ha=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,ba=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${pa.lightest};}`,fa=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,va=p.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${ce.bodySmall.fontFamily};font-size:${ce.bodySmall.fontSize};font-weight:${ce.bodySmall.fontWeight};color:${ce.bodySmall.color};line-height:${se.base};& > *{vertical-align:middle;}`,ya=p(va).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${ga.dark};font-family:${ce.bodySmallBold.fontFamily};font-size:${ce.bodySmallBold.fontSize};font-weight:${ce.bodySmallBold.fontWeight};color:${ce.bodySmallBold.color};`,xa=p.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${ba} tr:nth-child(even) td {\n background-color: ${ga.lightest};\n }\n `}`,wa=({striped:t=!0,className:n,children:o})=>e.createElement(xa,{striped:t,className:n},o);wa.Header=ha,wa.Body=ba,wa.Row=fa,wa.HeaderCell=ya,wa.Cell=va;const Ea=p(J).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Ea.displayName="Skeleton";const Ca=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,$a=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${ue.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,ka=p.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${ue.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${ue.colors.secondary.blue.light};}`,Sa=p($a).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${ue.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Na=e=>({container:e?`${e}-slider-container`:void 0,sliderRange:e?`${e}-slider-range`:void 0,slider:e?`${e}-slider`:void 0,startSlider:e?`${e}-start-slider`:void 0,endSlider:e?`${e}-end-slider`:void 0}),La=({id:n,value:o,min:r,max:s,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,b]=t(!1),[f,v]=t(-1),y=l(null),x=l(null),w=l(null),E=Na(u),C=Na(m),$=a((e=>{var t;if(!h||!y.current)return;const n=f>-1?o[f]:o,i=y.current.getBoundingClientRect();let l=100*(e.pageX-i.x)/i.width/100*(s-r)+r;const a=n-l;if(a>0&&(l=n+Math.ceil(l/d-n/d)*d),a<0&&(l=n+Math.floor(l/d-n/d)*d),n===l)return;l>s&&(l=s),l<r&&(l=r),Array.isArray(o)&&(0===f&&l>o[1]&&([,l]=o),1===f&&l<o[0]&&([l]=o));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;l=Number(l.toFixed(u)),m=Array.isArray(o)?0===f?[l,o[1]]:[o[0],l]:l,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===f&&v(1),1===f&&v(0))}),[f,h,s,r,c,d,o]),k=a((()=>{b(!1),g()}),[g]),S=a(((e,t)=>{b(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);i((()=>{const e=e=>S(e,Array.isArray(o)?0:1),t=e=>S(e,1),n=x.current,i=w.current;return null==n||n.addEventListener("mousedown",e),null==i||i.addEventListener("mousedown",t),document.addEventListener("mousemove",$),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==i||i.removeEventListener("mousedown",t),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",k)}}),[S,$,k,o]);const N=(t,n,o)=>{let i;return i=mt("number"==typeof o?0===o?[null==E?void 0:E.startSlider,null==C?void 0:C.startSlider]:[null==E?void 0:E.endSlider,null==C?void 0:C.endSlider]:[null==E?void 0:E.slider,null==C?void 0:C.slider]),e.createElement(ka,{role:"slider",ref:1===o?w:x,className:i,left:t,"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":n})},L=t=>{const n=100*(t[0]<r?0:t[0]-r)/(s-r),o=100*(t[1]>s?100:t[1]-r)/(s-r),i=o-n;return e.createElement(e.Fragment,null,e.createElement(Sa,{className:mt([null==E?void 0:E.sliderRange,null==C?void 0:C.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let I;return I=Array.isArray(o)?L(o):(e=>{if(Array.isArray(o))return L(o);let t;return t=o>s?100:o<r?0:100*(e-r)/(s-r),N(t,e)})(o),e.createElement(Ca,{className:mt([null==E?void 0:E.container,null==C?void 0:C.container]),id:n,ref:y},e.createElement($a,null),I)},Ia=p(J).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:te.neutral.ink.base};\n background-color: ${null!=e?e:te.neutral.grey.base};\n `}`,za=p(Rt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${ue.layers.tooltip};`,Da=p(Rt).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${ue.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${ue.shadows.lg};border-radius:${ue.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,Fa=p(J).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${ue.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${se.md};height:${se.md};}`,Ma=p(Rt).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Ta=p(he).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Oa={info:{accentColor:te.brand.blue.base,icon:e.createElement(Wt,null)},success:{accentColor:te.secondary.green.base,icon:e.createElement(Pt,null)},error:{accentColor:te.secondary.red.base,icon:e.createElement(At,null)},merge:{accentColor:te.secondary.purple.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},Ba=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ra=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:l,minWidth:a,cta:s,onClose:d})=>{const c=Ba(t),u=Ba(n);return e.createElement(Da,{className:mt([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:a,last:l},e.createElement(Fa,{color:Oa[o].accentColor,className:mt([c.icon,u.icon])},null!=i?i:Oa[o].icon),e.createElement(Ma,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Ta,{variant:"body"},r),s),e.createElement(Ze,{variant:"flat",icon:e.createElement(Ke,{color:"white"}),onClick:d,"aria-label":"Close"}))},ja=({className:t,e2eClassName:n,toasts:o,minWidth:r="50vw",max:l=3,onClose:a})=>(i((()=>{l&&o.length>l&&a(o[0].key)}),[o,l,a]),B(e.createElement(za,{direction:"vertical",alignX:"center",spacing:4},e.createElement(A,{component:null},[...o].reverse().map(((i,l)=>e.createElement(j,{key:i.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Ra,Object.assign({className:t,e2eClassName:n,minWidth:r,last:l===o.length-1,onClose:()=>a(i.key)},i))))))),document.body)),Aa=p.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${ue.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",i="24px",r="8px",l="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",l="14px",a="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${a};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${l};\n\n background-color: ${s};\n border-color: ${d};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Ha=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(Aa,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),Wa=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${se.md};border-radius:${oe.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${te.neutral.ink.lightest};background-color:${te.neutral.grey.lightest};:hover{border:2px dashed ${te.secondary.blue.base};background-color:${te.secondary.blue.lightest};}:active{border:2px dashed ${te.secondary.blue.base};box-shadow:0 0 0 4px ${te.secondary.blue.light};background-color:${te.secondary.blue.lightest};}:focus-within{border:2px dashed ${te.secondary.blue.base};box-shadow:0 0 0 4px ${te.secondary.blue.light};background-color:${te.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${te.secondary.red.base};:hover{border:2px dashed ${te.secondary.red.base};background-color:${te.secondary.red.lightest};}:active{border:2px dashed ${te.secondary.red.base};box-shadow:0 0 0 4px ${te.secondary.red.light};background-color:${te.secondary.red.lightest};}:focus-within{border:2px dashed ${te.secondary.red.base};box-shadow:0 0 0 4px ${te.secondary.red.light};background-color:${te.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${te.neutral.grey.light};border-color:${te.neutral.ink.lightest};color:${te.neutral.ink.light};}`;var Pa,_a,Va;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(Pa||(Pa={})),function(e){e.KB="KB",e.MB="MB"}(_a||(_a={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(Va||(Va={}));const Za=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),Ya=()=>e.createElement(Rt,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(Za,null),e.createElement(he,{variant:"subheadingSmall",style:{paddingTop:se.sm}},"Browse files or drag them here")),qa=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Rt,{alignX:"start",spacing:"xs"},t&&e.createElement(he,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(he,{variant:"errorSmall"},"File is too big (",n,")")):null,Xa=p(he).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Ka=p(Rt).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${te.neutral.ink.lightest};border-radius:${oe.base};padding:${se.xs};${he}{padding-left:${se.xs};}`,Ua=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(Ka,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(Xa,{variant:"body"},null==t?void 0:t.name),e.createElement(Ze,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(Ke,null),"aria-label":"Remove file",disabled:o})):null,Ga=n(((n,o)=>{var{id:r,name:s,maxBytes:d=1e6,format:u=_a.MB,fileTypes:m,label:p="Upload file",required:g,disabled:h}=n,b=Le(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=l(null);c(o,(()=>f.current),[]);const[v,y]=t(),[x,w]=t(Va.VALID),E=x===Va.INVALID_FORMAT||x===Va.INVALID_FORMAT_AND_SIZE,C=x===Va.INVALID_SIZE||x===Va.INVALID_FORMAT_AND_SIZE,$=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case _a.KB:return`${o}${Number(e)/1e3} KB`;case _a.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:d,format:u}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const i=o.length>1,r=t===o.length-1&&i,l=t===o.length-2&&i;switch(r&&(n+=" and "),e){case Pa.CSV:n+="CSV";break;case Pa.GIF:n+="GIF";break;case Pa.JPEG:n+="JPEG";break;case Pa.JPG:n+="JPG";break;case Pa.PNG:n+="PNG"}!l&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:m}),S=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const i=o.length-1===n&&o.length>1;t+=i?`${e}`:`${e}, `})),t.trim()})({fileTypes:m}),N=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},L=({overMaxSize:e,invalidFormat:t})=>{var n;let o=Va.VALID;t&&!e?o=Va.INVALID_FORMAT:!t&&e?o=Va.INVALID_SIZE:t&&e&&(o=Va.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(o),w(o)},I=a((e=>{if(!e.length)return void L({invalidFormat:!0});const[t]=e,n=t.size>d,[,o]=t.type.split("/"),i=!m.find((e=>e.substring(1)===o));n||i?N():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:r}),L({invalidFormat:i,overMaxSize:n}),y(t)}),[m,r,d]),z=a((()=>{N(),y(void 0),L({invalidFormat:!1,overMaxSize:!1})}),[]),D=a((()=>{var e;const t=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?I(t):z()}),[z,I]);return i((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",D),null==e||e.addEventListener("cancel",z),()=>{null==e||e.removeEventListener("change",D),null==e||e.removeEventListener("cancel",z)}}),[D,z]),e.createElement(fo,{spacing:"sm",alignX:"stretch"},e.createElement(go,{htmlFor:r},p,e.createElement(Rt,{spacing:3,alignX:"stretch",style:{paddingTop:se.sm}},e.createElement(ho,null,e.createElement("div",null,k),e.createElement("div",null,$)),e.createElement(Wa,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&I(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.blur()}},e.createElement(Ya,null),e.createElement("input",Object.assign({ref:f,id:r,type:"file",accept:S,name:s,required:g,disabled:h},b))))),e.createElement(Rt,{alignX:"stretch",spacing:"sm"},e.createElement(Ua,{file:v,resetSelection:z,disabled:h}),e.createElement(qa,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:C?$:void 0})))})),Ja="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Qa=p(J).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Ja} display:${e=>e.shouldShow?"initial":"none"};z-index:${ue.layers.modal};`,es=p(J).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Ja} background-color:rgba(55,66,77,0.5);`,ts=p(J).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,ns=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(dt,null,n):n),os=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(ns,{usePortal:i},e.createElement(Qa,{className:mt([`${t}-container`,t]),shouldShow:o},e.createElement(es,null),e.createElement(G,{isActive:o},e.createElement(ts,{className:mt([`${t}-wrap`,t])},n)))),is=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,rs=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,ls=p(Ze).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,as=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=Et(o,i);return e.createElement(os,{shouldShow:o,className:`${t}-video`},e.createElement(is,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(rs,{ref:r},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(ls,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement(Ke,{color:"white"})}))))};var ss;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(ss||(ss={}));const ds=p(J).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,cs=p(he).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,us=p(J).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${he} {\n color: ${null!=t?t:te.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ms=p(he).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${cs} {\n color: #fff;\n }\n `}`,ps={style:{marginLeft:se.xs,padding:se.xs,height:se.base,width:se.base}},gs=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${se.sm};svg{height:${se.base};width:${se.base};}`,hs=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),bs=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0}),fs=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=te.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=bs(r),b=bs(g),[f,v,y]=Lt(),x=a((()=>u(t)),[t,u]),w=a((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),C=i===ss.draft,$=i===ss.saved,k=c?te.neutral.ink.dark:te.neutral.ink.base;return e.createElement(ds,{className:`${mt([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:x},e.createElement(us,{active:c,onMouseEnter:v,onMouseLeave:y,colourPalette:l,customTextColour:s},n&&e.createElement(gs,null,n),e.createElement(he,{variant:"bodyBold"},o),d&&e.createElement(ms,{active:c||f,colourPalette:l,customTextColour:s},e.createElement(cs,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),C&&e.createElement(Ke,Object.assign({},ps,{color:k,className:null==b?void 0:b.delete,onClick:w})),$&&c&&e.createElement(hs,Object.assign({},ps,{color:k,className:null==b?void 0:b.edit,onClick:E}))))};var vs;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(vs||(vs={}));const ys=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),xs=p(he).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,ws=p(ys).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Es=p(Ke).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Cs=p(he).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${xs} {\n color: ${te.neutral.grey.lightest};\n }\n `}`,$s=p(J).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${ue.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${te.neutral.grey.base};\n & > ${Cs} {\n background-color: ${te.neutral.grey.base};\n & > ${xs} {\n color: ${te.neutral.ink.base};\n }\n }\n & > ${he} {\n color: ${null!=e?e:te.neutral.ink.dark};\n }\n & > ${ws} {\n color: ${te.neutral.ink.dark};\n }\n & > ${Es} {\n color: ${te.neutral.ink.dark};\n }\n }\n\n & > ${he} {\n color: ${null!=e?e:te.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${ws} {\n color: ${t.dark};\n }\n & > ${Es} {\n color: ${t.dark};\n }\n\n & > ${he} {\n color: ${null!=n?n:t.dark};\n }\n `}`,ks=p(Ae).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${ue.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${$s} {\n background-color: ${te.neutral.grey.base};\n & > ${Cs} {\n background-color: ${te.neutral.grey.base};\n & > ${xs} {\n color: ${te.neutral.ink.base};\n }\n }\n & > ${he} {\n color: ${null!=e?e:te.neutral.ink.dark};\n }\n & > ${ws} {\n color: ${te.neutral.ink.dark};\n }\n & > ${Es} {\n color: ${te.neutral.ink.dark};\n }\n }\n `}`,Ss={style:{marginLeft:se.xs,padding:se.xs,height:se.base,width:se.base}},Ns=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${se.sm};svg{height:${se.base};width:${se.base};}`,Ls=e.forwardRef(((t,n)=>{var{id:o,iconSlot:i,name:r,type:l,className:a,colourPalette:s=te.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=Le(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const b={delete:(f=a)?`${f}-delete`:void 0,edit:f?`${f}-edit`:void 0,container:f?`${f}-view`:void 0,active:f?`${f}-active`:void 0,counter:f?`${f}-counter`:void 0};var f;const[v,y,x]=Lt(),w=u&&p?p:m,E=l===vs.draft,C=l===vs.saved;return e.createElement(ks,Object.assign({className:mt([null==b?void 0:b.container]),onClick:()=>w(o),role:"tab","aria-selected":u,"aria-label":`${u&&E?"Delete":u&&C?"Edit":""} ${r} view ${c?`with ${c} ${g}`:""}`,customTextColour:d,ref:n},h),e.createElement($s,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:s,customTextColour:d},i&&e.createElement(Ns,null,i),e.createElement(he,{variant:"bodyBold"},r),null!=c&&e.createElement(Cs,{"data-testid":"countContainer",active:u||v,colourPalette:s,customTextColour:d},e.createElement(xs,{variant:"subheadingSmall"},c)),E&&e.createElement(Es,Object.assign({},Ss,{"aria-label":"delete icon"})),C&&u&&e.createElement(ws,Object.assign({},Ss,{"aria-label":"edit icon"}))))})),Is=p(Rt).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,zs=p(Rt).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${te.neutral.grey.lightest};`,Ds=p(Hn).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${te.neutral.ink.base};`,Fs=p(In).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${te.neutral.ink.base};`,Ms=p(ys).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${te.neutral.ink.base};`,Ts=p(Ze).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${te.neutral.grey.lightest};}`,Os=p(Ze).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Ds}{color:${te.neutral.ink.lightest};}}&:hover{background-color:${te.neutral.grey.lightest};}`,Bs=p(Ze).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Fs}{color:${te.neutral.ink.lightest};}}&:hover{background-color:${te.neutral.grey.lightest};}`,Rs=p(Ui).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,js=(e,n)=>{var o;const[r,l]=t(!0),[s,d]=t(!1),[c,u]=t([]),m=null===(o=null==e?void 0:e.current)||void 0===o?void 0:o.querySelector("[aria-selected = true]"),p=U(m),g=a((()=>{var t,n,o,i,r,a,s,c;(null===(t=e.current)||void 0===t?void 0:t.scrollLeft)>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(n=document.getElementById("right-arrow"))||void 0===n||n.focus()),l(!0));const u=(null!==(i=null===(o=e.current)||void 0===o?void 0:o.scrollWidth)&&void 0!==i?i:0)-(null!==(a=null===(r=e.current)||void 0===r?void 0:r.clientWidth)&&void 0!==a?a:0);(null===(s=e.current)||void 0===s?void 0:s.scrollLeft)>=u-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(c=document.getElementById("left-arrow"))||void 0===c||c.focus()),d(!0)):d(!1)}),[e]),h=a((()=>{e.current&&(e.current.scrollWidth-e.current.getBoundingClientRect().width<5?d(!0):d(!1))}),[e]),b=a((()=>{const t=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(c,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]),f=a((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(c,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]);return i((()=>{var t,o,i,r,l,a,s;if(null==e?void 0:e.current){if((null===(t=e.current.children)||void 0===t?void 0:t.length)&&(null===(o=e.current.children)||void 0===o?void 0:o.length)!==c.length&&c.length>0&&c.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),u([...c,c[c.length-1]+(null!==(r=null===(i=e.current.children[c.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==r?r:0)-20])),(null===(l=e.current.children)||void 0===l?void 0:l.length)&&0===c.length&&u((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m!==p&&null!==m&&(null===(a=e.current.children)||void 0===a?void 0:a.length)===c.length){const t=Array.from(e.current.children).indexOf(m);e.current.scrollTo({left:c[t],top:0,behavior:"smooth"})}return h(),window.addEventListener("resize",h),null===(s=e.current)||void 0===s||s.addEventListener("scroll",g),()=>{window.removeEventListener("resize",h)}}}),[e,n,h,g,c,m,p]),{rightDisabled:s,leftDisabled:r,toNextScrollPosition:b,toPrevScrollPosition:f}},As=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const a=l(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=js(a,t);return e.createElement(zs,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Is,{ref:a,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(Rs,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Os,{id:"left-arrow",icon:e.createElement(Ds,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Bs,{id:"right-arrow",icon:e.createElement(Fs,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(Ts,{icon:e.createElement(Ms,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),Hs=p(J).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Ws=p(J).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Ps=p(nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,_s=p(Ze).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${ue.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${ue.colors.secondary.red.base};\n `};`,Vs=e=>ar(e,sr),Zs=yo((t=>{var{size:n=Gi.base,hasError:o,className:i}=t,r=Le(t,["size","hasError","className"]);return e.createElement(Hs,{className:i},e.createElement(Ws,null,"g"===r.weightUnit&&e.createElement(Ui,null,e.createElement(Ps,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:Vs},r)),e.createElement(_s,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(Ui,null,e.createElement(Ps,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:Vs},r)),e.createElement(_s,{hasError:o,size:n},"lb")),e.createElement(Ui,null,e.createElement(Ps,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:Vs},r)),e.createElement(_s,{hasError:o,size:n},"oz")))))}));Zs.displayName="WeightInput",Zs.defaultProps={weightUnit:"lb"};export{Pa as AcceptedFileTypes,Ne as Accordion,Ot as ActionMenu,qt as Alert,Kt as Anchor,tn as AnimatedDropdown,on as Avatar,fn as Badge,Sn as Banner,J as BaseContainer,Tn as Breadcrumbs,Ze as Button,lt as Card,Ue as CardHeader,oo as Checkbox,Jn as Choice,so as ChoiceList,po as CopyToClipboard,To as DATE_RANGE_OPTIONS,Ro as DEFAULT_PRESET,Bo as DEFAULT_RANGE,Ri as DataTable,Eo as DateRangeInput,Ho as DateRangePicker,Fo as DateRanges,Vi as DescriptionList,Ki as DetailPage,cr as DimensionsInput,wt as Dropdown,_a as FileSizeUnit,yr as FilterTag,St as FocusVisibleManager,xr as Grid,Nr as Image,Ui as InputGroup,yl as LegacyDataTable,Fe as Loader,Cl as LoginWithAmazonButton,Ml as Modal,Wl as Pagination,yt as Popover,os as Popup,dt as Portal,Kl as PriceInput,ro as Radio,Wn as RangeCalendar,Gl as ScreenReaderOnly,na as Search,aa as SegmentedControl,$o as Select,ma as ShortcutKeys,wa as SimpleTable,Ea as Skeleton,La as Slider,Rt as Stack,Vl as Stepper,Ia as Tag,he as Text,nr as TextField,ja as ToastsLayout,Io as Toggle,Ha as ToggleButton,gn as Tooltip,Ga as UploadFile,as as VideoModal,fs as View,Ls as ViewTab,As as ViewsContainer,Zs as WeightInput,mt as buildClassnames,jo as checkIfDateRangeInvalid,st as generateId,Mo as getDateRange,gt as getOpaqueHexColor,pt as hexToRgb,bt as isExternalLink,ue as theme,Ko as useCellWidths,Et as useClickOutside,Jo as useColumns,Ct as useDebounce,Qo as useDragToScroll,$t as useDropdown,Nt as useFocusVisible,Lt as useHover,Dt as useId,It as useIsOverflowing,ei as useNested,ti as useScrollPosition,si as useSelection,zt as useTabs,xo as withDeprecated,yo as withLabels};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|