@veeqo/ui 8.0.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/types.d.ts +3 -1
- package/dist/components/Calendars/components/Calendar/Calendar.d.ts +3 -5
- package/dist/components/Calendars/components/Calendar/utils.d.ts +0 -0
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.d.ts +3 -5
- package/dist/components/Calendars/data/useIsDateUnavailable.d.ts +6 -9
- package/dist/components/Calendars/index.d.ts +1 -0
- package/dist/components/DateInputField/DateInputField.d.ts +1 -1
- package/dist/components/DateInputField/types.d.ts +23 -16
- package/dist/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/styled.d.ts +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts +0 -1
- package/dist/components/DateRangePicker/types.d.ts +2 -3
- package/dist/components/DimensionsInput/styled.d.ts +1 -0
- package/dist/components/Modal/types.d.ts +1 -0
- package/dist/components/Pagination/styled.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/hooks/useUpdateAriaAnchor.d.ts +2 -1
- package/dist/components/Popover/types.d.ts +4 -0
- package/dist/components/VideoModal/styled.d.ts +1 -0
- package/dist/components/ViewsContainer/styled.d.ts +3 -0
- package/dist/components/WeightInput/styled.d.ts +1 -0
- package/dist/components/index.d.ts +3 -2
- 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/package.json +1 -1
- package/dist/components/DateRangePicker/utils.d.ts +0 -6
- /package/dist/components/{DateRangePicker/utils.test.d.ts → Calendars/data/useIsDateUnavailable.test.d.ts} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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 h,createGlobalStyle as g}from"styled-components";import{MenuItem as b,Section as f,Menu as v,Text as y,RangeCalendar as x,CalendarGrid as w,CalendarGridHeader as E,CalendarHeaderCell as C,CalendarGridBody as $,CalendarCell as k,useContextProps as S,HeadingContext as N,Button as L,useLocale as I,Calendar as z,Group as D,DateField as F,DateInput as O,DateSegment as M}from"react-aria-components";import{usePopper as T}from"react-popper";import A from"resize-observer-polyfill";import R,{createPortal as j}from"react-dom";import{uid as B}from"uid/secure";import{CSSTransition as H,TransitionGroup as W}from"react-transition-group";import{today as P,getLocalTimeZone as Y,CalendarDate as V,isWeekend as _,now as Z,startOfYear as q,startOfMonth as X,startOfWeek as K,endOfMonth as U}from"@internationalized/date";import G from"lodash.throttle";import{useScroll as J,usePrevious as Q}from"react-use";import ee from"react-scrolllock-configurable";const te=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,ne={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},oe=(e,t)=>e||(t?ne[t]:void 0),ie={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"}}},re={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},le={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var ae,se;!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)"}(ae||(ae={})),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"}(se||(se={}));const de=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}),ce={[se.none]:"0",[se.line]:"1px",[se.xs]:de[1],[se.sm]:de[2],[se.base]:de[4],[se.md]:de[6],[se.lg]:de[8],[se.xl]:de[12],[se.xxl]:de[16]},ue=Object.assign(Object.assign({},ce),de),me={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},pe={headingXXL:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:ie.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},he=e=>h`font-family:${e.fontFamily};font-style:${e.fontStyle};font-weight:${e.fontWeight};font-size:${e.fontSize};line-height:${e.lineHeight};color:${e.color};text-decoration:${e.textDecoration};letter-spacing:${e.letterSpacing};`,ge=Object.assign(Object.assign({},me),{breakpoints:re,colors:ie,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:le,shadows:ae,sizes:ue,text:pe}),{text:be,colors:fe,fontFamily:ve}=ge,ye=p.span.attrs((({as:e,variant:t})=>({as:oe(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:${ve};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?fe.neutral.ink.lightest:be[e].color;return`\n font-family: ${be[e].fontFamily};\n font-style: ${be[e].fontStyle};\n font-weight: ${be[e].fontWeight};\n font-size: ${be[e].fontSize};\n line-height: ${be[e].lineHeight};\n color: ${n};\n text-decoration: ${be[e].textDecoration};\n letter-spacing: ${be[e].letterSpacing};\n `}}`,xe=p(te).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,we=p(xe).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${ue.base};width:${ue.base};color:${({glyphColor:e})=>e};}`,Ee=p(xe).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Ce=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 ${ge.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${ge.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${ge.colors.secondary.blue.light};}`,$e=p(te).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,ke=p(ye).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,Se=p(u(te)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Ne=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,Le=p(u(te)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,Ie=p.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${ge.colors.secondary.blue.light};}`,ze=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ue.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"})),De=({className:n,children:o,label:i,iconSlot:r,glyphColor:l=ie.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d,variant:c="default",summaryTextVariant:m="body"})=>{const[p,h]=t(!!d),g=()=>h(!p),b={initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}};return"unstyled"===c?e.createElement(Ne,{open:!!d,className:n},e.createElement(Ie,{onClick:g},e.createElement($e,null,e.createElement(we,{glyphColor:l},r,e.createElement(ye,{variant:m},i)),e.createElement(Ee,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(ze,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(ke,{variant:"hintText"},s)),p&&e.createElement(Le,Object.assign({},b),o)):e.createElement(Ne,{open:!!d,className:n},e.createElement(Ce,{onClick:g},e.createElement($e,null,e.createElement(we,{glyphColor:l},r,e.createElement(ye,{variant:m},i)),e.createElement(Ee,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(ze,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(ke,{variant:"hintText"},s)),p&&e.createElement(Se,Object.assign({},b),o))};function Fe(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 Oe=({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"}))))),Me=({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"}))),Te=({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"}))),Ae=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(Me,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(Te,{className:t,height:n,width:o,color:i});default:return e.createElement(Oe,{className:t,height:n,width:o,color:i})}},Re=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})=>ue[e]};height:${({size:e})=>ue[e]};}`,je=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:${ge.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(je).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${ge.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?ge.colors.neutral.ink.base:ge.colors.secondary.blue.base};&:hover{background-color:${ge.colors.neutral.grey.lightest};}&:active{background-color:${ge.colors.neutral.grey.lightest};border-color:${ge.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${ge.colors.neutral.grey.base} !important;border-color:${ge.colors.neutral.grey.base} !important;color:${ge.colors.neutral.ink.light} !important;}`,He=p(Be).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${ge.colors.secondary.red.base};&:hover{color:${ge.colors.secondary.red.dark};}&:active{border-color:${ge.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.red.light};color:${ge.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.red.light};}`,We=p(Be).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${ge.colors.secondary.blue.base};border-color:${ge.colors.secondary.blue.base};color:white;&:hover{background-color:${ge.colors.secondary.blue.dark};border-color:${ge.colors.secondary.blue.dark};}&:active{background-color:${ge.colors.secondary.blue.dark};border-color:${ge.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};}`,Pe=p(We).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${ge.colors.secondary.red.base};border-color:${ge.colors.secondary.red.base};color:white;&:hover{background-color:${ge.colors.secondary.red.dark};border-color:${ge.colors.secondary.red.dark};}&:active{background-color:${ge.colors.secondary.red.dark};border-color:${ge.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.red.light};}`,Ye=p(je).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${ge.colors.neutral.ink.base};&:hover{background-color:${ge.colors.neutral.grey.light};}&:active{background-color:${ge.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,Ve=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,_e=p(Ve).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${ge.text.link.fontFamily};font-size:${ge.text.link.fontSize};line-height:${ge.text.link.fontSize};font-weight:${ge.text.link.fontWeight};line-height:${ge.text.link.lineHeight};text-decoration:${ge.text.link.textDecoration};color:${ge.colors.secondary.blue.base};&:hover{color:${ge.colors.secondary.blue.dark};}& > * + *{margin-left:${ge.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${ge.colors.secondary.blue.light};border-radius:4px;}`,Ze=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;`,qe=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"})),Xe={default:Be,primary:We,destructive:He,primaryDestructive:Pe,flat:Ye,link:_e,unstyled:Ve},Ke=n(((t,n)=>{var{className:o,children:i,iconSlot:r,variant:l="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=Fe(t,["className","children","iconSlot","variant","size","dropdown","loading"]);if("unstyled"===l)return e.createElement(Ve,Object.assign({ref:n,className:o},c),i);const u=Xe[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(Re,{$loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},r&&r,void 0!==i&&i,s&&e.createElement(qe,null)),d&&e.createElement(Ze,null,e.createElement(Ae,null)))})),Ue=p.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${ue.md};padding-right:${ue.md};padding-left:${ue.md};margin-bottom:${ue.md};& > * + *{margin-top:${ue.xs};}`,Ge=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${ue.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Je=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ue.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"})),Qe=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"})),et=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,actionSlot:l,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(Ue,null,e.createElement(Ge,null,e.createElement(ye,{id:t,variant:i},n),r&&e.createElement(Ke,{variant:"link",onClick:r.onClick},r.title),l,s&&e.createElement(Ke,{variant:"flat",iconSlot:a?e.createElement(Je,null):e.createElement(ze,null),onClick:s}),d&&e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(ye,{variant:"subheadingSmall"},o)),{grey:tt}=ie.neutral,nt={0:"none",1:ae.sm,2:ae.base,3:ae.md,4:ae.lg},ot={info:ie.secondary.blue.base,success:ie.secondary.green.base,error:ie.secondary.red.base},it=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${ue.base};padding:${ue.md};z-index:2;`,rt=p.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${ue.md};padding-left:${ue.md};margin-top:${ue.md};margin-bottom:${ue.md};font-family:${pe.body.fontFamily};font-size:${pe.body.fontSize};font-weight:${pe.body.fontWeight};line-height:${pe.body.lineHeight};color:${pe.body.color};& + &{border-top:${ue.line} solid ${tt.base};padding-top:${ue.md};}`,lt=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${ue.md};margin-right:-${ue.md};`,at=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${rt}:first-child{margin-top:0;}`,st=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${ue.line} solid ${tt.base};box-shadow:${e=>void 0!==e.elevation?nt[e.elevation]:ae.sm};border-radius:${le.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: ${ue.xs};\n background-color: ${ot[e]};\n }\n `}`,dt={expanded:{height:"auto"},collapsed:{height:0}},ct=({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[h,g]=t(!1),b=i&&e.createElement(et,{title:i,subtitle:r,actionSlot:l,action:a,onClickClose:m,isCollapsed:h,onClickCollapse:s?()=>{g(!h)}:void 0}),f=s&&!h||!s,v=e.createElement(at,{animate:f?"expanded":"collapsed",variants:dt,transition:{duration:.3,ease:"easeOut"}},e.createElement(rt,null,u)),y=void 0!==p&&e.createElement(it,null,p());return e.createElement(st,{className:n,style:o,elevation:d,accent:c},b,v,y)};ct.Surface=st,ct.Section=rt,ct.FullBleed=lt,ct.Footer=it;const ut=p(u(ct.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${ge.colors.neutral.grey.base};border-radius:${ge.radius.base};padding:${ge.sizes.base};`,mt=e=>{const t=B();return e?`${e}-${t}`:t};class pt extends o{constructor(e){super(e),this.id=mt("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?j(e,this.portalNode):null}}const ht=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,gt=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,bt=e=>e.filter(Boolean).join(" "),ft=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},vt=(e,t)=>{const n=ft(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},yt=["app.veeqo.com"];function xt(e,t=yt){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 wt='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])',Et=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:o=!1})=>{i((()=>{if(!e||o)return;const t=e.querySelectorAll(wt);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(wt);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(wt),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))}}},Ct=n=>{var{id:o,children:l,zIndex:a=ge.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:h=!1,useAnchorWidth:g}=n,b=Fe(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[f,v]=t(null),{styles:y,attributes:x,update:w}=T(d,f,{placement:s}),E=r((()=>o||mt("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:$}=Et({popperElement:f,anchorElement:d,onClose:C,disableFocusLock:p});return i((()=>{if(!w||!f)return;const e=new A(w);return e.observe(f),()=>e.disconnect()}),[w,f]),i((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),e.createElement(pt,{rootElementRef:c},!h&&e.createElement(gt,{onClick:C,zIndex:a,"data-testid":"popover-backdrop"}),e.createElement(ht,Object.assign({open:!0,id:E,zIndex:a,ref:v,style:Object.assign(Object.assign(Object.assign({},y.popper),m),g?{minWidth:null==d?void 0:d.clientWidth}:{}),onKeyDown:$},x.popper,b),l))},$t=t=>{var{id:n,children:o,className:r,style:l,reversed:a,anchorElement:s,useAnchorWidth:d,onShouldClose:c}=t,u=Fe(t,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return i((()=>()=>null==s?void 0:s.focus()),[s]),e.createElement(Ct,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:c,useAnchorWidth:d,placement:"bottom-start"},u),e.createElement(m,null,e.createElement(ut,{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)))},kt=t=>{var{id:n,shouldShow:o,setShouldShow:i,ctaIconSlot:r,ctaProps:a}=t,s=Fe(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=l(null);return e.createElement(e.Fragment,null,e.createElement(Ke,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":n,onClick:()=>null==i?void 0:i(!o),iconSlot:r,dropdown:!0},a)),o&&e.createElement($t,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==i?void 0:i(!1)},s)))},St=(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},Nt=(e,n)=>{const[o,r]=t(e);return i((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),o},Lt=({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}},It=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function zt({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(It.Provider,{value:{hadKeyboardEvent:o,isInitialized:!0}},n)}function Dt(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(It),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 Ft=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},Ot=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)}}},Mt=(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)}]},Tt=({id:e,prefix:t})=>r((()=>e||mt(t)),[e,t]),At=p(b).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:grid;grid-template-areas:'label''description';cursor:pointer;margin:${ge.sizes.xs};padding:${ge.sizes.sm};border-radius:${ge.radius.base};outline:0;&:is(a){${he(ge.text.link)}}&:is(div){${he(ge.text.body)}}white-space:nowrap;&[data-focused]{color:${ge.colors.secondary.blue.base};box-shadow:0 0 0 4px ${ge.colors.secondary.blue.light};}&[data-hovered]{background-color:${ge.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${ge.colors.neutral.grey.lightest};color:${ge.colors.neutral.ink.light};}[slot='label']{grid-area:label;}[slot='description']{grid-area:description;color:${ge.colors.neutral.ink.light};font-size:12px;}`,Rt=p(f).withConfig({displayName:"vui--Section",componentId:"vui--1lpesff"})`&:not(:first-child){margin-top:0.5rem;border-top:1px solid ${ge.colors.neutral.grey.base};padding-top:0.5rem;}`,jt=({id:n,menuLabel:o,ctaProps:i,actions:r,children:l})=>{var a;const[s,d]=t(!1),c=Tt({id:n,prefix:"action-menu"});return e.createElement(kt,{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(At,Object.assign({},t,{key:t.id||(null===(n=t.children)||void 0===n?void 0:n.toString())}))})),l))};var Bt;jt.Item=At,jt.Section=Rt,jt.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 Ht=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=ge.sizes[i],a="column"):(r=o&&Bt[o],l=n&&Bt[n],c=ge.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 Wt=p(Ht).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--yb86nz"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${ge.radius.base};background-color:${({colours:{background:e}})=>e};`,Pt={base:ge.sizes.base,sm:ge.sizes[3],xs:ge.sizes.sm},Yt={base:ge.sizes.md,sm:ge.sizes[5],xs:ge.sizes[5]},Vt=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"})),_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"})),Zt=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"})),qt=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"})),Xt={default:Zt,error:Vt,success:qt,info:_t,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"}))},Kt={default:{primary:ge.colors.neutral.ink.base,background:ge.colors.neutral.grey.lightest},error:{primary:ge.colors.secondary.red.base,background:ge.colors.secondary.red.lightest},success:{primary:ge.colors.secondary.green.base,background:ge.colors.secondary.green.lightest},info:{primary:ge.colors.secondary.blue.base,background:ge.colors.secondary.blue.lightest},warning:{primary:ge.colors.secondary.orange.base,background:ge.colors.secondary.orange.lightest},recommend:{primary:ge.colors.secondary.purple.dark,background:ge.colors.secondary.purple.lightest}},Ut=t=>{var{size:n="base",variant:o="default",colours:i,rightActions:r,rightActionsSlot:l,title:a,titleSlot:s,messageSlot:d,message:c,children:u,iconSlot:m,onClickClose:p}=t,h=Fe(t,["size","variant","colours","rightActions","rightActionsSlot","title","titleSlot","messageSlot","message","children","iconSlot","onClickClose"]);const g=null!=i?i:Kt[o],b=m||Xt[o],f="xs"===n;return e.createElement(Wt,Object.assign({colours:g,direction:"horizontal",alignX:"between",spacing:"0"},h),e.createElement(Ht,{direction:"horizontal",alignY:f?"center":"start",style:{margin:Pt[n],gap:Pt[n]},spacing:0},e.createElement(b,{"aria-hidden":!0,style:{minWidth:Yt[n],minHeight:Yt[n],width:Yt[n],height:Yt[n]},color:g.primary}),u||e.createElement(Ht,{direction:"vertical",spacing:f?0:"xs"},s||e.createElement(ye,{variant:f?"bodySmallBold":"bodyBold",style:"base"===n?{lineHeight:"24px"}:{}},a),d||e.createElement(ye,{variant:f?"bodySmall":"body"},c))),e.createElement(Ht,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:f?void 0:ge.sizes[3],gap:f?void 0:Pt[n],alignItems:"center"}},l,r&&e.createElement(Ht,{alignY:"center",spacing:0,style:{gap:Pt[n]}},r.map((t=>{var{label:n}=t,o=Fe(t,["label"]);return e.createElement(Ke,Object.assign({key:n,type:"button",size:"sm"},o),n)}))),p&&e.createElement(Ht,{alignY:f?"center":"start",style:{height:"100%",padding:f?ge.sizes.xs:void 0}},e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,null),onClick:p,"aria-label":"Close",size:"sm"}))))},Gt={default:ge.colors.neutral.ink.dark,error:ge.colors.secondary.red.darkest,success:ge.colors.neutral.ink.dark,info:ge.colors.neutral.ink.dark,warning:ge.colors.neutral.ink.dark,recommend:ge.colors.neutral.ink.dark},Jt={minWidth:ge.sizes[4],minHeight:ge.sizes[4],width:ge.sizes[4],height:ge.sizes[4]},Qt=p.div.withConfig({displayName:"vui--MiniAlertContainer",componentId:"vui--1n2xu5o"})`display:flex;gap:${ge.sizes.xs};`,en=({title:t,variant:n="default",iconSlot:o,customTitleColour:i,customIconColour:r})=>{const l=o||Xt[n],a=null!=r?r:Kt[n].primary,s=null!=i?i:Gt[n];return e.createElement(Qt,null,e.createElement(l,{"aria-hidden":!0,color:a,style:Jt}),e.createElement(ye,{variant:"bodySmallBold",style:{color:s}},t))},tn=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${ge.text.link.fontFamily};font-style:${ge.text.link.fontStyle};font-weight:${ge.text.link.fontWeight};font-size:${ge.text.link.fontSize};line-height:${ge.text.link.lineHeight};color:${ge.colors.secondary.blue.base};text-decoration:${ge.text.link.textDecoration};&:hover{color:${ge.colors.secondary.blue.dark};}`,nn=t=>{var{children:n,href:o,rel:i,allowedHostnames:r=yt}=t,l=Fe(t,["children","href","rel","allowedHostnames"]);const a=xt(o,r),s=i||(a?"noopener noreferrer":void 0);return e.createElement(tn,Object.assign({href:o,rel:s},l),n)},on=p(te).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;`,rn=n(((t,n)=>{const{children:o,className:i,role:r}=t;return e.createElement(on,{className:i,ref:n,role:r},o)})),ln=p(te).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,an=p(te).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,sn=p(rn).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${ge.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);}`,dn=({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 h=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])})(h,(e=>{n&&s(e)})),e.createElement(ln,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:h},!a&&t,e.createElement(an,{className:`${r}-wrap ${r}`},e.createElement(H,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(sn,{role:"dialog",reversed:a,className:`${r}-basic-dropdown ${r}`},o))),a&&t)},cn=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${ge.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:${ge.text.bodySmallBold.fontFamily};font-weight:${ge.text.bodySmallBold.fontWeight};font-size:${ge.text.bodySmallBold.fontSize};line-height:${ge.text.bodySmallBold.lineHeight};}`,un=({width:t="40px",name:n="Veeqo",bgColor:o=ge.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(cn,{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))))},mn=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,pn=p(mn).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,hn=p(ye).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${ge.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,gn=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,bn=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;}`,fn=p(mn).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 vn;!function(e){e.BOTTOM="bottom",e.TOP="top"}(vn||(vn={}));const yn={duration:400,side:vn.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},xn=({content:n,text:o,hoverableElement:i,config:r,reversed:l,withTriangle:a,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},yn),r),{duration:m,side:p,triangleOffset:h,tipMinWidth:g,tipMaxWidth:b}=u,{styles:f,attributes:v}=T(i,d,{placement:`${p}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},f.popper),{zIndex:ge.layers.tooltip});return e.createElement(bn,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:h,style:y},v.popper,{role:"tooltip"}),e.createElement(fn,{className:s.wrap,tipMinWidth:g,tipMaxWidth:b},null!=n?n:e.createElement(hn,null,o)),a&&e.createElement(gn,{id:"veeqo-components-triangle",className:s.triangle}))},wn=({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,h]=t(null),g=!!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&&!g);if(!f)return n;const v=u&&f&&e.createElement(xn,{classNames:b,hoverableElement:p,config:r,reversed:l,withTriangle:s,text:o,content:i});return e.createElement(mn,{className:b.container},c?R.createPortal(v,document.body):v,e.createElement(pn,{ref:h,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},En=p(te).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:${pe.bodySmall.fontFamily};font-weight:${pe.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${ue.base};height:${ue.base};}`,Cn={default:p(En).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${ie.secondary.blue.base};color:${ie.secondary.blue.base};`,primary:p(En).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${ie.secondary.blue.base};background-color:${ie.secondary.blue.lightest};color:${ie.secondary.blue.base};`,warning:p(En).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${ie.secondary.yellow.base};background-color:${ie.secondary.yellow.lightest};color:${ie.secondary.orange.dark};`},$n=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:l,children:a})=>{const s=Cn[t];return e.createElement(wn,{text:i},e.createElement(s,{className:bt([r,l]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},kn=p(te).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"};`,Sn=p(te).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Nn=p(te).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Ln=p(Nn).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${ue.md};height:${ue.md};color:${({accentColor:e})=>e};}`,In=p(te).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,zn=p(Nn).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Dn=p(ye).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Fn={help:ie.secondary.blue.base,info:ie.neutral.ink.base,error:ie.secondary.red.base,success:ie.secondary.green.base},On=t=>{var{type:n="info",text:o,iconSlot:i,onClose:r,className:l,header:a,children:s,backgroundColor:d="white"}=t,c=Fe(t,["type","text","iconSlot","onClose","className","header","children","backgroundColor"]);const u=Fn[n];return e.createElement(kn,Object.assign({accentColor:u,className:l,backgroundColor:d},c),e.createElement(Sn,null,i&&e.createElement(Ln,{style:{marginRight:ue.md},accentColor:u},i),s?e.createElement(In,null,s):e.createElement(e.Fragment,null,e.createElement(zn,null,a||e.createElement(Dn,{variant:"headingSmall"},o)),e.createElement(Nn,null,r&&e.createElement(Ke,{variant:"flat","aria-label":"Close",iconSlot:e.createElement(Qe,null),onClick:r})))))},Mn=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${pe.body.fontFamily};font-weight:${pe.body.fontWeight};font-size:${pe.body.fontSize};line-height:${pe.body.lineHeight};`,Tn=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;}`,An=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"})),Rn=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(Tn,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(Tn,{className:"breadcrumb"},n,t),jn=()=>e.createElement(An,{className:"separator",width:ue.base,height:ue.base}),Bn=({children:t,href:n})=>e.createElement("a",{href:n},t),Hn=({children:t})=>e.createElement("span",null,t),Wn=({items:t,Separator:n=e.createElement(jn,null),LinkComponent:o=Bn})=>e.createElement(Mn,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(Rn,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Hn},t.length!==r+1&&n)))),Pn=h`.react-aria-Button{color:${ge.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:${ge.sizes.base};height:${ge.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ge.colors.secondary.blue.light};}&:active,&:hover{background-color:${ge.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${ge.colors.neutral.grey.base};cursor:default;}}`,Yn=h`.react-aria-CalendarCell{width:30px;line-height:30px;border-radius:${ge.radius.md};border:1px solid transparent;cursor:pointer;text-align:center;&[data-hovered]{background-color:${ge.colors.neutral.grey.base};}&[data-focus-visible],&[data-focused]{outline:2px solid ${ge.colors.secondary.blue.light};}&[data-selected]{background:${ge.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${ge.colors.secondary.blue.light};}}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{cursor:not-allowed;text-decoration:line-through;color:${ge.colors.secondary.red.dark};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${ge.colors.neutral.ink.lightest};}&[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;}}`,Vn=h`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${he(ge.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${ge.sizes.sm};}`,_n=h`width:fit-content;max-width:100%;min-width:225px;color:${ge.colors.neutral.ink.base};font-size:14px;font-family:${ge.fontFamily};${Vn} ${Pn} ${Yn} & table{height:fit-content;border-collapse:separate;border-spacing:0 ${ge.sizes.xs};& td{padding:0;&:has(div[data-today='true']){& > div{border:1px solid ${ge.colors.neutral.ink.lightest};}&:has(div[data-selected]){background-color:${ge.colors.secondary.blue.base};& > div{border:1px solid ${ge.colors.secondary.blue.darkest};border-radius:${ge.radius.md};}&:has(div[data-selection-start]){border-start-start-radius:6px;border-end-start-radius:6px;}&:has(div[data-selection-end]){border-start-end-radius:6px;border-end-end-radius:6px;}}}}}`,Zn=p(x).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1dva9jw"})`${_n};`,qn=p(te).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?ue[e]:0};`,Xn=p.button.withConfig({displayName:"vui--SubCalendarOption",componentId:"vui--140wlkz"})`display:flex;flex-direction:column;justify-content:center;align-items:center;${he(ge.text.body)};width:60px;height:32px;padding:0;border:none;outline:none;border-radius:${ge.radius.md};background-color:white;&:hover{cursor:pointer;background-color:${ge.colors.neutral.grey.base};}&:focus-visible,&:active{color:white;background-color:${ge.colors.secondary.blue.base};&:not([data-selected]){outline:2px solid ${ge.colors.secondary.blue.light};}}`,Kn=({currentYear:t,onFocusYear:n})=>{return e.createElement(qn,{columns:3,spacing:"sm",role:"grid"},(o=t,Array.from({length:12},((e,t)=>o-5+t))).map((t=>e.createElement(Xn,{key:`year-option-${t}`,"aria-label":`Go to ${t}`,onClick:n(t)},t))));var o},Un=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gn=({onFocusMonth:t})=>e.createElement(qn,{columns:3,spacing:"sm",role:"grid"},Un.map(((n,o)=>e.createElement(Xn,{key:`month-option-${n}`,"aria-label":`Go to ${n}`,onClick:t(o)},n)))),Jn=t=>{const n=P(Y());return e.createElement(w,Object.assign({weekdayStyle:"short"},t),e.createElement(E,null,(t=>e.createElement(C,null,t.slice(0,2)))),e.createElement($,null,(t=>e.createElement(k,{date:t,"data-today":0===t.compare(n)}))))};var Qn;!function(e){e[e.DODECADE=0]="DODECADE",e[e.YEAR=1]="YEAR",e[e.MONTH=2]="MONTH"}(Qn||(Qn={}));const eo=({level:t,currentYear:n,onFocusMonth:o,onFocusYear:i})=>t===Qn.YEAR?e.createElement(Gn,{onFocusMonth:o}):t===Qn.DODECADE?e.createElement(Kn,{currentYear:n,onFocusYear:i}):e.createElement(Jn,null),to={[Qn.DODECADE]:{years:10},[Qn.YEAR]:{years:1},[Qn.MONTH]:{months:1}},no={[Qn.DODECADE]:"View Day Selection",[Qn.YEAR]:"View Year Selection",[Qn.MONTH]:"View Month Selection"},oo=()=>{const[e,n]=t(Qn.MONTH);return{level:e,handleSwitchLevel:()=>{e===Qn.MONTH?n(Qn.YEAR):e===Qn.YEAR?n(Qn.DODECADE):n(Qn.MONTH)},setLevel:n}},io=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"})),ro=n(((t,n)=>{const[o,i]=S(t,n,N),{children:l,level:a,currentYear:s}=o,d=Fe(o,["children","level","currentYear"]),c=r((()=>a===Qn.DODECADE?`${s-5} - ${s+6}`:a===Qn.YEAR?s.toString():l.replace(/\b(\w{1,3})(\w*)\b/g,((e,t)=>/\d/.test(e)?e:t))),[a,s,l]);return e.createElement(ye,Object.assign({variant:"headingSmall"},d,{ref:i,style:{whiteSpace:"nowrap"}}),c)})),lo=({level:t,currentYear:n,handleSwitchLevel:o,isDisabled:i})=>e.createElement(Ht,{as:"header",direction:"horizontal",alignX:"between",alignY:"center",spacing:"0"},e.createElement(L,{slot:"previous",isDisabled:i},e.createElement(io,null)),e.createElement(Ht,{direction:"horizontal",alignY:"center",alignX:"stretch",spacing:"xs",style:{margin:"0 4px"}},e.createElement(ro,{level:t,currentYear:n}),e.createElement(Ke,{"aria-label":no[t],variant:"flat",iconSlot:t===Qn.DODECADE?e.createElement(ze,null):e.createElement(Je,null),size:"sm",onClick:o,disabled:i})),e.createElement(L,{slot:"next",isDisabled:i},e.createElement(An,null))),ao=({disabledRanges:e,disallowWeekends:t})=>{const{locale:n}=I();return{isDateUnavailable:o=>!!t&&_(o,n)||e.some((e=>o.compare(e[0])>=0&&o.compare(e[1])<=0))}},so=n=>{var{disabledRanges:o=[],disallowWeekends:r=!1,value:l,onChange:a,isDisabled:s}=n,d=Fe(n,["disabledRanges","disallowWeekends","value","onChange","isDisabled"]);const{level:c,focusedDate:u,setFocusedDate:m,currentYear:p,onFocusMonth:h,onFocusYear:g,handleSwitchLevel:b}=(e=>{const[n,o]=t((null==e?void 0:e.start)||P(Y())),{level:r,setLevel:l,handleSwitchLevel:a}=oo();i((()=>{e&&o(e.start)}),[e]);const s=(null==n?void 0:n.year)||(null==e?void 0:e.start.year)||(new Date).getFullYear(),d=(null==n?void 0:n.month)||(null==e?void 0:e.start.month)||(new Date).getMonth()+1;return{level:r,focusedDate:n,setFocusedDate:o,currentYear:s,onFocusMonth:e=>()=>{o(new V(s,e+1,1)),l(Qn.MONTH)},onFocusYear:e=>()=>{o(new V(e,d,1)),l(Qn.YEAR)},handleSwitchLevel:a}})(l),{isDateUnavailable:f}=ao({disabledRanges:o,disallowWeekends:r});return e.createElement(Zn,Object.assign({focusedValue:u,onFocusChange:m,isDateUnavailable:f,visibleDuration:to[c],value:l,onChange:a,isDisabled:s},d),e.createElement(lo,{currentYear:p,level:c,handleSwitchLevel:b,isDisabled:s}),e.createElement(eo,{level:c,currentYear:p,onFocusMonth:h,onFocusYear:g}))},co=p(z).withConfig({displayName:"vui--StyledCalendar",componentId:"vui--6d0gjz"})`${_n};& .react-aria-CalendarCell[data-selected],& table td{border-radius:8px;}`,uo=n=>{var{disabledRanges:o=[],disallowWeekends:r=!1,value:l,onChange:a,isDisabled:s}=n,d=Fe(n,["disabledRanges","disallowWeekends","value","onChange","isDisabled"]);const{level:c,focusedDate:u,setFocusedDate:m,currentYear:p,onFocusMonth:h,onFocusYear:g,handleSwitchLevel:b}=(e=>{const[n,o]=t(e||P(Y())),{level:r,setLevel:l,handleSwitchLevel:a}=oo();i((()=>{e&&o(e)}),[e]);const s=(null==n?void 0:n.year)||(null==e?void 0:e.year)||(new Date).getFullYear(),d=(null==n?void 0:n.month)||(null==e?void 0:e.month)||(new Date).getMonth()+1;return{level:r,focusedDate:n,setFocusedDate:o,currentYear:s,onFocusMonth:e=>()=>{o(new V(s,e+1,1)),l(Qn.MONTH)},onFocusYear:e=>()=>{o(new V(e,d,1)),l(Qn.YEAR)},handleSwitchLevel:a}})(l),{isDateUnavailable:f}=ao({disabledRanges:o,disallowWeekends:r});return e.createElement(co,Object.assign({focusedValue:u,onFocusChange:m,isDateUnavailable:f,visibleDuration:to[c],value:l,onChange:a,isDisabled:s},d),e.createElement(lo,{currentYear:p,level:c,handleSwitchLevel:b,isDisabled:s}),e.createElement(eo,{level:c,currentYear:p,onFocusMonth:h,onFocusYear:g}))},mo={top:"flex-start",center:"center"},po=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${ge.sizes.base};}`,ho=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>mo[e.align]};`,go=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,bo=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${ge.sizes.sm};}`,fo=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${ge.fontFamily};font-size:${ge.sizes[3]};line-height:${ge.sizes[4]};color:${ge.colors.neutral.ink.light};`,vo=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${ge.text.error.fontFamily};font-size:${ge.text.error.fontSize};font-weight:${ge.text.error.fontWeight};line-height:${ge.text.error.lineHeight};color:${ge.text.error.color};`,yo=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,xo=p(yo).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${ge.colors.neutral.grey.dark};border-radius:${ge.radius.md};padding:${ge.sizes.base} 0.75rem;&:hover{border-color:${ge.colors.secondary.blue.base};}`,wo=p(wn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,Eo=({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:h="left"})=>{const g={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(po,null,"left"===h&&e.createElement(ho,{align:d?"center":"top"},u),d&&e.createElement(go,null,d),o||i||l||s||c?e.createElement(bo,null,e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},s,o&&e.createElement(ye,{variant:p,className:g.label},o),r&&e.createElement(wo,{text:r,className:g.tooltip},e.createElement(_t,{name:"help",width:ge.sizes.base,color:ge.colors.neutral.ink.lightest}))),i&&e.createElement(fo,{className:g.hint},i),l&&e.createElement(vo,{className:g.error},l),c):null,"right"===h&&e.createElement(ho,{align:d?"center":"top"},u));return a?e.createElement(xo,{disabled:m,htmlFor:t,className:n},f):e.createElement(yo,{disabled:m,htmlFor:t,className:n},f)},{colors:Co,sizes:$o,radius:ko}=ge,So=p.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Co.neutral.ink.lightest};border-radius:${ko.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Co.secondary.blue.base};border-color:${Co.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:${$o[4]};background-position:center;}&:hover{border-color:${Co.secondary.blue.base};}&:active{border-color:${Co.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Co.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Co.secondary.blue.base};border-color:${Co.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:${$o[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Co.neutral.grey.base};border-color:${Co.neutral.grey.base};color:${Co.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>");}`,No=t=>{var{checked:n,indeterminate:o,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,h=Fe(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const g=r((()=>mt("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(Eo,Object.assign({id:g,disabled:c,className:m},h),e.createElement(So,{ref:b,id:g,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,onChange:f}))},Lo=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;}`,Io=n(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d,children:c}=t,u=Fe(t,["checked","value","name","disabled","onChange","id","children"]);const m=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),p=null!=d?d:mt("radio");return e.createElement(Eo,Object.assign({id:p,disabled:l},u),e.createElement(Lo,{id:p,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:m,ref:n}),c)})),zo=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Do=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${ge.text.inputLabel.fontFamily};font-size:${ge.text.inputLabel.fontSize};font-style:${ge.text.inputLabel.fontStyle};font-weight:${ge.text.inputLabel.fontWeight};line-height:${ge.text.inputLabel.lineHeight};text-decoration:${ge.text.inputLabel.textDecoration};color:${ge.text.inputLabel.color};`;class Fo 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?No:Io;return e.createElement(zo,{disabled:r},i&&e.createElement(Do,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 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",{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"})),Mo={width:ue.base,height:ue.base},To=p(Ke).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${ue.base};width:${ue.base};top:unset;}`,Ao=({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(wn,{text:i?"Copied!":"Copy to clipboard"},e.createElement(To,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,iconSlot:i?e.createElement(qt,Object.assign({color:ie.secondary.green.base},Mo)):e.createElement(Oo,Object.assign({color:ie.secondary.blue.base},Mo)),onClick:l}))},Ro=p.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${ge.text.inputLabel.fontFamily};font-size:${ge.text.inputLabel.fontSize};font-weight:${ge.text.inputLabel.fontWeight};line-height:${ge.text.inputLabel.lineHeight};color:${ge.text.inputLabel.color};`,jo=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${ge.fontFamily};font-size:${ge.sizes[3]};line-height:${ge.sizes[4]};color:${ge.colors.neutral.ink.light};`,Bo=p.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${ge.text.error.fontFamily};font-size:${ge.text.error.fontSize};font-weight:${ge.text.error.fontWeight};line-height:${ge.text.error.lineHeight};color:${ge.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ge.sizes[2]} * -1);width:2px;background-color:${ge.colors.secondary.red.base};}`,Ho=p(Ht).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Wo=p(wn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,Po=t=>n=>{var{label:o,hint:i,error:r,tooltip:l}=n,a=Fe(n,["label","hint","error","tooltip"]);const s=Tt({id:null==a?void 0:a.id,prefix:t.name});return o?e.createElement(Ho,{spacing:"sm",alignX:"stretch"},e.createElement("div",{style:{marginBottom:ge.sizes.xs}},e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(Ro,{id:`${s}-label`,htmlFor:s},o),l&&e.createElement(Wo,{text:l},e.createElement(_t,{width:ge.sizes.base,height:ge.sizes.base,color:ge.colors.neutral.ink.light}))),i&&e.createElement(jo,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))},Yo=t=>n=>(i((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Vo=p(D).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--cprola"})`${he(ge.text.body)} display:flex;align-items:center;justify-content:space-between;gap:8px;height:22px;z-index:1;border:1px solid ${ge.colors.neutral.ink.lightest};border-radius:${ge.radius.base};gap:${ge.sizes.xs};padding:${ge.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${ge.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${ge.colors.secondary.red.light};border:1px solid ${ge.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${ge.colors.secondary.red.light};\n border: 1px solid ${ge.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${ge.colors.neutral.ink.lightest};}.date-range-input-splitter{margin:0 ${ge.sizes.sm};}&[data-disabled]{cursor:not-allowed;background-color:${ge.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${ge.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:${ge.radius.base};&[data-invalid]{color:${ge.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${ge.colors.secondary.blue.dark};&[data-invalid]{background-color:${ge.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${ge.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,_o=Po((({id:t,className:n,style:o,shouldForceLeadingZeros:i=!0,rightAction:r,minValue:l,maxvalue:a,startValue:s,endValue:d,isDisabled:c,isReadOnly:u,isRangeInput:m=!1,hasError:p,"aria-label":h,"aria-describedby":g,"aria-labelledby":b,onChange:f,onChangeStartDate:v,onChangeEndDate:y})=>e.createElement(Ht,{direction:"horizontal",alignX:"stretch",alignY:"center",spacing:0},e.createElement(Vo,{style:o,className:n,"aria-label":h,"aria-describedby":g,"aria-labelledby":null!=b?b:`${t}-label`,$hasError:p,isDisabled:c},e.createElement(Ht,{spacing:0,direction:"horizontal",alignX:"center"},e.createElement(F,{shouldForceLeadingZeros:i,onChange:m?v:f,value:s,minValue:l,maxValue:a,"aria-describedby":g,"aria-labelledby":null!=b?b:`${t}-label`,"aria-label":m?"start date":"date",isDisabled:c,isReadOnly:u},e.createElement(O,{slot:"start"},(t=>e.createElement(M,{segment:t})))),m&&e.createElement(e.Fragment,null,e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement(F,{shouldForceLeadingZeros:i,onChange:y,value:d,minValue:l,maxValue:a,"aria-describedby":g,"aria-labelledby":null!=b?b:`${t}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},e.createElement(O,{slot:"end"},(t=>e.createElement(M,{segment:t})))))),r&&e.createElement(Ke,Object.assign({variant:"flat",style:{padding:"2px",height:"unset"}},r)))))),Zo=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;}`,qo=Po(n(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,u=Fe(t,["className","options","value","onChange","size","disabled","hasError"]);const m=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(Zo,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))))})));qo.displayName="Select";const Xo=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?ge.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Ko=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${ge.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${Xo}{box-shadow:0 0 0 4px ${ge.colors.brand.blue.light};}&:checked + ${Xo}{background-color:#0079d1;}&:disabled + ${Xo}{background-color:${ge.colors.neutral.grey.base};}&:checked:disabled + ${Xo}{background-color:${ge.colors.secondary.blue.light};}`,Uo=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;}${Xo}: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"};}${Ko}:checked + ${Xo}{&: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"});}}`,Go=p(te).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,Jo=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=Fe(t,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return e.createElement(Eo,Object.assign({id:o,inputPosition:u},m),e.createElement(Go,{className:i,disabled:d},e.createElement(Uo,{small:a,disabled:d,className:i},e.createElement(Ko,{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(Xo,{switched:l,disabled:d}))))})),Qo=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],ei=({options:n=Qo,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(ye,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:ge.sizes.sm,whiteSpace:"nowrap"}},e.createElement(Jo,{small:!0,switched:l,onClick:()=>{l&&(null==r||r(null)),a(!l)}}),"Compare previous period"),l&&e.createElement(qo,{"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 ti;!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"}(ti||(ti={}));const ni=e=>{const t=Z(Y());let n;switch(e){case ti.TODAY:n={start:t,end:t};break;case ti.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case ti.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case ti.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case ti.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case ti.LAST_MONTH:{const e=X(t.subtract({months:1}));n={start:e,end:U(e)};break}case ti.LAST_12_MONTHS:{const e=X(t.subtract({months:1}));n={start:X(e).subtract({months:12}),end:U(e)};break}case ti.WEEK_TO_DATE:n={start:K(t,navigator.language),end:t};break;case ti.MONTH_TO_DATE:n={start:X(t),end:t};break;case ti.YEAR_TO_DATE:n={start:q(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new V(t.year,t.month,t.day),end:new V(n.year,n.month,n.day)}})(n)},oi=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:ti.TODAY},{label:"Yesterday",value:ti.YESTERDAY},{label:"Last 7 Days",value:ti.LAST_7_DAYS},{label:"Last 30 Days",value:ti.LAST_30_DAYS},{label:"Last 90 Days",value:ti.LAST_90_DAYS},{label:"Last Month",value:ti.LAST_MONTH},{label:"Last 12 Months",value:ti.LAST_12_MONTHS},{label:"Week to Date",value:ti.WEEK_TO_DATE},{label:"Month to Date",value:ti.MONTH_TO_DATE},{label:"Year to Date",value:ti.YEAR_TO_DATE}],ii=ti.LAST_30_DAYS,ri=ni(ii),li=oi.find((({value:e})=>e===ii)),ai=({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))},si=p.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${ge.sizes.base};border-top:1px solid ${ge.colors.neutral.grey.base};`,di=t=>{var{className:n,style:o,isDisabled:l,showDatePresets:s=!0,onReset:d,disabledRanges:c,selectedPreset:u,setSelectedPreset:m,selectedRange:p,setSelectedRange:h,"aria-describedby":g,"aria-label":b}=t,f=Fe(t,["className","style","isDisabled","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const v=a((e=>t=>{const n={start:"start"===e?t:null==p?void 0:p.start,end:"end"===e?t:null==p?void 0:p.end};h(n)}),[null==p?void 0:p.end,null==p?void 0:p.start,h]),y=r((()=>ai({disabledRanges:c,selectedRange:p})),[c,p]),x=r((()=>p?(e=>oi.reduce(((t,n)=>{if(n.hidden||t)return t;const o=ni(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))(p):null),[p]);return i((()=>{m(x||oi[0])}),[x,m]),e.createElement(Ht,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:ge.sizes.base},o),className:n,"aria-describedby":g,"aria-label":b},s&&e.createElement(qo,{disabled:l,label:"Date Range",options:oi,value:null==u?void 0:u.value,onChange:e=>{h(ni(ti[e])),m(oi.find((({value:t})=>t===e))||oi[0])}}),e.createElement(_o,{isRangeInput:!0,isDisabled:l,label:"Start date - End date",onChangeStartDate:v("start"),onChangeEndDate:v("end"),startValue:p&&p.start,endValue:p&&p.end,error:y?"Range contains invalid dates":void 0}),f.showPreviousPeriod&&e.createElement(ei,Object.assign({},f)),e.createElement(si,null),e.createElement(Ht,{alignX:"center"},e.createElement(so,{"aria-label":"Selected Date Range",isDisabled:l,value:p,onChange:h,disabledRanges:c})),!!d&&e.createElement(e.Fragment,null,e.createElement(si,null),e.createElement(ct.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},e.createElement(Ke,{variant:"default",size:"sm",onClick:d,disabled:l},"Reset"))))};function ci(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function ui(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${ui(e.min,"max-content")}, ${ui(e.max)})`;default:return t||"1fr"}}function mi({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,stripingMode:i,columnWidths:r,columns:l}){const a=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 `)),s=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 `)),d="start"!==o&&"none"!==o,c=`\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: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,u="end"!==o&&"none"!==o,m=`\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: ${u?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,p=`\n tr:nth-child(odd) > td {\n background-color: ${ge.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${ge.colors.neutral.grey.base};\n }\n `,h=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${ge.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${ge.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${l.map((e=>{var t;return ui(null!==(t=r[e.id])&&void 0!==t?t:e.width)})).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?a:""}\n ${t.length>0?s:""}\n\n ${c}\n ${m}\n\n ${"nested"===i?h:p}\n `}var pi;!function(e){e.ascending="ascending",e.descending="descending"}(pi||(pi={}));const hi=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"})),gi=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"})),bi=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"})),fi=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===pi.ascending?e.createElement(gi,{color:ge.colors.neutral.ink.dark,size:o}):e.createElement(bi,{color:ge.colors.neutral.ink.dark,size:o}):e.createElement(hi,{size:o});function vi(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=G(l,50),t=new A(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}class yi extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const xi=({tableRef:e,columns:n,columnIds:o,columnWidths:r})=>{const[l,a]=t(r||{});return i((()=>{const e=n.reduce(((e,t)=>(e[t.id]=t.width,e)),{});const t=r?Object.assign({},l):e;Object.keys(e).forEach((n=>{void 0===typeof l[n]&&(t[n]=e[n])})),a(t)}),[JSON.stringify(o)]),i((()=>{r&&a(r)}),[r]),{setColumnWidth:({columnId:t,width:o})=>{const i=Object.assign({},l);return 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 yi(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:e,columnWidths:i}),i},columnWidths:l}};function wi(e,t,n,o){const{columnWidths:i,setColumnWidth:r}=xi({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e)),columnWidths:o}),l=a((({columnId:e,width:t})=>{const o=r({columnId:e,width:t});n&&n(o||i)}),[r,n,i]),s=e.filter((e=>!0!==e.hidden)),d=s.filter((e=>"left"===e.pinned)),c=s.filter((e=>"right"===e.pinned)),u=s.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...d,...u,...c],columnWidths:i,pinnedLeft:d,pinnedRight:c,setColumnWidth:l}}function Ei(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=>{var t,l,a;n&&(e.target instanceof HTMLElement&&(null===(a=null===(l=null===(t=e.target)||void 0===t?void 0:t.classList)||void 0===l?void 0:l.contains)||void 0===a?void 0:a.call(l,"th-divider"))||(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 Ci(){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 $i(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=G(r,50),n=new A(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const ki="56px",Si=p.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ki};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>ci(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>ge.sizes[e]};padding-right:${({spacing:e=3})=>ge.sizes[e]};border-bottom:1px solid ${ge.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Ni(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,l=Fe(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Si,Object.assign({},l)):e.createElement(Si,Object.assign({},l),e.createElement(No,{checked:n,indeterminate:o,onChange:i}))}const Li=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>ci(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>ge.sizes[e]};padding-right:${({spacing:e=3})=>ge.sizes[e]};color:${ge.text.bodySmall.color};font-family:${ge.text.bodySmall.fontFamily};font-size:${ge.text.bodySmall.fontSize};font-style:${ge.text.bodySmall.fontStyle};font-weight:${ge.text.bodySmall.fontWeight};line-height:${ge.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${ge.colors.secondary.blue.base};background-color:${ge.colors.neutral.grey.lightest};}`;function Ii(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:l}=t,a=Fe(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Li,Object.assign({},a),e.createElement(Io,{value:o,checked:n,disabled:l,onChange:i})):e.createElement(Li,Object.assign({},a),e.createElement(No,{value:o,checked:n,disabled:l,onChange:i}))}const zi=[[],()=>{}];function Di({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,l]=n||zi,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(Ni,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(Ii,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 Fi=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:${ge.colors.neutral.ink.lightest};`,Oi=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${ge.text.headingTable.color};font-family:${ge.text.headingTable.fontFamily};font-size:${ge.text.headingTable.fontSize};font-style:${ge.text.headingTable.fontStyle};font-weight:${ge.text.headingTable.fontWeight};line-height:${ge.text.headingTable.lineHeight};`,Mi=p(Oi).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 ${Fi}{background-color:${ge.colors.neutral.grey.light};color:${ge.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${ge.colors.secondary.blue.light};}`,Ti=p.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${ge.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;user-select:none;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,Ai=({columnId:t,setColumnWidth:n,minWidth:o})=>{const i=d(),r=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)`},l=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:i}=n,r=null==i?void 0:i.getBoundingClientRect().width,l=i.querySelector(".headerContent").getBoundingClientRect().width,a=o&&l<o?o:l,s=(e.clientX||0)-(t||0);return Math.max((r||0)+s,a+24)},a=e=>{window.removeEventListener("mouseup",a),window.removeEventListener("dragend",a),window.removeEventListener("mousemove",r),window.removeEventListener("drag",r),null==n||n({columnId:t,width:l({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"))},s=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:i.current},window.tableHeaders.minTranslate=(()=>{const{parentElement:e}=window.tableHeaders.dragDivider;return e.querySelector(".headerContent").getBoundingClientRect().width-e.getBoundingClientRect().width+24})(),window.addEventListener("mouseup",a),window.addEventListener("dragend",a),window.addEventListener("mousemove",r),window.addEventListener("drag",r))};return e.createElement(Ti,{ref:i,className:"th-divider",onMouseDown:s,onDragStart:s})};function Ri({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?Mi:Oi,c=t.sortable?{onClick:()=>{if(!n)return void console.warn("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===pi.ascending;let i=pi.ascending;return n&&o&&(i=pi.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.warn("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Si,Object.assign({},s,{zIndex:3}),e.createElement(wn,{text:t.tooltip},e.createElement(d,Object.assign({},c,{className:"headerContent"}),t.iconSlot,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Fi,null,e.createElement(fi,{sortState:n,columnId:t.id,size:5})))),i&&a<l-1&&e.createElement(Ai,{columnId:t.id,setColumnWidth:r,minWidth:null==t?void 0:t.resizeMinWidth}))}const ji=ge.colors.neutral.grey.base,Bi=ge.colors.neutral.grey.dark,Hi=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${ge.radius.base};background:${ji};background-image:linear-gradient(\n to right,\n ${ji} 0%,\n ${Bi} 20%,\n ${ji} 40%,\n ${ji} 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 Wi=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:${ki};background-color:white;`,Pi=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 ${ge.colors.neutral.grey.base};& > *{flex:1;}`;function Yi({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(Wi,{style:m},Ri({column:n}),e.createElement(Pi,null,l))}const Vi=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"})),_i=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"})),Zi=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 qi=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${ge.sizes.lg};padding-bottom:${ge.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${ge.sizes.md};`,Xi=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${ge.sizes.md};background-color:${ge.colors.neutral.grey.light};border-radius:${ge.radius.full};`,Ki=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ui=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${ge.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 `}`,Gi=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Ji=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${ge.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Qi=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,er={full:`border-width: 1px; border-radius: ${ge.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},tr=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${ge.colors.neutral.grey.dark};${({borderMode:e="full"})=>er[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function nr({children:n,intersectionTargetRef:o,containerRef:r,cellWidths:a,tableCss:s,stickyHeaderTop:d=0}){const c=l(null),[u,m]=t(!1),[p,h]=t({top:0,left:0,width:0,height:0}),g=l(null),b=()=>{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};h(n)},f=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=c.current)||void 0===e||e.scrollTo(t,0)};if(i((()=>{if(!o.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{m(!e.isIntersecting)}))}),{rootMargin:`-${d}px 100% 0px 100%`,threshold:1});return e.observe(o.current),()=>e.disconnect()}),[o.current]),i((()=>{u&&r.current&&b()}),[r.current,u]),i((()=>{if(!u)return;if(!r.current)return;const e=G(b,30),t=new A(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,u]),i((()=>{if(!u)return;if(!r.current)return;const e=G((()=>{var e;const{left:t}=(null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect())||{};t&&g.current!==t&&(b(),g.current=t)}),30);return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)}),[r.current,u]),i((()=>{f()}),[u]),i((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",f),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",f)}}),[r.current]),!u)return null;const v=Object.assign(Object.assign({},p),{height:ki,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${ge.colors.neutral.grey.base}`,borderTop:`1px solid ${ge.colors.neutral.grey.base}`,boxShadow:ae.base,top:`${d}px`||"0px"}),y=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:v,ref:c},e.createElement(Ji,{css:y},e.createElement("thead",null,n)))}const or=(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}),ir={iconSlot:e.createElement(Zt,{width:48,height:48}),heading:"No results"},rr=()=>{},lr=({actionBarSlot:t,borderMode:n,columns:o,emptyState:i=ir,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:h,sortState:g,stripingMode:b,enableStickyHeader:f,resizeableColumns:v,onResizeColumns:y,columnWidths:x,stickyHeaderTop:w})=>{const E=l(null),C=l(null),$=l(null);Ei(E);const k=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:S,selectedRowIds:N,selectionColumn:L,setSelected:I}=Di({selectionMode:m,selectionState:p,enabledRowIds:k}),z={setSelected:I||rr,setExpanded:h||rr},D=[L,...o],F=S?D:o,O=vi(C,E),{visible:M,pinnedLeft:T,pinnedRight:A,setColumnWidth:R,columnWidths:j}=wi(F,C,y,x),B=O.length===M.length?M.map(((e,t)=>Number.isNaN(j[e.id]||"")?O[t]:j[e.id])):O,{scrollPosition:H}=$i(E),W=mi({pinnedLeft:T,pinnedRight:A,cellWidths:B,scrollPosition:H,columnWidths:j,columns:M,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(tr,{borderMode:n},e.createElement(Gi,{ref:E},e.createElement(Ji,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ui,{role:"row"},M.map(((e,t)=>Ri({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:R,columnCount:M.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Ui,{key:t.id},M.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(Li,Object.assign({},o),e.createElement(Hi,null))}(t,n))))))))))}if(0===c.length)return e.createElement(tr,{borderMode:n},e.createElement(Gi,{ref:E},e.createElement(Ji,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ui,{role:"row"},M.map(((e,t)=>Ri({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:R,columnCount:M.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(qi,{columnCount:M.length},e.createElement(Xi,null,i.iconSlot),e.createElement(Ht,{spacing:"sm",alignX:"center"},e.createElement(ye,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(ye,{variant:"subheadingMedium"},i.subheading)))))));const P=t=>{const{e2eClassName:n="",accentColor:o}=t,i=or(t.id,{selectedRowIds:N,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ui,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),M.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,z,i))))},Y=(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=or(n,{selectedRowIds:N,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ui,{role:"row",key:t.id,className:l},M.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(Li,Object.assign({},i))}(t,n,a))))},V=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},P(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>Y(e,t.id)))))},_=e.createElement(Ui,{role:"row"},M.map(((e,t)=>Ri({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:R,columnCount:M.length,columnI:t})))),Z=o.some((e=>!!e.renderFooter)),q=N.length>0&&!!t;return e.createElement(tr,{borderMode:n},q&&e.createElement(Yi,{selectionColumn:L,intersectionTargetRef:$,containerRef:E},t),e.createElement(Gi,{ref:E},f&&e.createElement(nr,{tableCss:W,intersectionTargetRef:$,containerRef:E,cellWidths:B,stickyHeaderTop:w},_),e.createElement("div",{ref:$,style:{height:0}}),e.createElement(Ji,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},_),(()=>{const t=!!r;return t&&"nested"===b?c.map(V):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[P(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>Y(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(P))})(),Z&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Ui,{role:"row"},M.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(Li,Object.assign({},n))}({column:t}))))))))};lr.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},lr.Cell=Li,lr.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(Ke,{ref:l,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(Ct,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(ct,{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(Ke,{variant:"flat",iconSlot:e.createElement(Zi,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(Ke,{variant:"flat",iconSlot:e.createElement(_i,null),onClick:()=>m(n,!1),style:{color:ge.colors.neutral.ink.lightest}}):e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Vi,null),onClick:()=>m(n,!0)})))))))))},lr.SelectionCell=Ii,lr.SelectionHeader=Ni,lr.Header=Si,lr.Truncate=Qi,lr.NoWrap=Ki;const ar=p.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${ge.sizes.base};}`,sr=p.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${ge.sizes.xs};}`,dr=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${ge.sizes.base};}`,cr=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${ge.sizes.xs};}`,ur=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${ge.text.bodyBold.fontFamily};font-size:${ge.text.bodyBold.fontSize};font-weight:${ge.text.bodyBold.fontWeight};line-height:${ge.text.bodyBold.lineHeight};color:${ge.text.bodyBold.color};`,mr=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${ge.text.body.fontFamily};font-size:${ge.text.body.fontSize};font-weight:${ge.text.body.fontWeight};line-height:${ge.text.body.lineHeight};color:${ge.text.body.color};`,pr=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(mr,{key:t},t))):e.createElement(mr,null,t);return e.createElement(ar,null,t.map((t=>n?e.createElement(dr,{key:t.term},e.createElement(ur,null,t.term),e.createElement(cr,null,o(t.description))):e.createElement(sr,{key:t.term},e.createElement(ur,null,t.term),o(t.description)))))},{sizes:hr,colors:gr}=ge,br=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${hr.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${hr.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,fr=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${hr.md};overflow-x:hidden;background-color:${gr.neutral.grey.lightest};`,vr=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(fr,null,e.createElement(br,{showSidebar:i},o)))},yr=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 xr;!function(e){e.base="base",e.sm="sm"}(xr||(xr={}));const wr=({hasError:e,inputSize:t})=>h`&{--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 "}`,Er=p.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${ge.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 `}} ${wr} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Cr=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;${wr}`,$r=/^-?[0-9]*\.?[0-9]+$/,kr=Po(n(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,multiline:s=!1,spellCheck:d=!1,name:c,onChange:u,placeholder:m,size:p=xr.base,type:h="text",value:g}=t,b=Fe(t,["id","className","disabled","hasError","multiline","spellCheck","name","onChange","placeholder","size","type","value"]);const f=a((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==h)return void u(t);new RegExp($r).test(t)&&u(t)}),[u,h]),v=null!=o?o:mt("textfield");return"text"===h&&s?e.createElement(Cr,Object.assign({className:i,disabled:r,hasError:l,id:v,name:c,onChange:f,placeholder:m,value:g,ref:n,spellCheck:d},b)):e.createElement(Er,Object.assign({className:i,disabled:r,hasError:l,id:v,inputSize:p,name:c,"aria-label":c,onChange:f,placeholder:m,type:h,value:g,ref:n,spellCheck:d},b))})));kr.displayName="TextField";const Sr=p(te).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Nr=p(te).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Lr=p(kr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${ge.colors.neutral.ink.lightest};}`,Ir=p(Ke).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${ge.colors.neutral.ink.lightest};`;p(ye).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${ge.text.error.fontFamily};font-size:${ge.text.error.fontSize};font-weight:${ge.text.error.fontWeight};line-height:${ge.text.error.lineHeight};color:${ge.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ge.sizes[2]} * -1);width:2px;background-color:${ge.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${ge.fontFamily};font-size:${ge.sizes[3]};line-height:${ge.sizes[4]};color:${ge.colors.neutral.ink.light};`;const zr=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Dr=["-","+","E","e"],Fr=e=>zr(e,Dr),Or=Po((t=>{var{size:n=xr.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:l,height:a,width:s,length:d,unit:c}=t,u=Fe(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Sr,{className:l},e.createElement(Nr,null,e.createElement(Lr,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Fr},u)),e.createElement(Qe,{height:ge.sizes.base,width:ge.sizes.base}),e.createElement(Lr,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Fr},u)),e.createElement(Qe,{height:ge.sizes.base,width:ge.sizes.base}),e.createElement(yr,null,e.createElement(Lr,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a,min:"0",step:"any",onKeyDown:Fr},u)),e.createElement(Ir,{size:n},c))))}));Or.displayName="DimensionsInput";const Mr=p(te).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${ie.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${ie.neutral.grey.dark};border-radius:4px;svg{width:${ue.base};height:${ue.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${ge.colors.secondary.blue.light};}`,Tr=p(ye).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Ar=p(Tr).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Rr=p(Je).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,jr=p(Qe).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Br=p(te).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Hr=p(te).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 ${ie.neutral.grey.base};svg{color:${({color:e})=>e};width:${ue[5]};height:${ue[5]};margin-right:10px;}`,Wr=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Pr=({className:n,e2eClassName:o,label:i,text:r,iconSlot:l,fill:s=ie.secondary.blue.base,content:d,footer:c,header:u,onClickAway:m,onClick:p,shouldCloseOnClickAway:h=!0})=>{const g=Wr(n),b=Wr(o),[f,v]=t(null),[y,x]=t(null),{shouldShowDropdown:w,toggleShouldShowDropdown:E,closeDropdown:C}=Lt({anchorElement:f}),{handleKeyDown:$}=Et({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),h&&C()}),[m,C,h]);return!d?e.createElement(Mr,{className:bt([null==g?void 0:g.container,null==b?void 0:b.container]),onClick:p},i&&e.createElement(Ar,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(ye,null,r),e.createElement(jr,{className:bt([null==g?void 0:g.cross,null==b?void 0:b.cross]),name:"cross",size:"base",color:ie.neutral.ink.base})):e.createElement(dn,{className:g.filterTagDropdown,shouldShowDropdown:w,onClickAway:S,cta:e.createElement(Mr,{className:g.container,onClick:k,ref:v},i&&e.createElement(Ar,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(ye,null,r),e.createElement(Rr,{color:ie.neutral.ink.base,name:"downArrow",$shouldShow:w}))},e.createElement(Br,{ref:x,onKeyDown:$},e.createElement(Hr,{color:s},u||e.createElement(e.Fragment,null,l,e.createElement(ye,{variant:"bodyBold"},i))),d,c))},Yr=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"})),Vr=p.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,_r=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Zr=p.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,qr=p.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Xr=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}),Kr=({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:h,placeholderHeight:g,disablePlaceholder:b=!1})=>{const f=Xr(i),v=Xr(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}=T(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(Vr,{className:bt([null==f?void 0:f.container,null==v?void 0:v.container,i])},e.createElement(_r,{src:n,alt:o,className:bt([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(Yr,{className:bt([null==f?void 0:f.placeholder,null==v?void 0:v.placeholder]),width:h||l,height:g||s})),y&&j(e.createElement(Zr,Object.assign({ref:S,style:N.popper},L.popper,{className:bt([null==f?void 0:f.previewImageContainer,null==v?void 0:v.previewImageContainer])}),e.createElement(qr,{src:n,alt:"",width:d,height:c})),document.body))},Ur={width:64,height:64},Gr={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 25 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({},Ur)),title:"No data found"},Jr={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({},Ur)),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 Qr;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Qr||(Qr={}));const{text:el,sizes:tl}=ge,{blue:nl}=ge.colors.secondary,{grey:ol}=ge.colors.neutral,{scrollbar:il}=ge.colors.system,rl='\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',ll=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,al=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 ${ol.dark};border-bottom:1px solid ${ol.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: ${il.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${il.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 ${rl};\n\n ${o===Qr.middle||o===Qr.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 ${rl};\n\n ${o===Qr.start||o===Qr.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,sl=p(al).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${ol.dark};border-radius:4px;`,dl=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,cl=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${ol.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:${ol.lightest};padding:1.5rem 1rem;border-top:1px solid ${nl.base};}`;const ul=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 `}`,ml=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:${el.bodySmall.fontFamily};font-size:${el.bodySmall.fontSize};font-weight:${el.bodySmall.fontWeight};color:${el.bodySmall.color};line-height:${tl.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,pl=p(ml).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${ol.dark};font-family:${el.bodySmallBold.fontFamily};font-size:${el.bodySmallBold.fontSize};font-weight:${el.bodySmallBold.fontWeight};color:${el.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${ol.light};}`,hl={left:"flex-start",center:"center",right:"flex-end"},gl=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?hl[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,bl=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 & ${cl}:nth-child(even) td {\n background-color: ${ol.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${pl}, & ${pl} span {\n white-space: nowrap;\n }\n `}`,fl=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${ml}{border-top:1px solid ${ol.dark};background-color:${ol.lightest};padding-top:${tl.base};padding-bottom:${tl.base};line-height:2rem;}`,vl=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,yl=p(bl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,xl=p(te).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;`,wl=p(te).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${ge.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,El=p(ye).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Cl=p(ye).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,$l=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(xl,{height:t},e.createElement(wl,null,n),e.createElement(El,{variant:"headingLarge"},o),i&&e.createElement(Cl,{variant:"subheadingMedium"},i)),kl=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:${ge.sizes.base};border-radius:${ge.radius.base};&:hover{cursor:pointer;background-color:${ge.colors.secondary.blue.lightest};}`,Sl=p(kl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${ge.text.link.color};text-decoration:${ge.text.link.textDecoration};`,Nl=p.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Ll}=ge.colors.neutral,Il=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,zl=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(Il,{style:n},e.createElement(zl,{isLoading:t})),Fl=t=>{var{style:n}=t,o=Fe(t,["style"]);return e.createElement(ml,Object.assign({},o),e.createElement(Dl,{style:n}))};Fl.defaultProps={style:{}};const Ol=({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;J(r);const h=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 h(),m?e.createElement(vl,{ref:e=>{u(e),h(e)},style:Object.assign({width:p},s)},e.createElement(yl,{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")},Tl=t=>{var{style:n,width:o,isLoading:i}=t,r=Fe(t,["style","width","isLoading"]);return e.createElement(pl,Object.assign({},r,{style:{width:o}}),e.createElement(Dl,{style:n,isLoading:i}))},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",{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"})),Rl=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"})),jl=()=>e.createElement(hi,{width:ge.sizes.base,height:ge.sizes.base,color:"lightgrey"}),Bl=()=>e.createElement(Al,{width:ge.sizes.base,height:ge.sizes.base,color:"lightgrey"}),Hl=()=>e.createElement(Rl,{width:ge.sizes.base,height:ge.sizes.base,color:"lightgrey"}),Wl=({borderless:n=!1,striped:o=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:h,renderLoadingRow:g,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:O,endFixedColumnsNumber:M})=>{const T=n?al:sl,A=!!u&&0===u.length,R=Boolean(O||M),j=!O&&!M,B=l(null),H=l(null),[W,P]=t(Qr.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(Qr.none):0===n?P(Qr.start):n>0&&i<t?P(Qr.middle):i===t&&P(Qr.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)}}),[B,j]);const Y=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}})),[]),_=a((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(O){y&&(e.push(V(1,n,"left")),n+=58);for(let t=0;t<O;t+=1){const o=Y(c[t].width);o&&(e.push(V(y?t+2:t+1,n,"left")),n+=o)}}if(M)for(let e=0;e<M;e+=1){const n=Y(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,Y,M,V,c,O,y]),Z=r((()=>_()),[_]),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(jl,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(Bl,null):e.createElement(Hl,null)));const m=e.createElement(gl,{align:a},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(pl,{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(wn,{text:l},e.createElement(ll,null,m)):m)}),[K,C,$]),G=a(((t,n)=>e.createElement(Tl,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=a((()=>{if(!c)return null;const t=_(),n=t?t[0].style:{};return e.createElement(dl,null,e.createElement(ul,null,y&&e.createElement(pl,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(No,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:X,disabled:x&&x.length>0||N||A,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||A)?G(e,e.skeletonStyle||{}):U(e,(null==r?void 0:r.style)||{})}))))}),[_,X,c,A,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(Io,Object.assign({},o)):e.createElement(No,Object.assign({},o))}),[q,w,x]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Fl,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Fl,{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(ul,{key:t.id,className:`${l} ${n?"hidden":""}`},y&&e.createElement(ml,null),r)}),[p,y]),ne=a((t=>{if(!c)return e.createElement(Fl,null);const n=c.map((n=>e.createElement(Fl,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>b?N&&!f||!N&&A?null:e.createElement(fl,{fixedColumnsStyle:Ml(Z||[])},e.createElement(ul,null,y&&!v&&e.createElement(ml,null),!N&&b(u),N&&f&&f())):null;let ie=O;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=!h||h.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(cl,{key:t.id,className:s,fixedColumnsStyle:Ml(Z||[])},e.createElement(ul,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(ml,null,Q(l,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[u,h,Z,te,m,Q,y]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement(cl,{key:`loading-row-${n}`,fixedColumnsStyle:Ml(Z||[])},e.createElement(ul,null,g?e.createElement(e.Fragment,null,y&&ee(),g()):ne(n))));return e.createElement(T,{ref:H,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M},I&&c&&e.createElement(Ol,{renderHeader:J,tableRef:B,wrapperRef:H,isFixedLayout:R,wrapperStyle:z}),e.createElement(bl,{ref:B,striped:o,noWrap:s,tableLoading:!0,isFixedLayout:R},J(),t,oe()))}if(A||S){let t=Gr;return D?t=D:S&&(t=Jr),e.createElement(T,{scrollDisabled:!0},e.createElement(bl,{ref:B,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:R},J(),oe()),e.createElement($l,Object.assign({height:F},t)))}return e.createElement(T,{scrollDisabled:!1,ref:H,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M,showScrollbar:d},I&&c&&e.createElement(Ol,{renderHeader:J,tableRef:B,wrapperRef:H,isFixedLayout:R,wrapperStyle:z}),e.createElement(bl,{ref:B,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:R},J(),re,oe()))};Wl.Cell=ml,Wl.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Fe(t,["onClick","children"]);return e.createElement(ml,Object.assign({},i),e.createElement(Sl,{onClick:n},o))},Wl.EditableCell=t=>{var{onClick:n,children:o}=t,i=Fe(t,["onClick","children"]);return e.createElement(ml,Object.assign({},i),e.createElement(kl,{onClick:n},e.createElement(Nl,null,o)))},Wl.SkeletonCell=Fl,Wl.SkeletonContent=Dl;const Pl=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Yl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Vl="Log in with Amazon",_l=n=>{const[o,i]=t(Yl);return e.createElement(Pl,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(Yl)},"aria-label":Vl},n),e.createElement("img",{src:o,alt:Vl}))},Zl=g`body{overflow:hidden;scrollbar-gutter:stable;}`,ql=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${ge.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${ct.Footer} {\n box-shadow: 0px 10px 15px 0px ${ge.colors.neutral.ink.dark};\n }\n `}`,Xl=e=>!!e.footerSlot,Kl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ul={[re.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[re.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[re.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[re.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[re.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Gl={xs:re.mobile,sm:re.mobile,base:re.tablet,lg:re.lgTablet},{breakpoints:Jl}=ge,Ql=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:${ge.sizes.sm};box-shadow:${ge.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${ct.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Kl[e]};`} ${ql}{padding-bottom:${ge.sizes.md};}${ct.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Jl.mobile} + 1px))and (max-width: ${Jl.tablet}){max-width:${({variant:e})=>Ul[Jl.tablet][e]};}@media (min-width: ${Jl.tablet})and (max-width: ${Jl.lgTablet}){max-width:${({variant:e})=>Ul[Jl.lgTablet][e]};}@media (min-width: ${Jl.lgTablet})and (max-width: ${Jl.desktop}){max-width:${({variant:e})=>Ul[Jl.desktop][e]};}@media (min-width: ${Jl.desktop}){max-width:${({variant:e})=>Ul[Jl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Gl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${ct.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${vt(ge.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,ea=e.forwardRef(((t,n)=>{var o=Fe(t,[]);return e.createElement(Ql,Object.assign({ref:n},o))})),ta=n=>{const{shouldShow:o,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(null),[p,h]=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:g,onScroll:b}=Ot(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(Zl,null),e.createElement(ea,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(ct.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(et,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:f})),e.createElement(ql,{onScroll:b,ref:h,isScrollable:g,fullBleed:a},c),Xl(n)&&n.footerSlot,!Xl(n)&&(n.leftActions||n.rightActions)&&e.createElement(ct.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=Fe(t,["label"]);return e.createElement(Ke,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=Fe(t,["label"]);return e.createElement(Ke,Object.assign({key:n,type:"button"},o),n)})))))))))},na=p(Ht).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${ge.sizes.lg};height:30px;background-color:${ge.colors.neutral.grey.light};border:1px solid ${ge.colors.neutral.grey.base};border-radius:${ge.sizes.xs};`,oa=p(Ke).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${ge.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,ia=p(kr).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,ra=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(ye,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(na,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(ye,{variant:"bodySmall"},t))),la=({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()}}},aa=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"})),sa=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"})),da=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:l,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=la({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(oa,{onClick:()=>{1!==o&&r(1)},iconSlot:e.createElement(aa,null),size:"sm","aria-label":"go to first page"}),e.createElement(oa,{onClick:s,iconSlot:e.createElement(io,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(ia,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:xr.sm,type:"number",value:l,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(ra,{count:i}),e.createElement(oa,{onClick:a,iconSlot:e.createElement(An,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(oa,{onClick:()=>{o!==i&&r(i)},iconSlot:e.createElement(sa,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},ca=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;}`,ua=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;}`,ma=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(ca,{size:i},e.createElement(ua,{type:"button",onClick:t,disabled:o},e.createElement(ze,{height:ge.sizes.base,width:ge.sizes.base,color:ge.colors.neutral.ink.base})),e.createElement(ua,{type:"button",onClick:n,disabled:o},e.createElement(Je,{height:ge.sizes.base,width:ge.sizes.base,color:ge.colors.neutral.ink.base}))),pa=p(kr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${ge.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${ge.colors.neutral.ink.lightest};}`,ha=p(te).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${ge.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?ge.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;}}`,ga=p(ye).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ba=p(yr).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 ${ge.colors.secondary.red.light};\n\n > * {\n border-top-color: ${ge.colors.secondary.red.base};\n border-bottom-color: ${ge.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${ge.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${ge.colors.secondary.red.base};\n border-right-color: ${ge.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${ge.colors.secondary.red.base};\n border-bottom-color: ${ge.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${ge.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ge.colors.secondary.red.base:ge.colors.secondary.blue.base};}}`;const fa=Po((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:l,onPriceChange:a,priceValue:s,step:d="0.1",size:c=xr.base}=t,u=Fe(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(ba,{className:n,hasError:o},e.createElement(ha,{disabled:r,size:c},e.createElement(ga,{variant:"hintText"},i)),e.createElement(pa,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(ma,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));fa.displayName="PriceInput";const va=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;`,ya=({children:t})=>e.createElement(va,null,t),xa=p(kr).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,wa=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Ea=p(te).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 & ${xa} {\n ${t}\n }\n\n & ${wa} {\n ${n}\n }\n `}}`,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:"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"})),$a=({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:h,isLoading:g=!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(xa,{size:y,type:t,value:c,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:m,name:h,disabled:n,error:u,autoComplete:v}),e.createElement(wa,null,g?e.createElement(Ae,{height:24,color:b||ge.colors.secondary.blue.base}):x&&o?e.createElement(Ke,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(Qe,{color:b||ge.colors.neutral.ink.dark})):e.createElement(Ke,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(Ca,{color:b||ge.colors.neutral.ink.dark,height:ue.md,width:ue.md}))))},ka=ge.colors.neutral.grey.lightest,Sa=ge.colors.neutral.grey.dark,Na=ge.colors.secondary.blue.dark,La=p(te).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${ka};border-color:${Sa};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${ge.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${Na};border-color:${Na};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${ge.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Ia=({options:t,selected:n,className:o,onChange:i})=>e.createElement(La,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ke,{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)))),za=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, ${ge.colors.neutral.ink.base});font-family:${ge.text.bodySmall.fontFamily};font-style:${ge.text.bodySmall.fontStyle};font-size:${ge.text.bodySmall.fontSize};line-height:${ge.text.bodySmall.lineHeight};font-weight:${ge.text.bodySmall.fontWeight};text-decoration:${ge.text.bodySmall.textDecoration};letter-spacing:${ge.text.bodySmall.letterSpacing};`,Da=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${ge.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${ge.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${ge.text.bodySmall.fontFamily};font-style:${ge.text.bodySmall.fontStyle};`,Fa={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Oa={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=Fe(t,["shortcut","label","inverse","displayLabel"]);const a=n.split("+").map((t=>Fa[t]?e.createElement(Da,{key:`Key: ${t}`,"aria-label":Oa[t]},Fa[t]):e.createElement(Da,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(za,Object.assign({"aria-label":o,$inverse:i},l),a," ",r?e.createElement("span",null,o):null)},{blue:Ta}=ie.secondary,{grey:Aa}=ie.neutral,Ra=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,ja=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Ta.lightest};}`,Ba=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Ha=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:${pe.bodySmall.fontFamily};font-size:${pe.bodySmall.fontSize};font-weight:${pe.bodySmall.fontWeight};color:${pe.bodySmall.color};line-height:${ue.base};& > *{vertical-align:middle;}`,Wa=p(Ha).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Aa.dark};font-family:${pe.bodySmallBold.fontFamily};font-size:${pe.bodySmallBold.fontSize};font-weight:${pe.bodySmallBold.fontWeight};color:${pe.bodySmallBold.color};`,Pa=p.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${ja} tr:nth-child(even) td {\n background-color: ${Aa.lightest};\n }\n `}`,Ya=({striped:t=!0,className:n,children:o})=>e.createElement(Pa,{striped:t,className:n},o);Ya.Header=Ra,Ya.Body=ja,Ya.Row=Ba,Ya.HeaderCell=Wa,Ya.Cell=Ha;const Va=p(te).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;}}`;Va.displayName="Skeleton";const _a=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Za=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${ge.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,qa=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 ${ge.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 ${ge.colors.secondary.blue.light};}`,Xa=p(Za).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${ge.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ka=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}),Ua=({id:n,value:o,min:r,max:s,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:h=(()=>{})})=>{const[g,b]=t(!1),[f,v]=t(-1),y=l(null),x=l(null),w=l(null),E=Ka(u),C=Ka(m),$=a((e=>{var t;if(!g||!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,g,s,r,c,d,o]),k=a((()=>{b(!1),h()}),[h]),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=bt("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(qa,{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(Xa,{className:bt([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(_a,{className:bt([null==E?void 0:E.container,null==C?void 0:C.container]),id:n,ref:y},e.createElement(Za,null),I)},Ga=p(te).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:ie.neutral.ink.base};\n background-color: ${null!=e?e:ie.neutral.grey.base};\n `}`,Ja=p(Ht).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${ge.layers.tooltip};`,Qa=p(Ht).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${ge.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${ge.shadows.lg};border-radius:${ge.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;}`,es=p(te).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${ge.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${ue.md};height:${ue.md};}`,ts=p(Ht).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,ns=p(ye).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,os={info:{accentColor:ie.brand.blue.base,icon:e.createElement(Zt,null)},success:{accentColor:ie.secondary.green.base,icon:e.createElement(qt,null)},error:{accentColor:ie.secondary.red.base,icon:e.createElement(Vt,null)},merge:{accentColor:ie.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)}},is=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),rs=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:l,minWidth:a,cta:s,onClose:d})=>{const c=is(t),u=is(n);return e.createElement(Qa,{className:bt([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:a,last:l},e.createElement(es,{color:os[o].accentColor,className:bt([c.icon,u.icon])},null!=i?i:os[o].icon),e.createElement(ts,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(ns,{variant:"body"},r),s),e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,{color:"white"}),onClick:d,"aria-label":"Close"}))},ls=({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]),j(e.createElement(Ja,{direction:"vertical",alignX:"center",spacing:4},e.createElement(W,{component:null},[...o].reverse().map(((i,l)=>e.createElement(H,{key:i.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(rs,Object.assign({className:t,e2eClassName:n,minWidth:r,last:l===o.length-1,onClose:()=>a(i.key)},i))))))),document.body)),as=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:${ge.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;}`,ss=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(as,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),ds=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${ue.md};border-radius:${le.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${ie.neutral.ink.lightest};background-color:${ie.neutral.grey.lightest};:hover{border:2px dashed ${ie.secondary.blue.base};background-color:${ie.secondary.blue.lightest};}:active{border:2px dashed ${ie.secondary.blue.base};box-shadow:0 0 0 4px ${ie.secondary.blue.light};background-color:${ie.secondary.blue.lightest};}:focus-within{border:2px dashed ${ie.secondary.blue.base};box-shadow:0 0 0 4px ${ie.secondary.blue.light};background-color:${ie.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${ie.secondary.red.base};:hover{border:2px dashed ${ie.secondary.red.base};background-color:${ie.secondary.red.lightest};}:active{border:2px dashed ${ie.secondary.red.base};box-shadow:0 0 0 4px ${ie.secondary.red.light};background-color:${ie.secondary.red.lightest};}:focus-within{border:2px dashed ${ie.secondary.red.base};box-shadow:0 0 0 4px ${ie.secondary.red.light};background-color:${ie.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${ie.neutral.grey.light};border-color:${ie.neutral.ink.lightest};color:${ie.neutral.ink.light};}`;var cs,us,ms;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(cs||(cs={})),function(e){e.KB="KB",e.MB="MB"}(us||(us={})),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"}(ms||(ms={}));const ps=()=>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"})),hs=()=>e.createElement(Ht,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(ps,null),e.createElement(ye,{variant:"subheadingSmall",style:{paddingTop:ue.sm}},"Browse files or drag them here")),gs=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Ht,{alignX:"start",spacing:"xs"},t&&e.createElement(ye,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(ye,{variant:"errorSmall"},"File is too big (",n,")")):null,bs=p(ye).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,fs=p(Ht).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${ie.neutral.ink.lightest};border-radius:${le.base};padding:${ue.xs};${ye}{padding-left:${ue.xs};}`,vs=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(fs,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(bs,{variant:"body"},null==t?void 0:t.name),e.createElement(Ke,{size:"sm",variant:"flat",onClick:n,iconSlot:e.createElement(Qe,null),"aria-label":"Remove file",disabled:o})):null,ys=n(((n,o)=>{var{id:r,name:s,maxBytes:d=1e6,format:u=us.MB,fileTypes:m,label:p="Upload file",required:h,disabled:g}=n,b=Fe(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=l(null);c(o,(()=>f.current),[]);const[v,y]=t(),[x,w]=t(ms.VALID),E=x===ms.INVALID_FORMAT||x===ms.INVALID_FORMAT_AND_SIZE,C=x===ms.INVALID_SIZE||x===ms.INVALID_FORMAT_AND_SIZE,$=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case us.KB:return`${o}${Number(e)/1e3} KB`;case us.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 cs.CSV:n+="CSV";break;case cs.GIF:n+="GIF";break;case cs.JPEG:n+="JPEG";break;case cs.JPG:n+="JPG";break;case cs.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=ms.VALID;t&&!e?o=ms.INVALID_FORMAT:!t&&e?o=ms.INVALID_SIZE:t&&e&&(o=ms.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(Ho,{spacing:"sm",alignX:"stretch"},e.createElement(Ro,{htmlFor:r},p,e.createElement(Ht,{spacing:3,alignX:"stretch",style:{paddingTop:ue.sm}},e.createElement(jo,null,e.createElement("div",null,k),e.createElement("div",null,$)),e.createElement(ds,{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(hs,null),e.createElement("input",Object.assign({ref:f,id:r,type:"file",accept:S,name:s,required:h,disabled:g},b))))),e.createElement(Ht,{alignX:"stretch",spacing:"sm"},e.createElement(vs,{file:v,resetSelection:z,disabled:g}),e.createElement(gs,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:C?$:void 0})))})),xs="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",ws=p(te).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${xs} display:${e=>e.shouldShow?"initial":"none"};z-index:${ge.layers.modal};`,Es=p(te).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${xs} background-color:rgba(55,66,77,0.5);`,Cs=p(te).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,$s=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(pt,null,n):n),ks=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement($s,{usePortal:i},e.createElement(ws,{className:bt([`${t}-container`,t]),shouldShow:o},e.createElement(Es,null),e.createElement(ee,{isActive:o},e.createElement(Cs,{className:bt([`${t}-wrap`,t])},n)))),Ss=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Ns=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Ls=p(Ke).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,Is=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=St(o,i);return e.createElement(ks,{shouldShow:o,className:`${t}-video`},e.createElement(Ss,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(Ns,{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",iconSlot:e.createElement(Qe,{color:"white"})}))))};var zs;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(zs||(zs={}));const Ds=p(te).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Fs=p(ye).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Os=p(te).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 ${ye} {\n color: ${null!=t?t:ie.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ms=p(ye).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 & > ${Fs} {\n color: #fff;\n }\n `}`,Ts={style:{marginLeft:ue.xs,padding:ue.xs,height:ue.base,width:ue.base}},As=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${ue.sm};svg{height:${ue.base};width:${ue.base};}`,Rs=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"})),js=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}),Bs=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=ie.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:h})=>{const g=js(r),b=js(h),[f,v,y]=Ft(),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===zs.draft,$=i===zs.saved,k=c?ie.neutral.ink.dark:ie.neutral.ink.base;return e.createElement(Ds,{className:`${bt([null==g?void 0:g.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:x},e.createElement(Os,{active:c,onMouseEnter:v,onMouseLeave:y,colourPalette:l,customTextColour:s},n&&e.createElement(As,null,n),e.createElement(ye,{variant:"bodyBold"},o),d&&e.createElement(Ms,{active:c||f,colourPalette:l,customTextColour:s},e.createElement(Fs,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),C&&e.createElement(Qe,Object.assign({},Ts,{color:k,className:null==b?void 0:b.delete,onClick:w})),$&&c&&e.createElement(Rs,Object.assign({},Ts,{color:k,className:null==b?void 0:b.edit,onClick:E}))))};var Hs;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Hs||(Hs={}));const Ws=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"})),Ps=p(ye).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Ys=p(Ws).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Vs=p(Qe).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,_s=p(ye).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 & > ${Ps} {\n color: ${ie.neutral.grey.lightest};\n }\n `}`,Zs=p(te).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${ge.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${ie.neutral.grey.base};\n & > ${_s} {\n background-color: ${ie.neutral.grey.base};\n & > ${Ps} {\n color: ${ie.neutral.ink.base};\n }\n }\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n & > ${Ys} {\n color: ${ie.neutral.ink.dark};\n }\n & > ${Vs} {\n color: ${ie.neutral.ink.dark};\n }\n }\n\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Ys} {\n color: ${t.dark};\n }\n & > ${Vs} {\n color: ${t.dark};\n }\n\n & > ${ye} {\n color: ${null!=n?n:t.dark};\n }\n `}`,qs=p(Ye).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${ge.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Zs} {\n background-color: ${ie.neutral.grey.base};\n & > ${_s} {\n background-color: ${ie.neutral.grey.base};\n & > ${Ps} {\n color: ${ie.neutral.ink.base};\n }\n }\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n & > ${Ys} {\n color: ${ie.neutral.ink.dark};\n }\n & > ${Vs} {\n color: ${ie.neutral.ink.dark};\n }\n }\n `}`,Xs={style:{marginLeft:ue.xs,padding:ue.xs,height:ue.base,width:ue.base}},Ks=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${ue.sm};svg{height:${ue.base};width:${ue.base};}`,Us=e.forwardRef(((t,n)=>{var{id:o,iconSlot:i,name:r,type:l,className:a,colourPalette:s=ie.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:h}=t,g=Fe(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]=Ft(),w=u&&p?p:m,E=l===Hs.draft,C=l===Hs.saved;return e.createElement(qs,Object.assign({className:bt([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} ${h}`:""}`,customTextColour:d,ref:n},g),e.createElement(Zs,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:s,customTextColour:d},i&&e.createElement(Ks,null,i),e.createElement(ye,{variant:"bodyBold"},r),null!=c&&e.createElement(_s,{"data-testid":"countContainer",active:u||v,colourPalette:s,customTextColour:d},e.createElement(Ps,{variant:"subheadingSmall"},c)),E&&e.createElement(Vs,Object.assign({},Xs,{"aria-label":"delete icon"})),C&&u&&e.createElement(Ys,Object.assign({},Xs,{"aria-label":"edit icon"}))))})),Gs=p(Ht).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;`,Js=p(Ht).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${ie.neutral.grey.lightest};`,Qs=p(io).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${ie.neutral.ink.base};`,ed=p(An).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${ie.neutral.ink.base};`,td=p(Ws).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${ie.neutral.ink.base};`,nd=p(Ke).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${ie.neutral.grey.lightest};}`,od=p(Ke).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Qs}{color:${ie.neutral.ink.lightest};}}&:hover{background-color:${ie.neutral.grey.lightest};}`,id=p(Ke).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${ed}{color:${ie.neutral.ink.lightest};}}&:hover{background-color:${ie.neutral.grey.lightest};}`,rd=p(yr).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,ld=(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=Q(m),h=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]),g=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 g(),window.addEventListener("resize",g),null===(s=e.current)||void 0===s||s.addEventListener("scroll",h),()=>{window.removeEventListener("resize",g)}}}),[e,n,g,h,c,m,p]),{rightDisabled:s,leftDisabled:r,toNextScrollPosition:b,toPrevScrollPosition:f}},ad=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const a=l(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=ld(a,t);return e.createElement(Js,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Gs,{ref:a,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(rd,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(od,{id:"left-arrow",iconSlot:e.createElement(Qs,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(id,{id:"right-arrow",iconSlot:e.createElement(ed,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(nd,{iconSlot:e.createElement(td,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),sd=p(te).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,dd=p(te).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,cd=p(kr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,ud=p(Ke).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${ge.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${ge.colors.secondary.red.base};\n `};`,md=e=>zr(e,Dr),pd=Po((t=>{var{size:n=xr.base,hasError:o,className:i}=t,r=Fe(t,["size","hasError","className"]);return e.createElement(sd,{className:i},e.createElement(dd,null,"g"===r.weightUnit&&e.createElement(yr,null,e.createElement(cd,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:md},r)),e.createElement(ud,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(yr,null,e.createElement(cd,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:md},r)),e.createElement(ud,{hasError:o,size:n},"lb")),e.createElement(yr,null,e.createElement(cd,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:md},r)),e.createElement(ud,{hasError:o,size:n},"oz")))))}));pd.displayName="WeightInput",pd.defaultProps={weightUnit:"lb"};const hd={base:"28px",sm:"20px"},gd={base:"18px",sm:"10px"},bd={base:"-12px",sm:"-8px"},fd=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--gpqjtl"})`position:absolute;top:${({size:e})=>bd[e]};right:${({size:e})=>bd[e]};box-sizing:border-box;height:${({size:e})=>hd[e]};min-width:${({size:e})=>hd[e]};display:flex;align-items:center;justify-content:center;border-radius:${({size:e})=>gd[e]};padding:0 4px;background-color:${({color:e})=>e||ge.colors.neutral.grey.base};border:2px solid white;font-weight:bold;font-size:12px;`,vd=t=>{var{color:n,style:o,textColour:i,size:r="base"}=t,l=Fe(t,["color","style","textColour","size"]);const a=n||ge.colors.neutral.grey.base;return e.createElement(fd,Object.assign({role:"status",style:Object.assign({backgroundColor:a,color:i},o),size:r},l))};export{cs as AcceptedFileTypes,De as Accordion,jt as ActionMenu,Ut as Alert,nn as Anchor,dn as AnimatedDropdown,un as Avatar,$n as Badge,On as Banner,te as BaseContainer,Wn as Breadcrumbs,Ke as Button,uo as Calendar,ct as Card,et as CardHeader,No as Checkbox,Eo as Choice,Fo as ChoiceList,Ao as CopyToClipboard,oi as DATE_RANGE_OPTIONS,li as DEFAULT_PRESET,ri as DEFAULT_RANGE,lr as DataTable,_o as DateInputField,di as DateRangePicker,ti as DateRanges,pr as DescriptionList,vr as DetailPage,Or as DimensionsInput,kt as Dropdown,us as FileSizeUnit,Pr as FilterTag,zt as FocusVisibleManager,qn as Grid,Kr as Image,vd as Indicator,yr as InputGroup,Wl as LegacyDataTable,Ae as Loader,_l as LoginWithAmazonButton,en as MiniAlert,ta as Modal,da as Pagination,Ct as Popover,ks as Popup,pt as Portal,fa as PriceInput,Io as Radio,so as RangeCalendar,ya as ScreenReaderOnly,$a as Search,Ia as SegmentedControl,qo as Select,Ma as ShortcutKeys,Ya as SimpleTable,Va as Skeleton,Ua as Slider,Ht as Stack,ma as Stepper,Ga as Tag,ye as Text,kr as TextField,ls as ToastsLayout,Jo as Toggle,ss as ToggleButton,wn as Tooltip,ys as UploadFile,Is as VideoModal,Bs as View,Us as ViewTab,ad as ViewsContainer,pd as WeightInput,bt as buildClassnames,ai as checkIfDateRangeInvalid,mt as generateId,ni as getDateRange,vt as getOpaqueHexColor,he as getTextStyles,ft as hexToRgb,xt as isExternalLink,ge as theme,vi as useCellWidths,St as useClickOutside,wi as useColumns,Nt as useDebounce,Ei as useDragToScroll,Lt as useDropdown,Dt as useFocusVisible,Ft as useHover,Tt as useId,Ot as useIsOverflowing,Ci as useNested,$i as useScrollPosition,Di as useSelection,Mt as useTabs,Yo as withDeprecated,Po as withLabels};
|
|
1
|
+
import e,{useState as t,forwardRef as n,PureComponent as o,useEffect as i,useMemo as r,useRef as a,useCallback as l,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,RangeCalendar as x,CalendarGrid as w,CalendarGridHeader as E,CalendarHeaderCell as C,CalendarGridBody as $,CalendarCell as k,useContextProps as S,HeadingContext as N,Button as L,useLocale as I,Calendar as z,Group as D,DateField as F,DateInput as O,DateSegment as R}from"react-aria-components";import{usePopper as A}from"react-popper";import M from"resize-observer-polyfill";import T,{createPortal as j}from"react-dom";import{uid as B}from"uid/secure";import{CSSTransition as H,TransitionGroup as W}from"react-transition-group";import{today as V,getLocalTimeZone as P,CalendarDate as Y,isWeekend as _,now as Z,startOfYear as q,startOfMonth as X,startOfWeek as K,endOfMonth as U}from"@internationalized/date";import G from"lodash.throttle";import{useScroll as J,usePrevious as Q}from"react-use";import ee from"react-scrolllock-configurable";const te=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,ne={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},oe=(e,t)=>e||(t?ne[t]:void 0),ie={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"}}},re={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},ae={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var le,se;!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)"}(le||(le={})),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"}(se||(se={}));const de=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}),ce={[se.none]:"0",[se.line]:"1px",[se.xs]:de[1],[se.sm]:de[2],[se.base]:de[4],[se.md]:de[6],[se.lg]:de[8],[se.xl]:de[12],[se.xxl]:de[16]},ue=Object.assign(Object.assign({},ce),de),me={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},pe={headingXXL:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:ie.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:ie.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ie.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:me.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:ie.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},ge=e=>g`font-family:${e.fontFamily};font-style:${e.fontStyle};font-weight:${e.fontWeight};font-size:${e.fontSize};line-height:${e.lineHeight};color:${e.color};text-decoration:${e.textDecoration};letter-spacing:${e.letterSpacing};`,he=Object.assign(Object.assign({},me),{breakpoints:re,colors:ie,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:ae,shadows:le,sizes:ue,text:pe}),{text:be,colors:fe,fontFamily:ve}=he,ye=p.span.attrs((({as:e,variant:t})=>({as:oe(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:${ve};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?fe.neutral.ink.lightest:be[e].color;return`\n font-family: ${be[e].fontFamily};\n font-style: ${be[e].fontStyle};\n font-weight: ${be[e].fontWeight};\n font-size: ${be[e].fontSize};\n line-height: ${be[e].lineHeight};\n color: ${n};\n text-decoration: ${be[e].textDecoration};\n letter-spacing: ${be[e].letterSpacing};\n `}}`,xe=p(te).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,we=p(xe).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${ue.base};width:${ue.base};color:${({glyphColor:e})=>e};}`,Ee=p(xe).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Ce=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 ${he.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${he.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${he.colors.secondary.blue.light};}`,$e=p(te).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,ke=p(ye).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,Se=p(u(te)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Ne=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,Le=p(u(te)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,Ie=p.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${he.colors.secondary.blue.light};}`,ze=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ue.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"})),De=({className:n,children:o,label:i,iconSlot:r,glyphColor:a=ie.neutral.ink.lightest,timeout:l=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:l/1e3}};return"unstyled"===c?e.createElement(Ne,{open:!!d,className:n},e.createElement(Ie,{onClick:h},e.createElement($e,null,e.createElement(we,{glyphColor:a},r,e.createElement(ye,{variant:m},i)),e.createElement(Ee,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(ze,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(ke,{variant:"hintText"},s)),p&&e.createElement(Le,Object.assign({},b),o)):e.createElement(Ne,{open:!!d,className:n},e.createElement(Ce,{onClick:h},e.createElement($e,null,e.createElement(we,{glyphColor:a},r,e.createElement(ye,{variant:m},i)),e.createElement(Ee,null,e.createElement(u.span,{animate:{rotate:p?180:0}},e.createElement(ze,{name:p?"downArrow":"upArrow"})))),!!s&&e.createElement(ke,{variant:"hintText"},s)),p&&e.createElement(Se,Object.assign({},b),o))};function Fe(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 Oe=({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"}))))),Re=({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"}))),Ae=({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"}))),Me=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(Re,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(Ae,{className:t,height:n,width:o,color:i});default:return e.createElement(Oe,{className:t,height:n,width:o,color:i})}},Te=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})=>ue[e]};height:${({size:e})=>ue[e]};}`,je=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:${he.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",a="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",a="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${a};\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(je).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${he.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?he.colors.neutral.ink.base:he.colors.secondary.blue.base};&:hover{background-color:${he.colors.neutral.grey.lightest};}&:active{background-color:${he.colors.neutral.grey.lightest};border-color:${he.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${he.colors.neutral.grey.base} !important;border-color:${he.colors.neutral.grey.base} !important;color:${he.colors.neutral.ink.light} !important;}`,He=p(Be).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${he.colors.secondary.red.base};&:hover{color:${he.colors.secondary.red.dark};}&:active{border-color:${he.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.red.light};color:${he.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.red.light};}`,We=p(Be).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${he.colors.secondary.blue.base};border-color:${he.colors.secondary.blue.base};color:white;&:hover{background-color:${he.colors.secondary.blue.dark};border-color:${he.colors.secondary.blue.dark};}&:active{background-color:${he.colors.secondary.blue.dark};border-color:${he.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};}`,Ve=p(We).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${he.colors.secondary.red.base};border-color:${he.colors.secondary.red.base};color:white;&:hover{background-color:${he.colors.secondary.red.dark};border-color:${he.colors.secondary.red.dark};}&:active{background-color:${he.colors.secondary.red.dark};border-color:${he.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.red.light};}`,Pe=p(je).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${he.colors.neutral.ink.base};&:hover{background-color:${he.colors.neutral.grey.light};}&:active{background-color:${he.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,Ye=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,_e=p(Ye).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${he.text.link.fontFamily};font-size:${he.text.link.fontSize};line-height:${he.text.link.fontSize};font-weight:${he.text.link.fontWeight};line-height:${he.text.link.lineHeight};text-decoration:${he.text.link.textDecoration};color:${he.colors.secondary.blue.base};&:hover{color:${he.colors.secondary.blue.dark};}& > * + *{margin-left:${he.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${he.colors.secondary.blue.light};border-radius:4px;}`,Ze=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;`,qe=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"})),Xe={default:Be,primary:We,destructive:He,primaryDestructive:Ve,flat:Pe,link:_e,unstyled:Ye},Ke=n(((t,n)=>{var{className:o,children:i,iconSlot:r,variant:a="default",size:l="base",dropdown:s=!1,loading:d=!1,contentStyles:c}=t,u=Fe(t,["className","children","iconSlot","variant","size","dropdown","loading","contentStyles"]);if("unstyled"===a)return e.createElement(Ye,Object.assign({ref:n,className:o},u),i);const m=Xe[a],p=void 0!==i,g=!!r;return e.createElement(m,Object.assign({ref:n,className:o,size:l,hasText:p,hasIcon:g,hasDropdown:s},u),(p||g)&&e.createElement(Te,{$loading:d,hasText:!!i,size:i||"sm"===l?"base":"md",style:c},r&&r,void 0!==i&&i,s&&e.createElement(qe,null)),d&&e.createElement(Ze,null,e.createElement(Me,null)))})),Ue=p.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${ue.md};padding-right:${ue.md};padding-left:${ue.md};margin-bottom:${ue.md};& > * + *{margin-top:${ue.xs};}`,Ge=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${ue.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Je=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ue.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"})),Qe=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"})),et=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,actionSlot:a,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(Ue,null,e.createElement(Ge,null,e.createElement(ye,{id:t,variant:i},n),r&&e.createElement(Ke,{variant:"link",onClick:r.onClick},r.title),a,s&&e.createElement(Ke,{variant:"flat",iconSlot:l?e.createElement(Je,null):e.createElement(ze,null),onClick:s}),d&&e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(ye,{variant:"subheadingSmall"},o)),{grey:tt}=ie.neutral,nt={0:"none",1:le.sm,2:le.base,3:le.md,4:le.lg},ot={info:ie.secondary.blue.base,success:ie.secondary.green.base,error:ie.secondary.red.base},it=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${ue.base};padding:${ue.md};z-index:2;`,rt=p.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${ue.md};padding-left:${ue.md};margin-top:${ue.md};margin-bottom:${ue.md};font-family:${pe.body.fontFamily};font-size:${pe.body.fontSize};font-weight:${pe.body.fontWeight};line-height:${pe.body.lineHeight};color:${pe.body.color};& + &{border-top:${ue.line} solid ${tt.base};padding-top:${ue.md};}`,at=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${ue.md};margin-right:-${ue.md};`,lt=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${rt}:first-child{margin-top:0;}`,st=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${ue.line} solid ${tt.base};box-shadow:${e=>void 0!==e.elevation?nt[e.elevation]:le.sm};border-radius:${ae.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: ${ue.xs};\n background-color: ${ot[e]};\n }\n `}`,dt={expanded:{height:"auto"},collapsed:{height:0}},ct=({className:n,style:o,title:i,subtitle:r,headerActionSlot:a,action:l,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(et,{title:i,subtitle:r,actionSlot:a,action:l,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(lt,{animate:f?"expanded":"collapsed",variants:dt,transition:{duration:.3,ease:"easeOut"}},e.createElement(rt,null,u)),y=void 0!==p&&e.createElement(it,null,p());return e.createElement(st,{className:n,style:o,elevation:d,accent:c},b,v,y)};ct.Surface=st,ct.Section=rt,ct.FullBleed=at,ct.Footer=it;const ut=p(u(ct.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${he.colors.neutral.grey.base};border-radius:${he.radius.base};padding:${he.sizes.base};`,mt=e=>{const t=B();return e?`${e}-${t}`:t};class pt extends o{constructor(e){super(e),this.id=mt("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?j(e,this.portalNode):null}}const gt=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,ht=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,bt=e=>e.filter(Boolean).join(" "),ft=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},vt=(e,t)=>{const n=ft(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},yt=["app.veeqo.com"];function xt(e,t=yt){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 wt='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])',Et=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:o=!1})=>{i((()=>{if(!e||o)return;const t=e.querySelectorAll(wt);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(wt);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(),t.stopPropagation(),t.preventDefault()):o||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(wt),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))}}},Ct=n=>{var{id:o,children:a,zIndex:l=he.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1,useAnchorWidth:h,ignoreAriaWarnings:b}=n,f=Fe(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth","ignoreAriaWarnings"]);const[v,y]=t(null),{styles:x,attributes:w,update:E}=A(d,v,{placement:s}),C=r((()=>o||mt("popover")),[o]);(({anchorElement:e,popoverId:t,ignoreAriaWarnings:n=!1})=>{i((()=>{if(e&&!n){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,n])})({anchorElement:d,popoverId:C,ignoreAriaWarnings:b});const $=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:k}=Et({popperElement:v,anchorElement:d,onClose:$,disableFocusLock:p});return i((()=>{if(!E||!v)return;const e=new M(E);return e.observe(v),()=>e.disconnect()}),[E,v]),i((()=>{if(E)return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)}),[E]),e.createElement(pt,{rootElementRef:c},!g&&e.createElement(ht,{onClick:$,zIndex:l,"data-testid":"popover-backdrop"}),e.createElement(gt,Object.assign({open:!0,id:C,zIndex:l,ref:y,style:Object.assign(Object.assign(Object.assign({},x.popper),m),h?{minWidth:null==d?void 0:d.clientWidth}:{}),onKeyDown:k},w.popper,f),a))},$t=t=>{var{id:n,children:o,className:r,style:a,reversed:l,anchorElement:s,useAnchorWidth:d,onShouldClose:c}=t,u=Fe(t,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return i((()=>()=>null==s?void 0:s.focus()),[s]),e.createElement(Ct,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:c,useAnchorWidth:d,placement:"bottom-start"},u),e.createElement(m,null,e.createElement(ut,{className:r,style:a,useAnchorWidth:d,reversed:l,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},kt=t=>{var{id:n,shouldShow:o,setShouldShow:i,ctaIconSlot:r,ctaProps:l}=t,s=Fe(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=a(null);return e.createElement(e.Fragment,null,e.createElement(Ke,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":n,onClick:()=>null==i?void 0:i(!o),iconSlot:r,dropdown:!0},l)),o&&e.createElement($t,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==i?void 0:i(!1)},s)))},St=(e,t)=>{const n=a(null),o=l((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=l((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},Nt=(e,n)=>{const[o,r]=t(e);return i((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),o},Lt=({anchorElement:e}={})=>{const[n,o]=t(!1),i=l((()=>o(!n)),[n,o]),r=l((()=>{o(!1),setTimeout((()=>{null==e||e.focus()}),0)}),[o,e]);return{shouldShowDropdown:n,toggleShouldShowDropdown:i,setShouldShowDropdown:o,closeDropdown:r}},It=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function zt({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 a(){"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",a,!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",a,!0),o()}}),[r]),e.createElement(It.Provider,{value:{hadKeyboardEvent:o,isInitialized:!0}},n)}function Dt(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(It),r=e.useCallback((()=>{t||n(!0)}),[t]),a=e.useCallback((()=>{t&&n(!1)}),[t]);let l;return l=i?o&&t:t,e.useMemo((()=>({focusVisible:l,onFocus:r,onBlur:a})),[l,a,r])}const Ft=(e=!1)=>{const[n,o]=t(e);return[n,l((()=>o(!0)),[o]),l((()=>o(!1)),[o])]},Ot=e=>{const[n,o]=t(!1),[r,a]=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;a(o-n-i<=0)}}},Rt=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,a]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&a(t)}]},At=({id:e,prefix:t})=>r((()=>e||mt(t)),[e,t]),Mt=p(b).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:grid;grid-template-areas:'label''description';cursor:pointer;margin:${he.sizes.xs};padding:${he.sizes.sm};border-radius:${he.radius.base};outline:0;&:is(a){${ge(he.text.link)}}&:is(div){${ge(he.text.body)}}white-space:nowrap;&[data-focused]{color:${he.colors.secondary.blue.base};box-shadow:0 0 0 4px ${he.colors.secondary.blue.light};}&[data-hovered]{background-color:${he.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${he.colors.neutral.grey.lightest};color:${he.colors.neutral.ink.light};}[slot='label']{grid-area:label;}[slot='description']{grid-area:description;color:${he.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 ${he.colors.neutral.grey.base};padding-top:0.5rem;}`,jt=({id:n,menuLabel:o,ctaProps:i,actions:r,children:a})=>{var l;const[s,d]=t(!1),c=At({id:n,prefix:"action-menu"});return e.createElement(kt,{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===(l=i.children)||void 0===l?void 0:l.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())}))})),a))};var Bt;jt.Item=Mt,jt.Section=Tt,jt.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 Ht=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,a,l,s,d="",c="";return"vertical"===t?(r=n&&Bt[n],a=o&&Bt[o],d=he.sizes[i],l="column"):(r=o&&Bt[o],a=n&&Bt[n],c=he.sizes[i],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${a};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Ht.displayName="Stack";const Wt=p(Ht).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--yb86nz"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${he.radius.base};background-color:${({colours:{background:e}})=>e};`,Vt={base:he.sizes.base,sm:he.sizes[3],xs:he.sizes.sm},Pt={base:he.sizes.md,sm:he.sizes[5],xs:he.sizes[5]},Yt=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"})),_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"})),Zt=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"})),qt=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"})),Xt={default:Zt,error:Yt,success:qt,info:_t,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"}))},Kt={default:{primary:he.colors.neutral.ink.base,background:he.colors.neutral.grey.lightest},error:{primary:he.colors.secondary.red.base,background:he.colors.secondary.red.lightest},success:{primary:he.colors.secondary.green.base,background:he.colors.secondary.green.lightest},info:{primary:he.colors.secondary.blue.base,background:he.colors.secondary.blue.lightest},warning:{primary:he.colors.secondary.orange.base,background:he.colors.secondary.orange.lightest},recommend:{primary:he.colors.secondary.purple.dark,background:he.colors.secondary.purple.lightest}},Ut=t=>{var{size:n="base",variant:o="default",colours:i,rightActions:r,rightActionsSlot:a,title:l,titleSlot:s,messageSlot:d,message:c,children:u,iconSlot:m,onClickClose:p}=t,g=Fe(t,["size","variant","colours","rightActions","rightActionsSlot","title","titleSlot","messageSlot","message","children","iconSlot","onClickClose"]);const h=null!=i?i:Kt[o],b=m||Xt[o],f="xs"===n;return e.createElement(Wt,Object.assign({colours:h,direction:"horizontal",alignX:"between",spacing:"0"},g),e.createElement(Ht,{direction:"horizontal",alignY:f?"center":"start",style:{margin:Vt[n],gap:Vt[n]},spacing:0},e.createElement(b,{"aria-hidden":!0,style:{minWidth:Pt[n],minHeight:Pt[n],width:Pt[n],height:Pt[n]},color:h.primary}),u||e.createElement(Ht,{direction:"vertical",spacing:f?0:"xs"},s||e.createElement(ye,{variant:f?"bodySmallBold":"bodyBold",style:"base"===n?{lineHeight:"24px"}:{}},l),d||e.createElement(ye,{variant:f?"bodySmall":"body"},c))),e.createElement(Ht,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:f?void 0:he.sizes[3],gap:f?void 0:Vt[n],alignItems:"center"}},a,r&&e.createElement(Ht,{alignY:"center",spacing:0,style:{gap:Vt[n]}},r.map((t=>{var{label:n}=t,o=Fe(t,["label"]);return e.createElement(Ke,Object.assign({key:n,type:"button",size:"sm"},o),n)}))),p&&e.createElement(Ht,{alignY:f?"center":"start",style:{height:"100%",padding:f?he.sizes.xs:void 0}},e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,null),onClick:p,"aria-label":"Close",size:"sm"}))))},Gt={default:he.colors.neutral.ink.dark,error:he.colors.secondary.red.darkest,success:he.colors.neutral.ink.dark,info:he.colors.neutral.ink.dark,warning:he.colors.neutral.ink.dark,recommend:he.colors.neutral.ink.dark},Jt={minWidth:he.sizes[4],minHeight:he.sizes[4],width:he.sizes[4],height:he.sizes[4]},Qt=p.div.withConfig({displayName:"vui--MiniAlertContainer",componentId:"vui--1n2xu5o"})`display:flex;gap:${he.sizes.xs};`,en=({title:t,variant:n="default",iconSlot:o,customTitleColour:i,customIconColour:r})=>{const a=o||Xt[n],l=null!=r?r:Kt[n].primary,s=null!=i?i:Gt[n];return e.createElement(Qt,null,e.createElement(a,{"aria-hidden":!0,color:l,style:Jt}),e.createElement(ye,{variant:"bodySmallBold",style:{color:s}},t))},tn=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${he.text.link.fontFamily};font-style:${he.text.link.fontStyle};font-weight:${he.text.link.fontWeight};font-size:${he.text.link.fontSize};line-height:${he.text.link.lineHeight};color:${he.colors.secondary.blue.base};text-decoration:${he.text.link.textDecoration};&:hover{color:${he.colors.secondary.blue.dark};}`,nn=t=>{var{children:n,href:o,rel:i,allowedHostnames:r=yt}=t,a=Fe(t,["children","href","rel","allowedHostnames"]);const l=xt(o,r),s=i||(l?"noopener noreferrer":void 0);return e.createElement(tn,Object.assign({href:o,rel:s},a),n)},on=p(te).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;`,rn=n(((t,n)=>{const{children:o,className:i,role:r}=t;return e.createElement(on,{className:i,ref:n,role:r},o)})),an=p(te).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,ln=p(te).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,sn=p(rn).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${he.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);}`,dn=({cta:t,shouldShowDropdown:n,children:o,className:r="animated-dropdown",reversed:l=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=a(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(an,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!l&&t,e.createElement(ln,{className:`${r}-wrap ${r}`},e.createElement(H,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(sn,{role:"dialog",reversed:l,className:`${r}-basic-dropdown ${r}`},o))),l&&t)},cn=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${he.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:${he.text.bodySmallBold.fontFamily};font-weight:${he.text.bodySmallBold.fontWeight};font-size:${he.text.bodySmallBold.fontSize};line-height:${he.text.bodySmallBold.lineHeight};}`,un=({width:t="40px",name:n="Veeqo",bgColor:o=he.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(cn,{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))))},mn=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,pn=p(mn).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,gn=p(ye).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${he.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,hn=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,bn=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;}`,fn=p(mn).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 vn;!function(e){e.BOTTOM="bottom",e.TOP="top"}(vn||(vn={}));const yn={duration:400,side:vn.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},xn=({content:n,text:o,hoverableElement:i,config:r,reversed:a,withTriangle:l,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},yn),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:f,attributes:v}=A(i,d,{placement:`${p}-${a?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},f.popper),{zIndex:he.layers.tooltip});return e.createElement(bn,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},v.popper,{role:"tooltip"}),e.createElement(fn,{className:s.wrap,tipMinWidth:h,tipMaxWidth:b},null!=n?n:e.createElement(gn,null,o)),l&&e.createElement(hn,{id:"veeqo-components-triangle",className:s.triangle}))},wn=({children:n,text:o,content:i,config:r,reversed:a=!1,className:l,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:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},f=!(!i&&!h);if(!f)return n;const v=u&&f&&e.createElement(xn,{classNames:b,hoverableElement:p,config:r,reversed:a,withTriangle:s,text:o,content:i});return e.createElement(mn,{className:b.container},c?T.createPortal(v,document.body):v,e.createElement(pn,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},En=p(te).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:${pe.bodySmall.fontFamily};font-weight:${pe.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${ue.base};height:${ue.base};}`,Cn={default:p(En).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${ie.secondary.blue.base};color:${ie.secondary.blue.base};`,primary:p(En).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${ie.secondary.blue.base};background-color:${ie.secondary.blue.lightest};color:${ie.secondary.blue.base};`,warning:p(En).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${ie.secondary.yellow.base};background-color:${ie.secondary.yellow.lightest};color:${ie.secondary.orange.dark};`},$n=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:a,children:l})=>{const s=Cn[t];return e.createElement(wn,{text:i},e.createElement(s,{className:bt([r,a]),hideBorder:n},o&&o,l&&e.createElement("span",null,l)))},kn=p(te).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"};`,Sn=p(te).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Nn=p(te).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Ln=p(Nn).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${ue.md};height:${ue.md};color:${({accentColor:e})=>e};}`,In=p(te).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,zn=p(Nn).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Dn=p(ye).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Fn={help:ie.secondary.blue.base,info:ie.neutral.ink.base,error:ie.secondary.red.base,success:ie.secondary.green.base},On=t=>{var{type:n="info",text:o,iconSlot:i,onClose:r,className:a,header:l,children:s,backgroundColor:d="white"}=t,c=Fe(t,["type","text","iconSlot","onClose","className","header","children","backgroundColor"]);const u=Fn[n];return e.createElement(kn,Object.assign({accentColor:u,className:a,backgroundColor:d},c),e.createElement(Sn,null,i&&e.createElement(Ln,{style:{marginRight:ue.md},accentColor:u},i),s?e.createElement(In,null,s):e.createElement(e.Fragment,null,e.createElement(zn,null,l||e.createElement(Dn,{variant:"headingSmall"},o)),e.createElement(Nn,null,r&&e.createElement(Ke,{variant:"flat","aria-label":"Close",iconSlot:e.createElement(Qe,null),onClick:r})))))},Rn=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${pe.body.fontFamily};font-weight:${pe.body.fontWeight};font-size:${pe.body.fontSize};line-height:${pe.body.lineHeight};`,An=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;}`,Mn=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"})),Tn=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(An,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(An,{className:"breadcrumb"},n,t),jn=()=>e.createElement(Mn,{className:"separator",width:ue.base,height:ue.base}),Bn=({children:t,href:n})=>e.createElement("a",{href:n},t),Hn=({children:t})=>e.createElement("span",null,t),Wn=({items:t,Separator:n=e.createElement(jn,null),LinkComponent:o=Bn})=>e.createElement(Rn,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(Tn,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Hn},t.length!==r+1&&n)))),Vn=g`.react-aria-Button{color:${he.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:${he.sizes.base};height:${he.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${he.colors.secondary.blue.light};}&:active,&:hover{background-color:${he.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${he.colors.neutral.grey.base};cursor:default;}}`,Pn=g`.react-aria-CalendarCell{width:30px;line-height:30px;border-radius:${he.radius.md};border:1px solid transparent;cursor:pointer;text-align:center;&[data-hovered]{background-color:${he.colors.neutral.grey.base};}&[data-focus-visible],&[data-focused]{outline:2px solid ${he.colors.secondary.blue.light};}&[data-selected]{background:${he.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${he.colors.secondary.blue.light};}}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{cursor:not-allowed;text-decoration:line-through;color:${he.colors.secondary.red.dark};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${he.colors.neutral.ink.lightest};}&[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;}}`,Yn=g`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${ge(he.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${he.sizes.sm};}`,_n=g`width:fit-content;max-width:100%;min-width:225px;color:${he.colors.neutral.ink.base};font-size:14px;font-family:${he.fontFamily};${Yn} ${Vn} ${Pn} & table{height:fit-content;border-collapse:separate;border-spacing:0 ${he.sizes.xs};& td{padding:0;&:has(div[data-today='true']){& > div{border:1px solid ${he.colors.neutral.ink.lightest};}&:has(div[data-selected]){background-color:${he.colors.secondary.blue.base};& > div{border:1px solid ${he.colors.secondary.blue.darkest};border-radius:${he.radius.md};}&:has(div[data-selection-start]){border-start-start-radius:6px;border-end-start-radius:6px;}&:has(div[data-selection-end]){border-start-end-radius:6px;border-end-end-radius:6px;}}}}}`,Zn=p(x).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1dva9jw"})`${_n};`,qn=p(te).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?ue[e]:0};`,Xn=p.button.withConfig({displayName:"vui--SubCalendarOption",componentId:"vui--140wlkz"})`display:flex;flex-direction:column;justify-content:center;align-items:center;${ge(he.text.body)};width:60px;height:32px;padding:0;border:none;outline:none;border-radius:${he.radius.md};background-color:white;&:hover{cursor:pointer;background-color:${he.colors.neutral.grey.base};}&:focus-visible,&:active{color:white;background-color:${he.colors.secondary.blue.base};&:not([data-selected]){outline:2px solid ${he.colors.secondary.blue.light};}}`,Kn=({currentYear:t,onFocusYear:n})=>{return e.createElement(qn,{columns:3,spacing:"sm",role:"grid"},(o=t,Array.from({length:12},((e,t)=>o-5+t))).map((t=>e.createElement(Xn,{key:`year-option-${t}`,"aria-label":`Go to ${t}`,onClick:n(t)},t))));var o},Un=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gn=({onFocusMonth:t})=>e.createElement(qn,{columns:3,spacing:"sm",role:"grid"},Un.map(((n,o)=>e.createElement(Xn,{key:`month-option-${n}`,"aria-label":`Go to ${n}`,onClick:t(o)},n)))),Jn=t=>{const n=V(P());return e.createElement(w,Object.assign({weekdayStyle:"short"},t),e.createElement(E,null,(t=>e.createElement(C,null,t.slice(0,2)))),e.createElement($,null,(t=>e.createElement(k,{date:t,"data-today":0===t.compare(n)}))))};var Qn;!function(e){e[e.DODECADE=0]="DODECADE",e[e.YEAR=1]="YEAR",e[e.MONTH=2]="MONTH"}(Qn||(Qn={}));const eo=({level:t,currentYear:n,onFocusMonth:o,onFocusYear:i})=>t===Qn.YEAR?e.createElement(Gn,{onFocusMonth:o}):t===Qn.DODECADE?e.createElement(Kn,{currentYear:n,onFocusYear:i}):e.createElement(Jn,null),to={[Qn.DODECADE]:{years:10},[Qn.YEAR]:{years:1},[Qn.MONTH]:{months:1}},no={[Qn.DODECADE]:"View Day Selection",[Qn.YEAR]:"View Year Selection",[Qn.MONTH]:"View Month Selection"},oo=()=>{const[e,n]=t(Qn.MONTH);return{level:e,handleSwitchLevel:()=>{e===Qn.MONTH?n(Qn.YEAR):e===Qn.YEAR?n(Qn.DODECADE):n(Qn.MONTH)},setLevel:n}},io=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"})),ro=n(((t,n)=>{const[o,i]=S(t,n,N),{children:a,level:l,currentYear:s}=o,d=Fe(o,["children","level","currentYear"]),c=r((()=>l===Qn.DODECADE?`${s-5} - ${s+6}`:l===Qn.YEAR?s.toString():a.replace(/\b(\w{1,3})(\w*)\b/g,((e,t)=>/\d/.test(e)?e:t))),[l,s,a]);return e.createElement(ye,Object.assign({variant:"headingSmall"},d,{ref:i,style:{whiteSpace:"nowrap"}}),c)})),ao=({level:t,currentYear:n,handleSwitchLevel:o,isDisabled:i})=>e.createElement(Ht,{as:"header",direction:"horizontal",alignX:"between",alignY:"center",spacing:"0"},e.createElement(L,{slot:"previous",isDisabled:i,type:"button"},e.createElement(io,null)),e.createElement(Ht,{direction:"horizontal",alignY:"center",alignX:"stretch",spacing:"xs",style:{margin:"0 4px"}},e.createElement(ro,{level:t,currentYear:n}),e.createElement(Ke,{type:"button","aria-label":no[t],variant:"flat",iconSlot:t===Qn.DODECADE?e.createElement(ze,null):e.createElement(Je,null),size:"sm",onClick:o,disabled:i})),e.createElement(L,{slot:"next",isDisabled:i,type:"button"},e.createElement(Mn,null))),lo=({disabledRanges:e,disallowWeekends:t,minValue:n,maxValue:o})=>{const{locale:i}=I(),r=r=>!!r&&(!(!t||!_(r,i))||(!!(n&&r.compare(n)<0)||(!!(o&&r.compare(o)>0)||!!e&&e.some((([e,t])=>r.compare(e)>=0&&r.compare(t)<=0)))));return{isDateUnavailable:r,isDateRangeUnavailable:e=>{if(!e)return!1;const{start:t,end:n}=e,[o,i]=[t,n].sort();let a=o;for(;a.compare(i)<=0;){if(r(a))return!0;a=a.add({days:1})}return!1}}},so=n=>{var{value:o,onChange:r,isDisabled:a}=n,l=Fe(n,["value","onChange","isDisabled"]);const{level:s,focusedDate:d,setFocusedDate:c,currentYear:u,onFocusMonth:m,onFocusYear:p,handleSwitchLevel:g}=(e=>{const[n,o]=t((null==e?void 0:e.start)||V(P())),{level:r,setLevel:a,handleSwitchLevel:l}=oo();i((()=>{e&&o(e.start)}),[e]);const s=(null==n?void 0:n.year)||(null==e?void 0:e.start.year)||(new Date).getFullYear(),d=(null==n?void 0:n.month)||(null==e?void 0:e.start.month)||(new Date).getMonth()+1;return{level:r,focusedDate:n,setFocusedDate:o,currentYear:s,onFocusMonth:e=>()=>{o(new Y(s,e+1,1)),a(Qn.MONTH)},onFocusYear:e=>()=>{o(new Y(e,d,1)),a(Qn.YEAR)},handleSwitchLevel:l}})(o),{isDateUnavailable:h}=lo({disabledRanges:l.disabledRanges,disallowWeekends:l.disallowWeekends,maxValue:l.maxValue,minValue:l.minValue});return e.createElement(Zn,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:h,visibleDuration:to[s],value:o,onChange:r,isDisabled:a},l),e.createElement(ao,{currentYear:u,level:s,handleSwitchLevel:g,isDisabled:a}),e.createElement(eo,{level:s,currentYear:u,onFocusMonth:m,onFocusYear:p}))},co=p(z).withConfig({displayName:"vui--StyledCalendar",componentId:"vui--6d0gjz"})`${_n};& .react-aria-CalendarCell[data-selected],& table td{border-radius:8px;}`,uo=n=>{var{value:o,onChange:r,isDisabled:a}=n,l=Fe(n,["value","onChange","isDisabled"]);const{level:s,focusedDate:d,setFocusedDate:c,currentYear:u,onFocusMonth:m,onFocusYear:p,handleSwitchLevel:g}=(e=>{const[n,o]=t(e||V(P())),{level:r,setLevel:a,handleSwitchLevel:l}=oo();i((()=>{e&&o(e)}),[e]);const s=(null==n?void 0:n.year)||(null==e?void 0:e.year)||(new Date).getFullYear(),d=(null==n?void 0:n.month)||(null==e?void 0:e.month)||(new Date).getMonth()+1;return{level:r,focusedDate:n,setFocusedDate:o,currentYear:s,onFocusMonth:e=>()=>{o(new Y(s,e+1,1)),a(Qn.MONTH)},onFocusYear:e=>()=>{o(new Y(e,d,1)),a(Qn.YEAR)},handleSwitchLevel:l}})(o),{isDateUnavailable:h}=lo({disabledRanges:l.disabledRanges,disallowWeekends:l.disallowWeekends,maxValue:l.maxValue,minValue:l.minValue});return e.createElement(co,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:h,visibleDuration:to[s],value:o,onChange:r,isDisabled:a},l),e.createElement(ao,{currentYear:u,level:s,handleSwitchLevel:g,isDisabled:a}),e.createElement(eo,{level:s,currentYear:u,onFocusMonth:m,onFocusYear:p}))},mo={top:"flex-start",center:"center"},po=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${he.sizes.base};}`,go=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>mo[e.align]};`,ho=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,bo=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${he.sizes.sm};}`,fo=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${he.fontFamily};font-size:${he.sizes[3]};line-height:${he.sizes[4]};color:${he.colors.neutral.ink.light};`,vo=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${he.text.error.fontFamily};font-size:${he.text.error.fontSize};font-weight:${he.text.error.fontWeight};line-height:${he.text.error.lineHeight};color:${he.text.error.color};`,yo=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,xo=p(yo).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${he.colors.neutral.grey.dark};border-radius:${he.radius.md};padding:${he.sizes.base} 0.75rem;&:hover{border-color:${he.colors.secondary.blue.base};}`,wo=p(wn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,Eo=({id:t,className:n,label:o,hint:i,tooltip:r,error:a,bordered:l,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(po,null,"left"===g&&e.createElement(go,{align:d?"center":"top"},u),d&&e.createElement(ho,null,d),o||i||a||s||c?e.createElement(bo,null,e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},s,o&&e.createElement(ye,{variant:p,className:h.label},o),r&&e.createElement(wo,{text:r,className:h.tooltip},e.createElement(_t,{name:"help",width:he.sizes.base,color:he.colors.neutral.ink.lightest}))),i&&e.createElement(fo,{className:h.hint},i),a&&e.createElement(vo,{className:h.error},a),c):null,"right"===g&&e.createElement(go,{align:d?"center":"top"},u));return l?e.createElement(xo,{disabled:m,htmlFor:t,className:n},f):e.createElement(yo,{disabled:m,htmlFor:t,className:n},f)},{colors:Co,sizes:$o,radius:ko}=he,So=p.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Co.neutral.ink.lightest};border-radius:${ko.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Co.secondary.blue.base};border-color:${Co.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:${$o[4]};background-position:center;}&:hover{border-color:${Co.secondary.blue.base};}&:active{border-color:${Co.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Co.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Co.secondary.blue.base};border-color:${Co.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:${$o[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Co.neutral.grey.base};border-color:${Co.neutral.grey.base};color:${Co.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>");}`,No=t=>{var{checked:n,indeterminate:o,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=Fe(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=r((()=>mt("checkbox")),[]),b=a(null),f=l((e=>{p(e.currentTarget.checked,s)}),[p,s]);return i((()=>{b.current&&(b.current.indeterminate=!0===o)}),[o]),e.createElement(Eo,Object.assign({id:h,disabled:c,className:m},g),e.createElement(So,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,onChange:f}))},Lo=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;}`,Io=n(((t,n)=>{var{checked:o,value:i,name:r,disabled:a,onChange:s,id:d,children:c}=t,u=Fe(t,["checked","value","name","disabled","onChange","id","children"]);const m=l((e=>{s(e.currentTarget.checked,i)}),[s,i]),p=null!=d?d:mt("radio");return e.createElement(Eo,Object.assign({id:p,disabled:a},u),e.createElement(Lo,{id:p,type:"radio",checked:o,value:i,name:r,disabled:a,onChange:m,ref:n}),c)})),zo=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Do=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${he.text.inputLabel.fontFamily};font-size:${he.text.inputLabel.fontSize};font-style:${he.text.inputLabel.fontStyle};font-weight:${he.text.inputLabel.fontWeight};line-height:${he.text.inputLabel.lineHeight};text-decoration:${he.text.inputLabel.textDecoration};color:${he.text.inputLabel.color};`;class Fo 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:a}=this.props,l=t?No:Io;return e.createElement(zo,{disabled:r},i&&e.createElement(Do,null,i),n.map((t=>e.createElement(l,Object.assign({key:t.value,bordered:a,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const 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",{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"})),Ro={width:ue.base,height:ue.base},Ao=p(Ke).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${ue.base};width:${ue.base};top:unset;}`,Mo=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),a=l((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(wn,{text:i?"Copied!":"Copy to clipboard"},e.createElement(Ao,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,iconSlot:i?e.createElement(qt,Object.assign({color:ie.secondary.green.base},Ro)):e.createElement(Oo,Object.assign({color:ie.secondary.blue.base},Ro)),onClick:a}))},To=p.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${he.text.inputLabel.fontFamily};font-size:${he.text.inputLabel.fontSize};font-weight:${he.text.inputLabel.fontWeight};line-height:${he.text.inputLabel.lineHeight};color:${he.text.inputLabel.color};`,jo=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${he.fontFamily};font-size:${he.sizes[3]};line-height:${he.sizes[4]};color:${he.colors.neutral.ink.light};`,Bo=p.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${he.text.error.fontFamily};font-size:${he.text.error.fontSize};font-weight:${he.text.error.fontWeight};line-height:${he.text.error.lineHeight};color:${he.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${he.sizes[2]} * -1);width:2px;background-color:${he.colors.secondary.red.base};}`,Ho=p(Ht).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Wo=p(wn).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,Vo=t=>n=>{var{label:o,hint:i,error:r,tooltip:a}=n,l=Fe(n,["label","hint","error","tooltip"]);const s=At({id:null==l?void 0:l.id,prefix:t.name});return o?e.createElement(Ho,{spacing:"sm",alignX:"stretch"},e.createElement("div",{style:{marginBottom:he.sizes.xs}},e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(To,{id:`${s}-label`,htmlFor:s},o),a&&e.createElement(Wo,{text:a},e.createElement(_t,{width:he.sizes.base,height:he.sizes.base,color:he.colors.neutral.ink.light}))),i&&e.createElement(jo,null,i)),e.createElement(t,Object.assign({id:s,hasError:!!r},l)),r&&e.createElement(Bo,null,r)):e.createElement(t,Object.assign({hasError:!!r},l))},Po=t=>n=>(i((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Yo=p(D).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--cprola"})`${ge(he.text.body)} display:flex;align-items:center;justify-content:space-between;gap:8px;height:22px;z-index:1;border:1px solid ${he.colors.neutral.ink.lightest};border-radius:${he.radius.base};gap:${he.sizes.xs};padding:${he.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${he.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${he.colors.secondary.red.light};border:1px solid ${he.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${he.colors.secondary.red.light};\n border: 1px solid ${he.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${he.colors.neutral.ink.light};}.date-range-input-splitter{margin:0 ${he.sizes.sm};}&[data-disabled]{cursor:not-allowed;background-color:${he.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${he.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:${he.radius.base};&[data-focused]{color:white;background-color:${he.colors.secondary.blue.dark};&[data-invalid]{background-color:${he.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${he.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,_o=Vo((n=>{var{id:o,className:r,style:a,shouldForceLeadingZeros:s=!0,rightAction:d,startValue:c,endValue:u,isDisabled:m,isReadOnly:p,isRangeInput:g=!1,hasError:h,"aria-label":b,"aria-describedby":f,"aria-labelledby":v,onChange:y,onChangeStartDate:x,onChangeEndDate:w,rangeRef:E,rightActionRef:C}=n,$=Fe(n,["id","className","style","shouldForceLeadingZeros","rightAction","startValue","endValue","isDisabled","isReadOnly","isRangeInput","hasError","aria-label","aria-describedby","aria-labelledby","onChange","onChangeStartDate","onChangeEndDate","rangeRef","rightActionRef"]);const{isDateUnavailable:k,isDateRangeUnavailable:S}=lo($),[N,L]=t(!1),[I,z]=t(!1),D=l((e=>{if(!e)return"no date";if(!g)return!k(e)||"Invalid date selection";const t={start:e===c?e:c,end:e===u?e:u};return t.start&&t.end?!S(t)||"Invalid range selection":!k(e)||"Invalid date selection"}),[g,c,u,k,S]);return i((()=>{L(!!c&&!0!==D(c)),z(!(!g||!u)&&!0!==D(u))}),[c,u,g,D]),e.createElement(Ht,{direction:"horizontal",alignX:"stretch",alignY:"center",spacing:0},e.createElement(Yo,{ref:E,style:a,className:r,"aria-label":b,"aria-describedby":f,"aria-labelledby":null!=v?v:`${o}-label`,$hasError:h,isDisabled:m},e.createElement(Ht,{spacing:0,direction:"horizontal",alignX:"center"},e.createElement(F,Object.assign({shouldForceLeadingZeros:s,onChange:g?x:y,value:c,validate:D,"aria-describedby":f,"aria-labelledby":null!=v?v:`${o}-label`,"aria-label":g?"start date":"date",isDisabled:m,isReadOnly:p,isInvalid:N},$),e.createElement(O,{slot:"start"},(t=>e.createElement(R,{segment:t})))),g&&e.createElement(e.Fragment,null,e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement(F,Object.assign({shouldForceLeadingZeros:s,onChange:w,value:u,"aria-describedby":f,"aria-labelledby":null!=v?v:`${o}-label`,"aria-label":"end date",isDisabled:m,isReadOnly:p,validate:D,isInvalid:I},$),e.createElement(O,{slot:"end"},(t=>e.createElement(R,{segment:t})))))),d&&e.createElement(Ke,Object.assign({type:"button",ref:C,variant:"flat",style:{padding:"2px",height:"unset"}},d))))})),Zo=t=>e.createElement("svg",Object.assign({viewBox:"0 0 25 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"})),qo=p.footer.withConfig({displayName:"vui--DatePickerFooter",componentId:"vui--17flrd9"})`display:flex;justify-content:end;margin-top:${ue.base};margin-left:-${ue.base};margin-right:-${ue.base};padding:${ue.base};padding-bottom:0;border-top:${ue.line} solid ${ie.neutral.grey.base};`,Xo=n=>{var{className:o,style:i,value:l,onChange:s,"aria-label":d,isDisabled:c,shouldCloseOnSelect:u=!0,rootElementRef:m,maxValue:p,minValue:g,disabledRanges:h,disallowWeekends:b}=n,f=Fe(n,["className","style","value","onChange","aria-label","isDisabled","shouldCloseOnSelect","rootElementRef","maxValue","minValue","disabledRanges","disallowWeekends"]);const[v,y]=t(!1),x=a(l),w=a(null),E=a(null),C=()=>{var e;y(!1),null===(e=E.current)||void 0===e||e.focus()},$=e=>{s(e),u&&v&&setTimeout(C,0)},k={maxValue:p,minValue:g,disabledRanges:h,disallowWeekends:b},{isDateUnavailable:S}=lo(k),N=r((()=>!!l&&S(l)),[S,l]),L=f.error||(N?"Invalid date selection":void 0);return e.createElement(e.Fragment,null,e.createElement(_o,Object.assign({isDisabled:c,"aria-label":d,startValue:l,rightActionRef:E,rightAction:{iconSlot:e.createElement(Zo,null),"aria-label":"Open Calendar",onClick:()=>y(!v),disabled:c,"aria-controls":"data-picker-dropdown","aria-haspopup":!0,"aria-expanded":v},onChange:$,rangeRef:w,className:o,style:i},f,k,{error:L})),v&&e.createElement(Ct,{id:"date-picker-dropdown",style:{marginTop:ue.sm},anchorElement:w.current,onShouldClose:C,placement:"bottom-start",ignoreAriaWarnings:!0,rootElementRef:m},e.createElement(ct.Surface,{style:{padding:ue.base}},e.createElement(uo,Object.assign({value:l,onChange:$,"aria-label":`${d} Calendar`,isDisabled:c},k)),e.createElement(qo,null,e.createElement(Ke,{type:"button",variant:"flat",onClick:()=>$(x.current),size:"sm",disabled:c},"Reset")))))},Ko=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;}`,Uo=Vo(n(((t,n)=>{var{className:o,options:i,value:r,onChange:a,size:s,disabled:d,hasError:c}=t,u=Fe(t,["className","options","value","onChange","size","disabled","hasError"]);const m=l((e=>{a&&a(e.currentTarget.value)}),[a]);return e.createElement(Ko,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))))})));Uo.displayName="Select";const Go=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?he.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Jo=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${he.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${Go}{box-shadow:0 0 0 4px ${he.colors.brand.blue.light};}&:checked + ${Go}{background-color:#0079d1;}&:disabled + ${Go}{background-color:${he.colors.neutral.grey.base};}&:checked:disabled + ${Go}{background-color:${he.colors.secondary.blue.light};}`,Qo=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;}${Go}: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"};}${Jo}:checked + ${Go}{&: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"});}}`,ei=p(te).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,ti=n(((t,n)=>{var{id:o="testid",className:i,name:r,switched:a,small:l,onClick:s=(()=>{}),disabled:d,ariaLabel:c,inputPosition:u="right"}=t,m=Fe(t,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return e.createElement(Eo,Object.assign({id:o,inputPosition:u},m),e.createElement(ei,{className:i,disabled:d},e.createElement(Qo,{small:l,disabled:d,className:i},e.createElement(Jo,{id:o,role:"switch",type:"checkbox",name:r,"aria-label":c,checked:!!a,onChange:e=>d?void 0:s(e),disabled:d,ref:n}),e.createElement(Go,{switched:a,disabled:d}))))})),ni=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],oi=({options:n=ni,selectedPreviousPeriod:o,setSelectedPreviousPeriod:r})=>{const[a,l]=t(!!o);return i((()=>{o||null==r||r(n[0])}),[o,r,n]),e.createElement(e.Fragment,null,e.createElement(ye,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:he.sizes.sm,whiteSpace:"nowrap"}},e.createElement(ti,{small:!0,switched:a,onClick:()=>{a&&(null==r||r(null)),l(!a)}}),"Compare previous period"),a&&e.createElement(Uo,{"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 ii;!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"}(ii||(ii={}));const ri=e=>{const t=Z(P());let n;switch(e){case ii.TODAY:n={start:t,end:t};break;case ii.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case ii.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case ii.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case ii.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case ii.LAST_MONTH:{const e=X(t.subtract({months:1}));n={start:e,end:U(e)};break}case ii.LAST_12_MONTHS:{const e=X(t.subtract({months:1}));n={start:X(e).subtract({months:12}),end:U(e)};break}case ii.WEEK_TO_DATE:n={start:K(t,navigator.language),end:t};break;case ii.MONTH_TO_DATE:n={start:X(t),end:t};break;case ii.YEAR_TO_DATE:n={start:q(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new Y(t.year,t.month,t.day),end:new Y(n.year,n.month,n.day)}})(n)},ai=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:ii.TODAY},{label:"Yesterday",value:ii.YESTERDAY},{label:"Last 7 Days",value:ii.LAST_7_DAYS},{label:"Last 30 Days",value:ii.LAST_30_DAYS},{label:"Last 90 Days",value:ii.LAST_90_DAYS},{label:"Last Month",value:ii.LAST_MONTH},{label:"Last 12 Months",value:ii.LAST_12_MONTHS},{label:"Week to Date",value:ii.WEEK_TO_DATE},{label:"Month to Date",value:ii.MONTH_TO_DATE},{label:"Year to Date",value:ii.YEAR_TO_DATE}],li=ii.LAST_30_DAYS,si=ri(li),di=ai.find((({value:e})=>e===li)),ci=p.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${he.sizes.base};border-top:1px solid ${he.colors.neutral.grey.base};`,ui=t=>{var{className:n,style:o,isDisabled:a,showDatePresets:s=!0,onReset:d,disabledRanges:c,disallowWeekends:u,maxValue:m,minValue:p,selectedPreset:g,setSelectedPreset:h,selectedRange:b,setSelectedRange:f,"aria-describedby":v,"aria-label":y}=t,x=Fe(t,["className","style","isDisabled","showDatePresets","onReset","disabledRanges","disallowWeekends","maxValue","minValue","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const{isDateRangeUnavailable:w}=lo({disabledRanges:c,disallowWeekends:u,maxValue:m,minValue:p}),E=l((e=>t=>{const n={start:"start"===e?t:null==b?void 0:b.start,end:"end"===e?t:null==b?void 0:b.end};f(n)}),[null==b?void 0:b.end,null==b?void 0:b.start,f]),C=r((()=>w(b)),[w,b]),$=r((()=>b?(e=>ai.reduce(((t,n)=>{if(n.hidden||t)return t;const o=ri(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))(b):null),[b]);return i((()=>{h($||ai[0])}),[$,h]),e.createElement(Ht,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:he.sizes.base},o),className:n,"aria-describedby":v,"aria-label":y},s&&e.createElement(Uo,{disabled:a,label:"Date Range",options:ai,value:null==g?void 0:g.value,onChange:e=>{f(ri(ii[e])),h(ai.find((({value:t})=>t===e))||ai[0])}}),e.createElement(_o,{isRangeInput:!0,isDisabled:a,label:"Start date - End date",onChangeStartDate:E("start"),onChangeEndDate:E("end"),startValue:b&&b.start,endValue:b&&b.end,error:C?"Range contains invalid dates":void 0,disabledRanges:c,disallowWeekends:u,maxValue:m,minValue:p}),x.showPreviousPeriod&&e.createElement(oi,Object.assign({},x)),e.createElement(ci,null),e.createElement(Ht,{alignX:"center"},e.createElement(so,{"aria-label":"Selected Date Range",isDisabled:a,value:b,onChange:f,disabledRanges:c,maxValue:m,minValue:p,disallowWeekends:u})),!!d&&e.createElement(e.Fragment,null,e.createElement(ci,null),e.createElement(ct.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},e.createElement(Ke,{variant:"default",size:"sm",onClick:d,disabled:a},"Reset"))))};function mi(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function pi(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${pi(e.min,"max-content")}, ${pi(e.max)})`;default:return t||"1fr"}}function gi({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,stripingMode:i,columnWidths:r,columns:a}){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 `)),s=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 `)),d="start"!==o&&"none"!==o,c=`\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: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,u="end"!==o&&"none"!==o,m=`\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: ${u?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,p=`\n tr:nth-child(odd) > td {\n background-color: ${he.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${he.colors.neutral.grey.base};\n }\n `,g=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${he.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${he.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>{var t;return pi(null!==(t=r[e.id])&&void 0!==t?t: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?s:""}\n\n ${c}\n ${m}\n\n ${"nested"===i?g:p}\n `}var hi;!function(e){e.ascending="ascending",e.descending="descending"}(hi||(hi={}));const bi=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"})),fi=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"})),vi=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"})),yi=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===hi.ascending?e.createElement(fi,{color:he.colors.neutral.ink.dark,size:o}):e.createElement(vi,{color:he.colors.neutral.ink.dark,size:o}):e.createElement(bi,{size:o});function xi(e,n){const[o,r]=t([]),a=()=>{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((()=>{a()}),[e.current]),i((()=>{if(!n.current)return;const e=G(a,50),t=new M(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}class wi extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const Ei=({tableRef:e,columns:n,columnIds:o,columnWidths:r})=>{const[a,l]=t(r||{});return i((()=>{const e=n.reduce(((e,t)=>(e[t.id]=t.width,e)),{});const t=r?Object.assign({},a):e;Object.keys(e).forEach((n=>{void 0===typeof a[n]&&(t[n]=e[n])})),l(t)}),[JSON.stringify(o)]),i((()=>{r&&l(r)}),[r]),{setColumnWidth:({columnId:t,width:o})=>{const i=Object.assign({},a);return n.forEach(((r,l)=>{const s=l===n.length-1,d=r.id===t?o:((t,n)=>{var o,i,r;return n?a[t.id]||t.width:a[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})),l(i),((e,t)=>{const n=new wi(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:e,columnWidths:i}),i},columnWidths:a}};function Ci(e,t,n,o){const{columnWidths:i,setColumnWidth:r}=Ei({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e)),columnWidths:o}),a=l((({columnId:e,width:t})=>{const o=r({columnId:e,width:t});n&&n(o||i)}),[r,n,i]),s=e.filter((e=>!0!==e.hidden)),d=s.filter((e=>"left"===e.pinned)),c=s.filter((e=>"right"===e.pinned)),u=s.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...d,...u,...c],columnWidths:i,pinnedLeft:d,pinnedRight:c,setColumnWidth:a}}function $i(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"))},a=e=>{var t,a,l;n&&(e.target instanceof HTMLElement&&(null===(l=null===(a=null===(t=e.target)||void 0===t?void 0:t.classList)||void 0===a?void 0:a.contains)||void 0===l?void 0:l.call(a,"th-divider"))||(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)))};return n.addEventListener("mousedown",a),()=>null==n?void 0:n.removeEventListener("mousedown",a)}),[e.current])}function ki(){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 Si(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=G(r,50),n=new M(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Ni="56px",Li=p.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Ni};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>mi(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>he.sizes[e]};padding-right:${({spacing:e=3})=>he.sizes[e]};border-bottom:1px solid ${he.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,a=Fe(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Li,Object.assign({},a)):e.createElement(Li,Object.assign({},a),e.createElement(No,{checked:n,indeterminate:o,onChange:i}))}const zi=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>mi(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>he.sizes[e]};padding-right:${({spacing:e=3})=>he.sizes[e]};color:${he.text.bodySmall.color};font-family:${he.text.bodySmall.fontFamily};font-size:${he.text.bodySmall.fontSize};font-style:${he.text.bodySmall.fontStyle};font-weight:${he.text.bodySmall.fontWeight};line-height:${he.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${he.colors.secondary.blue.base};background-color:${he.colors.neutral.grey.lightest};}`;function Di(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:a}=t,l=Fe(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(zi,Object.assign({},l),e.createElement(Io,{value:o,checked:n,disabled:a,onChange:i})):e.createElement(zi,Object.assign({},l),e.createElement(No,{value:o,checked:n,disabled:a,onChange:i}))}const Fi=[[],()=>{}];function Oi({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,a]=n||Fi,l=()=>{r.length!==o.length?a(o):a([])};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:l,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(Di,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)a([n]);else if(e){if(r.includes(n))return;const e=[...r,n];a(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),a(t)}}}}const Ri=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:${he.colors.neutral.ink.lightest};`,Ai=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${he.text.headingTable.color};font-family:${he.text.headingTable.fontFamily};font-size:${he.text.headingTable.fontSize};font-style:${he.text.headingTable.fontStyle};font-weight:${he.text.headingTable.fontWeight};line-height:${he.text.headingTable.lineHeight};`,Mi=p(Ai).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 ${Ri}{background-color:${he.colors.neutral.grey.light};color:${he.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${he.colors.secondary.blue.light};}`,Ti=p.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${he.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;user-select:none;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,ji=({columnId:t,setColumnWidth:n,minWidth:o})=>{const i=d(),r=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)`},a=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:i}=n,r=null==i?void 0:i.getBoundingClientRect().width,a=i.querySelector(".headerContent").getBoundingClientRect().width,l=o&&a<o?o:a,s=(e.clientX||0)-(t||0);return Math.max((r||0)+s,l+24)},l=e=>{window.removeEventListener("mouseup",l),window.removeEventListener("dragend",l),window.removeEventListener("mousemove",r),window.removeEventListener("drag",r),null==n||n({columnId:t,width:a({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"))},s=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:i.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",r),window.addEventListener("drag",r))};return e.createElement(Ti,{ref:i,className:"th-divider",onMouseDown:s,onDragStart:s})};function Bi({column:t,sortState:n,onChangeSort:o,resizeableColumns:i,setColumnWidth:r,columnCount:a=1,columnI:l=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?Mi:Ai,c=t.sortable?{onClick:()=>{if(!n)return void console.warn("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===hi.ascending;let i=hi.ascending;return n&&o&&(i=hi.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.warn("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Li,Object.assign({},s,{zIndex:3}),e.createElement(wn,{text:t.tooltip},e.createElement(d,Object.assign({},c,{className:"headerContent"}),t.iconSlot,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Ri,null,e.createElement(yi,{sortState:n,columnId:t.id,size:5})))),i&&l<a-1&&e.createElement(ji,{columnId:t.id,setColumnWidth:r,minWidth:null==t?void 0:t.resizeMinWidth}))}const Hi=he.colors.neutral.grey.base,Wi=he.colors.neutral.grey.dark,Vi=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${he.radius.base};background:${Hi};background-image:linear-gradient(\n to right,\n ${Hi} 0%,\n ${Wi} 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 Pi=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 ${he.colors.neutral.grey.base};& > *{flex:1;}`;function _i({selectionColumn:n,intersectionTargetRef:o,containerRef:r,children:a}){var l;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===(l=r.current)||void 0===l?void 0:l.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(Pi,{style:m},Bi({column:n}),e.createElement(Yi,null,a))}const Zi=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"})),qi=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"})),Xi=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 Ki=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${he.sizes.lg};padding-bottom:${he.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${he.sizes.md};`,Ui=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${he.sizes.md};background-color:${he.colors.neutral.grey.light};border-radius:${he.radius.full};`,Gi=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ji=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${he.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 `}`,Qi=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,er=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${he.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,tr=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,nr={full:`border-width: 1px; border-radius: ${he.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},or=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${he.colors.neutral.grey.dark};${({borderMode:e="full"})=>nr[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function ir({children:n,intersectionTargetRef:o,containerRef:r,cellWidths:l,tableCss:s,stickyHeaderTop:d=0}){const c=a(null),[u,m]=t(!1),[p,g]=t({top:0,left:0,width:0,height:0}),h=a(null),b=()=>{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};g(n)},f=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=c.current)||void 0===e||e.scrollTo(t,0)};if(i((()=>{if(!o.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{m(!e.isIntersecting)}))}),{rootMargin:`-${d}px 100% 0px 100%`,threshold:1});return e.observe(o.current),()=>e.disconnect()}),[o.current]),i((()=>{u&&r.current&&b()}),[r.current,u]),i((()=>{if(!u)return;if(!r.current)return;const e=G(b,30),t=new M(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,u]),i((()=>{if(!u)return;if(!r.current)return;const e=G((()=>{var e;const{left:t}=(null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect())||{};t&&h.current!==t&&(b(),h.current=t)}),30);return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)}),[r.current,u]),i((()=>{f()}),[u]),i((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",f),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",f)}}),[r.current]),!u)return null;const v=Object.assign(Object.assign({},p),{height:Ni,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${he.colors.neutral.grey.base}`,borderTop:`1px solid ${he.colors.neutral.grey.base}`,boxShadow:le.base,top:`${d}px`||"0px"}),y=s+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:v,ref:c},e.createElement(er,{css:y},e.createElement("thead",null,n)))}const rr=(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}),ar={iconSlot:e.createElement(Zt,{width:48,height:48}),heading:"No results"},lr=()=>{},sr=({actionBarSlot:t,borderMode:n,columns:o,emptyState:i=ar,expandedRowIds:r,loading:l,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f,resizeableColumns:v,onResizeColumns:y,columnWidths:x,stickyHeaderTop:w})=>{const E=a(null),C=a(null),$=a(null);$i(E);const k=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:S,selectedRowIds:N,selectionColumn:L,setSelected:I}=Oi({selectionMode:m,selectionState:p,enabledRowIds:k}),z={setSelected:I||lr,setExpanded:g||lr},D=[L,...o],F=S?D:o,O=xi(C,E),{visible:R,pinnedLeft:A,pinnedRight:M,setColumnWidth:T,columnWidths:j}=Ci(F,C,y,x),B=O.length===R.length?R.map(((e,t)=>Number.isNaN(j[e.id]||"")?O[t]:j[e.id])):O,{scrollPosition:H}=Si(E),W=gi({pinnedLeft:A,pinnedRight:M,cellWidths:B,scrollPosition:H,columnWidths:j,columns:R,stripingMode:b});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(or,{borderMode:n},e.createElement(Qi,{ref:E},e.createElement(er,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ji,{role:"row"},R.map(((e,t)=>Bi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:R.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Ji,{key:t.id},R.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(zi,Object.assign({},o),e.createElement(Vi,null))}(t,n))))))))))}if(0===c.length)return e.createElement(or,{borderMode:n},e.createElement(Qi,{ref:E},e.createElement(er,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Ji,{role:"row"},R.map(((e,t)=>Bi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:R.length,columnI:t}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Ki,{columnCount:R.length},e.createElement(Ui,null,i.iconSlot),e.createElement(Ht,{spacing:"sm",alignX:"center"},e.createElement(ye,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(ye,{variant:"subheadingMedium"},i.subheading)))))));const V=t=>{const{e2eClassName:n="",accentColor:o}=t,i=rr(t.id,{selectedRowIds:N,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ji,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),R.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,z,i))))},P=(t,n)=>{var o,i;const a=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,l=rr(n,{selectedRowIds:N,expandedRowIds:r,disabledRowIds:u});return e.createElement(Ji,{role:"row",key:t.id,className:a},R.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(zi,Object.assign({},i))}(t,n,l))))},Y=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},V(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>P(e,t.id)))))},_=e.createElement(Ji,{role:"row"},R.map(((e,t)=>Bi({column:e,sortState:h,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:R.length,columnI:t})))),Z=o.some((e=>!!e.renderFooter)),q=N.length>0&&!!t;return e.createElement(or,{borderMode:n},q&&e.createElement(_i,{selectionColumn:L,intersectionTargetRef:$,containerRef:E},t),e.createElement(Qi,{ref:E},f&&e.createElement(ir,{tableCss:W,intersectionTargetRef:$,containerRef:E,cellWidths:B,stickyHeaderTop:w},_),e.createElement("div",{ref:$,style:{height:0}}),e.createElement(er,{css:W,ref:C,role:"table"},e.createElement("thead",{role:"rowgroup"},_),(()=>{const t=!!r;return t&&"nested"===b?c.map(Y):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[V(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>P(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(V))})(),Z&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Ji,{role:"row"},R.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(zi,Object.assign({},n))}({column:t}))))))))};sr.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},sr.Cell=zi,sr.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,a]=t(null),[l,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(Ke,{ref:a,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&e.createElement(Ct,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(ct,{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(Ke,{variant:"flat",iconSlot:e.createElement(Xi,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(Ke,{variant:"flat",iconSlot:e.createElement(qi,null),onClick:()=>m(n,!1),style:{color:he.colors.neutral.ink.lightest}}):e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Zi,null),onClick:()=>m(n,!0)})))))))))},sr.SelectionCell=Di,sr.SelectionHeader=Ii,sr.Header=Li,sr.Truncate=tr,sr.NoWrap=Gi;const dr=p.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${he.sizes.base};}`,cr=p.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${he.sizes.xs};}`,ur=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${he.sizes.base};}`,mr=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${he.sizes.xs};}`,pr=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${he.text.bodyBold.fontFamily};font-size:${he.text.bodyBold.fontSize};font-weight:${he.text.bodyBold.fontWeight};line-height:${he.text.bodyBold.lineHeight};color:${he.text.bodyBold.color};`,gr=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${he.text.body.fontFamily};font-size:${he.text.body.fontSize};font-weight:${he.text.body.fontWeight};line-height:${he.text.body.lineHeight};color:${he.text.body.color};`,hr=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(gr,{key:t},t))):e.createElement(gr,null,t);return e.createElement(dr,null,t.map((t=>n?e.createElement(ur,{key:t.term},e.createElement(pr,null,t.term),e.createElement(mr,null,o(t.description))):e.createElement(cr,{key:t.term},e.createElement(pr,null,t.term),o(t.description)))))},{sizes:br,colors:fr}=he,vr=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${br.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${br.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,yr=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${br.md};overflow-x:hidden;background-color:${fr.neutral.grey.lightest};`,xr=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(yr,null,e.createElement(vr,{showSidebar:i},o)))},wr=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 Er;!function(e){e.base="base",e.sm="sm"}(Er||(Er={}));const Cr=({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 "}`,$r=p.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${he.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 `}} ${Cr} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,kr=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;${Cr}`,Sr=/^-?[0-9]*\.?[0-9]+$/,Nr=Vo(n(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:a,multiline:s=!1,spellCheck:d=!1,name:c,onChange:u,placeholder:m,size:p=Er.base,type:g="text",value:h}=t,b=Fe(t,["id","className","disabled","hasError","multiline","spellCheck","name","onChange","placeholder","size","type","value"]);const f=l((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==g)return void u(t);new RegExp(Sr).test(t)&&u(t)}),[u,g]),v=null!=o?o:mt("textfield");return"text"===g&&s?e.createElement(kr,Object.assign({className:i,disabled:r,hasError:a,id:v,name:c,onChange:f,placeholder:m,value:h,ref:n,spellCheck:d},b)):e.createElement($r,Object.assign({className:i,disabled:r,hasError:a,id:v,inputSize:p,name:c,"aria-label":c,onChange:f,placeholder:m,type:g,value:h,ref:n,spellCheck:d},b))})));Nr.displayName="TextField";const Lr=p(te).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Ir=p(te).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,zr=p(Nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${he.colors.neutral.ink.lightest};}`,Dr=p(Ke).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${he.colors.neutral.ink.lightest};`;p(ye).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${he.text.error.fontFamily};font-size:${he.text.error.fontSize};font-weight:${he.text.error.fontWeight};line-height:${he.text.error.lineHeight};color:${he.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${he.sizes[2]} * -1);width:2px;background-color:${he.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${he.fontFamily};font-size:${he.sizes[3]};line-height:${he.sizes[4]};color:${he.colors.neutral.ink.light};`;const Fr=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Or=["-","+","E","e"],Rr=e=>Fr(e,Or),Ar=Vo((t=>{var{size:n=Er.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:a,height:l,width:s,length:d,unit:c}=t,u=Fe(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Lr,{className:a},e.createElement(Ir,null,e.createElement(zr,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Rr},u)),e.createElement(Qe,{height:he.sizes.base,width:he.sizes.base}),e.createElement(zr,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Rr},u)),e.createElement(Qe,{height:he.sizes.base,width:he.sizes.base}),e.createElement(wr,null,e.createElement(zr,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l,min:"0",step:"any",onKeyDown:Rr},u)),e.createElement(Dr,{size:n},c))))}));Ar.displayName="DimensionsInput";const Mr=p(te).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${ie.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${ie.neutral.grey.dark};border-radius:4px;svg{width:${ue.base};height:${ue.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${he.colors.secondary.blue.light};}`,Tr=p(ye).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,jr=p(Tr).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Br=p(Je).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Hr=p(Qe).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Wr=p(te).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Vr=p(te).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 ${ie.neutral.grey.base};svg{color:${({color:e})=>e};width:${ue[5]};height:${ue[5]};margin-right:10px;}`,Pr=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:a,fill:s=ie.secondary.blue.base,content:d,footer:c,header:u,onClickAway:m,onClick:p,shouldCloseOnClickAway:g=!0})=>{const h=Pr(n),b=Pr(o),[f,v]=t(null),[y,x]=t(null),{shouldShowDropdown:w,toggleShouldShowDropdown:E,closeDropdown:C}=Lt({anchorElement:f}),{handleKeyDown:$}=Et({popperElement:y,anchorElement:f,onClose:C}),k=l((e=>{w?C():E(),m&&w&&m(e)}),[w,C,E,m]),S=l((e=>{m&&m(e,C),g&&C()}),[m,C,g]);return!d?e.createElement(Mr,{className:bt([null==h?void 0:h.container,null==b?void 0:b.container]),onClick:p},i&&e.createElement(jr,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(ye,null,r),e.createElement(Hr,{className:bt([null==h?void 0:h.cross,null==b?void 0:b.cross]),name:"cross",size:"base",color:ie.neutral.ink.base})):e.createElement(dn,{className:h.filterTagDropdown,shouldShowDropdown:w,onClickAway:S,cta:e.createElement(Mr,{className:h.container,onClick:k,ref:v},i&&e.createElement(jr,{variant:"subheadingSmallBold"},`${i}:`),e.createElement(ye,null,r),e.createElement(Br,{color:ie.neutral.ink.base,name:"downArrow",$shouldShow:w}))},e.createElement(Wr,{ref:x,onKeyDown:$},e.createElement(Vr,{color:s},u||e.createElement(e.Fragment,null,a,e.createElement(ye,{variant:"bodyBold"},i))),d,c))},_r=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"})),Zr=p.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,qr=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Xr=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);`,Ur=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}),Gr=({src:n,alt:o="",className:i,e2eClassName:r,width:a,height:s,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const f=Ur(i),v=Ur(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}=A(C,k,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),I=l((()=>m?x(!0):{}),[m]),z=l((()=>m?x(!1):{}),[m]),D=!w.isLoaded||w.isError;return e.createElement(Zr,{className:bt([null==f?void 0:f.container,null==v?void 0:v.container,i])},e.createElement(qr,{src:n,alt:o,className:bt([null==f?void 0:f.image,null==v?void 0:v.image]),width:a,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(_r,{className:bt([null==f?void 0:f.placeholder,null==v?void 0:v.placeholder]),width:g||a,height:h||s})),y&&j(e.createElement(Xr,Object.assign({ref:S,style:N.popper},L.popper,{className:bt([null==f?void 0:f.previewImageContainer,null==v?void 0:v.previewImageContainer])}),e.createElement(Kr,{src:n,alt:"",width:d,height:c})),document.body))},Jr={width:64,height:64},Qr={icon:e.createElement(Zo,Object.assign({},Jr)),title:"No data found"},ea={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({},Jr)),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 ta;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(ta||(ta={}));const{text:na,sizes:oa}=he,{blue:ia}=he.colors.secondary,{grey:ra}=he.colors.neutral,{scrollbar:aa}=he.colors.system,la='\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',sa=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,da=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 ${ra.dark};border-bottom:1px solid ${ra.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: ${aa.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${aa.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 ${la};\n\n ${o===ta.middle||o===ta.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 ${la};\n\n ${o===ta.start||o===ta.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,ca=p(da).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${ra.dark};border-radius:4px;`,ua=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,ma=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${ra.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:${ra.lightest};padding:1.5rem 1rem;border-top:1px solid ${ia.base};}`;const pa=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 `}`,ga=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:${na.bodySmall.fontFamily};font-size:${na.bodySmall.fontSize};font-weight:${na.bodySmall.fontWeight};color:${na.bodySmall.color};line-height:${oa.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,ha=p(ga).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${ra.dark};font-family:${na.bodySmallBold.fontFamily};font-size:${na.bodySmallBold.fontSize};font-weight:${na.bodySmallBold.fontWeight};color:${na.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${ra.light};}`,ba={left:"flex-start",center:"center",right:"flex-end"},fa=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?ba[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,va=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 & ${ma}:nth-child(even) td {\n background-color: ${ra.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${ha}, & ${ha} span {\n white-space: nowrap;\n }\n `}`,ya=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${ga}{border-top:1px solid ${ra.dark};background-color:${ra.lightest};padding-top:${oa.base};padding-bottom:${oa.base};line-height:2rem;}`,xa=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,wa=p(va).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Ea=p(te).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;`,Ca=p(te).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${he.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,$a=p(ye).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,ka=p(ye).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Sa=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Ea,{height:t},e.createElement(Ca,null,n),e.createElement($a,{variant:"headingLarge"},o),i&&e.createElement(ka,{variant:"subheadingMedium"},i)),Na=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:${he.sizes.base};border-radius:${he.radius.base};&:hover{cursor:pointer;background-color:${he.colors.secondary.blue.lightest};}`,La=p(Na).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${he.text.link.color};text-decoration:${he.text.link.textDecoration};`,Ia=p.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:za}=he.colors.neutral,Da=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,Fa=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, ${za.base} 8%, ${za.dark} 15%, ${za.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Oa=({isLoading:t,style:n})=>e.createElement(Da,{style:n},e.createElement(Fa,{isLoading:t})),Ra=t=>{var{style:n}=t,o=Fe(t,["style"]);return e.createElement(ga,Object.assign({},o),e.createElement(Oa,{style:n}))};Ra.defaultProps={style:{}};const Aa=({renderHeader:n,tableRef:o,wrapperRef:r,isFixedLayout:a,wrapperStyle:s})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[o,r]=t(!1),a=l((({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&&a(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[a,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;J(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(xa,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},s)},e.createElement(wa,{style:{tableLayout:a?"fixed":"auto"}},n())):null},Ma=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")},Ta=t=>{var{style:n,width:o,isLoading:i}=t,r=Fe(t,["style","width","isLoading"]);return e.createElement(ha,Object.assign({},r,{style:{width:o}}),e.createElement(Oa,{style:n,isLoading:i}))},ja=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"})),Ba=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"})),Ha=()=>e.createElement(bi,{width:he.sizes.base,height:he.sizes.base,color:"lightgrey"}),Wa=()=>e.createElement(ja,{width:he.sizes.base,height:he.sizes.base,color:"lightgrey"}),Va=()=>e.createElement(Ba,{width:he.sizes.base,height:he.sizes.base,color:"lightgrey"}),Pa=({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:O,endFixedColumnsNumber:R})=>{const A=n?da:ca,M=!!u&&0===u.length,T=Boolean(O||R),j=!O&&!R,B=a(null),H=a(null),[W,V]=t(ta.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?V(ta.none):0===n?V(ta.start):n>0&&i<t?V(ta.middle):i===t&&V(ta.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)}}),[B,j]);const P=l((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),[]),Y=l(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),_=l((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(O){y&&(e.push(Y(1,n,"left")),n+=58);for(let t=0;t<O;t+=1){const o=P(c[t].width);o&&(e.push(Y(y?t+2:t+1,n,"left")),n+=o)}}if(R)for(let e=0;e<R;e+=1){const n=P(c.slice(-e-1)[0].width);n&&(t.push(Y(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,P,R,Y,c,O,y]),Z=r((()=>_()),[_]),q=l(((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=l((()=>{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=l((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=l(((t,n)=>{let o="",i=()=>{},r=e.createElement(Ha,null);const{tooltip:a,align:l,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",i=()=>K(u),C===u&&(r="ascending"===$?e.createElement(Wa,null):e.createElement(Va,null)));const m=e.createElement(fa,{align:l},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(ha,{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)},a?e.createElement(wn,{text:a},e.createElement(sa,null,m)):m)}),[K,C,$]),G=l(((t,n)=>e.createElement(Ta,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=l((()=>{if(!c)return null;const t=_(),n=t?t[0].style:{};return e.createElement(ua,null,e.createElement(pa,null,y&&e.createElement(ha,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(No,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:X,disabled:x&&x.length>0||N||M,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||M)?G(e,e.skeletonStyle||{}):U(e,(null==r?void 0:r.style)||{})}))))}),[_,X,c,M,S,N,G,U,u.length,y,w,x]),Q=l(((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(Io,Object.assign({},o)):e.createElement(No,Object.assign({},o))}),[q,w,x]),ee=l((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Ra,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Ra,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=l(((t,n)=>{var o,i;if(!p)return null;const r=p(t);if(!r)return null;const a=(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(pa,{key:t.id,className:`${a} ${n?"hidden":""}`},y&&e.createElement(ga,null),r)}),[p,y]),ne=l((t=>{if(!c)return e.createElement(Ra,null);const n=c.map((n=>e.createElement(Ra,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>b?N&&!f||!N&&M?null:e.createElement(ya,{fixedColumnsStyle:Ma(Z||[])},e.createElement(pa,null,y&&!v&&e.createElement(ga,null),!N&&b(u),N&&f&&f())):null;let ie=O;y&&ie&&(ie+=1);const re=r((()=>u.map((t=>{var n,o,i;const{data:r}=t,a=!!y&&y.includes(t.id),l=!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=a?`selected ${d}`:`${d}`;return e.createElement(ma,{key:t.id,className:s,fixedColumnsStyle:Ma(Z||[])},e.createElement(pa,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(ga,null,Q(a,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!l))))}))),[u,g,Z,te,m,Q,y]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement(ma,{key:`loading-row-${n}`,fixedColumnsStyle:Ma(Z||[])},e.createElement(pa,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(A,{ref:H,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:R},I&&c&&e.createElement(Aa,{renderHeader:J,tableRef:B,wrapperRef:H,isFixedLayout:T,wrapperStyle:z}),e.createElement(va,{ref:B,striped:o,noWrap:s,tableLoading:!0,isFixedLayout:T},J(),t,oe()))}if(M||S){let t=Qr;return D?t=D:S&&(t=ea),e.createElement(A,{scrollDisabled:!0},e.createElement(va,{ref:B,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:T},J(),oe()),e.createElement(Sa,Object.assign({height:F},t)))}return e.createElement(A,{scrollDisabled:!1,ref:H,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:R,showScrollbar:d},I&&c&&e.createElement(Aa,{renderHeader:J,tableRef:B,wrapperRef:H,isFixedLayout:T,wrapperStyle:z}),e.createElement(va,{ref:B,striped:o,noWrap:s,tableLoading:!1,isFixedLayout:T},J(),re,oe()))};Pa.Cell=ga,Pa.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Fe(t,["onClick","children"]);return e.createElement(ga,Object.assign({},i),e.createElement(La,{onClick:n},o))},Pa.EditableCell=t=>{var{onClick:n,children:o}=t,i=Fe(t,["onClick","children"]);return e.createElement(ga,Object.assign({},i),e.createElement(Na,{onClick:n},e.createElement(Ia,null,o)))},Pa.SkeletonCell=Ra,Pa.SkeletonContent=Oa;const Ya=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,_a="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Za="Log in with Amazon",qa=n=>{const[o,i]=t(_a);return e.createElement(Ya,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(_a)},"aria-label":Za},n),e.createElement("img",{src:o,alt:Za}))},Xa=h`body{overflow:hidden;scrollbar-gutter:stable;}`,Ka=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${he.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${ct.Footer} {\n box-shadow: 0px 10px 15px 0px ${he.colors.neutral.ink.dark};\n }\n `}`,Ua=e=>!!e.footerSlot,Ga={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ja={[re.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[re.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[re.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[re.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[re.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Qa={xs:re.mobile,sm:re.mobile,base:re.tablet,lg:re.lgTablet},{breakpoints:el}=he,tl=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:${he.sizes.sm};box-shadow:${he.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${ct.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Ga[e]};`} ${Ka}{padding-bottom:${he.sizes.md};}${ct.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${el.mobile} + 1px))and (max-width: ${el.tablet}){max-width:${({variant:e})=>Ja[el.tablet][e]};}@media (min-width: ${el.tablet})and (max-width: ${el.lgTablet}){max-width:${({variant:e})=>Ja[el.lgTablet][e]};}@media (min-width: ${el.lgTablet})and (max-width: ${el.desktop}){max-width:${({variant:e})=>Ja[el.desktop][e]};}@media (min-width: ${el.desktop}){max-width:${({variant:e})=>Ja[el.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Qa[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${ct.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${vt(he.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,nl=e.forwardRef(((t,n)=>{var o=Fe(t,[]);return e.createElement(tl,Object.assign({ref:n},o))})),ol=n=>{const{shouldShow:o,showHeaderCloseButton:r=!0,fullBleed:l=!1,variant:s="base",onClose:d,children:c,className:u}=n,p=a(null),[g,h]=t(null);i((()=>{var e,t;o&&(null===(e=p.current)||void 0===e||e.removeAttribute("open"),null===(t=p.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:b,onScroll:f}=Ot(g),v=()=>{var e;null===(e=p.current)||void 0===e||e.close(),d()};return e.createElement(m,null,o&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(Xa,null),e.createElement(nl,{ref:p,onClose:v,variant:s,"aria-describedby":"modal_title",className:u},e.createElement(ct.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(et,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:v})),e.createElement(Ka,{onScroll:f,ref:h,isScrollable:b,fullBleed:l},c),Ua(n)&&n.footerSlot,!Ua(n)&&(n.leftActions||n.rightActions)&&e.createElement(ct.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=Fe(t,["label"]);return e.createElement(Ke,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=Fe(t,["label"]);return e.createElement(Ke,Object.assign({key:n,type:"button"},o),n)})))))))))},il=p(Ht).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${he.sizes.lg};height:30px;background-color:${he.colors.neutral.grey.light};border:1px solid ${he.colors.neutral.grey.base};border-radius:${he.sizes.xs};`,rl=p(Ke).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${he.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,al=p(Nr).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,ll=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(ye,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(il,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(ye,{variant:"bodySmall"},t))),sl=({currentPage:e,totalPagesCount:n,handleChangePage:o})=>{const[r,a]=t(`${e}`);i((()=>{a(`${e}`)}),[e]);const l=e=>e>=1&&e<=n,s=()=>{if(r||a(`${e}`),r===`${e}`)return;const t=parseInt(r,10);l(t)&&o(t)};return{pageInputValue:r,handleIncrement:()=>{l(e+1)&&o(e+1)},handleDecrement:()=>{l(e-1)&&o(e-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;l(n=t)&&a(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},dl=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"})),cl=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"})),ul=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:a,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=sl({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Ht,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(rl,{onClick:()=>{1!==o&&r(1)},iconSlot:e.createElement(dl,null),size:"sm","aria-label":"go to first page"}),e.createElement(rl,{onClick:s,iconSlot:e.createElement(io,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(al,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:Er.sm,type:"number",value:a,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(ll,{count:i}),e.createElement(rl,{onClick:l,iconSlot:e.createElement(Mn,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(rl,{onClick:()=>{o!==i&&r(i)},iconSlot:e.createElement(cl,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},ml=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;}`,pl=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;}`,gl=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(ml,{size:i},e.createElement(pl,{type:"button",onClick:t,disabled:o},e.createElement(ze,{height:he.sizes.base,width:he.sizes.base,color:he.colors.neutral.ink.base})),e.createElement(pl,{type:"button",onClick:n,disabled:o},e.createElement(Je,{height:he.sizes.base,width:he.sizes.base,color:he.colors.neutral.ink.base}))),hl=p(Nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${he.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${he.colors.neutral.ink.lightest};}`,bl=p(te).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${he.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?he.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;}}`,fl=p(ye).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,vl=p(wr).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 ${he.colors.secondary.red.light};\n\n > * {\n border-top-color: ${he.colors.secondary.red.base};\n border-bottom-color: ${he.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${he.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${he.colors.secondary.red.base};\n border-right-color: ${he.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${he.colors.secondary.red.base};\n border-bottom-color: ${he.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${he.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?he.colors.secondary.red.base:he.colors.secondary.blue.base};}}`;const yl=Vo((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:a,onPriceChange:l,priceValue:s,step:d="0.1",size:c=Er.base}=t,u=Fe(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(vl,{className:n,hasError:o},e.createElement(bl,{disabled:r,size:c},e.createElement(fl,{variant:"hintText"},i)),e.createElement(hl,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void l("");const o=parseFloat(n.replace(",",".")).toFixed(2);l(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(a),"ArrowDown"===t&&p(a)},disabled:r,size:c},u)),e.createElement(gl,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));yl.displayName="PriceInput";const xl=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;`,wl=({children:t})=>e.createElement(xl,null,t),El=p(Nr).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Cl=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,$l=p(te).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 & ${El} {\n ${t}\n }\n\n & ${Cl} {\n ${n}\n }\n `}}`,kl=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"})),Sl=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,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($l,{className:p,iconPosition:f?"left":"right"},e.createElement(El,{size:y,type:t,value:c,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:v}),e.createElement(Cl,null,h?e.createElement(Me,{height:24,color:b||he.colors.secondary.blue.base}):x&&o?e.createElement(Ke,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(Qe,{color:b||he.colors.neutral.ink.dark})):e.createElement(Ke,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(kl,{color:b||he.colors.neutral.ink.dark,height:ue.md,width:ue.md}))))},Nl=he.colors.neutral.grey.lightest,Ll=he.colors.neutral.grey.dark,Il=he.colors.secondary.blue.dark,zl=p(te).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${Nl};border-color:${Ll};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${he.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${Il};border-color:${Il};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${he.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(zl,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ke,{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)))),Fl=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, ${he.colors.neutral.ink.base});font-family:${he.text.bodySmall.fontFamily};font-style:${he.text.bodySmall.fontStyle};font-size:${he.text.bodySmall.fontSize};line-height:${he.text.bodySmall.lineHeight};font-weight:${he.text.bodySmall.fontWeight};text-decoration:${he.text.bodySmall.textDecoration};letter-spacing:${he.text.bodySmall.letterSpacing};`,Ol=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${he.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${he.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${he.text.bodySmall.fontFamily};font-style:${he.text.bodySmall.fontStyle};`,Rl={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Al={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"},Ml=t=>{var{shortcut:n,label:o,inverse:i=!1,displayLabel:r=!1}=t,a=Fe(t,["shortcut","label","inverse","displayLabel"]);const l=n.split("+").map((t=>Rl[t]?e.createElement(Ol,{key:`Key: ${t}`,"aria-label":Al[t]},Rl[t]):e.createElement(Ol,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(Fl,Object.assign({"aria-label":o,$inverse:i},a),l," ",r?e.createElement("span",null,o):null)},{blue:Tl}=ie.secondary,{grey:jl}=ie.neutral,Bl=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Hl=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Tl.lightest};}`,Wl=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Vl=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:${pe.bodySmall.fontFamily};font-size:${pe.bodySmall.fontSize};font-weight:${pe.bodySmall.fontWeight};color:${pe.bodySmall.color};line-height:${ue.base};& > *{vertical-align:middle;}`,Pl=p(Vl).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${jl.dark};font-family:${pe.bodySmallBold.fontFamily};font-size:${pe.bodySmallBold.fontSize};font-weight:${pe.bodySmallBold.fontWeight};color:${pe.bodySmallBold.color};`,Yl=p.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Hl} tr:nth-child(even) td {\n background-color: ${jl.lightest};\n }\n `}`,_l=({striped:t=!0,className:n,children:o})=>e.createElement(Yl,{striped:t,className:n},o);_l.Header=Bl,_l.Body=Hl,_l.Row=Wl,_l.HeaderCell=Pl,_l.Cell=Vl;const Zl=p(te).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;}}`;Zl.displayName="Skeleton";const ql=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Xl=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${he.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Kl=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 ${he.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 ${he.colors.secondary.blue.light};}`,Ul=p(Xl).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${he.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Gl=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}),Jl=({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=a(null),x=a(null),w=a(null),E=Gl(u),C=Gl(m),$=l((e=>{var t;if(!h||!y.current)return;const n=f>-1?o[f]:o,i=y.current.getBoundingClientRect();let a=100*(e.pageX-i.x)/i.width/100*(s-r)+r;const l=n-a;if(l>0&&(a=n+Math.ceil(a/d-n/d)*d),l<0&&(a=n+Math.floor(a/d-n/d)*d),n===a)return;a>s&&(a=s),a<r&&(a=r),Array.isArray(o)&&(0===f&&a>o[1]&&([,a]=o),1===f&&a<o[0]&&([a]=o));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;a=Number(a.toFixed(u)),m=Array.isArray(o)?0===f?[a,o[1]]:[o[0],a]:a,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=l((()=>{b(!1),g()}),[g]),S=l(((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=bt("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(Kl,{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(Ul,{className:bt([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(ql,{className:bt([null==E?void 0:E.container,null==C?void 0:C.container]),id:n,ref:y},e.createElement(Xl,null),I)},Ql=p(te).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:ie.neutral.ink.base};\n background-color: ${null!=e?e:ie.neutral.grey.base};\n `}`,es=p(Ht).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${he.layers.tooltip};`,ts=p(Ht).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${he.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${he.shadows.lg};border-radius:${he.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;}`,ns=p(te).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${he.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${ue.md};height:${ue.md};}`,os=p(Ht).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,is=p(ye).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,rs={info:{accentColor:ie.brand.blue.base,icon:e.createElement(Zt,null)},success:{accentColor:ie.secondary.green.base,icon:e.createElement(qt,null)},error:{accentColor:ie.secondary.red.base,icon:e.createElement(Yt,null)},merge:{accentColor:ie.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)}},as=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),ls=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:a,minWidth:l,cta:s,onClose:d})=>{const c=as(t),u=as(n);return e.createElement(ts,{className:bt([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:a},e.createElement(ns,{color:rs[o].accentColor,className:bt([c.icon,u.icon])},null!=i?i:rs[o].icon),e.createElement(os,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(is,{variant:"body"},r),s),e.createElement(Ke,{variant:"flat",iconSlot:e.createElement(Qe,{color:"white"}),onClick:d,"aria-label":"Close"}))},ss=({className:t,e2eClassName:n,toasts:o,minWidth:r="50vw",max:a=3,onClose:l})=>(i((()=>{a&&o.length>a&&l(o[0].key)}),[o,a,l]),j(e.createElement(es,{direction:"vertical",alignX:"center",spacing:4},e.createElement(W,{component:null},[...o].reverse().map(((i,a)=>e.createElement(H,{key:i.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(ls,Object.assign({className:t,e2eClassName:n,minWidth:r,last:a===o.length-1,onClose:()=>l(i.key)},i))))))),document.body)),ds=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:${he.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",a="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",a="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${a};\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;}`,cs=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(ds,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),us=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${ue.md};border-radius:${ae.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${ie.neutral.ink.lightest};background-color:${ie.neutral.grey.lightest};:hover{border:2px dashed ${ie.secondary.blue.base};background-color:${ie.secondary.blue.lightest};}:active{border:2px dashed ${ie.secondary.blue.base};box-shadow:0 0 0 4px ${ie.secondary.blue.light};background-color:${ie.secondary.blue.lightest};}:focus-within{border:2px dashed ${ie.secondary.blue.base};box-shadow:0 0 0 4px ${ie.secondary.blue.light};background-color:${ie.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${ie.secondary.red.base};:hover{border:2px dashed ${ie.secondary.red.base};background-color:${ie.secondary.red.lightest};}:active{border:2px dashed ${ie.secondary.red.base};box-shadow:0 0 0 4px ${ie.secondary.red.light};background-color:${ie.secondary.red.lightest};}:focus-within{border:2px dashed ${ie.secondary.red.base};box-shadow:0 0 0 4px ${ie.secondary.red.light};background-color:${ie.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${ie.neutral.grey.light};border-color:${ie.neutral.ink.lightest};color:${ie.neutral.ink.light};}`;var ms,ps,gs;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(ms||(ms={})),function(e){e.KB="KB",e.MB="MB"}(ps||(ps={})),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"}(gs||(gs={}));const hs=()=>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"})),bs=()=>e.createElement(Ht,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(hs,null),e.createElement(ye,{variant:"subheadingSmall",style:{paddingTop:ue.sm}},"Browse files or drag them here")),fs=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Ht,{alignX:"start",spacing:"xs"},t&&e.createElement(ye,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(ye,{variant:"errorSmall"},"File is too big (",n,")")):null,vs=p(ye).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,ys=p(Ht).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${ie.neutral.ink.lightest};border-radius:${ae.base};padding:${ue.xs};${ye}{padding-left:${ue.xs};}`,xs=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(ys,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(vs,{variant:"body"},null==t?void 0:t.name),e.createElement(Ke,{size:"sm",variant:"flat",onClick:n,iconSlot:e.createElement(Qe,null),"aria-label":"Remove file",disabled:o})):null,ws=n(((n,o)=>{var{id:r,name:s,maxBytes:d=1e6,format:u=ps.MB,fileTypes:m,label:p="Upload file",required:g,disabled:h}=n,b=Fe(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=a(null);c(o,(()=>f.current),[]);const[v,y]=t(),[x,w]=t(gs.VALID),E=x===gs.INVALID_FORMAT||x===gs.INVALID_FORMAT_AND_SIZE,C=x===gs.INVALID_SIZE||x===gs.INVALID_FORMAT_AND_SIZE,$=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case ps.KB:return`${o}${Number(e)/1e3} KB`;case ps.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,a=t===o.length-2&&i;switch(r&&(n+=" and "),e){case ms.CSV:n+="CSV";break;case ms.GIF:n+="GIF";break;case ms.JPEG:n+="JPEG";break;case ms.JPG:n+="JPG";break;case ms.PNG:n+="PNG"}!a&&!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=gs.VALID;t&&!e?o=gs.INVALID_FORMAT:!t&&e?o=gs.INVALID_SIZE:t&&e&&(o=gs.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(o),w(o)},I=l((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=l((()=>{N(),y(void 0),L({invalidFormat:!1,overMaxSize:!1})}),[]),D=l((()=>{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(Ho,{spacing:"sm",alignX:"stretch"},e.createElement(To,{htmlFor:r},p,e.createElement(Ht,{spacing:3,alignX:"stretch",style:{paddingTop:ue.sm}},e.createElement(jo,null,e.createElement("div",null,k),e.createElement("div",null,$)),e.createElement(us,{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(bs,null),e.createElement("input",Object.assign({ref:f,id:r,type:"file",accept:S,name:s,required:g,disabled:h},b))))),e.createElement(Ht,{alignX:"stretch",spacing:"sm"},e.createElement(xs,{file:v,resetSelection:z,disabled:h}),e.createElement(fs,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:C?$:void 0})))})),Es="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Cs=p(te).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Es} display:${e=>e.shouldShow?"initial":"none"};z-index:${he.layers.modal};`,$s=p(te).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Es} background-color:rgba(55,66,77,0.5);`,ks=p(te).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Ss=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(pt,null,n):n),Ns=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(Ss,{usePortal:i},e.createElement(Cs,{className:bt([`${t}-container`,t]),shouldShow:o},e.createElement($s,null),e.createElement(ee,{isActive:o},e.createElement(ks,{className:bt([`${t}-wrap`,t])},n)))),Ls=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Is=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,zs=p(Ke).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,Ds=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=St(o,i);return e.createElement(Ns,{shouldShow:o,className:`${t}-video`},e.createElement(Ls,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(Is,{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(zs,{variant:"flat",onClick:i,"data-testid":"video-modal--close",iconSlot:e.createElement(Qe,{color:"white"})}))))};var Fs;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Fs||(Fs={}));const Os=p(te).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Rs=p(ye).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,As=p(te).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 ${ye} {\n color: ${null!=t?t:ie.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ms=p(ye).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 & > ${Rs} {\n color: #fff;\n }\n `}`,Ts={style:{marginLeft:ue.xs,padding:ue.xs,height:ue.base,width:ue.base}},js=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${ue.sm};svg{height:${ue.base};width:${ue.base};}`,Bs=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"})),Hs=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}),Ws=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:a=ie.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Hs(r),b=Hs(g),[f,v,y]=Ft(),x=l((()=>u(t)),[t,u]),w=l((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=l((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),C=i===Fs.draft,$=i===Fs.saved,k=c?ie.neutral.ink.dark:ie.neutral.ink.base;return e.createElement(Os,{className:`${bt([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:x},e.createElement(As,{active:c,onMouseEnter:v,onMouseLeave:y,colourPalette:a,customTextColour:s},n&&e.createElement(js,null,n),e.createElement(ye,{variant:"bodyBold"},o),d&&e.createElement(Ms,{active:c||f,colourPalette:a,customTextColour:s},e.createElement(Rs,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),C&&e.createElement(Qe,Object.assign({},Ts,{color:k,className:null==b?void 0:b.delete,onClick:w})),$&&c&&e.createElement(Bs,Object.assign({},Ts,{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 Ps=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"})),Ys=p(ye).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,_s=p(Ps).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Zs=p(Qe).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,qs=p(ye).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 & > ${Ys} {\n color: ${ie.neutral.grey.lightest};\n }\n `}`,Xs=p(te).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${he.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${ie.neutral.grey.base};\n & > ${qs} {\n background-color: ${ie.neutral.grey.base};\n & > ${Ys} {\n color: ${ie.neutral.ink.base};\n }\n }\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n & > ${_s} {\n color: ${ie.neutral.ink.dark};\n }\n & > ${Zs} {\n color: ${ie.neutral.ink.dark};\n }\n }\n\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${_s} {\n color: ${t.dark};\n }\n & > ${Zs} {\n color: ${t.dark};\n }\n\n & > ${ye} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Ks=p(Pe).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${he.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Xs} {\n background-color: ${ie.neutral.grey.base};\n & > ${qs} {\n background-color: ${ie.neutral.grey.base};\n & > ${Ys} {\n color: ${ie.neutral.ink.base};\n }\n }\n & > ${ye} {\n color: ${null!=e?e:ie.neutral.ink.dark};\n }\n & > ${_s} {\n color: ${ie.neutral.ink.dark};\n }\n & > ${Zs} {\n color: ${ie.neutral.ink.dark};\n }\n }\n `}`,Us={style:{marginLeft:ue.xs,padding:ue.xs,height:ue.base,width:ue.base}},Gs=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${ue.sm};svg{height:${ue.base};width:${ue.base};}`,Js=e.forwardRef(((t,n)=>{var{id:o,iconSlot:i,name:r,type:a,className:l,colourPalette:s=ie.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=Fe(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const b={delete:(f=l)?`${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]=Ft(),w=u&&p?p:m,E=a===Vs.draft,C=a===Vs.saved;return e.createElement(Ks,Object.assign({className:bt([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(Xs,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:s,customTextColour:d},i&&e.createElement(Gs,null,i),e.createElement(ye,{variant:"bodyBold"},r),null!=c&&e.createElement(qs,{"data-testid":"countContainer",active:u||v,colourPalette:s,customTextColour:d},e.createElement(Ys,{variant:"subheadingSmall"},c)),E&&e.createElement(Zs,Object.assign({},Us,{"aria-label":"delete icon"})),C&&u&&e.createElement(_s,Object.assign({},Us,{"aria-label":"edit icon"}))))})),Qs=p(Ht).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;`,ed=p(Ht).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${ie.neutral.grey.lightest};`,td=p(io).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${ie.neutral.ink.base};`,nd=p(Mn).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${ie.neutral.ink.base};`,od=p(Ps).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${ie.neutral.ink.base};`,id=p(Ke).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${ie.neutral.grey.lightest};}`,rd=p(Ke).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${td}{color:${ie.neutral.ink.lightest};}}&:hover{background-color:${ie.neutral.grey.lightest};}`,ad=p(Ke).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${nd}{color:${ie.neutral.ink.lightest};}}&:hover{background-color:${ie.neutral.grey.lightest};}`,ld=p(wr).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,sd=(e,n)=>{var o;const[r,a]=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=Q(m),g=l((()=>{var t,n,o,i,r,l,s,c;(null===(t=e.current)||void 0===t?void 0:t.scrollLeft)>0?a(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(n=document.getElementById("right-arrow"))||void 0===n||n.focus()),a(!0));const u=(null!==(i=null===(o=e.current)||void 0===o?void 0:o.scrollWidth)&&void 0!==i?i:0)-(null!==(l=null===(r=e.current)||void 0===r?void 0:r.clientWidth)&&void 0!==l?l: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=l((()=>{e.current&&(e.current.scrollWidth-e.current.getBoundingClientRect().width<5?d(!0):d(!1))}),[e]),b=l((()=>{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=l((()=>{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,a,l,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===(a=e.current.children)||void 0===a?void 0:a.length)&&0===c.length&&u((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m!==p&&null!==m&&(null===(l=e.current.children)||void 0===l?void 0:l.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}},dd=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const l=a(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=sd(l,t);return e.createElement(ed,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Qs,{ref:l,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(ld,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(rd,{id:"left-arrow",iconSlot:e.createElement(td,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(ad,{id:"right-arrow",iconSlot:e.createElement(nd,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(id,{iconSlot:e.createElement(od,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),cd=p(te).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,ud=p(te).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,md=p(Nr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,pd=p(Ke).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${he.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${he.colors.secondary.red.base};\n `};`,gd=e=>Fr(e,Or),hd=Vo((t=>{var{size:n=Er.base,hasError:o,className:i}=t,r=Fe(t,["size","hasError","className"]);return e.createElement(cd,{className:i},e.createElement(ud,null,"g"===r.weightUnit&&e.createElement(wr,null,e.createElement(md,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:gd},r)),e.createElement(pd,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(wr,null,e.createElement(md,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:gd},r)),e.createElement(pd,{hasError:o,size:n},"lb")),e.createElement(wr,null,e.createElement(md,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:gd},r)),e.createElement(pd,{hasError:o,size:n},"oz")))))}));hd.displayName="WeightInput",hd.defaultProps={weightUnit:"lb"};const bd={base:"28px",sm:"20px"},fd={base:"18px",sm:"10px"},vd={base:"-12px",sm:"-8px"},yd=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--gpqjtl"})`position:absolute;top:${({size:e})=>vd[e]};right:${({size:e})=>vd[e]};box-sizing:border-box;height:${({size:e})=>bd[e]};min-width:${({size:e})=>bd[e]};display:flex;align-items:center;justify-content:center;border-radius:${({size:e})=>fd[e]};padding:0 4px;background-color:${({color:e})=>e||he.colors.neutral.grey.base};border:2px solid white;font-weight:bold;font-size:12px;`,xd=t=>{var{color:n,style:o,textColour:i,size:r="base"}=t,a=Fe(t,["color","style","textColour","size"]);const l=n||he.colors.neutral.grey.base;return e.createElement(yd,Object.assign({role:"status",style:Object.assign({backgroundColor:l,color:i},o),size:r},a))};export{ms as AcceptedFileTypes,De as Accordion,jt as ActionMenu,Ut as Alert,nn as Anchor,dn as AnimatedDropdown,un as Avatar,$n as Badge,On as Banner,te as BaseContainer,Wn as Breadcrumbs,Ke as Button,uo as Calendar,ct as Card,et as CardHeader,No as Checkbox,Eo as Choice,Fo as ChoiceList,Mo as CopyToClipboard,ai as DATE_RANGE_OPTIONS,di as DEFAULT_PRESET,si as DEFAULT_RANGE,sr as DataTable,_o as DateInputField,Xo as DatePicker,ui as DateRangePicker,ii as DateRanges,hr as DescriptionList,xr as DetailPage,Ar as DimensionsInput,kt as Dropdown,ps as FileSizeUnit,Yr as FilterTag,zt as FocusVisibleManager,qn as Grid,Gr as Image,xd as Indicator,wr as InputGroup,Pa as LegacyDataTable,Me as Loader,qa as LoginWithAmazonButton,en as MiniAlert,ol as Modal,ul as Pagination,Ct as Popover,Ns as Popup,pt as Portal,yl as PriceInput,Io as Radio,so as RangeCalendar,wl as ScreenReaderOnly,Sl as Search,Dl as SegmentedControl,Uo as Select,Ml as ShortcutKeys,_l as SimpleTable,Zl as Skeleton,Jl as Slider,Ht as Stack,gl as Stepper,Ql as Tag,ye as Text,Nr as TextField,ss as ToastsLayout,ti as Toggle,cs as ToggleButton,wn as Tooltip,ws as UploadFile,Ds as VideoModal,Ws as View,Js as ViewTab,dd as ViewsContainer,hd as WeightInput,bt as buildClassnames,mt as generateId,ri as getDateRange,vt as getOpaqueHexColor,ge as getTextStyles,ft as hexToRgb,xt as isExternalLink,he as theme,xi as useCellWidths,St as useClickOutside,Ci as useColumns,Nt as useDebounce,$i as useDragToScroll,Lt as useDropdown,Dt as useFocusVisible,Ft as useHover,At as useId,lo as useIsDateUnavailable,Ot as useIsOverflowing,ki as useNested,Si as useScrollPosition,Oi as useSelection,Rt as useTabs,Po as withDeprecated,Vo as withLabels};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|