@veeqo/ui 4.0.1 → 4.1.0-beta.1

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/index.esm.js CHANGED
@@ -1,2 +1,15 @@
1
- import e,{useState as t,PureComponent as n,useEffect as o,forwardRef as i,useRef as l,useCallback as r,useMemo as a,Component as s,Fragment as d}from"react";import{motion as c,AnimatePresence as m}from"framer-motion";import u,{css as p,createGlobalStyle as g}from"styled-components";import{usePopper as h}from"react-popper";import f from"resize-observer-polyfill";import b,{createPortal as v}from"react-dom";import{CSSTransition as x,TransitionGroup as y}from"react-transition-group";import w from"lodash.throttle";import{useScroll as C}from"react-use";import E from"react-scrolllock-configurable";const $=u.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,k={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},S=(e,t)=>e||(t?k[t]:void 0),N={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},I={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var z,F;!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)"}(z||(z={})),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"}(F||(F={}));const j=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}),B={[F.none]:"0",[F.line]:"1px",[F.xs]:j[1],[F.sm]:j[2],[F.base]:j[4],[F.md]:j[6],[F.lg]:j[8],[F.xl]:j[12],[F.xxl]:j[16]},H=Object.assign(Object.assign({},B),j),M={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},R={headingXXL:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},D=Object.assign(Object.assign({},M),{breakpoints:L,colors:N,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:I,shadows:z,sizes:H,text:R}),{text:O,colors:W,fontFamily:T}=D,A=u.span.attrs((({as:e,variant:t})=>({as:S(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:${T};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?W.neutral.ink.lightest:O[e].color;return`\n font-family: ${O[e].fontFamily};\n font-style: ${O[e].fontStyle};\n font-weight: ${O[e].fontWeight};\n font-size: ${O[e].fontSize};\n line-height: ${O[e].lineHeight};\n color: ${n};\n text-decoration: ${O[e].textDecoration};\n letter-spacing: ${O[e].letterSpacing};\n `}}`,Z=u($).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,P=u(Z).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${H.base};width:${H.base};color:${({glyphColor:e})=>e};}`,V=u(Z).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,q=u.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 ${D.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${D.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${D.colors.secondary.blue.light};}`,X=u($).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,Y=u(A).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,G=u(c($)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,U=u.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,K=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:H.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"})),_=({className:n,children:o,label:i,iconSlot:l,glyphColor:r=N.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d})=>{const[m,u]=t(!!d);return e.createElement(U,{open:!!d,className:n},e.createElement(q,{onClick:()=>u(!m)},e.createElement(X,null,e.createElement(P,{glyphColor:r},l,e.createElement(A,{variant:"body"},i)),e.createElement(V,null,e.createElement(c.span,{animate:{rotate:m?180:0}},e.createElement(K,{name:m?"downArrow":"upArrow"})))),!!s&&e.createElement(Y,{variant:"hintText"},s)),m&&e.createElement(G,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}},o))},J=e=>`${e}-${Math.floor(1e3*Math.random())}`;class Q extends n{constructor(e){super(e),this.id=J("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?v(e,this.portalNode):null}}const ee=u.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--d5k10p"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,te=u.div.withConfig({displayName:"vui--PopoverWrapper",componentId:"vui--13ndjce"})`z-index:${({zIndex:e})=>e+1};`,ne=({children:n,className:i,anchorElement:l,rootElementRef:r,placement:a="bottom",onShouldClose:s,zIndex:d=D.layers.popup})=>{const[c,m]=t(null),{styles:u,attributes:p,update:g}=h(l,c,{placement:a});return o((()=>{if(!g||!c)return;const e=new f(g);return e.observe(c),()=>{e.disconnect()}}),[g,c]),o((()=>{if(g)return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}}),[g]),e.createElement(Q,{rootElementRef:r},s&&e.createElement(ee,{onClick:s,zIndex:d}),e.createElement(te,Object.assign({ref:m,className:i,zIndex:d,style:Object.assign({},u.popper)},p.popper),n))};function oe(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ie=({width:t,height:n,className:o,color:i,label:l})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":l},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"}))))),le=({width:t,height:n,className:o,color:i,label:l})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":l},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"}))),re=({width:t,height:n,className:o,color:i,label:l})=>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":l},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:l="TailSpin"})=>{switch(l){case"Grid":return e.createElement(le,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(re,{className:t,height:n,width:o,color:i});default:return e.createElement(ie,{className:t,height:n,width:o,color:i})}},se=u.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;"};svg{width:${({size:e})=>H[e]};height:${({size:e})=>H[e]};}`,de=u.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:${D.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",l="16px",r="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",l="14px",r="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${r};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,ce=u(de).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${D.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?D.colors.neutral.ink.base:D.colors.secondary.blue.base};&:hover{background-color:${D.colors.neutral.grey.lightest};}&:active{background-color:${D.colors.neutral.grey.lightest};border-color:${D.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${D.colors.neutral.grey.base} !important;border-color:${D.colors.neutral.grey.base} !important;color:${D.colors.neutral.ink.light} !important;}`,me=u(ce).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${D.colors.secondary.red.base};&:hover{color:${D.colors.secondary.red.dark};}&:active{border-color:${D.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};color:${D.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}`,ue=u(ce).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${D.colors.secondary.blue.base};border-color:${D.colors.secondary.blue.base};color:white;&:hover{background-color:${D.colors.secondary.blue.dark};border-color:${D.colors.secondary.blue.dark};}&:active{background-color:${D.colors.secondary.blue.dark};border-color:${D.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}`,pe=u(ue).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${D.colors.secondary.red.base};border-color:${D.colors.secondary.red.base};color:white;&:hover{background-color:${D.colors.secondary.red.dark};border-color:${D.colors.secondary.red.dark};}&:active{background-color:${D.colors.secondary.red.dark};border-color:${D.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}`,ge=u(de).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${D.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,he=u.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,fe=u(he).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${D.text.link.fontFamily};font-size:${D.text.link.fontSize};font-weight:${D.text.link.fontWeight};line-height:${D.text.link.lineHeight};text-decoration:${D.text.link.textDecoration};color:${D.colors.secondary.blue.base};&:hover{color:${D.colors.secondary.blue.dark};}& > * + *{margin-left:${D.sizes.xs};}& > span{position:relative;top:-1px;}`,be=u.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;`,ve=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:ce,primary:ue,destructive:me,primaryDestructive:pe,flat:ge,link:fe,unstyled:he},ye=i(((t,n)=>{var{className:o,children:i,icon:l,variant:r="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=oe(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===r)return e.createElement(he,Object.assign({ref:n,className:o},c),i);const m=xe[r],u=void 0!==i,p=!!l;return e.createElement(m,Object.assign({ref:n,className:o,size:a,hasText:u,hasIcon:p,hasDropdown:s},c),(u||p)&&e.createElement(se,{loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},l&&l,void 0!==i&&e.createElement("span",null,i),s&&e.createElement(ve,null)),d&&e.createElement(be,null,e.createElement(ae,null)))})),we=u.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${H.md};padding-right:${H.md};padding-left:${H.md};margin-bottom:${H.md};& > * + *{margin-top:${H.xs};}`,Ce=u.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${H.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ee=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:H.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"})),$e=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"})),ke=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:l,ActionSlot:r,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(we,null,e.createElement(Ce,null,e.createElement(A,{id:t,variant:i},n),l&&e.createElement(ye,{variant:"link",onClick:l.onClick},l.title),r,s&&e.createElement(ye,{variant:"flat",icon:a?e.createElement(Ee,null):e.createElement(K,null),onClick:s}),d&&e.createElement(ye,{variant:"flat",icon:e.createElement($e,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(A,{variant:"subheadingSmall"},o)),{grey:Se}=N.neutral,Ne={0:"none",1:z.sm,2:z.base,3:z.md,4:z.lg},Le={info:N.secondary.blue.base,success:N.secondary.green.base,error:N.secondary.red.base},Ie=u.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${H.base};padding:${H.md};z-index:2;`,ze=u.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${H.md};padding-left:${H.md};margin-top:${H.md};margin-bottom:${H.md};font-family:${R.body.fontFamily};font-size:${R.body.fontSize};font-weight:${R.body.fontWeight};line-height:${R.body.lineHeight};color:${R.body.color};& + &{border-top:${H.line} solid ${Se.base};padding-top:${H.md};}`,Fe=u.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${H.md};margin-right:-${H.md};`,je=u(c.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${ze}:first-child{margin-top:0;}`,Be=u.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${H.line} solid ${Se.base};box-shadow:${e=>void 0!==e.elevation?Ne[e.elevation]:z.sm};border-radius:${I.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: ${H.xs};\n background-color: ${Le[e]};\n }\n `}`,He={expanded:{height:"auto"},collapsed:{height:0}},Me=({className:n,style:o,title:i,subtitle:l,HeaderActionSlot:r,action:a,collapsable:s,elevation:d,accent:c,children:m,onClose:u,renderFooter:p})=>{const[g,h]=t(!1),f=i&&e.createElement(ke,{title:i,subtitle:l,ActionSlot:r,action:a,onClickClose:u,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),b=s&&!g||!s,v=e.createElement(je,{animate:b?"expanded":"collapsed",variants:He,transition:{duration:.3,ease:"easeOut"}},e.createElement(ze,null,m)),x=void 0!==p&&e.createElement(Ie,null,p());return e.createElement(Be,{className:n,style:o,elevation:d,accent:c},f,v,x)};Me.Surface=Be,Me.Section=ze,Me.FullBleed=Fe,Me.Footer=Ie;const{sizes:Re,colors:De,text:Oe}=D,We=u(Me.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Re.base} 0;display:flex;flex-direction:column;`,Te=u.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${De.neutral.grey.base};margin-top:${Re.base};padding-top:${Re.base};}`,Ae=u(A).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Re.sm} ${Re.base} ${Re.sm};`,Ze=u(ye).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Re.lg};padding:${Re.xs} ${Re.base};display:flex;align-items:center;white-space:nowrap;font-family:${Oe.body.fontFamily};font-size:${Oe.body.fontSize};font-weight:${Oe.body.fontWeight};&:hover{background-color:${De.neutral.grey.light};color:${De.secondary.blue.base};}& > * + *{margin-left:${Re[3]};}`,Pe={item:Ze,action:u(Ze).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${De.secondary.blue.base};`,link:u(Ze).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${De.secondary.blue.base};text-decoration:underline;`},Ve=({title:n,items:o=[],sections:i,buttonVariant:l,buttonSize:r})=>{const[a,s]=t(!1),[d,c]=t(null),m=t=>{const n=Pe[t.variant||"item"];return e.createElement(n,{onClick:()=>{return e=t.onClick,s(!1),void e();var e},key:t.title},t.icon&&t.icon,e.createElement("span",null,t.title))},u=i?i.map((t=>e.createElement(Te,{key:t.title},t.title&&e.createElement(Ae,null,t.title),t.items.map(m)))):o.map(m);return e.createElement(e.Fragment,null,e.createElement(ye,{dropdown:!0,variant:l,size:r,onClick:()=>s(!a),ref:c},n),a&&e.createElement(ne,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(We,null,u)))},qe=u.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${D.text.link.fontFamily};font-style:${D.text.link.fontStyle};font-weight:${D.text.link.fontWeight};font-size:${D.text.link.fontSize};line-height:${D.text.link.lineHeight};color:${D.colors.secondary.blue.base};text-decoration:${D.text.link.textDecoration};&:hover{color:${D.colors.secondary.blue.dark};}`,Xe=({children:t,className:n,text:o,href:i,target:l})=>e.createElement(qe,{href:i,target:l,className:n},t||o),Ye=u($).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;`,Ge=i(((t,n)=>{const{children:o,className:i}=t;return e.createElement(Ye,{className:i,ref:n},o)})),Ue=u($).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Ke=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,_e=u(Ge).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:3;${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);}`,Je=({cta:t,shouldShowDropdown:n,children:i,className:r="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:m,onMouseEnter:u,onMouseLeave:p})=>{const g=l(null);return((e,t)=>{o((()=>{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(Ue,{className:`${r}-container ${r}`,onClick:m,onMouseEnter:u,onMouseLeave:p,ref:g},!a&&t,e.createElement(Ke,{className:`${r}-wrap ${r}`},e.createElement(x,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(_e,{reversed:a,className:`${r}-basic-dropdown ${r}`},i))),a&&t)},Qe=u.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${D.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:${D.text.bodySmallBold.fontFamily};font-weight:${D.text.bodySmallBold.fontWeight};font-size:${D.text.bodySmallBold.fontSize};line-height:${D.text.bodySmallBold.lineHeight};}`,et=({width:t="40px",name:n="Veeqo",bgColor:o=D.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const l=n.toUpperCase().match(/\b(\w)/g);return e.createElement(Qe,{width:t,bgColor:o,textColor:i,className:"avatar"},null==l?void 0:l.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))};var tt,nt;!function(e){e.end="end",e.start="start"}(tt||(tt={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(nt||(nt={}));const ot=u.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,it=u(ot).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,lt=u(A).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${D.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,rt=u.div.withConfig({displayName:"vui--Triangle",componentId:"vui--rjghyf"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,at=u.div.withConfig({displayName:"vui--Tip",componentId:"vui--1v5pppn"})`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;}`,st=u(ot).withConfig({displayName:"vui--Wrap",componentId:"vui--1xs3k5t"})`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;`,dt={duration:400,side:nt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},ct=({children:n,text:o,content:i,config:l,reversed:a=!1,className:s,withTriangle:d,initialShouldShow:c=!1,useReactPortal:m=!0})=>{const u=!!o&&o.trim().length>0,p=Object.assign(Object.assign({},dt),l),{duration:g,side:f,triangleOffset:v,tipMinWidth:x,tipMaxWidth:y}=p,w={container:s&&`${s} ${s}-container`,tip:s&&`${s}-tip`,wrap:s&&`${s}-wrap`,triangle:s&&`${s}-triangle`,hoverable:s&&`${s}-hoverable`},[C,E]=t(c),[$,k]=t(null),[S,N]=t(null),{styles:L,attributes:I}=h($,S,{placement:`${f}-${a?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),z=r((()=>E(!0)),[E]),F=r((()=>E(!1)),[E]),j=Object.assign(Object.assign({},L.popper),{zIndex:D.layers.tooltip}),B=C&&(i||u)&&e.createElement(at,Object.assign({className:w.tip,ref:N,duration:g,triangleOffsetSize:v,style:j},I.popper,{role:"tooltip"}),e.createElement(st,{className:w.wrap,tipMinWidth:x,tipMaxWidth:y},null!=i?i:e.createElement(lt,null,o)),d&&e.createElement(rt,{id:"veeqo-components-triangle",className:w.triangle}));return e.createElement(ot,{className:w.container},m?b.createPortal(B,document.body):B,e.createElement(it,{ref:k,className:w.hoverable,onMouseEnter:z,onMouseLeave:F},n))},mt=u($).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:${R.bodySmall.fontFamily};font-weight:${R.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${H.base};height:${H.base};}`,ut=u(mt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${N.secondary.blue.base};color:${N.secondary.blue.base};`,pt=u(mt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};color:${N.secondary.blue.base};`,gt=u(mt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${N.secondary.yellow.base};background-color:${N.secondary.yellow.lightest};color:${N.secondary.orange.dark};`,ht=e=>e.filter(Boolean).join(" "),ft={default:ut,primary:pt,warning:gt},bt=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:l,e2eClassName:r,children:a})=>{const s=ft[t];return e.createElement(ct,{text:i},e.createElement(s,{className:ht([l,r]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},vt=u($).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"};`,xt=u($).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,yt=u($).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,wt=u(yt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${H.md};height:${H.md};color:${({accentColor:e})=>e};}`,Ct=u($).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Et=u(yt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,$t=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,kt={help:N.secondary.blue.base,info:N.neutral.ink.base,error:N.secondary.red.base,success:N.secondary.green.base},St=t=>{var{type:n="info",text:o,icon:i,onClose:l,className:r,header:a,children:s,backgroundColor:d="white"}=t,c=oe(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const m=kt[n];return e.createElement(vt,Object.assign({accentColor:m,className:r,backgroundColor:d},c),e.createElement(xt,null,i&&e.createElement(wt,{style:{marginRight:H.md},accentColor:m},i),s?e.createElement(Ct,null,s):e.createElement(e.Fragment,null,e.createElement(Et,null,a||e.createElement($t,{variant:"headingSmall"},o)),e.createElement(yt,null,l&&e.createElement(ye,{variant:"flat","aria-label":"Close",icon:e.createElement($e,null),onClick:l})))))},Nt=u.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${R.body.fontFamily};font-weight:${R.body.fontWeight};font-size:${R.body.fontSize};line-height:${R.body.lineHeight};`,Lt=u.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;}`,It=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"})),zt=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(Lt,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(Lt,{className:"breadcrumb"},n,t),Ft=()=>e.createElement(It,{className:"separator",width:H.base,height:H.base}),jt=({children:t,href:n})=>e.createElement("a",{href:n},t),Bt=({children:t})=>e.createElement("span",null,t),Ht=({items:t,Separator:n=e.createElement(Ft,null),LinkComponent:o=jt})=>e.createElement(Nt,{className:"breadcrumbs"},t.map(((i,l)=>e.createElement(zt,{key:i.title,title:i.title,href:i.pathname,LinkComponent:l!==t.length-1?o:Bt},t.length!==l+1&&n))));var Mt;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Mt||(Mt={}));const Rt=u.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 l,r,a,s,d="",c="";return"vertical"===t?(l=n&&Mt[n],r=o&&Mt[o],d=D.sizes[i],a="column"):(l=o&&Mt[o],r=n&&Mt[n],c=D.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${l};\n justify-content: ${r};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Rt.displayName="Stack";const Dt={top:"flex-start",center:"center"},Ot=u.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${D.sizes.base};}`,Wt=u.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Dt[e.align]};width:24px;height:24px;`,Tt=u.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,At=u.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${D.sizes.sm};}`,Zt=u.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${D.text.body.fontFamily};font-size:${D.text.body.fontSize};font-weight:${D.text.body.fontWeight};line-height:${D.sizes.md};color:${D.text.body.color};`,Pt=u.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`,Vt=u.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};`,qt=u.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Xt=u(qt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${D.colors.neutral.grey.dark};border-radius:${D.radius.md};padding:${D.sizes.base} 0.75rem;&:hover{border-color:${D.colors.secondary.blue.base};}& ${Zt}{font-weight:${D.text.bodyBold.fontWeight};}`,Yt=u(ct).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Gt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Ut=({id:t,label:n,hint:o,tooltip:i,error:l,bordered:r,Badge:a,Accessory:s,Footer:d,children:c,disabled:m=!1})=>{const u=e.createElement(Ot,null,e.createElement(Wt,{align:s?"center":"top"},c),s&&e.createElement(Tt,null,s),n||o||l||a||d?e.createElement(At,null,e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},a,n&&e.createElement(Zt,null,n),i&&e.createElement(Yt,{text:i},e.createElement(Gt,{name:"help",width:D.sizes.base,color:D.colors.neutral.ink.lightest}))),o&&e.createElement(Pt,null,o),l&&e.createElement(Vt,null,l),d):null);return r?e.createElement(Xt,{disabled:m,htmlFor:t},u):e.createElement(qt,{disabled:m,htmlFor:t},u)},{colors:Kt,sizes:_t,radius:Jt}=D,Qt=u.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Kt.neutral.ink.lightest};border-radius:${Jt.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Kt.secondary.blue.base};border-color:${Kt.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:${_t[4]};background-position:center;}&:hover{border-color:${Kt.secondary.blue.base};}&:active{border-color:${Kt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Kt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Kt.secondary.blue.base};border-color:${Kt.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:${_t[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Kt.neutral.grey.base};border-color:${Kt.neutral.grey.base};color:${Kt.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>");}`,en=t=>{var{checked:n,indeterminate:i,value:s,name:d,disabled:c,ariaLabel:m,className:u,onChange:p}=t,g=oe(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=a((()=>J("checkbox")),[]),f=l(null),b=r((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{f.current&&(f.current.indeterminate=!0===i)}),[i]),e.createElement(Ut,Object.assign({id:h,disabled:c},g),e.createElement(Qt,{ref:f,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":m,className:u,onChange:b}))},tn=u.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;}`,nn=i(((t,n)=>{var{checked:o,value:i,name:l,disabled:a,onChange:s,id:d}=t,c=oe(t,["checked","value","name","disabled","onChange","id"]);const m=r((e=>{s(e.currentTarget.checked,i)}),[s,i]),u=null!=d?d:J("radio");return e.createElement(Ut,Object.assign({id:u,disabled:a},c),e.createElement(tn,{id:u,type:"radio",checked:o,value:i,name:l,disabled:a,onChange:m,ref:n}))})),on=u.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,ln=u.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${D.text.inputLabel.fontFamily};font-size:${D.text.inputLabel.fontSize};font-style:${D.text.inputLabel.fontStyle};font-weight:${D.text.inputLabel.fontWeight};line-height:${D.text.inputLabel.lineHeight};text-decoration:${D.text.inputLabel.textDecoration};color:${D.text.inputLabel.color};`;class rn 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:l,bordered:r}=this.props,a=t?en:nn;return e.createElement(on,{disabled:l},i&&e.createElement(ln,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:r,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const an=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"})),sn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{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"})),dn={width:H.base,height:H.base},cn=u(ye).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${H.base};width:${H.base};top:unset;}`,mn=({className:t,text:n,onCopy:o})=>{const[i,l]=e.useState(!1),a=r((()=>{navigator.clipboard.writeText(n),o&&o(),l(!0),setTimeout((()=>l(!1)),2500)}),[o,n]);return e.createElement(ct,{text:i?"Copied!":"Copy to clipboard"},e.createElement(cn,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(an,Object.assign({color:N.secondary.green.base},dn)):e.createElement(sn,Object.assign({color:N.secondary.blue.base},dn)),onClick:a}))};function un(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function pn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${pn(e.min,"max-content")}, ${pn(e.max)})`;default:return t||"1fr"}}function gn({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:l}){const r=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),a=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),s="start"!==o&&"none"!==o,d=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,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: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,u=`\n tr:nth-child(odd) > td {\n background-color: ${D.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${D.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${D.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${D.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>pn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?r:""}\n ${t.length>0?a:""}\n\n ${d}\n ${m}\n\n ${"nested"===l?p:u}\n `}var hn;!function(e){e.ascending="ascending",e.descending="descending"}(hn||(hn={}));const fn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),bn=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"})),vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),xn=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===hn.ascending?e.createElement(bn,{color:D.colors.neutral.ink.dark,size:o}):e.createElement(vn,{color:D.colors.neutral.ink.dark,size:o}):e.createElement(fn,{size:o});function yn(e,n){const[i,l]=t([]),r=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));l(n)};return o((()=>{r()}),[e.current]),o((()=>{if(!n.current)return;const e=w(r,50),t=new f(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function wn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),i=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...i,...o],pinnedLeft:n,pinnedRight:o}}function Cn(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},l=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",l),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},r=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",r),()=>null==n?void 0:n.removeEventListener("mousedown",r)}),[e.current])}function En(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,o)=>{if(o)if(t){if(e.includes(o))return;const t=[...e,o];n(t)}else{const t=e.findIndex((e=>e===o));if(t<0)return;const i=[...e];i.splice(t,1),n(i)}}}}}function $n(e){const[n,i]=t("start"),l=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",l),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",l)}}),[e.current]),o((()=>{if(!e.current)return;const t=w(l,50),n=new f(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const kn="56px",Sn=u.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${kn};display:flex;align-items:center;justify-content:${({align:e="left"})=>un(e)};background-color:white;padding-left:${({spacing:e=3})=>D.sizes[e]};padding-right:${({spacing:e=3})=>D.sizes[e]};border-bottom:1px solid ${D.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Nn(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:l}=t,r=oe(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===l?e.createElement(Sn,Object.assign({},r)):e.createElement(Sn,Object.assign({},r),e.createElement(en,{checked:n,indeterminate:o,onChange:i}))}const Ln=u.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>un(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>D.sizes[e]};padding-right:${({spacing:e=3})=>D.sizes[e]};color:${D.text.bodySmall.color};font-family:${D.text.bodySmall.fontFamily};font-size:${D.text.bodySmall.fontSize};font-style:${D.text.bodySmall.fontStyle};font-weight:${D.text.bodySmall.fontWeight};line-height:${D.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${D.colors.secondary.blue.base};background-color:${D.colors.neutral.grey.lightest};}`;function In(t){var{selected:n,rowId:o,onChange:i,selectionMode:l,disabled:r}=t,a=oe(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===l?e.createElement(Ln,Object.assign({},a),e.createElement(nn,{value:o,checked:n,disabled:r,onChange:i})):e.createElement(Ln,Object.assign({},a),e.createElement(en,{value:o,checked:n,disabled:r,onChange:i}))}const zn=[[],()=>{}];function Fn({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[l,r]=n||zn,a=()=>{l.length!==o.length?r(o):r([])};return{selectionEnabled:i,selectedRowIds:l,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(Nn,Object.assign({},i,{selected:l.length===o.length,indeterminate:l.length>0&&l.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,l)=>e.createElement(In,Object.assign({},o,{rowId:n.id,selected:l.selected,onChange:i.setSelected,selectionMode:t,disabled:l.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)r([n]);else if(e){if(l.includes(n))return;const e=[...l,n];r(e)}else{const e=l.findIndex((e=>e===n));if(e<0)return;const t=[...l];t.splice(e,1),r(t)}}}}const jn=u.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${D.colors.neutral.ink.lightest};`,Bn=u.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${D.text.headingTable.color};font-family:${D.text.headingTable.fontFamily};font-size:${D.text.headingTable.fontSize};font-style:${D.text.headingTable.fontStyle};font-weight:${D.text.headingTable.fontWeight};line-height:${D.text.headingTable.lineHeight};`,Hn=u(Bn).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 ${jn}{background-color:${D.colors.neutral.grey.light};color:${D.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${D.colors.secondary.blue.light};}`;function Mn({column:t,sortState:n,onChangeSort:o}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const i={key:t.id.toString(),id:`datatable-header-${t.id}`,role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,i);const l=t.sortable?Hn:Bn,r=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===hn.ascending;let i=hn.ascending;return n&&o&&(i=hn.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Sn,Object.assign({},i),e.createElement(ct,{text:t.tooltip},e.createElement(l,Object.assign({},r),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(jn,null,e.createElement(xn,{sortState:n,columnId:t.id,size:5})))))}const Rn=D.colors.neutral.grey.base,Dn=D.colors.neutral.grey.dark,On=u.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${D.radius.base};background:${Rn};background-image:linear-gradient(\n to right,\n ${Rn} 0%,\n ${Dn} 20%,\n ${Rn} 40%,\n ${Rn} 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 Wn=u.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:${kn};background-color:white;`,Tn=u.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 ${D.colors.neutral.grey.base};& > *{flex:1;}`;function An({selectionColumn:n,intersectionTargetRef:i,containerRef:l,children:r}){var a;const[s,d]=t(!1);o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(i.current),()=>e.disconnect()}),[i.current]);const c=null===(a=l.current)||void 0===a?void 0:a.getBoundingClientRect(),m={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},u=s?m:{position:"absolute",top:0,left:0,right:0};return e.createElement(Wn,{style:u},Mn({column:n}),e.createElement(Tn,null,r))}const Zn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 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"})),Pn=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"})),Vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const qn=u.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${D.sizes.lg};padding-bottom:${D.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${D.sizes.md};`,Xn=u.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${D.sizes.md};background-color:${D.colors.neutral.grey.light};border-radius:${D.radius.full};`,Yn=u.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Gn=u.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${D.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Un=u.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Kn=u.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${D.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,_n=u.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Jn={full:`border-width: 1px; border-radius: ${D.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Qn=u.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${D.colors.neutral.grey.dark};${({borderMode:e="full"})=>Jn[e]} &,& *{box-sizing:border-box;}`;function eo({children:n,intersectionTargetRef:i,containerRef:r,cellWidths:a,tableCss:s}){const d=l(null),[c,m]=t(!1),[u,p]=t({top:0,left:0,width:0,height:0}),g=()=>{var e;const t=null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};p(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{m(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=w(g,33),t=new f(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),o((()=>{h()}),[c]),o((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",h)}}),[r.current]),!c)return null;const b=Object.assign(Object.assign({},u),{height:kn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${D.colors.neutral.grey.base}`}),v=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:b,ref:d},e.createElement(Kn,{css:v},e.createElement("thead",null,n)))}const to=(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}),no=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"})),oo={icon:e.createElement(no,{width:48,height:48}),heading:"No results"},io=()=>{},lo=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=oo,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:m,selectionMode:u,selectionState:p,setExpanded:g,sortState:h,stripingMode:f,enableStickyHeader:b})=>{const v=l(null),x=l(null),y=l(null);Cn(v);const w=c.map((e=>e.id)).filter((e=>!(null==m?void 0:m.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=Fn({selectionMode:u,selectionState:p,enabledRowIds:w}),S={setSelected:k||io,setExpanded:g||io},N=[$,...o],L=C?N:o,I=yn(x,v),{visible:z,pinnedLeft:F,pinnedRight:j}=wn(L),{scrollPosition:B}=$n(v),H=gn({pinnedLeft:F,pinnedRight:j,cellWidths:I,scrollPosition:B,visible:z,stripingMode:f});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Qn,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Kn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Gn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Gn,{key:t.id},z.map((n=>function(t,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(Ln,Object.assign({},o),e.createElement(On,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Qn,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Kn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Gn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(qn,{columnCount:z.length},e.createElement(Xn,null,i.icon),e.createElement(Rt,{spacing:"sm",alignX:"center"},e.createElement(A,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(A,{variant:"subheadingMedium"},i.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:o}=t,i=to(t.id,{selectedRowIds:E,expandedRowIds:r,disabledRowIds:m});return e.createElement(Gn,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),z.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,S,i))))},R=(t,n)=>{var o,i;const l=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,a=to(n,{selectedRowIds:E,expandedRowIds:r,disabledRowIds:m});return e.createElement(Gn,{role:"row",key:t.id,className:l},z.map((n=>function(t,n,o){if(n.hidden)return null;const i={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,i,o):e.createElement(Ln,Object.assign({},i))}(t,n,a))))},D=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},M(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>R(e,t.id)))))},O=e.createElement(Gn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d})))),W=o.some((e=>!!e.renderFooter)),T=E.length>0&&!!t;return e.createElement(Qn,{borderMode:n},T&&e.createElement(An,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),e.createElement(Un,{ref:v},b&&e.createElement(eo,{tableCss:H,intersectionTargetRef:y,containerRef:v,cellWidths:I},O),e.createElement("div",{ref:y,style:{height:0}}),e.createElement(Kn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!r;return t&&"nested"===f?c.map(D):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>R(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(M))})(),W&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Gn,{role:"row"},z.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(Ln,Object.assign({},n))}({column:t}))))))))};lo.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},lo.Cell=Ln,lo.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[l,r]=t(null),[a,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),m=o.map((e=>e.map((e=>c[e])))),u=(e,t)=>{const o=m[e].map((e=>e.id)),l=[...n];o.forEach((e=>{const n=l.findIndex((t=>t.id===e));n<0||(l[n]=Object.assign(Object.assign({},l[n]),{hidden:t}))})),i(l)};return e.createElement(e.Fragment,null,e.createElement(ye,{ref:r,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(ne,{anchorElement:l,onShouldClose:()=>s(!1)},e.createElement(Me,{style:{width:600}},e.createElement(Rt,{alignX:"stretch",spacing:"sm"},m.map(((t,n)=>e.createElement(Rt,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(ye,{variant:"flat",icon:e.createElement(Vn,null)}),e.createElement(Rt,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Rt,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(ye,{variant:"flat",icon:e.createElement(Pn,null),onClick:()=>u(n,!1),style:{color:D.colors.neutral.ink.lightest}}):e.createElement(ye,{variant:"flat",icon:e.createElement(Zn,null),onClick:()=>u(n,!0)})))))))))},lo.SelectionCell=In,lo.SelectionHeader=Nn,lo.Header=Sn,lo.Truncate=_n,lo.NoWrap=Yn;const ro=u.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${D.sizes.base};}`,ao=u.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${D.sizes.xs};}`,so=u.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${D.sizes.base};}`,co=u.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${D.sizes.xs};}`,mo=u.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${D.text.bodyBold.fontFamily};font-size:${D.text.bodyBold.fontSize};font-weight:${D.text.bodyBold.fontWeight};line-height:${D.text.bodyBold.lineHeight};color:${D.text.bodyBold.color};`,uo=u.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${D.text.body.fontFamily};font-size:${D.text.body.fontSize};font-weight:${D.text.body.fontWeight};line-height:${D.text.body.lineHeight};color:${D.text.body.color};`,po=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(uo,{key:t},t))):e.createElement(uo,null,t);return e.createElement(ro,null,t.map((t=>n?e.createElement(so,{key:t.term},e.createElement(mo,null,t.term),e.createElement(co,null,o(t.description))):e.createElement(ao,{key:t.term},e.createElement(mo,null,t.term),o(t.description)))))},{sizes:go,colors:ho}=D,fo=u.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${go.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${go.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,bo=u.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${go.md};overflow-x:hidden;background-color:${ho.neutral.grey.lightest};`,vo=({renderHeader:n,children:o})=>{const[i,l]=t(!0);return e.createElement("main",null,n((()=>l(!i)),i),e.createElement(bo,null,e.createElement(fo,{showSidebar:i},o)))},xo=u.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 yo;!function(e){e.base="base",e.sm="sm"}(yo||(yo={}));const wo=u.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${D.text.inputLabel.fontFamily};font-size:${D.text.inputLabel.fontSize};font-weight:${D.text.inputLabel.fontWeight};line-height:${D.text.inputLabel.lineHeight};color:${D.text.inputLabel.color};`,Co=u.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`,Eo=u.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${D.sizes[2]} * -1);width:2px;background-color:${D.colors.secondary.red.base};}`,$o=u(Rt).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,ko=u(ct).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,So=t=>n=>{var{label:o,hint:i,error:l,tooltip:r}=n,s=oe(n,["label","hint","error","tooltip"]);const d=a((()=>J(t.name)),[]);return o?e.createElement($o,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(wo,{htmlFor:d},o),r&&e.createElement(ko,{text:r},e.createElement(Gt,{width:D.sizes.base,height:D.sizes.base,color:D.colors.neutral.ink.light}))),i&&e.createElement(Co,null,i)),e.createElement(t,Object.assign({id:d,hasError:!!l},s)),l&&e.createElement(Eo,null,l)):e.createElement(t,Object.assign({hasError:!!l},s))},No=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Lo=({hasError:e,inputSize:t})=>p`&{--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 "}`,Io=u.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${D.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${Lo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,zo=u.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;${Lo}`,Fo=/^-?[0-9]*\.?[0-9]+$/,jo=So(i(((t,n)=>{var{id:o,className:i,disabled:l=!1,hasError:a,max:s,min:d,multiline:c=!1,name:m,onChange:u,pattern:p,placeholder:g,rows:h="3",size:f=yo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=oe(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=r((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(Fo).test(t)&&u(t)}),[u,v]),E=null!=o?o:J("textfield");return"text"===v&&c?e.createElement(zo,Object.assign({className:i,disabled:l,hasError:a,id:E,name:m,onChange:C,placeholder:g,rows:h,value:x,spellCheck:y,ref:n},w)):e.createElement(Io,Object.assign({className:i,disabled:l,hasError:a,id:E,inputSize:f,max:s,min:d,name:m,onChange:C,placeholder:g,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));jo.displayName="TextField";const Bo=u($).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Ho=u($).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Mo=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${D.colors.neutral.ink.lightest};}`,Ro=u(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${D.colors.neutral.ink.lightest};`;u(A).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,u.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${D.sizes[2]} * -1);width:2px;background-color:${D.colors.secondary.red.base};}`,u.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`;const Do=So((t=>{var{size:n=yo.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:l,className:r,height:a,width:s,length:d,unit:c}=t,m=oe(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Bo,{className:r},e.createElement(Ho,null,e.createElement(Mo,Object.assign({onChange:l,size:n,name:"length",type:"number",placeholder:"L",value:d},m)),e.createElement($e,{height:D.sizes.base,width:D.sizes.base}),e.createElement(Mo,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s},m)),e.createElement($e,{height:D.sizes.base,width:D.sizes.base}),e.createElement(xo,null,e.createElement(Mo,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a},m)),e.createElement(Ro,{size:n},c))))}));Do.displayName="DimensionsInput";const Oo=(e,t)=>{const n=l(null),i=r((e=>{"Escape"===e.key&&(null==t||t())}),[t]),a=r((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",a),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",a),document.removeEventListener("keyup",i)}}),[a,i,e]),n},Wo=(e,n)=>{const[i,l]=t(e);return o((()=>{const t=setTimeout((()=>l(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function To(){const[e,n]=t(!1),o=r((()=>n(!e)),[e,n]),i=r((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:i}}const Ao=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Zo({children:n}){const[i,l]=t(!0);return o((()=>{function e(){l(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(l(!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||l(!0)}function r(){"hidden"===document.visibilityState&&(l(!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",r,!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",r,!0),o()}}),[l]),e.createElement(Ao.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function Po(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(Ao),l=e.useCallback((()=>{t||n(!0)}),[t]),r=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:l,onBlur:r})),[a,r,l])}const Vo=(e=!1)=>{const[n,o]=t(e);return[n,r((()=>o(!0)),[o]),r((()=>o(!1)),[o])]},qo=e=>{const[n,i]=t(!1),[l,r]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!l,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;r(o-n-i<=0)}}},Xo=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[l,r]=t(i[o]);return[l,e=>{const t=i.find((t=>t.key===e));t&&r(t)}]},Yo=u($).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${N.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${H.base};height:${H.base};}`,Go=u(A).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Uo=u(Go).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Ko=u(Ee).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,_o=u($e).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Jo=u($).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Qo=u($).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 ${N.neutral.grey.base};svg{color:${({color:e})=>e};width:${H[5]};height:${H[5]};margin-right:10px;}`,ei=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ti=({className:t,e2eClassName:n,label:o,text:i,iconSlot:l,fill:a=N.secondary.blue.base,content:s,footer:d,onClickAway:c,onClick:m,shouldCloseOnClickAway:u=!0})=>{const p=ei(t),g=ei(n),{shouldShowDropdown:h,toggleShouldShowDropdown:f,closeDropdown:b}=To(),v=r((e=>{f(),c&&h&&c(e)}),[f,c,h]),x=r((e=>{c&&c(e,b),u&&b()}),[b,c,u]);return!s?e.createElement(Yo,{className:ht([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:m},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(A,null,i),e.createElement(_o,{className:ht([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:N.neutral.ink.base})):e.createElement(Je,{className:p.filterTagDropdown,shouldShowDropdown:h,onClickAway:x,cta:e.createElement(Yo,{className:p.container,onClick:v},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(A,null,i),e.createElement(Ko,{color:N.neutral.ink.base,name:"downArrow",shouldShow:h}))},e.createElement(Jo,null,e.createElement(Qo,{color:a},l,e.createElement(A,{variant:"bodyBold"},o)),s,d))},ni=u($).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?H[e]:0};`,oi=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"})),ii=u.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,li=u.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,ri=u.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,ai=u.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,si=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}),di=({src:n,alt:o="",className:i,e2eClassName:l,width:a,height:s,previewWidth:d,previewHeight:c,previewPlacement:m="right",previewEnabled:u=!1,placeholder:p,placeholderWidth:g,placeholderHeight:f,disablePlaceholder:b=!1})=>{const x=si(i),y=si(l),[w,C]=t(!1),[E,$]=t({isLoaded:!1,isError:!1}),[k,S]=e.useState(null),[N,L]=e.useState(null),{styles:I,attributes:z}=h(k,N,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=r((()=>u?C(!0):{}),[u]),j=r((()=>u?C(!1):{}),[u]),B=!E.isLoaded||E.isError;return e.createElement(ii,{className:ht([null==x?void 0:x.container,null==y?void 0:y.container,i])},e.createElement(li,{src:n,alt:o,className:ht([null==x?void 0:x.image,null==y?void 0:y.image]),width:a,height:s,onLoad:()=>$({isLoaded:!0,isError:!1}),onError:()=>$({isLoaded:!0,isError:!0}),previewEnabled:u,onMouseEnter:F,onMouseLeave:j,style:B?{display:"none"}:{},ref:S}),!b&&B&&(p||e.createElement(oi,{className:ht([null==x?void 0:x.placeholder,null==y?void 0:y.placeholder]),width:g||a,height:f||s})),w&&v(e.createElement(ri,Object.assign({ref:L,style:I.popper},z.popper,{className:ht([null==x?void 0:x.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(ai,{src:n,alt:"",width:d,height:c})),document.body))},ci={width:64,height:64},mi={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},ci)),title:"No data found"},ui={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({},ci)),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 pi;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(pi||(pi={}));const{text:gi,sizes:hi}=D,{blue:fi}=D.colors.secondary,{grey:bi}=D.colors.neutral,{scrollbar:vi}=D.colors.system,xi='\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',yi=u.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,wi=u.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 ${bi.dark};border-bottom:1px solid ${bi.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: ${vi.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${vi.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 ${xi};\n\n ${o===pi.middle||o===pi.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 ${xi};\n\n ${o===pi.start||o===pi.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ci=u(wi).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${bi.dark};border-radius:4px;`,Ei=u.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,$i=u.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${bi.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;u.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${bi.lightest};padding:1.5rem 1rem;border-top:1px solid ${fi.base};}`;const ki=u.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 `}`,Si=u.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:${gi.bodySmall.fontFamily};font-size:${gi.bodySmall.fontSize};font-weight:${gi.bodySmall.fontWeight};color:${gi.bodySmall.color};line-height:${hi.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Ni=u(Si).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${bi.dark};font-family:${gi.bodySmallBold.fontFamily};font-size:${gi.bodySmallBold.fontSize};font-weight:${gi.bodySmallBold.fontWeight};color:${gi.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${bi.light};}`,Li={left:"flex-start",center:"center",right:"flex-end"},Ii=u.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Li[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,zi=u.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${$i}:nth-child(even) td {\n background-color: ${bi.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Ni}, & ${Ni} span {\n white-space: nowrap;\n }\n `}`,Fi=u.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Si}{border-top:1px solid ${bi.dark};background-color:${bi.lightest};padding-top:${hi.base};padding-bottom:${hi.base};line-height:2rem;}`,ji=u.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Bi=u(zi).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Hi=u($).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;`,Mi=u($).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${D.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Ri=u(A).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Di=u(A).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Oi=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Hi,{height:t},e.createElement(Mi,null,n),e.createElement(Ri,{variant:"headingLarge"},o),i&&e.createElement(Di,{variant:"subheadingMedium"},i)),Wi=u.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:${D.sizes.base};border-radius:${D.radius.base};&:hover{cursor:pointer;background-color:${D.colors.secondary.blue.lightest};}`,Ti=u(Wi).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${D.text.link.color};text-decoration:${D.text.link.textDecoration};`,Ai=u.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Zi}=D.colors.neutral,Pi=u.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,Vi=u.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, ${Zi.base} 8%, ${Zi.dark} 15%, ${Zi.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,qi=({isLoading:t,style:n})=>e.createElement(Pi,{style:n},e.createElement(Vi,{isLoading:t})),Xi=t=>{var{style:n}=t,o=oe(t,["style"]);return e.createElement(Si,Object.assign({},o),e.createElement(qi,{style:n}))};Xi.defaultProps={style:{}};const Yi=({renderHeader:n,tableRef:i,wrapperRef:l,isFixedLayout:a,wrapperStyle:s})=>{var d;const[c,m]=t(null),{isSticky:u}=((e,n)=>{const[i,l]=t(!1),a=r((({top:e,bottom:t})=>{let o=i;o=e<=(n||0)&&t>0?!i||o:!i&&o,o!==i&&l(o)}),[i,n]);return o((()=>{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:i}})(i,parseInt("string"==typeof(null==s?void 0:s.top)?null==s?void 0:s.top:`${null==s?void 0:s.top}`,10)),p=((null===(d=l.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;C(l);const g=e=>{var t;const n=(null===(t=l.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),u?e.createElement(ji,{ref:e=>{m(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Bi,{style:{tableLayout:a?"fixed":"auto"}},n())):null},Gi=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},Ui=t=>{var{style:n,width:o,isLoading:i}=t,l=oe(t,["style","width","isLoading"]);return e.createElement(Ni,Object.assign({},l,{style:{width:o}}),e.createElement(qi,{style:n,isLoading:i}))},Ki=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"})),_i=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"})),Ji=()=>e.createElement(fn,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),Qi=()=>e.createElement(Ki,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),el=()=>e.createElement(_i,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),tl=({borderless:n=!1,striped:i=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:m,renderRow:u,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:f,renderFooterLoadingRow:b,omitFooterSelectionCell:v=!1,selectedRowIds:x,disabledSelectionInputRowIds:y,selectionMode:w="multiple",onChangeSelectedRowIds:C,sortColumnId:E,sortDirection:$,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:L=5,isHeaderSticky:I=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:j=375,startFixedColumnsNumber:B,endFixedColumnsNumber:H})=>{const M=n?wi:Ci,R=!!m&&0===m.length,D=Boolean(B||H),O=!B&&!H,W=l(null),T=l(null),[A,Z]=t(pi.none);o((()=>{var e;let t=null;const n=()=>{if(!T.current||O)return;const e=T.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?Z(pi.none):0===n?Z(pi.start):n>0&&i<t?Z(pi.middle):i===t&&Z(pi.end)};return T.current&&(t=T.current,n(),null===(e=T.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[W,O]);const P=r((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=r(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),q=r((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(B){x&&(e.push(V(1,n,"left")),n+=58);for(let t=0;t<B;t+=1){const o=P(c[t].width);o&&(e.push(V(x?t+2:t+1,n,"left")),n+=o)}}if(H)for(let e=0;e<H;e+=1){const n=P(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,P,H,V,c,B,x]),X=a((()=>q()),[q]),Y=r(((e,t)=>{if(!x||!C)return;if(e)return"single"===w?void C([t.id]):void C([...x,t.id]);const n=[...x],o=n.findIndex((e=>e===t.id));n.splice(o,1),C(n)}),[C,x,w]),G=r((()=>{if(!x||!C)return;if(x.length===m.length)return void C([]);const e=m.map((e=>e.id));C(e)}),[C,m,x]),U=r((e=>{if(void 0===E||void 0===k)return;let t=E,n="ascending";"ascending"===$&&(n="descending"),e!==E&&(t=e,n="ascending"),k(t,n)}),[k,E,$]),K=r(((t,n)=>{let o="",i=()=>{},l=e.createElement(Ji,null);const{tooltip:r,align:a,icon:s,title:d,sortable:c,id:m}=t;c&&(o="sortable",i=()=>U(m),E===m&&(l="ascending"===$?e.createElement(Qi,null):e.createElement(el,null)));const u=e.createElement(Ii,{align:a},s&&s,d&&e.createElement("span",null,d),c&&l);return e.createElement(Ni,{key:m,id:`data-table-header-${m}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},r?e.createElement(ct,{text:r},e.createElement(yi,null,u)):u)}),[U,E,$]),_=r(((t,n)=>e.createElement(Ui,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=r((()=>{if(!c)return null;const t=q(),n=t?t[0].style:{};return e.createElement(Ei,null,e.createElement(ki,null,x&&e.createElement(Ni,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(en,{checked:m.length>0&&(null==x?void 0:x.length)===m.length||!1,onChange:G,disabled:y&&y.length>0||N||R,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=x?n+2:n+1,i=n-c.length,l=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||R)?_(e,e.skeletonStyle||{}):K(e,(null==l?void 0:l.style)||{})}))))}),[q,G,c,R,S,N,_,K,m.length,x,w,y]),Q=r(((t,n)=>{const o={checked:t,onChange:e=>Y(e,n),disabled:(null==y?void 0:y.includes(n.id))||!1};return"single"===w?e.createElement(nn,Object.assign({},o)):e.createElement(en,Object.assign({},o))}),[Y,w,y]),ee=r((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Xi,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Xi,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=r(((t,n)=>{var o,i;if(!p)return null;const l=p(t);if(!l)return null;const r=(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(ki,{key:t.id,className:`${r} ${n?"hidden":""}`},x&&e.createElement(Si,null),l)}),[p,x]),ne=r((t=>{if(!c)return e.createElement(Xi,null);const n=c.map((n=>e.createElement(Xi,{key:`${t}-${n.id}`})));return x&&n.unshift(ee(t)),n}),[c,ee,x]),oe=()=>f?N&&!b||!N&&R?null:e.createElement(Fi,{fixedColumnsStyle:Gi(X||[])},e.createElement(ki,null,x&&!v&&e.createElement(Si,null),!N&&f(m),N&&b&&b())):null;let ie=B;x&&ie&&(ie+=1);const le=a((()=>m.map((t=>{var n,o,i;const{data:l}=t,r=!!x&&x.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==l?void 0:l.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==l?void 0:l.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=r?`selected ${d}`:`${d}`;return e.createElement($i,{key:t.id,className:s,fixedColumnsStyle:Gi(X||[])},e.createElement(ki,{key:t.id,className:c,accentColor:t.accentColor},x&&e.createElement(Si,null,Q(r,t)),u(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[m,g,X,te,u,Q,x]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement($i,{key:`loading-row-${n}`,fixedColumnsStyle:Gi(X||[])},e.createElement(ki,null,h?e.createElement(e.Fragment,null,x&&ee(),h()):ne(n))));return e.createElement(M,{ref:T,scrollDisabled:!0,scrollPosition:A,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:H},I&&c&&e.createElement(Yi,{renderHeader:J,tableRef:W,wrapperRef:T,isFixedLayout:D,wrapperStyle:z}),e.createElement(zi,{ref:W,striped:i,noWrap:s,tableLoading:!0,isFixedLayout:D},J(),t,oe()))}if(R||S){let t=mi;return F?t=F:S&&(t=ui),e.createElement(M,{scrollDisabled:!0},e.createElement(zi,{ref:W,striped:i,noWrap:s,tableLoading:!1,isFixedLayout:D},J(),oe()),e.createElement(Oi,Object.assign({height:j},t)))}return e.createElement(M,{scrollDisabled:!1,ref:T,scrollPosition:A,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:H,showScrollbar:d},I&&c&&e.createElement(Yi,{renderHeader:J,tableRef:W,wrapperRef:T,isFixedLayout:D,wrapperStyle:z}),e.createElement(zi,{ref:W,striped:i,noWrap:s,tableLoading:!1,isFixedLayout:D},J(),le,oe()))};tl.Cell=Si,tl.ClickableCell=t=>{var{onClick:n,children:o}=t,i=oe(t,["onClick","children"]);return e.createElement(Si,Object.assign({},i),e.createElement(Ti,{onClick:n},o))},tl.EditableCell=t=>{var{onClick:n,children:o}=t,i=oe(t,["onClick","children"]);return e.createElement(Si,Object.assign({},i),e.createElement(Wi,{onClick:n},e.createElement(Ai,null,o)))},tl.SkeletonCell=Xi,tl.SkeletonContent=qi;const nl=u.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,ol="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",il="Log in with Amazon",ll=n=>{const[o,i]=t(ol);return e.createElement(nl,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(ol)},"aria-label":il},n),e.createElement("img",{src:o,alt:il}))},rl=g`body{overflow:hidden;scrollbar-gutter:stable;}`,al=u.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${D.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Me.Footer} {\n box-shadow: 0px 10px 15px 0px ${D.colors.neutral.ink.dark};\n }\n `}`,sl=e=>!!e.footerSlot,dl=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},cl=(e,t)=>{const n=dl(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ml={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},ul={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},pl={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:gl}=D,hl=u(c.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:${D.sizes.sm};box-shadow:${D.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Me.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${ml[e]};`} ${al}{padding-bottom:${D.sizes.md};}${Me.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${gl.mobile} + 1px))and (max-width: ${gl.tablet}){max-width:${({variant:e})=>ul[gl.tablet][e]};}@media (min-width: ${gl.tablet})and (max-width: ${gl.lgTablet}){max-width:${({variant:e})=>ul[gl.lgTablet][e]};}@media (min-width: ${gl.lgTablet})and (max-width: ${gl.desktop}){max-width:${({variant:e})=>ul[gl.desktop][e]};}@media (min-width: ${gl.desktop}){max-width:${({variant:e})=>ul[gl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>pl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Me.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${cl(D.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,fl=e.forwardRef(((t,n)=>{var o=oe(t,[]);return e.createElement(hl,Object.assign({ref:n},o))})),bl=n=>{const{shouldShow:i,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(null),[p,g]=t(null);o((()=>{var e,t;i&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[i]);const{isOverflowing:h,onScroll:f}=qo(p),b=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(m,null,i&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(rl,null),e.createElement(fl,{ref:u,onClose:b,variant:s,"aria-describedby":"modal_title"},e.createElement(Me.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(ke,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:b})),e.createElement(al,{onScroll:f,ref:g,isScrollable:h,fullBleed:a},c),sl(n)&&n.footerSlot,!sl(n)&&(n.leftActions||n.rightActions)&&e.createElement(Me.Footer,null,e.createElement(Rt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Rt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=oe(t,["label"]);return e.createElement(ye,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Rt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=oe(t,["label"]);return e.createElement(ye,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:vl,text:xl,shadows:yl}=D,{grey:wl}=D.colors.neutral,Cl=u.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${vl.base} ${vl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&yl[e]};`,El=u.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${xl.headingXL.fontFamily};font-size:${xl.headingXL.fontSize};font-weight:${xl.headingXL.fontWeight};margin:unset;line-height:1;`,$l=u.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${xl.subheadingLarge.fontFamily};font-weight:${xl.subheadingLarge.fontWeight};font-size:${xl.subheadingLarge.fontSize};line-height:${xl.subheadingLarge.lineHeight};`,kl=u.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${D.radius.base};border:${vl.line} solid ${wl.base};object-fit:cover;`,Sl=u.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Nl=u(ye).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${D.text.link.fontFamily};font-size:${D.text.link.fontSize};font-weight:${D.text.link.fontWeight};line-height:${D.text.link.lineHeight};color:${D.text.link.color};&:hover{text-decoration:${D.text.link.textDecoration};}& > * + *{margin-left:${D.sizes.xs};}`,Ll=u.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${vl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Il=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"})),zl=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:l,backAction:r,Accessory:a,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:m})=>{const u=i&&e.createElement(Ve,{buttonVariant:l?"default":"primary",title:"Actions",sections:i}),p=null==l?void 0:l.map((t=>e.createElement(ye,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=r&&e.createElement(ye,{onClick:r.onClick,icon:e.createElement(Il,null),variant:"link"},r.title),h=m&&e.createElement(Rt,{direction:"horizontal",alignX:"end"},e.createElement(Nl,{onClick:m},e.createElement("span",null,"Toggle sidebar"),e.createElement(It,{width:H.md})));return e.createElement(Cl,{shadow:s},e.createElement(Rt,null,g,e.createElement(Ll,null,e.createElement(Rt,{direction:"horizontal",spacing:"md"},o&&e.createElement(kl,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Rt,{alignX:"stretch"},e.createElement(El,null,t),a,n&&e.createElement($l,null,n)))),e.createElement(Sl,null,e.createElement(Rt,{direction:"horizontal",alignX:"end",spacing:"sm"},p,u,d&&e.createElement(ye,{icon:e.createElement(Il,null),onClick:d}),c&&e.createElement(ye,{icon:e.createElement(It,null),onClick:c})),h))))},Fl=u(Rt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${D.sizes.lg};height:30px;background-color:${D.colors.neutral.grey.light};border:1px solid ${D.colors.neutral.grey.base};border-radius:${D.sizes.xs};`,jl=u(ye).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${D.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Bl=u(jo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Hl=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(A,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Fl,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(A,{variant:"bodySmall"},t))),Ml=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[l,r]=t(`${e}`);o((()=>{r(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(l||r(`${e}`),l===`${e}`)return;const t=parseInt(l,10);a(t)&&i(t)};return{pageInputValue:l,handleIncrement:()=>{a(e+1)&&i(e+1)},handleDecrement:()=>{a(e-1)&&i(e-1)},handleInputChange:e=>{e||r(e);const t=parseInt(e,10);var n;a(n=t)&&r(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},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",{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"})),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",{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"})),Ol=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:l})=>{const{pageInputValue:r,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:m}=Ml({currentPage:o,totalPagesCount:i,handleChangePage:l});return e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(jl,{onClick:()=>{1!==o&&l(1)},icon:e.createElement(Rl,null),size:"sm","aria-label":"go to first page"}),e.createElement(jl,{onClick:s,icon:e.createElement(Il,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Bl,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:yo.sm,type:"number",value:r,min:"1",max:`${i}`,onChange:c,onBlur:m})),e.createElement(Hl,{count:i}),e.createElement(jl,{onClick:a,icon:e.createElement(It,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(jl,{onClick:()=>{o!==i&&l(i)},icon:e.createElement(Dl,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Wl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Tl=u($).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Al=u(Je).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Zl=u.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${N.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Pl=u($).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Vl=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${N.secondary.blue.base};background:${N.neutral.grey.lightest};}`,ql=({item:t,handleRangeListChange:n})=>{const o=r((()=>n(t)),[n,t]);return e.createElement(Pl,{onClick:o},e.createElement(Vl,{variant:"bodySmall"},t.label))},Xl=t=>{const{handleRangeListChange:n,paginationRange:o=Wl}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(ql,{item:t,handleRangeListChange:n})))))};class Yl extends s{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Wl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Wl,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:l}=this.state;return e.createElement(Tl,{className:t},e.createElement(Al,{cta:e.createElement(Zl,{onClick:this.toggleShouldShow},e.createElement(A,{variant:"bodySmall"},l.label),e.createElement(ve,{color:D.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(Xl,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Gl=u.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;}`,Ul=u.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;}`,Kl=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(Gl,{size:i},e.createElement(Ul,{type:"button",onClick:t,disabled:o},e.createElement(K,{height:D.sizes.base,width:D.sizes.base,color:D.colors.neutral.ink.base})),e.createElement(Ul,{type:"button",onClick:n,disabled:o},e.createElement(Ee,{height:D.sizes.base,width:D.sizes.base,color:D.colors.neutral.ink.base}))),_l=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${D.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${D.colors.neutral.ink.lightest};}`,Jl=u($).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${D.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?D.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Ql=u(A).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,er=u(xo).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 ${D.colors.secondary.red.light};\n\n > * {\n border-top-color: ${D.colors.secondary.red.base};\n border-bottom-color: ${D.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${D.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${D.colors.secondary.red.base};\n border-right-color: ${D.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${D.colors.secondary.red.base};\n border-bottom-color: ${D.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${D.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}}`;const tr=So((t=>{var{className:n="",hasError:o,currency:i,disabled:l=!1,onChange:r,onPriceChange:a,priceValue:s,step:d="0.1",size:c=yo.base}=t,m=oe(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(er,{className:n,hasError:o},e.createElement(Jl,{disabled:l,size:c},e.createElement(Ql,{variant:"hintText"},i)),e.createElement(_l,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>r(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&&u(r),"ArrowDown"===t&&p(r)},disabled:l,size:c},m)),e.createElement(Kl,{onIncrement:()=>u(),onDecrement:()=>p(),disabled:l,size:c}))}));tr.displayName="PriceInput";const nr=u(jo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,or=u.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,ir=u($).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 & ${nr} {\n ${t}\n }\n\n & ${or} {\n ${n}\n }\n `}}`,lr=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"})),rr=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:l,onFocus:r,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:m,placeholder:u="",className:p="",name:g,isLoading:h=!1,fill:f,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=c&&c.length>0;return e.createElement(ir,{className:p,iconPosition:b?"left":"right"},e.createElement(nr,{size:x,type:t,value:c,onChange:i,onBlur:l,onFocus:r,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:u,name:g,disabled:n,error:m,autoComplete:v}),e.createElement(or,null,h?e.createElement(ae,{height:24,color:f||D.colors.secondary.blue.base}):y&&o?e.createElement(ye,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text"},e.createElement($e,{color:f||D.colors.neutral.ink.dark})):e.createElement(ye,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search"},e.createElement(lr,{color:f||D.colors.neutral.ink.dark,height:H.md,width:H.md}))))},ar=D.colors.neutral.grey.lightest,sr=D.colors.neutral.grey.dark,dr=D.colors.secondary.blue.dark,cr=u($).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${ar};border-color:${sr};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${dr};border-color:${dr};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${D.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,mr=({options:t,selected:n,className:o,onChange:i})=>e.createElement(cr,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(ye,{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)))),ur=u.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;}`,pr=So(i(((t,n)=>{var{className:o,options:i,value:l,onChange:a,size:s,disabled:d,hasError:c}=t,m=oe(t,["className","options","value","onChange","size","disabled","hasError"]);const u=r((e=>{a&&a(e.currentTarget.value)}),[a]);return e.createElement(ur,Object.assign({className:o,sizeVariant:s,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:c,ref:n},m),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));pr.displayName="Select";const{blue:gr}=N.secondary,{grey:hr}=N.neutral,fr=u.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,br=u.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${gr.lightest};}`,vr=u.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,xr=u.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:${R.bodySmall.fontFamily};font-size:${R.bodySmall.fontSize};font-weight:${R.bodySmall.fontWeight};color:${R.bodySmall.color};line-height:${H.base};& > *{vertical-align:middle;}`,yr=u(xr).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${hr.dark};font-family:${R.bodySmallBold.fontFamily};font-size:${R.bodySmallBold.fontSize};font-weight:${R.bodySmallBold.fontWeight};color:${R.bodySmallBold.color};`,wr=u.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${br} tr:nth-child(even) td {\n background-color: ${hr.lightest};\n }\n `}`,Cr=({striped:t=!0,className:n,children:o})=>e.createElement(wr,{striped:t,className:n},o);Cr.Header=fr,Cr.Body=br,Cr.Row=vr,Cr.HeaderCell=yr,Cr.Cell=xr;const Er=u.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,$r=u.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${D.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,kr=u.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 ${D.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 ${D.colors.secondary.blue.light};}`,Sr=u($r).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${D.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Nr=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}),Lr=({id:n,value:i,min:a,max:s,step:d=1,onChange:c,className:m,e2eClassName:u,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,f]=t(!1),[b,v]=t(-1),x=l(null),y=l(null),w=l(null),C=Nr(m),E=Nr(u),$=r((e=>{var t;if(!h||!x.current)return;const n=b>-1?i[b]:i,o=x.current.getBoundingClientRect();let l=100*(e.pageX-o.x)/o.width/100*(s-a)+a;const r=n-l;if(r>0&&(l=n+Math.ceil(l/d-n/d)*d),r<0&&(l=n+Math.floor(l/d-n/d)*d),n===l)return;l>s&&(l=s),l<a&&(l=a),Array.isArray(i)&&(0===b&&l>i[1]&&([,l]=i),1===b&&l<i[0]&&([l]=i));const m=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let u;l=Number(l.toFixed(m)),u=Array.isArray(i)?0===b?[l,i[1]]:[i[0],l]:l,c(u),Array.isArray(u)&&u[0]===u[1]&&(0===b&&v(1),1===b&&v(0))}),[b,h,s,a,c,d,i]),k=r((()=>{f(!1),g()}),[g]),S=r(((e,t)=>{f(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);o((()=>{const e=e=>S(e,Array.isArray(i)?0:1),t=e=>S(e,1),n=y.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",$),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",k)}}),[S,$,k,i]);const N=(t,n,o)=>{let i;return i=ht("number"==typeof o?0===o?[null==C?void 0:C.startSlider,null==E?void 0:E.startSlider]:[null==C?void 0:C.endSlider,null==E?void 0:E.endSlider]:[null==C?void 0:C.slider,null==E?void 0:E.slider]),e.createElement(kr,{role:"slider",ref:1===o?w:y,className:i,left:t,"aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":n})},L=t=>{const n=100*(t[0]<a?0:t[0]-a)/(s-a),o=100*(t[1]>s?100:t[1]-a)/(s-a),i=o-n;return e.createElement(e.Fragment,null,e.createElement(Sr,{className:ht([null==C?void 0:C.sliderRange,null==E?void 0:E.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let I;return I=Array.isArray(i)?L(i):(e=>{if(Array.isArray(i))return L(i);let t;return t=i>s?100:i<a?0:100*(e-a)/(s-a),N(t,e)})(i),e.createElement(Er,{className:ht([null==C?void 0:C.container,null==E?void 0:E.container]),id:n,ref:x},e.createElement($r,null),I)},Ir=u($).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:N.neutral.ink.base};\n background-color: ${null!=e?e:N.neutral.grey.base};\n `}`,zr=u(Rt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Fr=u(Rt).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${D.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${D.shadows.lg};border-radius:${D.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;}`,jr=u($).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${D.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${H.md};height:${H.md};}`,Br=u(Rt).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Hr=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Mr={info:{accentColor:N.brand.blue.base,icon:e.createElement(no,null)},success:{accentColor:N.secondary.green.base,icon:e.createElement(an,null)},error:{accentColor:N.secondary.red.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:N.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)}},Rr=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Dr=({className:t,e2eClassName:n,type:o,iconSlot:i,text:l,last:r,minWidth:a,cta:s,onClose:d})=>{const c=Rr(t),m=Rr(n);return e.createElement(Fr,{className:ht([null==c?void 0:c.container,null==m?void 0:m.container]),direction:"horizontal",alignY:"center",minWidth:a,last:r},e.createElement(jr,{color:Mr[o].accentColor,className:ht([c.icon,m.icon])},null!=i?i:Mr[o].icon),e.createElement(Br,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Hr,{variant:"body"},l),s),e.createElement(ye,{variant:"flat",icon:e.createElement($e,{color:"white"}),onClick:d,"aria-label":"Close"}))},Or=({className:t,e2eClassName:n,toasts:i,minWidth:l="50vw",max:r=3,onClose:a})=>(o((()=>{r&&i.length>r&&a(i[0].key)}),[i,r,a]),v(e.createElement(zr,{direction:"vertical",alignX:"center",spacing:4},e.createElement(y,{component:null},[...i].reverse().map(((o,r)=>e.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Dr,Object.assign({className:t,e2eClassName:n,minWidth:l,last:r===i.length-1,onClose:()=>a(o.key)},o))))))),document.body)),Wr=u.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?D.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Tr=u.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${Wr}{box-shadow:0 0 0 4px ${D.colors.brand.blue.light};}&:checked + ${Wr}{background-color:#0079d1;}&:disabled + ${Wr}{background-color:${D.colors.neutral.grey.base};}&:checked:disabled + ${Wr}{background-color:${D.colors.secondary.blue.light};}`,Ar=u.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${Wr}: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"};}${Tr}:checked + ${Wr}{&: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"});}}`,Zr=u($).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Pr=i((({id:t,className:n,name:o,switched:i,small:l,onClick:r=(()=>{}),disabled:a,ariaLabel:s},d)=>e.createElement(Zr,{className:n,disabled:a},e.createElement(Ar,{small:l,disabled:a,role:"switch"},e.createElement(Tr,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:a?void 0:r,disabled:a,ref:d}),e.createElement(Wr,{switched:i,disabled:a}))))),Vr=u.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:${D.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",l="8px",r="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",l="4px",r="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: ${l};\n font-size: ${r};\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;}`,qr=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:l})=>e.createElement(Vr,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>l(!n)},t),Xr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Yr=u($).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Xr} display:${e=>e.shouldShow?"initial":"none"};z-index:${D.layers.modal};`,Gr=u($).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Xr} background-color:rgba(55,66,77,0.5);`,Ur=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Kr=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(Q,null,n):n),_r=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(Kr,{usePortal:i},e.createElement(Yr,{className:ht([`${t}-container`,t]),shouldShow:o},e.createElement(Gr,null),e.createElement(E,{isActive:o},e.createElement(Ur,{className:ht([`${t}-wrap`,t])},n)))),Jr=u.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Qr=u.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,ea=u(ye).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,ta=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const l=Oo(o,i);return e.createElement(_r,{shouldShow:o,className:`${t}-video`},e.createElement(Jr,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(Qr,{ref:l},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(ea,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement($e,{color:"white"})}))))};var na;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(na||(na={}));const oa=u($).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,ia=u(A).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,la=u($).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 ${A} {\n color: ${null!=t?t:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ra=u(A).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 & > ${ia} {\n color: #fff;\n }\n `}`,aa={style:{marginLeft:H.xs,padding:H.xs,height:H.base,width:H.base}},sa=u.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${H.sm};svg{height:${H.base};width:${H.base};}`,da=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"})),ca=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}),ma=({id:t,iconSlot:n,name:o,type:i,className:l,colourPalette:a=N.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:m,onDelete:u,onEdit:p,e2eClassName:g})=>{const h=ca(l),f=ca(g),[b,v,x]=Vo(),y=r((()=>m(t)),[t,m]),w=r((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),C=r((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),E=i===na.draft,$=i===na.saved,k=c?N.neutral.ink.dark:N.neutral.ink.base;return e.createElement(oa,{className:`${ht([null==h?void 0:h.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:y},e.createElement(la,{active:c,onMouseEnter:v,onMouseLeave:x,colourPalette:a,customTextColour:s},n&&e.createElement(sa,null,n),e.createElement(A,{variant:"bodyBold"},o),d&&e.createElement(ra,{active:c||b,colourPalette:a,customTextColour:s},e.createElement(ia,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),E&&e.createElement($e,Object.assign({},aa,{color:k,className:null==f?void 0:f.delete,onClick:w})),$&&c&&e.createElement(da,Object.assign({},aa,{color:k,className:null==f?void 0:f.edit,onClick:C}))))},ua=u($).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,pa=u($).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,ga=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,ha=u(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${D.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${D.colors.secondary.red.base};\n `};`,fa=So((t=>{var{size:n=yo.base,hasError:o,className:i}=t,l=oe(t,["size","hasError","className"]);return e.createElement(ua,{className:i},e.createElement(pa,null,"g"===l.weightUnit&&e.createElement(xo,null,e.createElement(ga,Object.assign({size:n,onChange:l.handleChangeGram,name:"gram",type:"number",value:l.gram,hasError:o},l)),e.createElement(ha,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(l)&&e.createElement(e.Fragment,null,e.createElement(xo,null,e.createElement(ga,Object.assign({size:n,onChange:l.handleChangePound,name:"ounce",type:"number",value:l.pound,hasError:o},l)),e.createElement(ha,{hasError:o,size:n},"lb")),e.createElement(xo,null,e.createElement(ga,Object.assign({size:n,onChange:l.handleChangeOunce,name:"pound",type:"number",value:l.ounce,hasError:o},l)),e.createElement(ha,{hasError:o,size:n},"oz")))))}));fa.displayName="WeightInput",fa.defaultProps={weightUnit:"lb"};export{_ as Accordion,Ve as ActionList,Xe as Anchor,Je as AnimatedDropdown,et as Avatar,bt as Badge,St as Banner,$ as BaseContainer,Ht as Breadcrumbs,ye as Button,Me as Card,ke as CardHeader,en as Checkbox,Ut as Choice,rn as ChoiceList,mn as CopyToClipboard,lo as DataTable,po as DescriptionList,vo as DetailPage,Do as DimensionsInput,ti as FilterTag,Zo as FocusVisibleManager,ni as Grid,di as Image,xo as InputGroup,tl as LegacyDataTable,ae as Loader,ll as LoginWithAmazonButton,bl as Modal,zl as PageHeader,Ol as Pagination,Yl as PaginationRange,ne as Popover,_r as Popup,Q as Portal,tr as PriceInput,nn as Radio,rr as Search,mr as SegmentedControl,pr as Select,Cr as SimpleTable,Lr as Slider,Rt as Stack,Kl as Stepper,Ir as Tag,A as Text,jo as TextField,Or as ToastsLayout,Pr as Toggle,qr as ToggleButton,ct as Tooltip,ta as VideoModal,ma as View,fa as WeightInput,ht as buildClassnames,J as generateId,cl as getOpaqueHexColor,dl as hexToRgb,D as theme,yn as useCellWidths,Oo as useClickOutside,wn as useColumns,Wo as useDebounce,Cn as useDragToScroll,To as useDropdown,Po as useFocusVisible,Vo as useHover,qo as useIsOverflowing,En as useNested,$n as useScrollPosition,Fn as useSelection,Xo as useTabs,No as withDeprecated,So as withLabels};
1
+ import*as e from"react";import t,{useState as n,useEffect as o,PureComponent as r,useRef as i,useMemo as a,forwardRef as l,useCallback as c,Component as s,Fragment as d}from"react";import{motion as u,AnimatePresence as p}from"framer-motion";import m,{css as f,createGlobalStyle as h}from"styled-components";import{usePopper as g}from"react-popper";import b from"resize-observer-polyfill";import v,{createPortal as y}from"react-dom";import{CSSTransition as x,TransitionGroup as w}from"react-transition-group";import E from"lodash.throttle";import{useScroll as C}from"react-use";import $ from"react-scrolllock-configurable";const k=m.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,S={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},N=(e,t)=>e||(t?S[t]:void 0),I={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},z={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var F,O;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(F||(F={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(O||(O={}));const j=function({increment:e,unit:t,count:n}){const o={};for(let r=0;r<=n;r++){const n=r*e;o[r]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),M={[O.none]:"0",[O.line]:"1px",[O.xs]:j[1],[O.sm]:j[2],[O.base]:j[4],[O.md]:j[6],[O.lg]:j[8],[O.xl]:j[12],[O.xxl]:j[16]},R=Object.assign(Object.assign({},M),j),D={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},T={headingXXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},B=Object.assign(Object.assign({},D),{breakpoints:L,colors:I,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:F,sizes:R,text:T}),{text:A,colors:H,fontFamily:P}=B,W=m.span.attrs((({as:e,variant:t})=>({as:N(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--m0sc57"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${P};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?H.neutral.ink.lightest:A[e].color;return`\n font-family: ${A[e].fontFamily};\n font-style: ${A[e].fontStyle};\n font-weight: ${A[e].fontWeight};\n font-size: ${A[e].fontSize};\n line-height: ${A[e].lineHeight};\n color: ${n};\n text-decoration: ${A[e].textDecoration};\n letter-spacing: ${A[e].letterSpacing};\n `}}`,V=m(k).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,q=m(V).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${R.base};width:${R.base};color:${({glyphColor:e})=>e};}`,Z=m(V).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,_=m.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1lgp9cv"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${B.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${B.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${B.colors.secondary.blue.light};}`,X=m(k).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,U=m(W).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,Y=m(u(k)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,G=m.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,K=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:R.md},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"})),J=({className:e,children:o,label:r,iconSlot:i,glyphColor:a=I.neutral.ink.lightest,timeout:l=350,description:c,shouldOpenOnMount:s})=>{const[d,p]=n(!!s);return t.createElement(G,{open:!!s,className:e},t.createElement(_,{onClick:()=>p(!d)},t.createElement(X,null,t.createElement(q,{glyphColor:a},i,t.createElement(W,{variant:"body"},r)),t.createElement(Z,null,t.createElement(u.span,{animate:{rotate:d?180:0}},t.createElement(K,{name:d?"downArrow":"upArrow"})))),!!c&&t.createElement(U,{variant:"hintText"},c)),d&&t.createElement(Y,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},o))};var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Q.apply(this,arguments)};function ee(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 r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var te="right-scroll-bar-position",ne="width-before-scroll-bar";function oe(e,t){return o=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(i=n((function(){return{value:o,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=r,i.facade;var o,r,i}function re(e){return e}function ie(e,t){void 0===t&&(t=re);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function ae(e,t){return void 0===t&&(t=re),ie(e,t)}function le(e){void 0===e&&(e={});var t=ie(null);return t.options=Q({async:!0,ssr:!1},e),t}var ce=function(t){var n=t.sideCar,o=ee(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return e.createElement(r,Q({},o))};function se(e,t){return e.useMedium(t),ce}ce.isSideCarExport=!0;var de=le(),ue=function(){},pe=e.forwardRef((function(t,n){var o=e.useRef(null),r=e.useState({onScrollCapture:ue,onWheelCapture:ue,onTouchMoveCapture:ue}),i=r[0],a=r[1],l=t.forwardProps,c=t.children,s=t.className,d=t.removeScrollBar,u=t.enabled,p=t.shards,m=t.sideCar,f=t.noIsolation,h=t.inert,g=t.allowPinchZoom,b=t.as,v=void 0===b?"div":b,y=t.gapMode,x=ee(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=m,E=oe([o,n]),C=Q(Q({},x),i);return e.createElement(e.Fragment,null,u&&e.createElement(w,{sideCar:de,removeScrollBar:d,shards:p,noIsolation:f,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:y}),l?e.cloneElement(e.Children.only(c),Q(Q({},C),{ref:E})):e.createElement(v,Q({},C,{className:s,ref:E}),c))}));function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},me.apply(this,arguments)}function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}pe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pe.classNames={fullWidth:ne,zeroRight:te};var he,ge={exports:{}},be={exports:{}},ve={};var ye,xe,we,Ee,Ce,$e,ke,Se,Ne,Ie,Le,ze,Fe,Oe,je={};
2
+ /** @license React v16.13.1
3
+ * react-is.development.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */function Me(){return xe||(xe=1,"production"===process.env.NODE_ENV?be.exports=function(){if(he)return ve;he=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case s:case o:case i:case r:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case m:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===s}return ve.AsyncMode=c,ve.ConcurrentMode=s,ve.ContextConsumer=l,ve.ContextProvider=a,ve.Element=t,ve.ForwardRef=d,ve.Fragment=o,ve.Lazy=f,ve.Memo=m,ve.Portal=n,ve.Profiler=i,ve.StrictMode=r,ve.Suspense=u,ve.isAsyncMode=function(e){return x(e)||y(e)===c},ve.isConcurrentMode=x,ve.isContextConsumer=function(e){return y(e)===l},ve.isContextProvider=function(e){return y(e)===a},ve.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ve.isForwardRef=function(e){return y(e)===d},ve.isFragment=function(e){return y(e)===o},ve.isLazy=function(e){return y(e)===f},ve.isMemo=function(e){return y(e)===m},ve.isPortal=function(e){return y(e)===n},ve.isProfiler=function(e){return y(e)===i},ve.isStrictMode=function(e){return y(e)===r},ve.isSuspense=function(e){return y(e)===u},ve.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===r||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},ve.typeOf=y,ve}():be.exports=(ye||(ye=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var h=e.type;switch(h){case c:case s:case o:case i:case r:case u:return h;default:var g=h&&h.$$typeof;switch(g){case l:case d:case f:case m:case a:return g;default:return p}}case n:return p}}}var x=c,w=s,E=l,C=a,$=t,k=d,S=o,N=f,I=m,L=n,z=i,F=r,O=u,j=!1;function M(e){return y(e)===s}je.AsyncMode=x,je.ConcurrentMode=w,je.ContextConsumer=E,je.ContextProvider=C,je.Element=$,je.ForwardRef=k,je.Fragment=S,je.Lazy=N,je.Memo=I,je.Portal=L,je.Profiler=z,je.StrictMode=F,je.Suspense=O,je.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||y(e)===c},je.isConcurrentMode=M,je.isContextConsumer=function(e){return y(e)===l},je.isContextProvider=function(e){return y(e)===a},je.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},je.isForwardRef=function(e){return y(e)===d},je.isFragment=function(e){return y(e)===o},je.isLazy=function(e){return y(e)===f},je.isMemo=function(e){return y(e)===m},je.isPortal=function(e){return y(e)===n},je.isProfiler=function(e){return y(e)===i},je.isStrictMode=function(e){return y(e)===r},je.isSuspense=function(e){return y(e)===u},je.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===r||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},je.typeOf=y}()),je)),be.exports}
10
+ /*
11
+ object-assign
12
+ (c) Sindre Sorhus
13
+ @license MIT
14
+ */function Re(){if(Ee)return we;Ee=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return we=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))t.call(i,s)&&(l[s]=i[s]);if(e){a=e(i);for(var d=0;d<a.length;d++)n.call(i,a[d])&&(l[a[d]]=i[a[d]])}}return l},we}function De(){if($e)return Ce;$e=1;return Ce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Te(){return Se?ke:(Se=1,ke=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Be=Me();ge.exports=function(){if(ze)return Le;ze=1;var e=Me(),t=Re(),n=De(),o=Te(),r=function(){if(Ie)return Ne;Ie=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=De(),n={},o=Te();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,l,c){if("production"!==process.env.NODE_ENV)for(var s in r)if(o(r,s)){var d;try{if("function"!=typeof r[s]){var u=Error((l||"React class")+": "+a+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=r[s](i,s,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ne=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Le=function(l,c){var s="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(a),arrayOf:function(e){return h((function(t,o,r,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[o];if(!Array.isArray(l))return new f("Invalid "+i+" `"+a+"` of type `"+y(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,r,i,a+"["+c+"]",n);if(s instanceof Error)return s}return null}))},element:h((function(e,t,n,o,r){var i=e[t];return l(i)?null:new f("Invalid "+o+" `"+r+"` of type `"+y(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,o,r,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+r+" `"+i+"` of type `"+y(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,o,r,i){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+r+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,o,r){return v(e[t])?null:new f("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[r],s=y(c);if("object"!==s)return new f("Invalid "+a+" `"+l+"` of type `"+s+"` supplied to `"+i+"`, expected an object.");for(var d in c)if(o(c,d)){var u=e(c,d,i,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,o,r,i){for(var a=t[n],l=0;l<e.length;l++)if(m(a,e[l]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new f("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(r)+" at index "+t+"."),a}return h((function(t,r,i,a,l){for(var c=[],s=0;s<e.length;s++){var d=(0,e[s])(t,r,i,a,l,n);if(null==d)return null;d.data&&o(d.data,"expectedType")&&c.push(d.data.expectedType)}return new f("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,o,r,i,a){var l=t[o],c=y(l);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var d=e[s];if("function"!=typeof d)return b(r,i,a,s,x(d));var u=d(l,s,r,i,a+"."+s,n);if(u)return u}return null}))},exact:function(e){return h((function(r,i,a,l,c){var s=r[i],d=y(s);if("object"!==d)return new f("Invalid "+l+" `"+c+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},r[i],e);for(var p in u){var m=e[p];if(o(e,p)&&"function"!=typeof m)return b(a,l,c,p,x(m));if(!m)return new f("Invalid "+l+" `"+c+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(s,p,a,l,c+"."+p,n);if(h)return h}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,a,l,s,d,p,m){if(s=s||u,p=p||l,m!==n){if(c){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=s+":"+l;!t[g]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,o++)}}return null==a[l]?r?null===a[l]?new f("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(a,l,s,d,p)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function g(e){return h((function(t,n,o,r,i,a){var l=t[n];return y(l)!==e?new f("Invalid "+r+" `"+i+"` of type `"+x(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,o,r){return new f((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!v(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!v(r[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},Le}()(Be.isElement,!0)}else ge.exports=function(){if(Oe)return Fe;Oe=1;var e=De();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function o(t,n,o,r,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Ae=ge.exports,He=fe(Ae),Pe="data-focus-lock",We="data-focus-lock-disabled",Ve={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};"production"===process.env.NODE_ENV||He.node;var qe=ae({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Ze=ae(),_e=ae(),Xe=le({async:!0}),Ue=[],Ye=e.forwardRef((function(t,n){var r,i=e.useState(),a=i[0],l=i[1],c=e.useRef(),s=e.useRef(!1),d=e.useRef(null),u=t.children,p=t.disabled,m=void 0!==p&&p,f=t.noFocusGuards,h=void 0!==f&&f,g=t.persistentFocus,b=void 0!==g&&g,v=t.crossFrame,y=void 0===v||v,x=t.autoFocus,w=void 0===x||x,E=t.allowTextSelection,C=t.group,$=t.className,k=t.whiteList,S=t.hasPositiveIndices,N=t.shards,I=void 0===N?Ue:N,L=t.as,z=void 0===L?"div":L,F=t.lockProps,O=void 0===F?{}:F,j=t.sideCar,M=t.returnFocus,R=void 0!==M&&M,D=t.focusOptions,T=t.onActivation,B=t.onDeactivation,A=e.useState({})[0],H=e.useCallback((function(){d.current=d.current||document&&document.activeElement,c.current&&T&&T(c.current),s.current=!0}),[T]),P=e.useCallback((function(){s.current=!1,B&&B(c.current)}),[B]);o((function(){m||(d.current=null)}),[]);var W=e.useCallback((function(e){var t=d.current;if(t&&t.focus){var n="function"==typeof R?R(t):R;if(n){var o="object"==typeof n?n:void 0;d.current=null,e?Promise.resolve().then((function(){return t.focus(o)})):t.focus(o)}}}),[R]),V=e.useCallback((function(e){s.current&&qe.useMedium(e)}),[]),q=Ze.useMedium,Z=e.useCallback((function(e){c.current!==e&&(c.current=e,l(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==E&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),e.useEffect((function(){c.current||"string"==typeof z||console.error("FocusLock: could not obtain ref to internal node")}),[]));var _=me(((r={})[We]=m&&"disabled",r[Pe]=C,r),O),X=!0!==h,U=X&&"tail"!==h,Y=oe([n,Z]);return e.createElement(e.Fragment,null,X&&[e.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:Ve}),S?e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:Ve}):null],!m&&e.createElement(j,{id:A,sideCar:Xe,observed:a,disabled:m,persistentFocus:b,crossFrame:y,autoFocus:w,whiteList:k,shards:I,onActivation:H,onDeactivation:P,returnFocus:W,focusOptions:D}),e.createElement(z,me({ref:Y},_,{className:$,onBlur:q,onFocus:V}),u),U&&e.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:Ve}))}));Ye.propTypes="production"!==process.env.NODE_ENV?{children:Ae.node,disabled:Ae.bool,returnFocus:Ae.oneOfType([Ae.bool,Ae.object,Ae.func]),focusOptions:Ae.object,noFocusGuards:Ae.bool,hasPositiveIndices:Ae.bool,allowTextSelection:Ae.bool,autoFocus:Ae.bool,persistentFocus:Ae.bool,crossFrame:Ae.bool,group:Ae.string,className:Ae.string,whiteList:Ae.func,shards:Ae.arrayOf(Ae.any),as:Ae.oneOfType([Ae.string,Ae.func,Ae.object]),lockProps:Ae.object,onActivation:Ae.func,onDeactivation:Ae.func,sideCar:Ae.any.isRequired}:{};var Ge=Ye;function Ke(e){setTimeout(e,1)}var Je=le(),Qe="data-focus-on-hidden",et={preventScroll:!0},tt=e.forwardRef((function(t,n){var o=e.useState(!1),r=o[0],i=o[1],a=t.children,l=t.autoFocus,c=t.shards,s=t.crossFrame,d=t.enabled,u=void 0===d||d,p=t.scrollLock,m=void 0===p||p,f=t.focusLock,h=void 0===f||f,g=t.returnFocus,b=void 0===g||g,v=t.inert,y=t.allowPinchZoom,x=t.sideCar,w=t.className,E=t.shouldIgnore,C=t.preventScrollOnFocus,$=t.style,k=t.as,S=t.gapMode,N=ee(t,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),I=x,L=r.onActivation,z=r.onDeactivation,F=ee(r,["onActivation","onDeactivation"]),O=Q(Q({},F),{as:k,style:$,sideCar:x,shards:c,allowPinchZoom:y,gapMode:S,inert:v,enabled:u&&m});return e.createElement(e.Fragment,null,e.createElement(Ge,{ref:n,sideCar:x,disabled:!(r&&u&&h),returnFocus:b,autoFocus:l,shards:c,crossFrame:s,onActivation:L,onDeactivation:z,className:w,whiteList:E,lockProps:O,focusOptions:C?et:void 0,as:pe},a),u&&e.createElement(I,Q({},N,{sideCar:Je,setLockProps:i,shards:c})))}));function nt(e,t){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nt(e,t)}function ot(e){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(e)}function rt(e){var t=function(e,t){if("object"!==ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==ot(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ot(t)?t:String(t)}var it=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},at=function(e){return Array.isArray(e)?e:[e]},lt=function(e){return Array.isArray(e)?e[0]:e},ct=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},st=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},dt=function(e,t){return!e||st(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(ct(e))},ut=function(e,t){var n=e.get(t);if(void 0!==n)return n;var o=dt(t,ut.bind(void 0,e));return e.set(t,o),o},pt=function(e,t){var n=e.get(t);if(void 0!==n)return n;var o=function(e,t){return!(e&&!st(e))||!!gt(e)&&t(ct(e))}(t,pt.bind(void 0,e));return e.set(t,o),o},mt=function(e){return e.dataset},ft=function(e){return"INPUT"===e.tagName},ht=function(e){return ft(e)&&"radio"===e.type},gt=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},bt=function(e){var t;return Boolean(e&&(null===(t=mt(e))||void 0===t?void 0:t.focusGuard))},vt=function(e){return!bt(e)},yt=function(e){return Boolean(e)},xt=function(e,t){var n=e.tabIndex-t.tabIndex,o=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||o},wt=function(e,t,n){return it(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(xt)},Et=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Ct="".concat(Et,", [data-focus-guard]"),$t=function(e,t){return it((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?Ct:Et)?[n]:[],$t(n))}),[])},kt=function(e,t){return e.reduce((function(e,n){var o,r=$t(n,t),i=(o=[]).concat.apply(o,r.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?kt([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?it(n.parentNode.querySelectorAll(Et)).filter((function(e){return e===n})):[])}),[])},St=function(e,t){return it(e).filter((function(e){return ut(t,e)})).filter((function(e){return function(e){return!((ft(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},Nt=function(e,t){return void 0===t&&(t=new Map),it(e).filter((function(e){return pt(t,e)}))},It=function(e,t,n){return wt(St(kt(e,n),t),!0,n)},Lt=function(e,t){return wt(St(kt(e),t),!1)},zt=function(e,t){return St((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),it(n).map((function(e){return kt([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},Ft=function(e,t){return e.shadowRoot?Ft(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||it(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var o=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!o&&Ft(o,t)}return Ft(e,t)}))},Ot=function(e){return e.parentNode?Ot(e.parentNode):e},jt=function(e){return at(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(Pe);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,o=0;o<n;o+=1)for(var r=o+1;r<n;r+=1){var i=e[o].compareDocumentPosition(e[r]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(r),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(o)}return e.filter((function(e,n){return!t.has(n)}))}(it(Ot(t).querySelectorAll("[".concat(Pe,'="').concat(n,'"]:not([').concat(We,'="disabled"])')))):[t]),e}),[])},Mt=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?Mt(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return t.contentWindow.document}))?Mt(t.contentWindow.document):t}},Rt=function(e,t){return void 0===t&&(t=Mt(lt(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&jt(e).some((function(e){return Ft(e,t)||function(e,t){return Boolean(it(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},Dt=function(e,t){return ht(e)&&e.name?function(e,t){return t.filter(ht).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Tt=function(e){return e[0]&&e.length>1?Dt(e[0],e):e[0]},Bt=function(e,t){return e.length>1?e.indexOf(Dt(e[t],e)):t},At="NEW_FOCUS",Ht=function(e,t,n,o){var r=e.length,i=e[0],a=e[r-1],l=bt(n);if(!(n&&e.indexOf(n)>=0)){var c,s,d=void 0!==n?t.indexOf(n):-1,u=o?t.indexOf(o):d,p=o?e.indexOf(o):-1,m=d-u,f=t.indexOf(i),h=t.indexOf(a),g=(c=t,s=new Set,c.forEach((function(e){return s.add(Dt(e,c))})),c.filter((function(e){return s.has(e)}))),b=(void 0!==n?g.indexOf(n):-1)-(o?g.indexOf(o):d),v=Bt(e,0),y=Bt(e,r-1);return-1===d||-1===p?At:!m&&p>=0?p:d<=f&&l&&Math.abs(m)>1?y:d>=h&&l&&Math.abs(m)>1?v:m&&Math.abs(b)>1?p:d<=f?y:d>h?v:m?Math.abs(m)>1?p:(r+p+m)%r:void 0}},Pt=function(e,t,n){var o,r=e.map((function(e){return e.node})),i=Nt(r.filter((o=n,function(e){var t,n=null===(t=mt(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||o.indexOf(e)>=0})));return i&&i.length?Tt(i):Tt(Nt(t))},Wt=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Wt(e.parentNode.host||e.parentNode,t),t},Vt=function(e,t){for(var n=Wt(e),o=Wt(t),r=0;r<n.length;r+=1){var i=n[r];if(o.indexOf(i)>=0)return i}return!1},qt=function(e,t,n){var o=at(e),r=at(t),i=o[0],a=!1;return r.filter(Boolean).forEach((function(e){a=Vt(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Vt(i,e);t&&(a=!a||Ft(t,a)?t:Vt(t,a))}))})),a},Zt=function(e,t){var n=Mt(at(e).length>0?document:lt(e).ownerDocument),o=jt(e).filter(vt),r=qt(n||e,e,o),i=new Map,a=Lt(o,i),l=It(o,i).filter((function(e){var t=e.node;return vt(t)}));if(l[0]||(l=a)[0]){var c,s,d,u=Lt([r],i).map((function(e){return e.node})),p=(c=u,s=l,d=new Map,s.forEach((function(e){return d.set(e.node,e)})),c.map((function(e){return d.get(e)})).filter(yt)),m=p.map((function(e){return e.node})),f=Ht(m,u,n,t);if(f===At){var h=Pt(a,m,function(e,t){return e.reduce((function(e,n){return e.concat(zt(n,t))}),[])}(o,i));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:p[f]}},_t=0,Xt=!1,Ut=function(e,t,n){void 0===n&&(n={});var o,r,i=Zt(e,t);if(!Xt&&i){if(_t>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Xt=!0,void setTimeout((function(){Xt=!1}),1);_t++,o=i.node,r=n.focusOptions,"focus"in o&&o.focus(r),"contentWindow"in o&&o.contentWindow&&o.contentWindow.focus(),_t--}},Yt=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=Mt(e);return!!t&&it(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Ft(e,t)}))}()},Gt=null,Kt=null,Jt=null,Qt=!1,en=function(){return!0};function tn(e,t,n,o){var r=null,i=e;do{var a=o[i];if(a.guard)a.node.dataset.focusAutoGuard&&(r=a);else{if(!a.lockItem)break;if(i!==e)return;r=null}}while((i+=n)!==t);r&&(r.node.tabIndex=0)}var nn=function(e){return e&&"current"in e?e.current:e},on=function e(t,n,o){return n&&(n.host===t&&(!n.activeElement||o.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,o))},rn=function(){var e,t,n,o,r,i,a,l=!1;if(Gt){var c=Gt,s=c.observed,d=c.persistentFocus,u=c.autoFocus,p=c.shards,m=c.crossFrame,f=c.focusOptions,h=s||Jt&&Jt.portaledElement,g=document&&document.activeElement;if(h){var b=[h].concat(p.map(nn).filter(Boolean));if(g&&!function(e){return(Gt.whiteList||en)(e)}(g)||(d||(m?Boolean(Qt):"meanwhile"===Qt)||!Yt()||!Kt&&u)&&(h&&!(Rt(b)||g&&function(e,t){return t.some((function(t){return on(e,t,t)}))}(g,b)||(a=g,Jt&&Jt.portaledElement===a))&&(document&&!Kt&&g&&!u?(g.blur&&g.blur(),document.body.focus()):(l=Ut(b,Kt,{focusOptions:f}),Jt={})),Qt=!1,Kt=document&&document.activeElement),document){var v=document&&document.activeElement,y=(t=jt(e=b).filter(vt),n=qt(e,e,t),o=new Map,r=It([n],o,!0),i=It(t,o).filter((function(e){var t=e.node;return vt(t)})).map((function(e){return e.node})),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:bt(t)}}))),x=y.map((function(e){return e.node})).indexOf(v);x>-1&&(y.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),tn(x,y.length,1,y),tn(x,-1,-1,y))}}}return l},an=function(e){rn()&&e&&(e.stopPropagation(),e.preventDefault())},ln=function(){return Ke(rn)};"production"===process.env.NODE_ENV||He.node.isRequired;var cn=function(){Qt="just",Ke((function(){Qt="meanwhile"}))};qe.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Jt={observerNode:n,portaledElement:t})})),Ze.assignMedium(ln),_e.assignMedium((function(e){return e({moveFocusInside:Ut,focusInside:Rt})}));var sn=function(e,n){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(o){if("production"!==process.env.NODE_ENV&&"function"!=typeof o)throw new Error("Expected WrappedComponent to be a React component.");var i,a=[];function l(){i=e(a.map((function(e){return e.props}))),n(i)}var c,s,d,u=function(e){var n,r;function c(){return e.apply(this,arguments)||this}r=e,(n=c).prototype=Object.create(r.prototype),n.prototype.constructor=n,nt(n,r),c.peek=function(){return i};var s=c.prototype;return s.componentDidMount=function(){a.push(this),l()},s.componentDidUpdate=function(){l()},s.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),l()},s.render=function(){return t.createElement(o,this.props)},c}(r);return c=u,s="displayName",d="SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")",(s=rt(s))in c?Object.defineProperty(c,s,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[s]=d,u}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Gt&&(document.addEventListener("focusin",an),document.addEventListener("focusout",ln),window.addEventListener("blur",cn));var n=Gt,o=n&&t&&t.id===n.id;Gt=t,n&&!o&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Kt=null,o&&n.observed===t.observed||t.onActivation(),rn(),Ke(rn)):(document.removeEventListener("focusin",an),document.removeEventListener("focusout",ln),window.removeEventListener("blur",cn),Kt=null)}))((function(){return null}));se(Xe,sn);function dn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var un=function(){var e=0,t=null;return{add:function(n){var o;0==e&&(t=dn())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pn=function(){var t,n=(t=un(),function(n,o){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&o])});return function(e){var t=e.styles,o=e.dynamic;return n(t,o),null}},mn={left:0,top:0,right:0,gap:0},fn=function(e){return parseInt(e||"",10)||0},hn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return mn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[fn(n),fn(o),fn(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},gn=pn(),bn=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(l,"px ").concat(o,";\n }\n body {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(te," {\n right: ").concat(l,"px ").concat(o,";\n }\n \n .").concat(ne," {\n margin-right: ").concat(l,"px ").concat(o,";\n }\n \n .").concat(te," .").concat(te," {\n right: 0 ").concat(o,";\n }\n \n .").concat(ne," .").concat(ne," {\n margin-right: 0 ").concat(o,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},vn=function(t){var n=t.noRelative,o=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,a=e.useMemo((function(){return hn(i)}),[i]);return e.createElement(gn,{styles:bn(a,!n,i,o?"":"!important")})},yn=!1;if("undefined"!=typeof window)try{var xn=Object.defineProperty({},"passive",{get:function(){return yn=!0,!0}});window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch(e){yn=!1}var wn=!!yn&&{passive:!1},En=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Cn=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),$n(e,o)){var r=kn(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},$n=function(e,t){return"v"===e?function(e){return En(e,"overflowY")}(t):function(e){return En(e,"overflowX")}(t)},kn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Sn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nn=function(e){return[e.deltaX,e.deltaY]},In=function(e){return e&&"current"in e?e.current:e},Ln=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},zn=0,Fn=[];function On(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}se(de,(function(t){var n=e.useRef([]),o=e.useRef([0,0]),r=e.useRef(),i=e.useState(zn++)[0],a=e.useState(pn)[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(In),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,i=Sn(e),a=o.current,c="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],d=e.target,u=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=Cn(u,d);if(!p)return!0;if(p?n=u:(n="v"===u?"h":"v",p=Cn(u,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(c||s)&&(r.current=n),!n)return!0;var m=r.current||n;return function(e,t,n,o,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*o,l=n.target,c=t.contains(l),s=!1,d=a>0,u=0,p=0;do{var m=kn(e,l),f=m[0],h=m[1]-m[2]-i*f;(f||h)&&$n(e,l)&&(u+=h,p+=f),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(r&&Math.abs(u)<1||!r&&a>u)||!d&&(r&&Math.abs(p)<1||!r&&-a>p))&&(s=!0),s}(m,t,e,"h"===m?c:s,!0)}),[]),s=e.useCallback((function(e){var t=e;if(Fn.length&&Fn[Fn.length-1]===a){var o="deltaY"in t?Nn(t):Sn(t),r=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,r=o,n[0]===r[0]&&n[1]===r[1]);var n,r}))[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var i=(l.current.shards||[]).map(In).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?c(t,i[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),d=e.useCallback((function(e,t,o,r){var i={name:e,delta:t,target:o,should:r,shadowParent:On(o)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),u=e.useCallback((function(e){o.current=Sn(e),r.current=void 0}),[]),p=e.useCallback((function(e){d(e.type,Nn(e),e.target,c(e,t.lockRef.current))}),[]),m=e.useCallback((function(e){d(e.type,Sn(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){return Fn.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",s,wn),document.addEventListener("touchmove",s,wn),document.addEventListener("touchstart",u,wn),function(){Fn=Fn.filter((function(e){return e!==a})),document.removeEventListener("wheel",s,wn),document.removeEventListener("touchmove",s,wn),document.removeEventListener("touchstart",u,wn)}}),[]);var f=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Ln(i)}):null,f?e.createElement(vn,{gapMode:t.gapMode}):null)}));var jn=new WeakMap,Mn=new WeakMap,Rn={},Dn=0,Tn=function(e){return e&&(e.host||Tn(e.parentNode))},Bn=function(e,t,n,o){var r=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Tn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Rn[n]||(Rn[n]=new WeakMap);var i=Rn[n],a=[],l=new Set,c=new Set(r),s=function(e){e&&!l.has(e)&&(l.add(e),s(e.parentNode))};r.forEach(s);var d=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))d(e);else{var t=e.getAttribute(o),r=null!==t&&"false"!==t,c=(jn.get(e)||0)+1,s=(i.get(e)||0)+1;jn.set(e,c),i.set(e,s),a.push(e),1===c&&r&&Mn.set(e,!0),1===s&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}}))};return d(t),l.clear(),Dn++,function(){a.forEach((function(e){var t=jn.get(e)-1,r=i.get(e)-1;jn.set(e,t),i.set(e,r),t||(Mn.has(e)||e.removeAttribute(o),Mn.delete(e)),r||e.removeAttribute(n)})),--Dn||(jn=new WeakMap,jn=new WeakMap,Mn=new WeakMap,Rn={})}},An=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Bn(o,r,n,"aria-hidden")):function(){return null}},Hn=pn(),Pn="\n ["+Qe+"] {\n pointer-events: none !important;\n }\n",Wn=function(){return e.createElement(Hn,{styles:Pn})},Vn=function(e){return"current"in e?e.current:e};var qn=se(Je,(function(t){var r=t.setLockProps,a=t.onEscapeKey,l=t.onClickOutside,c=t.shards,s=t.onActivation,d=t.onDeactivation,u=t.noIsolation,p=n(void 0),m=p[0],f=p[1],h=i(null),g=i(0);return e.useEffect((function(){var e=function(e){e.defaultPrevented||"Escape"!==e.code&&"Escape"!==e.key&&27!==e.keyCode||!a||a(e)},t=function(e){e.defaultPrevented||e.target===h.current||e instanceof MouseEvent&&0!==e.button||c&&c.map(Vn).some((function(t){return t&&t.contains(e.target)||t===e.target}))||l&&l(e)},n=function(e){t(e),g.current=e.touches.length},o=function(e){g.current=e.touches.length};if(m)return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchstart",n),document.addEventListener("touchend",o),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",n),document.removeEventListener("touchend",o)}}),[m,l,a]),o((function(){if(m)return s&&s(m),function(){d&&d()}}),[!!m]),o((function(){var e=function(){return null},t=!1;return r({onMouseDown:function(e){h.current=e.target},onTouchStart:function(e){h.current=e.target},onActivation:function(t){u||(e=An(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o}([t],(c||[]).map(Vn)),document.body,Qe)),f((function(){return t}))},onDeactivation:function(){e(),t||f(null)}}),function(){t=!0,r(!1)}}),[]),e.createElement(Wn,null)})),Zn=function(t){return e.createElement(qn,Q({},t))},_n=e.forwardRef((function(t,n){return e.createElement(tt,Q({},t,{ref:n,sideCar:Zn}))}));const Xn=e=>`${e}-${Math.floor(1e3*Math.random())}`;class Un extends r{constructor(e){super(e),this.id=Xn("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?y(e,this.portalNode):null}}const Yn=m.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Gn=e=>e.filter(Boolean).join(" "),Kn=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},Jn=(e,t)=>{const n=Kn(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},Qn=e=>{var{id:r,children:i,zIndex:l=B.layers.popup,placement:c="bottom",anchorElement:s,rootElementRef:d,shards:u,onShouldClose:p,style:m}=e,f=ee(e,["id","children","zIndex","placement","anchorElement","rootElementRef","shards","onShouldClose","style"]);const[h,v]=n(null),{styles:y,attributes:x,update:w}=g(s,h,{placement:c});return(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.setAttribute("aria-expanded","true")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||e.setAttribute("aria-controls",t)}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||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:s,popoverId:a((()=>r||Xn("popover")),[r])}),o((()=>{if(!w||!h)return;const e=new b(w);return e.observe(h),()=>e.disconnect()}),[w,h]),o((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),t.createElement(Un,{rootElementRef:d},t.createElement(_n,{onClickOutside:p,onEscapeKey:p,shards:u},t.createElement(Yn,Object.assign({open:!0,zIndex:l,ref:v,style:Object.assign(Object.assign({},y.popper),m)},x.popper,f),i)))},eo=({width:e,height:n,className:o,color:r,label:i})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":i},t.createElement("defs",null,t.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},t.createElement("stop",{stopColor:r,stopOpacity:"0",offset:"0%"}),t.createElement("stop",{stopColor:r,stopOpacity:".631",offset:"63.146%"}),t.createElement("stop",{stopColor:r,offset:"100%"}))),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(1 1)"},t.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:r,strokeWidth:"2"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),t.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),to=({width:e,height:n,className:o,color:r,label:i})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 105 105",fill:r,"aria-label":i},t.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),no=({width:e,height:n,className:o,color:r,label:i})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"aria-label":i},t.createElement("circle",{cx:"15",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},t.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"105",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),oo=({className:e,height:n=24,width:o=24,color:r="#588CB0",type:i="TailSpin"})=>{switch(i){case"Grid":return t.createElement(to,{className:e,height:n,width:o,color:r});case"ThreeDots":return t.createElement(no,{className:e,height:n,width:o,color:r});default:return t.createElement(eo,{className:e,height:n,width:o,color:r})}},ro=m.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({loading:e})=>e&&"opacity: 0;"};svg{width:${({size:e})=>R[e]};height:${({size:e})=>R[e]};}`,io=m.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--1xsghtl"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${B.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",r="8px",i="16px",a="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",r="4px",i="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: ${r};\n font-size: ${i};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,ao=m(io).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${B.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?B.colors.neutral.ink.base:B.colors.secondary.blue.base};&:hover{background-color:${B.colors.neutral.grey.lightest};}&:active{background-color:${B.colors.neutral.grey.lightest};border-color:${B.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${B.colors.neutral.grey.base} !important;border-color:${B.colors.neutral.grey.base} !important;color:${B.colors.neutral.ink.light} !important;}`,lo=m(ao).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${B.colors.secondary.red.base};&:hover{color:${B.colors.secondary.red.dark};}&:active{border-color:${B.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.red.light};color:${B.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.red.light};}`,co=m(ao).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${B.colors.secondary.blue.base};border-color:${B.colors.secondary.blue.base};color:white;&:hover{background-color:${B.colors.secondary.blue.dark};border-color:${B.colors.secondary.blue.dark};}&:active{background-color:${B.colors.secondary.blue.dark};border-color:${B.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.blue.light};}`,so=m(co).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${B.colors.secondary.red.base};border-color:${B.colors.secondary.red.base};color:white;&:hover{background-color:${B.colors.secondary.red.dark};border-color:${B.colors.secondary.red.dark};}&:active{background-color:${B.colors.secondary.red.dark};border-color:${B.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.red.light};}`,uo=m(io).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${B.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${B.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,po=m.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,mo=m(po).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${B.text.link.fontFamily};font-size:${B.text.link.fontSize};font-weight:${B.text.link.fontWeight};line-height:${B.text.link.lineHeight};text-decoration:${B.text.link.textDecoration};color:${B.colors.secondary.blue.base};&:hover{color:${B.colors.secondary.blue.dark};}& > * + *{margin-left:${B.sizes.xs};}& > span{position:relative;top:-1px;}`,fo=m.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--cvu4hf"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ho=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),go={default:ao,primary:co,destructive:lo,primaryDestructive:so,flat:uo,link:mo,unstyled:po},bo=l(((e,n)=>{var{className:o,children:r,icon:i,variant:a="default",size:l="base",dropdown:c=!1,loading:s=!1}=e,d=ee(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return t.createElement(po,Object.assign({ref:n,className:o},d),r);const u=go[a],p=void 0!==r,m=!!i;return t.createElement(u,Object.assign({ref:n,className:o,size:l,hasText:p,hasIcon:m,hasDropdown:c},d),(p||m)&&t.createElement(ro,{loading:s,hasText:!!r,size:r||"sm"===l?"base":"md"},i&&i,void 0!==r&&t.createElement("span",null,r),c&&t.createElement(ho,null)),s&&t.createElement(fo,null,t.createElement(oo,null)))})),vo=m.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${R.md};padding-right:${R.md};padding-left:${R.md};margin-bottom:${R.md};& > * + *{margin-top:${R.xs};}`,yo=m.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${R.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,xo=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:R.md},e),t.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"})),wo=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),t.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"})),Eo=({id:e,title:n,subtitle:o,headerVariant:r="headingSmall",action:i,ActionSlot:a,isCollapsed:l,onClickCollapse:c,onClickClose:s})=>t.createElement(vo,null,t.createElement(yo,null,t.createElement(W,{id:e,variant:r},n),i&&t.createElement(bo,{variant:"link",onClick:i.onClick},i.title),a,c&&t.createElement(bo,{variant:"flat",icon:l?t.createElement(xo,null):t.createElement(K,null),onClick:c}),s&&t.createElement(bo,{variant:"flat",icon:t.createElement(wo,null),onClick:s,"aria-label":"Close"})),o&&t.createElement(W,{variant:"subheadingSmall"},o)),{grey:Co}=I.neutral,$o={0:"none",1:F.sm,2:F.base,3:F.md,4:F.lg},ko={info:I.secondary.blue.base,success:I.secondary.green.base,error:I.secondary.red.base},So=m.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${R.base};padding:${R.md};z-index:2;`,No=m.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${R.md};padding-left:${R.md};margin-top:${R.md};margin-bottom:${R.md};font-family:${T.body.fontFamily};font-size:${T.body.fontSize};font-weight:${T.body.fontWeight};line-height:${T.body.lineHeight};color:${T.body.color};& + &{border-top:${R.line} solid ${Co.base};padding-top:${R.md};}`,Io=m.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${R.md};margin-right:-${R.md};`,Lo=m(u.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${No}:first-child{margin-top:0;}`,zo=m.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${R.line} solid ${Co.base};box-shadow:${e=>void 0!==e.elevation?$o[e.elevation]:F.sm};border-radius:${z.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${R.xs};\n background-color: ${ko[e]};\n }\n `}`,Fo={expanded:{height:"auto"},collapsed:{height:0}},Oo=({className:e,style:o,title:r,subtitle:i,HeaderActionSlot:a,action:l,collapsable:c,elevation:s,accent:d,children:u,onClose:p,renderFooter:m})=>{const[f,h]=n(!1),g=r&&t.createElement(Eo,{title:r,subtitle:i,ActionSlot:a,action:l,onClickClose:p,isCollapsed:f,onClickCollapse:c?()=>{h(!f)}:void 0}),b=c&&!f||!c,v=t.createElement(Lo,{animate:b?"expanded":"collapsed",variants:Fo,transition:{duration:.3,ease:"easeOut"}},t.createElement(No,null,u)),y=void 0!==m&&t.createElement(So,null,m());return t.createElement(zo,{className:e,style:o,elevation:s,accent:d},g,v,y)};Oo.Surface=zo,Oo.Section=No,Oo.FullBleed=Io,Oo.Footer=So;const{sizes:jo,colors:Mo,text:Ro}=B,Do=m(Oo.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${jo.base} 0;display:flex;flex-direction:column;`,To=m.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Mo.neutral.grey.base};margin-top:${jo.base};padding-top:${jo.base};}`,Bo=m(W).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${jo.sm} ${jo.base} ${jo.sm};`,Ao=m(bo).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${jo.lg};padding:${jo.xs} ${jo.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ro.body.fontFamily};font-size:${Ro.body.fontSize};font-weight:${Ro.body.fontWeight};&:hover{background-color:${Mo.neutral.grey.light};color:${Mo.secondary.blue.base};}& > * + *{margin-left:${jo[3]};}`,Ho={item:Ao,action:m(Ao).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${Mo.secondary.blue.base};`,link:m(Ao).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${Mo.secondary.blue.base};text-decoration:underline;`},Po=({title:e,items:o=[],sections:r,buttonVariant:i,buttonSize:a})=>{const[l,c]=n(!1),[s,d]=n(null),u=e=>{const n=Ho[e.variant||"item"];return t.createElement(n,{onClick:()=>{return t=e.onClick,c(!1),void t();var t},key:e.title},e.icon&&e.icon,t.createElement("span",null,e.title))},p=r?r.map((e=>t.createElement(To,{key:e.title},e.title&&t.createElement(Bo,null,e.title),e.items.map(u)))):o.map(u);return t.createElement(t.Fragment,null,t.createElement(bo,{dropdown:!0,variant:i,size:a,onClick:()=>c(!l),ref:d},e),l&&t.createElement(Qn,{anchorElement:s,placement:"bottom-start",onShouldClose:()=>c(!1)},t.createElement(Do,null,p)))},Wo=m.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${B.text.link.fontFamily};font-style:${B.text.link.fontStyle};font-weight:${B.text.link.fontWeight};font-size:${B.text.link.fontSize};line-height:${B.text.link.lineHeight};color:${B.colors.secondary.blue.base};text-decoration:${B.text.link.textDecoration};&:hover{color:${B.colors.secondary.blue.dark};}`,Vo=({children:e,className:n,text:o,href:r,target:i})=>t.createElement(Wo,{href:r,target:i,className:n},e||o),qo=m(k).withConfig({displayName:"vui--Container",componentId:"vui--901a1g"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Zo=l(((e,n)=>{const{children:o,className:r}=e;return t.createElement(qo,{className:r,ref:n},o)})),_o=m(k).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xo=m(k).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Uo=m(Zo).withConfig({displayName:"vui--Dropdown",componentId:"vui--dv3wrs"})`flex-direction:column;position:absolute;z-index:3;${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);}`,Yo=({cta:e,shouldShowDropdown:n,children:r,className:a="animated-dropdown",reversed:l=!1,onClickAway:c=(()=>{}),timeout:s=350,transitionClassnames:d="dropdown",onClick:u,onMouseEnter:p,onMouseLeave:m})=>{const f=i(null);return((e,t)=>{o((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(f,(e=>{n&&c(e)})),t.createElement(_o,{className:`${a}-container ${a}`,onClick:u,onMouseEnter:p,onMouseLeave:m,ref:f},!l&&e,t.createElement(Xo,{className:`${a}-wrap ${a}`},t.createElement(x,{in:n,timeout:s,classNames:d,unmountOnExit:!0},t.createElement(Uo,{reversed:l,className:`${a}-basic-dropdown ${a}`},r))),l&&e)},Go=m.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${B.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:${B.text.bodySmallBold.fontFamily};font-weight:${B.text.bodySmallBold.fontWeight};font-size:${B.text.bodySmallBold.fontSize};line-height:${B.text.bodySmallBold.lineHeight};}`,Ko=({width:e="40px",name:n="Veeqo",bgColor:o=B.colors.secondary.blue.base,textColor:r="#ffffff"})=>{const i=n.toUpperCase().match(/\b(\w)/g);return t.createElement(Go,{width:e,bgColor:o,textColor:r,className:"avatar"},null==i?void 0:i.slice(0,2).map(((e,n)=>t.createElement("span",{key:`${e}-${n}`},e))))};var Jo,Qo;!function(e){e.end="end",e.start="start"}(Jo||(Jo={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(Qo||(Qo={}));const er=m.div.withConfig({displayName:"vui--Container",componentId:"vui--16xd2og"})`display:inline-block;`,tr=m(er).withConfig({displayName:"vui--Hoverable",componentId:"vui--if1bgt"})``,nr=m(W).withConfig({displayName:"vui--TooltipText",componentId:"vui--1tbdgc0"})`color:${B.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,or=m.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1eqvhdd"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,rr=m.div.withConfig({displayName:"vui--Tip",componentId:"vui--10g4qtf"})`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;}`,ir=m(er).withConfig({displayName:"vui--Wrap",componentId:"vui--1arl0em"})`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;`,ar={duration:400,side:Qo.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},lr=({children:e,text:o,content:r,config:i,reversed:a=!1,className:l,withTriangle:s,initialShouldShow:d=!1,useReactPortal:u=!0})=>{const p=!!o&&o.trim().length>0,m=Object.assign(Object.assign({},ar),i),{duration:f,side:h,triangleOffset:b,tipMinWidth:y,tipMaxWidth:x}=m,w={container:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},[E,C]=n(d),[$,k]=n(null),[S,N]=n(null),{styles:I,attributes:L}=g($,S,{placement:`${h}-${a?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),z=c((()=>C(!0)),[C]),F=c((()=>C(!1)),[C]),O=Object.assign(Object.assign({},I.popper),{zIndex:B.layers.tooltip}),j=E&&(r||p)&&t.createElement(rr,Object.assign({className:w.tip,ref:N,duration:f,triangleOffsetSize:b,style:O},L.popper,{role:"tooltip"}),t.createElement(ir,{className:w.wrap,tipMinWidth:y,tipMaxWidth:x},null!=r?r:t.createElement(nr,null,o)),s&&t.createElement(or,{id:"veeqo-components-triangle",className:w.triangle}));return t.createElement(er,{className:w.container},u?v.createPortal(j,document.body):j,t.createElement(tr,{ref:k,className:w.hoverable,onMouseEnter:z,onMouseLeave:F},e))},cr=m(k).withConfig({displayName:"vui--BaseBadge",componentId:"vui--idt2e7"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${T.bodySmall.fontFamily};font-weight:${T.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${R.base};height:${R.base};}`,sr={default:m(cr).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${I.secondary.blue.base};color:${I.secondary.blue.base};`,primary:m(cr).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};color:${I.secondary.blue.base};`,warning:m(cr).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${I.secondary.yellow.base};background-color:${I.secondary.yellow.lightest};color:${I.secondary.orange.dark};`},dr=({variant:e="default",hideBorder:n=!1,iconSlot:o,tooltip:r,className:i,e2eClassName:a,children:l})=>{const c=sr[e];return t.createElement(lr,{text:r},t.createElement(c,{className:Gn([i,a]),hideBorder:n},o&&o,l&&t.createElement("span",null,l)))},ur=m(k).withConfig({displayName:"vui--BannerLayout",componentId:"vui--5tzoxx"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,pr=m(k).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,mr=m(k).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,fr=m(mr).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${R.md};height:${R.md};color:${({accentColor:e})=>e};}`,hr=m(k).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,gr=m(mr).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,br=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,vr={help:I.secondary.blue.base,info:I.neutral.ink.base,error:I.secondary.red.base,success:I.secondary.green.base},yr=e=>{var{type:n="info",text:o,icon:r,onClose:i,className:a,header:l,children:c,backgroundColor:s="white"}=e,d=ee(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=vr[n];return t.createElement(ur,Object.assign({accentColor:u,className:a,backgroundColor:s},d),t.createElement(pr,null,r&&t.createElement(fr,{style:{marginRight:R.md},accentColor:u},r),c?t.createElement(hr,null,c):t.createElement(t.Fragment,null,t.createElement(gr,null,l||t.createElement(br,{variant:"headingSmall"},o)),t.createElement(mr,null,i&&t.createElement(bo,{variant:"flat","aria-label":"Close",icon:t.createElement(wo,null),onClick:i})))))},xr=m.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${T.body.fontFamily};font-weight:${T.body.fontWeight};font-size:${T.body.fontSize};line-height:${T.body.lineHeight};`,wr=m.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--19n9row"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Er=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Cr=({children:e,title:n,LinkComponent:o,href:r})=>o?t.createElement(wr,{className:"breadcrumb"},t.createElement(o,{href:r},n),e):t.createElement(wr,{className:"breadcrumb"},n,e),$r=()=>t.createElement(Er,{className:"separator",width:R.base,height:R.base}),kr=({children:e,href:n})=>t.createElement("a",{href:n},e),Sr=({children:e})=>t.createElement("span",null,e),Nr=({items:e,Separator:n=t.createElement($r,null),LinkComponent:o=kr})=>t.createElement(xr,{className:"breadcrumbs"},e.map(((r,i)=>t.createElement(Cr,{key:r.title,title:r.title,href:r.pathname,LinkComponent:i!==e.length-1?o:Sr},e.length!==i+1&&n))));var Ir;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ir||(Ir={}));const Lr=m.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:r="base"}=e;let i,a,l,c,s="",d="";return"vertical"===t?(i=n&&Ir[n],a=o&&Ir[o],s=B.sizes[r],l="column"):(i=o&&Ir[o],a=n&&Ir[n],d=B.sizes[r],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(c=1),`\n align-items: ${i};\n justify-content: ${a};\n flex-direction: ${l};\n\n & > * {\n flex: ${c};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${d};\n }\n `}}`;Lr.displayName="Stack";const zr={top:"flex-start",center:"center"},Fr=m.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${B.sizes.base};}`,Or=m.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>zr[e.align]};width:24px;height:24px;`,jr=m.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,Mr=m.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${B.sizes.sm};}`,Rr=m.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${B.text.body.fontFamily};font-size:${B.text.body.fontSize};font-weight:${B.text.body.fontWeight};line-height:${B.sizes.md};color:${B.text.body.color};`,Dr=m.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${B.fontFamily};font-size:${B.sizes[3]};line-height:${B.sizes[4]};color:${B.colors.neutral.ink.light};`,Tr=m.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${B.text.error.fontFamily};font-size:${B.text.error.fontSize};font-weight:${B.text.error.fontWeight};line-height:${B.text.error.lineHeight};color:${B.text.error.color};`,Br=m.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Ar=m(Br).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${B.colors.neutral.grey.dark};border-radius:${B.radius.md};padding:${B.sizes.base} 0.75rem;&:hover{border-color:${B.colors.secondary.blue.base};}& ${Rr}{font-weight:${B.text.bodyBold.fontWeight};}`,Hr=m(lr).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Pr=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Wr=({id:e,label:n,hint:o,tooltip:r,error:i,bordered:a,Badge:l,Accessory:c,Footer:s,children:d,disabled:u=!1})=>{const p=t.createElement(Fr,null,t.createElement(Or,{align:c?"center":"top"},d),c&&t.createElement(jr,null,c),n||o||i||l||s?t.createElement(Mr,null,t.createElement(Lr,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&t.createElement(Rr,null,n),r&&t.createElement(Hr,{text:r},t.createElement(Pr,{name:"help",width:B.sizes.base,color:B.colors.neutral.ink.lightest}))),o&&t.createElement(Dr,null,o),i&&t.createElement(Tr,null,i),s):null);return a?t.createElement(Ar,{disabled:u,htmlFor:e},p):t.createElement(Br,{disabled:u,htmlFor:e},p)},{colors:Vr,sizes:qr,radius:Zr}=B,_r=m.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Vr.neutral.ink.lightest};border-radius:${Zr.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Vr.secondary.blue.base};border-color:${Vr.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:${qr[4]};background-position:center;}&:hover{border-color:${Vr.secondary.blue.base};}&:active{border-color:${Vr.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Vr.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Vr.secondary.blue.base};border-color:${Vr.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:${qr[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Vr.neutral.grey.base};border-color:${Vr.neutral.grey.base};color:${Vr.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>");}`,Xr=e=>{var{checked:n,indeterminate:r,value:l,name:s,disabled:d,ariaLabel:u,className:p,onChange:m}=e,f=ee(e,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=a((()=>Xn("checkbox")),[]),g=i(null),b=c((e=>{m(e.currentTarget.checked,l)}),[m,l]);return o((()=>{g.current&&(g.current.indeterminate=!0===r)}),[r]),t.createElement(Wr,Object.assign({id:h,disabled:d},f),t.createElement(_r,{ref:g,id:h,type:"checkbox",checked:n,value:l,name:s,disabled:d,"aria-label":u,className:p,onChange:b}))},Ur=m.input.withConfig({displayName:"vui--Input",componentId:"vui--14lc9u"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Yr=l(((e,n)=>{var{checked:o,value:r,name:i,disabled:a,onChange:l,id:s}=e,d=ee(e,["checked","value","name","disabled","onChange","id"]);const u=c((e=>{l(e.currentTarget.checked,r)}),[l,r]),p=null!=s?s:Xn("radio");return t.createElement(Wr,Object.assign({id:p,disabled:a},d),t.createElement(Ur,{id:p,type:"radio",checked:o,value:r,name:i,disabled:a,onChange:u,ref:n}))})),Gr=m.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Kr=m.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${B.text.inputLabel.fontFamily};font-size:${B.text.inputLabel.fontSize};font-style:${B.text.inputLabel.fontStyle};font-weight:${B.text.inputLabel.fontWeight};line-height:${B.text.inputLabel.lineHeight};text-decoration:${B.text.inputLabel.textDecoration};color:${B.text.inputLabel.color};`;class Jr 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 r=[];r=t?[...n,e]:n.filter((t=>t!==e)),o(r)}}render(){const{allowMultiple:e,options:n,selected:o,title:r,disabled:i,bordered:a}=this.props,l=e?Xr:Yr;return t.createElement(Gr,{disabled:i},r&&t.createElement(Kr,null,r),n.map((e=>t.createElement(l,Object.assign({key:e.value,bordered:a,checked:o.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Qr=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),ei=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),ti={width:R.base,height:R.base},ni=m(bo).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${R.base};width:${R.base};top:unset;}`,oi=({className:e,text:n,onCopy:o})=>{const[r,i]=t.useState(!1),a=c((()=>{navigator.clipboard.writeText(n),o&&o(),i(!0),setTimeout((()=>i(!1)),2500)}),[o,n]);return t.createElement(lr,{text:r?"Copied!":"Copy to clipboard"},t.createElement(ni,{variant:"flat",size:"sm",className:e,"aria-label":`${r?"Copied":"Copy"} "${n}" to clipboard`,icon:r?t.createElement(Qr,Object.assign({color:I.secondary.green.base},ti)):t.createElement(ei,Object.assign({color:I.secondary.blue.base},ti)),onClick:a}))};function ri(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function ii(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${ii(e.min,"max-content")}, ${ii(e.max)})`;default:return t||"1fr"}}function ai({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:r,stripingMode:i}){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 `)),l=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 `)),c="start"!==o&&"none"!==o,s=`\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: ${c?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,d="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,p=`\n tr:nth-child(odd) > td {\n background-color: ${B.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${B.colors.neutral.grey.base};\n }\n `,m=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${B.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${B.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${r.map((e=>ii(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?l:""}\n\n ${s}\n ${u}\n\n ${"nested"===i?m:p}\n `}var li;!function(e){e.ascending="ascending",e.descending="descending"}(li||(li={}));const ci=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),si=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),di=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),ui=({sortState:e,columnId:n,size:o})=>e&&e.columnId===n?e.direction===li.ascending?t.createElement(si,{color:B.colors.neutral.ink.dark,size:o}):t.createElement(di,{color:B.colors.neutral.ink.dark,size:o}):t.createElement(ci,{size:o});function pi(e,t){const[r,i]=n([]),a=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));i(n)};return o((()=>{a()}),[e.current]),o((()=>{if(!t.current)return;const e=E(a,50),n=new b(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),r}function mi(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),r=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...r,...o],pinnedLeft:n,pinnedRight:o}}function fi(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},r=e=>{if(!n)return;const r=e.clientX-o.x;n.scrollLeft=o.left-r,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},i=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},a=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i))};return n.addEventListener("mousedown",a),()=>null==n?void 0:n.removeEventListener("mousedown",a)}),[e.current])}function hi(){const[e,t]=n([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(n,o)=>{if(o)if(n){if(e.includes(o))return;const n=[...e,o];t(n)}else{const n=e.findIndex((e=>e===o));if(n<0)return;const r=[...e];r.splice(n,1),t(r)}}}}}function gi(e){const[t,r]=n("start"),i=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;r(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",i),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",i)}}),[e.current]),o((()=>{if(!e.current)return;const t=E(i,50),n=new b(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:t,containerRef:e}}const bi="56px",vi=m.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${bi};display:flex;align-items:center;justify-content:${({align:e="left"})=>ri(e)};background-color:white;padding-left:${({spacing:e=3})=>B.sizes[e]};padding-right:${({spacing:e=3})=>B.sizes[e]};border-bottom:1px solid ${B.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function yi(e){var{selected:n,indeterminate:o,onChange:r,selectionMode:i}=e,a=ee(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===i?t.createElement(vi,Object.assign({},a)):t.createElement(vi,Object.assign({},a),t.createElement(Xr,{checked:n,indeterminate:o,onChange:r}))}const xi=m.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>ri(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>B.sizes[e]};padding-right:${({spacing:e=3})=>B.sizes[e]};color:${B.text.bodySmall.color};font-family:${B.text.bodySmall.fontFamily};font-size:${B.text.bodySmall.fontSize};font-style:${B.text.bodySmall.fontStyle};font-weight:${B.text.bodySmall.fontWeight};line-height:${B.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${B.colors.secondary.blue.base};background-color:${B.colors.neutral.grey.lightest};}`;function wi(e){var{selected:n,rowId:o,onChange:r,selectionMode:i,disabled:a}=e,l=ee(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===i?t.createElement(xi,Object.assign({},l),t.createElement(Yr,{value:o,checked:n,disabled:a,onChange:r})):t.createElement(xi,Object.assign({},l),t.createElement(Xr,{value:o,checked:n,disabled:a,onChange:r}))}const Ei=[[],()=>{}];function Ci({selectionMode:e="multiple",selectionState:n,enabledRowIds:o}){const r=!!n,[i,a]=n||Ei,l=()=>{i.length!==o.length?a(o):a([])};return{selectionEnabled:r,selectedRowIds:i,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,r)=>t.createElement(yi,Object.assign({},r,{selected:i.length===o.length,indeterminate:i.length>0&&i.length<o.length,onChange:l,selectionMode:e})),renderCell:(n,o,r,i)=>t.createElement(wi,Object.assign({},o,{rowId:n.id,selected:i.selected,onChange:r.setSelected,selectionMode:e,disabled:i.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)a([n]);else if(t){if(i.includes(n))return;const e=[...i,n];a(e)}else{const e=i.findIndex((e=>e===n));if(e<0)return;const t=[...i];t.splice(e,1),a(t)}}}}const $i=m.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${B.colors.neutral.ink.lightest};`,ki=m.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${B.text.headingTable.color};font-family:${B.text.headingTable.fontFamily};font-size:${B.text.headingTable.fontSize};font-style:${B.text.headingTable.fontStyle};font-weight:${B.text.headingTable.fontWeight};line-height:${B.text.headingTable.lineHeight};`,Si=m(ki).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--p1ald0"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${$i}{background-color:${B.colors.neutral.grey.light};color:${B.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${B.colors.secondary.blue.light};}`;function Ni({column:e,sortState:n,onChangeSort:o}){if(e.sortable&&!n)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const r={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,r);const i=e.sortable?Si:ki,a=e.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const t=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===li.ascending;let r=li.ascending;return n&&o&&(r=li.descending),{columnId:t,direction:r}}({sortState:n,columnId:e.id});o?o(t):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return t.createElement(vi,Object.assign({},r),t.createElement(lr,{text:e.tooltip},t.createElement(i,Object.assign({},a),e.icon&&e.icon,e.title&&t.createElement("span",null,e.title),e.sortable&&t.createElement($i,null,t.createElement(ui,{sortState:n,columnId:e.id,size:5})))))}const Ii=B.colors.neutral.grey.base,Li=B.colors.neutral.grey.dark,zi=m.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${B.radius.base};background:${Ii};background-image:linear-gradient(\n to right,\n ${Ii} 0%,\n ${Li} 20%,\n ${Ii} 40%,\n ${Ii} 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 Fi=m.div.withConfig({displayName:"vui--Container",componentId:"vui--uoc40o"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${bi};background-color:white;`,Oi=m.div.withConfig({displayName:"vui--Content",componentId:"vui--x1996k"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${B.colors.neutral.grey.base};& > *{flex:1;}`;function ji({selectionColumn:e,intersectionTargetRef:r,containerRef:i,children:a}){var l;const[c,s]=n(!1);o((()=>{if(!r.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{s(!e.isIntersecting)}))}));return e.observe(r.current),()=>e.disconnect()}),[r.current]);const d=null===(l=i.current)||void 0===l?void 0:l.getBoundingClientRect(),u={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},p=c?u:{position:"absolute",top:0,left:0,right:0};return t.createElement(Fi,{style:p},Ni({column:e}),t.createElement(Oi,null,a))}const Mi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Ri=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Di=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Ti=m.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${B.sizes.lg};padding-bottom:${B.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${B.sizes.md};`,Bi=m.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${B.sizes.md};background-color:${B.colors.neutral.grey.light};border-radius:${B.radius.full};`,Ai=m.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,Hi=m.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${B.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 `}`,Pi=m.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Wi=m.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${B.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Vi=m.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,qi={full:`border-width: 1px; border-radius: ${B.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Zi=m.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${B.colors.neutral.grey.dark};${({borderMode:e="full"})=>qi[e]} &,& *{box-sizing:border-box;}`;function _i({children:e,intersectionTargetRef:r,containerRef:a,cellWidths:l,tableCss:c}){const s=i(null),[d,u]=n(!1),[p,m]=n({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=a.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};m(n)},h=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=s.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!r.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(r.current),()=>e.disconnect()}),[r.current]),o((()=>{d&&a.current&&f()}),[a.current,d]),o((()=>{if(!d)return;if(!a.current)return;const e=E(f,33),t=new b(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,d]),o((()=>{h()}),[d]),o((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",h)}}),[a.current]),!d)return null;const g=Object.assign(Object.assign({},p),{height:bi,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${B.colors.neutral.grey.base}`}),v=c+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return t.createElement("div",{style:g,ref:s},t.createElement(Wi,{css:v},t.createElement("thead",null,e)))}const Xi=(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}),Ui=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"}),t.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),t.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Yi={icon:t.createElement(Ui,{width:48,height:48}),heading:"No results"},Gi=()=>{},Ki=({ActionBarSlot:e,borderMode:n,columns:o,emptyState:r=Yi,expandedRowIds:a,loading:l,loadingRowCount:c,onChangeSort:s,rows:d,disabledRowIds:u,selectionMode:p,selectionState:m,setExpanded:f,sortState:h,stripingMode:g,enableStickyHeader:b})=>{const v=i(null),y=i(null),x=i(null);fi(v);const w=d.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:C,selectionColumn:$,setSelected:k}=Ci({selectionMode:p,selectionState:m,enabledRowIds:w}),S={setSelected:k||Gi,setExpanded:f||Gi},N=[$,...o],I=E?N:o,L=pi(y,v),{visible:z,pinnedLeft:F,pinnedRight:O}=mi(I),{scrollPosition:j}=gi(v),M=ai({pinnedLeft:F,pinnedRight:O,cellWidths:L,scrollPosition:j,visible:z,stripingMode:g});if(l){const e=new Array(c).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return t.createElement(Zi,{borderMode:n},t.createElement(Pi,{ref:v},t.createElement(Wi,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},t.createElement(Hi,{role:"row"},z.map((e=>Ni({column:e,sortState:h,onChangeSort:s}))))),t.createElement("tbody",{role:"rowgroup"},e.map((e=>t.createElement(Hi,{key:e.id},z.map((n=>function(e,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${e.id}-${n.id}`,role:"cell",spacing:n.spacing};return t.createElement(xi,Object.assign({},o),t.createElement(zi,null))}(e,n))))))))))}if(0===d.length)return t.createElement(Zi,{borderMode:n},t.createElement(Pi,{ref:v},t.createElement(Wi,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},t.createElement(Hi,{role:"row"},z.map((e=>Ni({column:e,sortState:h,onChangeSort:s}))))),t.createElement("tbody",{role:"rowgroup"},t.createElement(Ti,{columnCount:z.length},t.createElement(Bi,null,r.icon),t.createElement(Lr,{spacing:"sm",alignX:"center"},t.createElement(W,{variant:"headingMedium"},r.heading),r.subheading&&t.createElement(W,{variant:"subheadingMedium"},r.subheading)))))));const R=e=>{const{e2eClassName:n="",accentColor:o}=e,r=Xi(e.id,{selectedRowIds:C,expandedRowIds:a,disabledRowIds:u});return t.createElement(Hi,Object.assign({role:"row",key:e.id,accentColor:o,className:n},r),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const r={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,r,n,o)}(e,t,S,r))))},D=(e,n)=>{var o,r;const i=null===(r=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.e2eClassNames)||void 0===r?void 0:r.row,l=Xi(n,{selectedRowIds:C,expandedRowIds:a,disabledRowIds:u});return t.createElement(Hi,{role:"row",key:e.id,className:i},z.map((n=>function(e,n,o){if(n.hidden)return null;const r={align:n.align,key:`${e.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(e,r,o):t.createElement(xi,Object.assign({},r))}(e,n,l))))},T=e=>{var n;const o=null==a?void 0:a.includes(e.id);return t.createElement("tbody",{role:"rowgroup",key:e.id},R(e),o&&(null===(n=e.nestedRows)||void 0===n?void 0:n.map((t=>D(t,e.id)))))},B=t.createElement(Hi,{role:"row"},z.map((e=>Ni({column:e,sortState:h,onChangeSort:s})))),A=o.some((e=>!!e.renderFooter)),H=C.length>0&&!!e;return t.createElement(Zi,{borderMode:n},H&&t.createElement(ji,{selectionColumn:$,intersectionTargetRef:x,containerRef:v},e),t.createElement(Pi,{ref:v},b&&t.createElement(_i,{tableCss:M,intersectionTargetRef:x,containerRef:v,cellWidths:L},B),t.createElement("div",{ref:x,style:{height:0}}),t.createElement(Wi,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},B),(()=>{const e=!!a;return e&&"nested"===g?d.map(T):e?t.createElement("tbody",{role:"rowgroup"},d.map((e=>{var t;return[R(e),...(null==a?void 0:a.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>D(t,e.id))))||[]]}))):t.createElement("tbody",{role:"rowgroup"},d.map(R))})(),A&&t.createElement("tfoot",{role:"rowgroup"},t.createElement(Hi,{role:"row"},z.map((e=>function({column:e}){if(e.hidden)return null;const n={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,n):t.createElement(xi,Object.assign({},n))}({column:e}))))))))};Ki.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ki.Cell=xi,Ki.ColumnMenu=function({columns:e,columnGroups:o,setColumns:r}){const[i,a]=n(null),[l,c]=n(!1),s=e.map((e=>[e.id,e])),d=Object.fromEntries(s),u=o.map((e=>e.map((e=>d[e])))),p=(t,n)=>{const o=u[t].map((e=>e.id)),i=[...e];o.forEach((e=>{const t=i.findIndex((t=>t.id===e));t<0||(i[t]=Object.assign(Object.assign({},i[t]),{hidden:n}))})),r(i)};return t.createElement(t.Fragment,null,t.createElement(bo,{ref:a,dropdown:!0,onClick:()=>c(!0)},"Columns"),l&&t.createElement(Qn,{anchorElement:i,onShouldClose:()=>c(!1)},t.createElement(Oo,{style:{width:600}},t.createElement(Lr,{alignX:"stretch",spacing:"sm"},u.map(((e,n)=>t.createElement(Lr,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},t.createElement(bo,{variant:"flat",icon:t.createElement(Di,null)}),t.createElement(Lr,{spacing:"sm",style:{flex:1}},e.map((e=>t.createElement("div",{key:e.id},e.title)))),t.createElement(Lr,{direction:"horizontal",spacing:"sm"},e[0].hidden?t.createElement(bo,{variant:"flat",icon:t.createElement(Ri,null),onClick:()=>p(n,!1),style:{color:B.colors.neutral.ink.lightest}}):t.createElement(bo,{variant:"flat",icon:t.createElement(Mi,null),onClick:()=>p(n,!0)})))))))))},Ki.SelectionCell=wi,Ki.SelectionHeader=yi,Ki.Header=vi,Ki.Truncate=Vi,Ki.NoWrap=Ai;const Ji=m.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${B.sizes.base};}`,Qi=m.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${B.sizes.xs};}`,ea=m.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${B.sizes.base};}`,ta=m.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${B.sizes.xs};}`,na=m.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${B.text.bodyBold.fontFamily};font-size:${B.text.bodyBold.fontSize};font-weight:${B.text.bodyBold.fontWeight};line-height:${B.text.bodyBold.lineHeight};color:${B.text.bodyBold.color};`,oa=m.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${B.text.body.fontFamily};font-size:${B.text.body.fontSize};font-weight:${B.text.body.fontWeight};line-height:${B.text.body.lineHeight};color:${B.text.body.color};`,ra=({items:e,horizontal:n})=>{const o=e=>Array.isArray(e)?e.map((e=>t.createElement(oa,{key:e},e))):t.createElement(oa,null,e);return t.createElement(Ji,null,e.map((e=>n?t.createElement(ea,{key:e.term},t.createElement(na,null,e.term),t.createElement(ta,null,o(e.description))):t.createElement(Qi,{key:e.term},t.createElement(na,null,e.term),o(e.description)))))},{sizes:ia,colors:aa}=B,la=m.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${ia.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${ia.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ca=m.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${ia.md};overflow-x:hidden;background-color:${aa.neutral.grey.lightest};`,sa=({renderHeader:e,children:o})=>{const[r,i]=n(!0);return t.createElement("main",null,e((()=>i(!r)),r),t.createElement(ca,null,t.createElement(la,{showSidebar:r},o)))},da=m.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--2b6aqg"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var ua;!function(e){e.base="base",e.sm="sm"}(ua||(ua={}));const pa=m.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${B.text.inputLabel.fontFamily};font-size:${B.text.inputLabel.fontSize};font-weight:${B.text.inputLabel.fontWeight};line-height:${B.text.inputLabel.lineHeight};color:${B.text.inputLabel.color};`,ma=m.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${B.fontFamily};font-size:${B.sizes[3]};line-height:${B.sizes[4]};color:${B.colors.neutral.ink.light};`,fa=m.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${B.text.error.fontFamily};font-size:${B.text.error.fontSize};font-weight:${B.text.error.fontWeight};line-height:${B.text.error.lineHeight};color:${B.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${B.sizes[2]} * -1);width:2px;background-color:${B.colors.secondary.red.base};}`,ha=m(Lr).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,ga=m(lr).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,ba=e=>n=>{var{label:o,hint:r,error:i,tooltip:l}=n,c=ee(n,["label","hint","error","tooltip"]);const s=a((()=>Xn(e.name)),[]);return o?t.createElement(ha,{spacing:"sm",alignX:"stretch"},t.createElement("div",null,t.createElement(Lr,{direction:"horizontal",alignY:"center",spacing:"sm"},t.createElement(pa,{htmlFor:s},o),l&&t.createElement(ga,{text:l},t.createElement(Pr,{width:B.sizes.base,height:B.sizes.base,color:B.colors.neutral.ink.light}))),r&&t.createElement(ma,null,r)),t.createElement(e,Object.assign({id:s,hasError:!!i},c)),i&&t.createElement(fa,null,i)):t.createElement(e,Object.assign({hasError:!!i},c))},va=e=>n=>(o((()=>{console.warn(`${e.name} is deprecated.`)}),[]),t.createElement(e,Object.assign({},n))),ya=({hasError:e,inputSize:t})=>f`&{--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 "}`,xa=m.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${B.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 `}} ${ya} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,wa=m.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1jp908v"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${ya}`,Ea=/^-?[0-9]*\.?[0-9]+$/,Ca=ba(l(((e,n)=>{var{id:o,className:r,disabled:i=!1,hasError:a,max:l,min:s,multiline:d=!1,name:u,onChange:p,pattern:m,placeholder:f,rows:h="3",size:g=ua.base,step:b,type:v="text",value:y,spellCheck:x=!1}=e,w=ee(e,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=c((e=>{if(!p)return;const t=e.currentTarget.value;if(""===t)return void p(t);if("number"!==v)return void p(t);new RegExp(Ea).test(t)&&p(t)}),[p,v]),C=null!=o?o:Xn("textfield");return"text"===v&&d?t.createElement(wa,Object.assign({className:r,disabled:i,hasError:a,id:C,name:u,onChange:E,placeholder:f,rows:h,value:y,spellCheck:x,ref:n},w)):t.createElement(xa,Object.assign({className:r,disabled:i,hasError:a,id:C,inputSize:g,max:l,min:s,name:u,onChange:E,placeholder:f,step:b,type:v,value:y,spellCheck:x,ref:n},w))})));Ca.displayName="TextField";const $a=m(k).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,ka=m(k).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Sa=m(Ca).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${B.colors.neutral.ink.lightest};}`,Na=m(bo).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${B.colors.neutral.ink.lightest};`;m(W).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,m.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${B.text.error.fontFamily};font-size:${B.text.error.fontSize};font-weight:${B.text.error.fontWeight};line-height:${B.text.error.lineHeight};color:${B.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${B.sizes[2]} * -1);width:2px;background-color:${B.colors.secondary.red.base};}`,m.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${B.fontFamily};font-size:${B.sizes[3]};line-height:${B.sizes[4]};color:${B.colors.neutral.ink.light};`;const Ia=ba((e=>{var{size:n=ua.base,handleChangeHeight:o,handleChangeWidth:r,handleChangeLength:i,className:a,height:l,width:c,length:s,unit:d}=e,u=ee(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return t.createElement($a,{className:a},t.createElement(ka,null,t.createElement(Sa,Object.assign({onChange:i,size:n,name:"length",type:"number",placeholder:"L",value:s},u)),t.createElement(wo,{height:B.sizes.base,width:B.sizes.base}),t.createElement(Sa,Object.assign({onChange:r,size:n,name:"width",type:"number",placeholder:"W",value:c},u)),t.createElement(wo,{height:B.sizes.base,width:B.sizes.base}),t.createElement(da,null,t.createElement(Sa,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l},u)),t.createElement(Na,{size:n},d))))}));Ia.displayName="DimensionsInput";const La=(e,t)=>{const n=i(null),r=c((e=>{"Escape"===e.key&&(null==t||t())}),[t]),a=c((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",a),document.addEventListener("keyup",r),()=>{document.removeEventListener("click",a),document.removeEventListener("keyup",r)}}),[a,r,e]),n},za=(e,t)=>{const[r,i]=n(e);return o((()=>{const n=setTimeout((()=>i(e)),t);return()=>clearTimeout(n)}),[e,t]),r};function Fa(){const[e,t]=n(!1),o=c((()=>t(!e)),[e,t]),r=c((()=>t(!1)),[t]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:t,closeDropdown:r}}const Oa=t.createContext({hadKeyboardEvent:!0,isInitialized:!1});function ja({children:e}){const[r,i]=n(!0);return o((()=>{function e(){i(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(i(!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 r(e){e.metaKey||e.altKey||e.ctrlKey||i(!0)}function a(){"hidden"===document.visibilityState&&(i(!0),n())}return document.addEventListener("keydown",r,!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",r,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",a,!0),o()}}),[i]),t.createElement(Oa.Provider,{value:{hadKeyboardEvent:r,isInitialized:!0}},e)}function Ma(){const[e,n]=t.useState(!1),{hadKeyboardEvent:o,isInitialized:r}=t.useContext(Oa),i=t.useCallback((()=>{e||n(!0)}),[e]),a=t.useCallback((()=>{e&&n(!1)}),[e]);let l;return l=r?o&&e:e,t.useMemo((()=>({focusVisible:l,onFocus:i,onBlur:a})),[l,a,i])}const Ra=(e=!1)=>{const[t,o]=n(e);return[t,c((()=>o(!0)),[o]),c((()=>o(!1)),[o])]},Da=e=>{const[t,r]=n(!1),[i,a]=n(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;r(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:t&&!i,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:r}=t.target;a(o-n-r<=0)}}},Ta=(e,t)=>{const{defaultActiveIndex:o=0}=t||{},[r]=n(e),[i,a]=n(r[o]);return[i,e=>{const t=r.find((t=>t.key===e));t&&a(t)}]},Ba=m(k).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${I.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${R.base};height:${R.base};}`,Aa=m(W).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Ha=m(Aa).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Pa=m(xo).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,Wa=m(wo).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Va=m(k).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,qa=m(k).withConfig({displayName:"vui--Header",componentId:"vui--188pxr2"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${I.neutral.grey.base};svg{color:${({color:e})=>e};width:${R[5]};height:${R[5]};margin-right:10px;}`,Za=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),_a=({className:e,e2eClassName:n,label:o,text:r,iconSlot:i,fill:a=I.secondary.blue.base,content:l,footer:s,onClickAway:d,onClick:u,shouldCloseOnClickAway:p=!0})=>{const m=Za(e),f=Za(n),{shouldShowDropdown:h,toggleShouldShowDropdown:g,closeDropdown:b}=Fa(),v=c((e=>{g(),d&&h&&d(e)}),[g,d,h]),y=c((e=>{d&&d(e,b),p&&b()}),[b,d,p]);return!l?t.createElement(Ba,{className:Gn([null==m?void 0:m.container,null==f?void 0:f.container]),onClick:u},o&&t.createElement(Ha,{variant:"subheadingSmallBold"},`${o}:`),t.createElement(W,null,r),t.createElement(Wa,{className:Gn([null==m?void 0:m.cross,null==f?void 0:f.cross]),name:"cross",size:"base",color:I.neutral.ink.base})):t.createElement(Yo,{className:m.filterTagDropdown,shouldShowDropdown:h,onClickAway:y,cta:t.createElement(Ba,{className:m.container,onClick:v},o&&t.createElement(Ha,{variant:"subheadingSmallBold"},`${o}:`),t.createElement(W,null,r),t.createElement(Pa,{color:I.neutral.ink.base,name:"downArrow",shouldShow:h}))},t.createElement(Va,null,t.createElement(qa,{color:a},i,t.createElement(W,{variant:"bodyBold"},o)),l,s))},Xa=m(k).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?R[e]:0};`,Ua=e=>t.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Ya=m.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,Ga=m.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Ka=m.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,Ja=m.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Qa=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}),el=({src:e,alt:o="",className:r,e2eClassName:i,width:a,height:l,previewWidth:s,previewHeight:d,previewPlacement:u="right",previewEnabled:p=!1,placeholder:m,placeholderWidth:f,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Qa(r),x=Qa(i),[w,E]=n(!1),[C,$]=n({isLoaded:!1,isError:!1}),[k,S]=t.useState(null),[N,I]=t.useState(null),{styles:L,attributes:z}=g(k,N,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=c((()=>p?E(!0):{}),[p]),O=c((()=>p?E(!1):{}),[p]),j=!C.isLoaded||C.isError;return t.createElement(Ya,{className:Gn([null==v?void 0:v.container,null==x?void 0:x.container,r])},t.createElement(Ga,{src:e,alt:o,className:Gn([null==v?void 0:v.image,null==x?void 0:x.image]),width:a,height:l,onLoad:()=>$({isLoaded:!0,isError:!1}),onError:()=>$({isLoaded:!0,isError:!0}),previewEnabled:p,onMouseEnter:F,onMouseLeave:O,style:j?{display:"none"}:{},ref:S}),!b&&j&&(m||t.createElement(Ua,{className:Gn([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:f||a,height:h||l})),w&&y(t.createElement(Ka,Object.assign({ref:I,style:L.popper},z.popper,{className:Gn([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),t.createElement(Ja,{src:e,alt:"",width:s,height:d})),document.body))},tl={width:64,height:64},nl={icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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({},tl)),title:"No data found"},ol={icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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({},tl)),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 rl;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(rl||(rl={}));const{text:il,sizes:al}=B,{blue:ll}=B.colors.secondary,{grey:cl}=B.colors.neutral,{scrollbar:sl}=B.colors.system,dl='\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',ul=m.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,pl=m.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--8prdgq"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${cl.dark};border-bottom:1px solid ${cl.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: ${sl.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${sl.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 ${dl};\n\n ${o===rl.middle||o===rl.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 ${dl};\n\n ${o===rl.start||o===rl.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,ml=m(pl).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${cl.dark};border-radius:4px;`,fl=m.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,hl=m.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${cl.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;m.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${cl.lightest};padding:1.5rem 1rem;border-top:1px solid ${ll.base};}`;const gl=m.tr.withConfig({displayName:"vui--Row",componentId:"vui--ostkmy"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,bl=m.td.withConfig({displayName:"vui--Cell",componentId:"vui--9fl65z"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${il.bodySmall.fontFamily};font-size:${il.bodySmall.fontSize};font-weight:${il.bodySmall.fontWeight};color:${il.bodySmall.color};line-height:${al.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,vl=m(bl).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${cl.dark};font-family:${il.bodySmallBold.fontFamily};font-size:${il.bodySmallBold.fontSize};font-weight:${il.bodySmallBold.fontWeight};color:${il.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${cl.light};}`,yl={left:"flex-start",center:"center",right:"flex-end"},xl=m.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?yl[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,wl=m.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${hl}:nth-child(even) td {\n background-color: ${cl.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${vl}, & ${vl} span {\n white-space: nowrap;\n }\n `}`,El=m.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${bl}{border-top:1px solid ${cl.dark};background-color:${cl.lightest};padding-top:${al.base};padding-bottom:${al.base};line-height:2rem;}`,Cl=m.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,$l=m(wl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,kl=m(k).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--120wsfh"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Sl=m(k).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${B.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Nl=m(W).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,Il=m(W).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,Ll=({height:e,icon:n,title:o,subTitle:r})=>t.createElement(kl,{height:e},t.createElement(Sl,null,n),t.createElement(Nl,{variant:"headingLarge"},o),r&&t.createElement(Il,{variant:"subheadingMedium"},r)),zl=m.button.withConfig({displayName:"vui--CellButton",componentId:"vui--14e2rl4"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${B.sizes.base};border-radius:${B.radius.base};&:hover{cursor:pointer;background-color:${B.colors.secondary.blue.lightest};}`,Fl=m(zl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${B.text.link.color};text-decoration:${B.text.link.textDecoration};`,Ol=m.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:jl}=B.colors.neutral,Ml=m.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,Rl=m.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--yfc89o"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${jl.base} 8%, ${jl.dark} 15%, ${jl.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:e,style:n})=>t.createElement(Ml,{style:n},t.createElement(Rl,{isLoading:e})),Tl=e=>{var{style:n}=e,o=ee(e,["style"]);return t.createElement(bl,Object.assign({},o),t.createElement(Dl,{style:n}))};Tl.defaultProps={style:{}};const Bl=({renderHeader:e,tableRef:r,wrapperRef:i,isFixedLayout:a,wrapperStyle:l})=>{var s;const[d,u]=n(null),{isSticky:p}=((e,t)=>{const[r,i]=n(!1),a=c((({top:e,bottom:n})=>{let o=r;o=e<=(t||0)&&n>0?!r||o:!r&&o,o!==r&&i(o)}),[r,t]);return o((()=>{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:r}})(r,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),m=((null===(s=i.current)||void 0===s?void 0:s.getBoundingClientRect().width)||0)-2;C(i);const f=e=>{var t;const n=(null===(t=i.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:d&&(d.scrollLeft=n)};return f(),p?t.createElement(Cl,{ref:e=>{u(e),f(e)},style:Object.assign({width:m},l)},t.createElement($l,{style:{tableLayout:a?"fixed":"auto"}},e())):null},Al=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")},Hl=e=>{var{style:n,width:o,isLoading:r}=e,i=ee(e,["style","width","isLoading"]);return t.createElement(vl,Object.assign({},i,{style:{width:o}}),t.createElement(Dl,{style:n,isLoading:r}))},Pl=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Wl=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Vl=()=>t.createElement(ci,{width:B.sizes.base,height:B.sizes.base,color:"lightgrey"}),ql=()=>t.createElement(Pl,{width:B.sizes.base,height:B.sizes.base,color:"lightgrey"}),Zl=()=>t.createElement(Wl,{width:B.sizes.base,height:B.sizes.base,color:"lightgrey"}),_l=({borderless:e=!1,striped:r=!0,noWrap:l=!1,showScrollbar:s=!1,headers:d,rows:u,renderRow:p,renderNestedRow:m,expandedRowIds:f,renderLoadingRow:h,renderFooterRow:g,renderFooterLoadingRow:b,omitFooterSelectionCell:v=!1,selectedRowIds:y,disabledSelectionInputRowIds:x,selectionMode:w="multiple",onChangeSelectedRowIds:E,sortColumnId:C,sortDirection:$,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:O=375,startFixedColumnsNumber:j,endFixedColumnsNumber:M})=>{const R=e?pl:ml,D=!!u&&0===u.length,T=Boolean(j||M),B=!j&&!M,A=i(null),H=i(null),[P,W]=n(rl.none);o((()=>{var e;let t=null;const n=()=>{if(!H.current||B)return;const e=H.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),r=n+o;t===o?W(rl.none):0===n?W(rl.start):n>0&&r<t?W(rl.middle):r===t&&W(rl.end)};return H.current&&(t=H.current,n(),null===(e=H.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[A,B]);const V=c((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),[]),q=c(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),Z=c((()=>{if(!d||N)return null;const e=[],t=[];let n=0,o=0;if(j){y&&(e.push(q(1,n,"left")),n+=58);for(let t=0;t<j;t+=1){const o=V(d[t].width);o&&(e.push(q(y?t+2:t+1,n,"left")),n+=o)}}if(M)for(let e=0;e<M;e+=1){const n=V(d.slice(-e-1)[0].width);n&&(t.push(q(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,V,M,q,d,j,y]),_=a((()=>Z()),[Z]),X=c(((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]),U=c((()=>{if(!y||!E)return;if(y.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,y]),Y=c((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,$]),G=c(((e,n)=>{let o="",r=()=>{},i=t.createElement(Vl,null);const{tooltip:a,align:l,icon:c,title:s,sortable:d,id:u}=e;d&&(o="sortable",r=()=>Y(u),C===u&&(i="ascending"===$?t.createElement(ql,null):t.createElement(Zl,null)));const p=t.createElement(xl,{align:l},c&&c,s&&t.createElement("span",null,s),d&&i);return t.createElement(vl,{key:u,id:`data-table-header-${u}`,className:o,onClick:r,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},n)},a?t.createElement(lr,{text:a},t.createElement(ul,null,p)):p)}),[Y,C,$]),K=c(((e,n)=>t.createElement(Hl,{key:e.id,width:e.width||"auto",style:n,isLoading:N})),[N]),J=c((()=>{if(!d)return null;const e=Z(),n=e?e[0].style:{};return t.createElement(fl,null,t.createElement(gl,null,y&&t.createElement(vl,{style:Object.assign({width:58},n)},"multiple"===w&&t.createElement(Xr,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:U,disabled:x&&x.length>0||N||D,ariaLabel:"Select all"})),d.map(((t,n)=>{const o=y?n+2:n+1,r=n-d.length,i=null==e?void 0:e.find((e=>e.index===o||e.index===r));return t.skeleton&&(N||S||D)?K(t,t.skeletonStyle||{}):G(t,(null==i?void 0:i.style)||{})}))))}),[Z,U,d,D,S,N,K,G,u.length,y,w,x]),Q=c(((e,n)=>{const o={checked:e,onChange:e=>X(e,n),disabled:(null==x?void 0:x.includes(n.id))||!1};return"single"===w?t.createElement(Yr,Object.assign({},o)):t.createElement(Xr,Object.assign({},o))}),[X,w,x]),ee=c((e=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?t.createElement(Tl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):t.createElement(Tl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=c(((e,n)=>{var o,r;if(!m)return null;const i=m(e);if(!i)return null;const a=(null===(r=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.e2eClassNames)||void 0===r?void 0:r.row)||"";return t.createElement(gl,{key:e.id,className:`${a} ${n?"hidden":""}`},y&&t.createElement(bl,null),i)}),[m,y]),ne=c((e=>{if(!d)return t.createElement(Tl,null);const n=d.map((n=>t.createElement(Tl,{key:`${e}-${n.id}`})));return y&&n.unshift(ee(e)),n}),[d,ee,y]),oe=()=>g?N&&!b||!N&&D?null:t.createElement(El,{fixedColumnsStyle:Al(_||[])},t.createElement(gl,null,y&&!v&&t.createElement(bl,null),!N&&g(u),N&&b&&b())):null;let re=j;y&&re&&(re+=1);const ie=a((()=>u.map((e=>{var n,o,r;const{data:i}=e,a=!!y&&y.includes(e.id),l=!f||f.includes(e.id),c=null===(n=null==i?void 0:i.e2eClassNames)||void 0===n?void 0:n.body,s=null!==(r=null===(o=null==i?void 0:i.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==r?r:"",d=a?`selected ${s}`:`${s}`;return t.createElement(hl,{key:e.id,className:c,fixedColumnsStyle:Al(_||[])},t.createElement(gl,{key:e.id,className:d,accentColor:e.accentColor},y&&t.createElement(bl,null,Q(a,e)),p(e)),e.nestedRows&&e.nestedRows.map((e=>te(e,!l))))}))),[u,f,_,te,p,Q,y]);if(N){const e=[];for(let n=0;n<I;n+=1)e.push(t.createElement(hl,{key:`loading-row-${n}`,fixedColumnsStyle:Al(_||[])},t.createElement(gl,null,h?t.createElement(t.Fragment,null,y&&ee(),h()):ne(n))));return t.createElement(R,{ref:H,scrollDisabled:!0,scrollPosition:P,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:M},L&&d&&t.createElement(Bl,{renderHeader:J,tableRef:A,wrapperRef:H,isFixedLayout:T,wrapperStyle:z}),t.createElement(wl,{ref:A,striped:r,noWrap:l,tableLoading:!0,isFixedLayout:T},J(),e,oe()))}if(D||S){let e=nl;return F?e=F:S&&(e=ol),t.createElement(R,{scrollDisabled:!0},t.createElement(wl,{ref:A,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:T},J(),oe()),t.createElement(Ll,Object.assign({height:O},e)))}return t.createElement(R,{scrollDisabled:!1,ref:H,scrollPosition:P,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:M,showScrollbar:s},L&&d&&t.createElement(Bl,{renderHeader:J,tableRef:A,wrapperRef:H,isFixedLayout:T,wrapperStyle:z}),t.createElement(wl,{ref:A,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:T},J(),ie,oe()))};_l.Cell=bl,_l.ClickableCell=e=>{var{onClick:n,children:o}=e,r=ee(e,["onClick","children"]);return t.createElement(bl,Object.assign({},r),t.createElement(Fl,{onClick:n},o))},_l.EditableCell=e=>{var{onClick:n,children:o}=e,r=ee(e,["onClick","children"]);return t.createElement(bl,Object.assign({},r),t.createElement(zl,{onClick:n},t.createElement(Ol,null,o)))},_l.SkeletonCell=Tl,_l.SkeletonContent=Dl;const Xl=m.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Ul="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Yl="Log in with Amazon",Gl=e=>{const[o,r]=n(Ul);return t.createElement(Xl,Object.assign({onMouseDown:()=>{r("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{r(Ul)},"aria-label":Yl},e),t.createElement("img",{src:o,alt:Yl}))},Kl=h`body{overflow:hidden;scrollbar-gutter:stable;}`,Jl=m.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${B.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Oo.Footer} {\n box-shadow: 0px 10px 15px 0px ${B.colors.neutral.ink.dark};\n }\n `}`,Ql=e=>!!e.footerSlot,ec={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},tc={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},nc={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:oc}=B,rc=m(u.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--hfuefb"})`padding:0;border:none;border-radius:${B.sizes.sm};box-shadow:${B.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Oo.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${ec[e]};`} ${Jl}{padding-bottom:${B.sizes.md};}${Oo.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${oc.mobile} + 1px))and (max-width: ${oc.tablet}){max-width:${({variant:e})=>tc[oc.tablet][e]};}@media (min-width: ${oc.tablet})and (max-width: ${oc.lgTablet}){max-width:${({variant:e})=>tc[oc.lgTablet][e]};}@media (min-width: ${oc.lgTablet})and (max-width: ${oc.desktop}){max-width:${({variant:e})=>tc[oc.desktop][e]};}@media (min-width: ${oc.desktop}){max-width:${({variant:e})=>tc[oc.lgDesktop][e]};}@media (max-width: ${({variant:e})=>nc[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Oo.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Jn(B.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,ic=t.forwardRef(((e,n)=>{var o=ee(e,[]);return t.createElement(rc,Object.assign({ref:n},o))})),ac=e=>{const{shouldShow:r,showHeaderCloseButton:a=!0,fullBleed:l=!1,variant:c="base",onClose:s,children:d}=e,u=i(null),[m,f]=n(null);o((()=>{var e,t;r&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[r]);const{isOverflowing:h,onScroll:g}=Da(m),b=()=>{var e;null===(e=u.current)||void 0===e||e.close(),s()};return t.createElement(p,null,r&&t.createElement("div",{"data-testid":"dialog-wrapper"},t.createElement(Kl,null),t.createElement(ic,{ref:u,onClose:b,variant:c,"aria-describedby":"modal_title"},t.createElement(Oo.Surface,null,(e=>!!e.headerSlot)(e)?e.headerSlot:t.createElement(Eo,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:e.headerTitle,subtitle:e.headerSubtitle},a&&{onClickClose:b})),t.createElement(Jl,{onScroll:g,ref:f,isScrollable:h,fullBleed:l},d),Ql(e)&&e.footerSlot,!Ql(e)&&(e.leftActions||e.rightActions)&&t.createElement(Oo.Footer,null,t.createElement(Lr,{direction:"horizontal",alignX:e.leftActions?"between":"end"},e.leftActions&&t.createElement(Lr,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},e.leftActions.map((e=>{var{label:n}=e,o=ee(e,["label"]);return t.createElement(bo,Object.assign({key:n,type:"button"},o),n)}))),e.rightActions&&t.createElement(Lr,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},e.rightActions.map((e=>{var{label:n}=e,o=ee(e,["label"]);return t.createElement(bo,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:lc,text:cc,shadows:sc}=B,{grey:dc}=B.colors.neutral,uc=m.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${lc.base} ${lc.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&sc[e]};`,pc=m.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${cc.headingXL.fontFamily};font-size:${cc.headingXL.fontSize};font-weight:${cc.headingXL.fontWeight};margin:unset;line-height:1;`,mc=m.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${cc.subheadingLarge.fontFamily};font-weight:${cc.subheadingLarge.fontWeight};font-size:${cc.subheadingLarge.fontSize};line-height:${cc.subheadingLarge.lineHeight};`,fc=m.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${B.radius.base};border:${lc.line} solid ${dc.base};object-fit:cover;`,hc=m.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,gc=m(bo).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${B.text.link.fontFamily};font-size:${B.text.link.fontSize};font-weight:${B.text.link.fontWeight};line-height:${B.text.link.lineHeight};color:${B.text.link.color};&:hover{text-decoration:${B.text.link.textDecoration};}& > * + *{margin-left:${B.sizes.xs};}`,bc=m.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--498dtg"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${lc.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,vc=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),yc=({title:e,subtitle:n,imageSrc:o,actions:r,quickActions:i,backAction:a,Accessory:l,shadow:c="none",onClickPrevious:s,onClickNext:d,onClickToggleSidebar:u})=>{const p=r&&t.createElement(Po,{buttonVariant:i?"default":"primary",title:"Actions",sections:r}),m=null==i?void 0:i.map((e=>t.createElement(bo,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),f=a&&t.createElement(bo,{onClick:a.onClick,icon:t.createElement(vc,null),variant:"link"},a.title),h=u&&t.createElement(Lr,{direction:"horizontal",alignX:"end"},t.createElement(gc,{onClick:u},t.createElement("span",null,"Toggle sidebar"),t.createElement(Er,{width:R.md})));return t.createElement(uc,{shadow:c},t.createElement(Lr,null,f,t.createElement(bc,null,t.createElement(Lr,{direction:"horizontal",spacing:"md"},o&&t.createElement(fc,{src:o,alt:"",width:"72",height:"72"}),t.createElement("div",{style:{flex:1}},t.createElement(Lr,{alignX:"stretch"},t.createElement(pc,null,e),l,n&&t.createElement(mc,null,n)))),t.createElement(hc,null,t.createElement(Lr,{direction:"horizontal",alignX:"end",spacing:"sm"},m,p,s&&t.createElement(bo,{icon:t.createElement(vc,null),onClick:s}),d&&t.createElement(bo,{icon:t.createElement(Er,null),onClick:d})),h))))},xc=m(Lr).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${B.sizes.lg};height:30px;background-color:${B.colors.neutral.grey.light};border:1px solid ${B.colors.neutral.grey.base};border-radius:${B.sizes.xs};`,wc=m(bo).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${B.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Ec=m(Ca).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,Cc=({count:e})=>t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(W,{variant:"bodySmall","aria-hidden":!0},"/")),t.createElement(xc,{alignX:"center",alignY:"center","aria-hidden":!0},t.createElement(W,{variant:"bodySmall"},e))),$c=({currentPage:e,totalPagesCount:t,handleChangePage:r})=>{const[i,a]=n(`${e}`);o((()=>{a(`${e}`)}),[e]);const l=e=>e>=1&&e<=t,c=()=>{if(i||a(`${e}`),i===`${e}`)return;const t=parseInt(i,10);l(t)&&r(t)};return{pageInputValue:i,handleIncrement:()=>{l(e+1)&&r(e+1)},handleDecrement:()=>{l(e-1)&&r(e-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;l(n=t)&&a(`${n}`)},handleSubmit:c,handleFormSubmit:e=>{e.preventDefault(),c()}}},kc=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Sc=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Nc=({testId:e,e2eClassName:n,currentPage:o,totalPagesCount:r,handleChangePage:i})=>{const{pageInputValue:a,handleIncrement:l,handleDecrement:c,handleFormSubmit:s,handleInputChange:d,handleSubmit:u}=$c({currentPage:o,totalPagesCount:r,handleChangePage:i});return t.createElement(Lr,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:n},t.createElement(wc,{onClick:()=>{1!==o&&i(1)},icon:t.createElement(kc,null),size:"sm","aria-label":"go to first page"}),t.createElement(wc,{onClick:c,icon:t.createElement(vc,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),t.createElement("form",{onSubmit:s},t.createElement(Ec,{"aria-live":"polite","aria-label":`page ${o} of ${r}`,size:ua.sm,type:"number",value:a,min:"1",max:`${r}`,onChange:d,onBlur:u})),t.createElement(Cc,{count:r}),t.createElement(wc,{onClick:l,icon:t.createElement(Er,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=r}),t.createElement(wc,{onClick:()=>{o!==r&&i(r)},icon:t.createElement(Sc,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=r}))},Ic=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Lc=m(k).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,zc=m(Yo).withConfig({displayName:"vui--Dropdown",componentId:"vui--6y6o6p"})`&-container{width:100%;}`,Fc=m.button.withConfig({displayName:"vui--Button",componentId:"vui--6l6anz"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${I.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Oc=m(k).withConfig({displayName:"vui--Container",componentId:"vui--33jbzi"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,jc=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${I.secondary.blue.base};background:${I.neutral.grey.lightest};}`,Mc=({item:e,handleRangeListChange:n})=>{const o=c((()=>n(e)),[n,e]);return t.createElement(Oc,{onClick:o},t.createElement(jc,{variant:"bodySmall"},e.label))},Rc=e=>{const{handleRangeListChange:n,paginationRange:o=Ic}=e;return t.createElement(t.Fragment,null,o.map((e=>t.createElement(d,{key:e.label},t.createElement(Mc,{item:e,handleRangeListChange:n})))))};class Dc extends s{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Ic[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:n=Ic,reversedDropdown:o}=this.props,{shouldShowDropdown:r,dropdownValue:i}=this.state;return t.createElement(Lc,{className:e},t.createElement(zc,{cta:t.createElement(Fc,{onClick:this.toggleShouldShow},t.createElement(W,{variant:"bodySmall"},i.label),t.createElement(ho,{color:B.colors.neutral.ink.base})),shouldShowDropdown:r,onClickAway:this.toggleShouldShow,reversed:o},t.createElement(Rc,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Tc=m.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Bc=m.button.withConfig({displayName:"vui--StepButton",componentId:"vui--1myicuk"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Ac=({onIncrement:e,onDecrement:n,disabled:o=!1,size:r})=>t.createElement(Tc,{size:r},t.createElement(Bc,{type:"button",onClick:e,disabled:o},t.createElement(K,{height:B.sizes.base,width:B.sizes.base,color:B.colors.neutral.ink.base})),t.createElement(Bc,{type:"button",onClick:n,disabled:o},t.createElement(xo,{height:B.sizes.base,width:B.sizes.base,color:B.colors.neutral.ink.base}))),Hc=m(Ca).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${B.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${B.colors.neutral.ink.lightest};}`,Pc=m(k).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${B.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?B.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;}}`,Wc=m(W).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,Vc=m(da).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--1sahwox"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${B.colors.secondary.red.light};\n\n > * {\n border-top-color: ${B.colors.secondary.red.base};\n border-bottom-color: ${B.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${B.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${B.colors.secondary.red.base};\n border-right-color: ${B.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${B.colors.secondary.red.base};\n border-bottom-color: ${B.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${B.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?B.colors.secondary.red.base:B.colors.secondary.blue.base};}}`;const qc=ba((e=>{var{className:n="",hasError:o,currency:r,disabled:i=!1,onChange:a,onPriceChange:l,priceValue:c,step:s="0.1",size:d=ua.base}=e,u=ee(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const p=(e=l)=>{e(((parseFloat(c)||0)+parseFloat(s)).toFixed(2))},m=(e=l)=>{e(((parseFloat(c)||0)-parseFloat(s)).toFixed(2))};return t.createElement(Vc,{className:n,hasError:o},t.createElement(Pc,{disabled:i,size:d},t.createElement(Wc,{variant:"hintText"},r)),t.createElement(Hc,Object.assign({placeholder:"0.00",type:"currency",value:c,step:s,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&&p(a),"ArrowDown"===t&&m(a)},disabled:i,size:d},u)),t.createElement(Ac,{onIncrement:()=>p(),onDecrement:()=>m(),disabled:i,size:d}))}));qc.displayName="PriceInput";const Zc=m(Ca).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,_c=m.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,Xc=m(k).withConfig({displayName:"vui--Container",componentId:"vui--g7dno3"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Zc} {\n ${t}\n }\n\n & ${_c} {\n ${n}\n }\n `}}`,Uc=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Yc=({type:e="text",disabled:n=!1,onClearClick:o,onChange:r,onBlur:i,onFocus:a,onKeyUp:l,onKeyDown:c,onKeyPress:s,value:d="",error:u,placeholder:p="",className:m="",name:f,isLoading:h=!1,fill:g,reversed:b=!1,autoComplete:v="on",size:y="base"})=>{const x=d&&d.length>0;return t.createElement(Xc,{className:m,iconPosition:b?"left":"right"},t.createElement(Zc,{size:y,type:e,value:d,onChange:r,onBlur:i,onFocus:a,onKeyUp:l,onKeyDown:c,onKeyPress:s,placeholder:p,name:f,disabled:n,error:u,autoComplete:v}),t.createElement(_c,null,h?t.createElement(oo,{height:24,color:g||B.colors.secondary.blue.base}):x&&o?t.createElement(bo,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text"},t.createElement(wo,{color:g||B.colors.neutral.ink.dark})):t.createElement(bo,{variant:"unstyled",onClick:()=>r(d),style:{display:"flex"},"aria-label":"Search"},t.createElement(Uc,{color:g||B.colors.neutral.ink.dark,height:R.md,width:R.md}))))},Gc=B.colors.neutral.grey.lightest,Kc=B.colors.neutral.grey.dark,Jc=B.colors.secondary.blue.dark,Qc=m(k).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Gc};border-color:${Kc};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Jc};border-color:${Jc};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${B.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,es=({options:e,selected:n,className:o,onChange:r})=>t.createElement(Qc,{className:o?`${o}-container`:void 0},e.map((e=>t.createElement(bo,{variant:e.value===n?"primary":"default",key:e.key,onClick:()=>r(e.value),disabled:e.disabled,className:e.value===n?"veeqo-components-active-button":""},e.label)))),ts=m.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1h93380"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,ns=ba(l(((e,n)=>{var{className:o,options:r,value:i,onChange:a,size:l,disabled:s,hasError:d}=e,u=ee(e,["className","options","value","onChange","size","disabled","hasError"]);const p=c((e=>{a&&a(e.currentTarget.value)}),[a]);return t.createElement(ts,Object.assign({className:o,sizeVariant:l,value:null!=i?i:void 0,onChange:p,disabled:s,hasError:d,ref:n},u),!!r&&r.map((e=>t.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));ns.displayName="Select";const{blue:os}=I.secondary,{grey:rs}=I.neutral,is=m.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,as=m.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${os.lightest};}`,ls=m.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,cs=m.td.withConfig({displayName:"vui--TableCell",componentId:"vui--1o4t01c"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${T.bodySmall.fontFamily};font-size:${T.bodySmall.fontSize};font-weight:${T.bodySmall.fontWeight};color:${T.bodySmall.color};line-height:${R.base};& > *{vertical-align:middle;}`,ss=m(cs).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${rs.dark};font-family:${T.bodySmallBold.fontFamily};font-size:${T.bodySmallBold.fontSize};font-weight:${T.bodySmallBold.fontWeight};color:${T.bodySmallBold.color};`,ds=m.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${as} tr:nth-child(even) td {\n background-color: ${rs.lightest};\n }\n `}`,us=({striped:e=!0,className:n,children:o})=>t.createElement(ds,{striped:e,className:n},o);us.Header=is,us.Body=as,us.Row=ls,us.HeaderCell=ss,us.Cell=cs;const ps=m.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,ms=m.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${B.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,fs=m.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--19twtgm"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${B.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 ${B.colors.secondary.blue.light};}`,hs=m(ms).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${B.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,gs=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}),bs=({id:e,value:r,min:a,max:l,step:s=1,onChange:d,className:u,e2eClassName:p,onSlideStart:m=(()=>{}),onSlideEnd:f=(()=>{})})=>{const[h,g]=n(!1),[b,v]=n(-1),y=i(null),x=i(null),w=i(null),E=gs(u),C=gs(p),$=c((e=>{var t;if(!h||!y.current)return;const n=b>-1?r[b]:r,o=y.current.getBoundingClientRect();let i=100*(e.pageX-o.x)/o.width/100*(l-a)+a;const c=n-i;if(c>0&&(i=n+Math.ceil(i/s-n/s)*s),c<0&&(i=n+Math.floor(i/s-n/s)*s),n===i)return;i>l&&(i=l),i<a&&(i=a),Array.isArray(r)&&(0===b&&i>r[1]&&([,i]=r),1===b&&i<r[0]&&([i]=r));const u=s.toString().includes(".")?null===(t=s.toString().split(".").pop())||void 0===t?void 0:t.length:0;let p;i=Number(i.toFixed(u)),p=Array.isArray(r)?0===b?[i,r[1]]:[r[0],i]:i,d(p),Array.isArray(p)&&p[0]===p[1]&&(0===b&&v(1),1===b&&v(0))}),[b,h,l,a,d,s,r]),k=c((()=>{g(!1),f()}),[f]),S=c(((e,t)=>{g(!0),m(),"number"==typeof t&&v(t),e.preventDefault()}),[m]);o((()=>{const e=e=>S(e,Array.isArray(r)?0:1),t=e=>S(e,1),n=x.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",$),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",k)}}),[S,$,k,r]);const N=(e,n,o)=>{let r;return r=Gn("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]),t.createElement(fs,{role:"slider",ref:1===o?w:x,className:r,left:e,"aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":n})},I=e=>{const n=100*(e[0]<a?0:e[0]-a)/(l-a),o=100*(e[1]>l?100:e[1]-a)/(l-a),r=o-n;return t.createElement(t.Fragment,null,t.createElement(hs,{className:Gn([null==E?void 0:E.sliderRange,null==C?void 0:C.sliderRange]),left:n,width:r}),N(n,e[0],0),N(o,e[1],1))};let L;return L=Array.isArray(r)?I(r):(e=>{if(Array.isArray(r))return I(r);let t;return t=r>l?100:r<a?0:100*(e-a)/(l-a),N(t,e)})(r),t.createElement(ps,{className:Gn([null==E?void 0:E.container,null==C?void 0:C.container]),id:e,ref:y},t.createElement(ms,null),L)},vs=m(k).withConfig({displayName:"vui--Tag",componentId:"vui--qsag0v"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:I.neutral.ink.base};\n background-color: ${null!=e?e:I.neutral.grey.base};\n `}`,ys=m(Lr).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,xs=m(Lr).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${B.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${B.shadows.lg};border-radius:${B.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;}`,ws=m(k).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${B.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${R.md};height:${R.md};}`,Es=m(Lr).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,Cs=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,$s={info:{accentColor:I.brand.blue.base,icon:t.createElement(Ui,null)},success:{accentColor:I.secondary.green.base,icon:t.createElement(Qr,null)},error:{accentColor:I.secondary.red.base,icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:I.secondary.purple.base,icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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)}},ks=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ss=({className:e,e2eClassName:n,type:o,iconSlot:r,text:i,last:a,minWidth:l,cta:c,onClose:s})=>{const d=ks(e),u=ks(n);return t.createElement(xs,{className:Gn([null==d?void 0:d.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:a},t.createElement(ws,{color:$s[o].accentColor,className:Gn([d.icon,u.icon])},null!=r?r:$s[o].icon),t.createElement(Es,{direction:"horizontal",alignY:"center",alignX:"between"},t.createElement(Cs,{variant:"body"},i),c),t.createElement(bo,{variant:"flat",icon:t.createElement(wo,{color:"white"}),onClick:s,"aria-label":"Close"}))},Ns=({className:e,e2eClassName:n,toasts:r,minWidth:i="50vw",max:a=3,onClose:l})=>(o((()=>{a&&r.length>a&&l(r[0].key)}),[r,a,l]),y(t.createElement(ys,{direction:"vertical",alignX:"center",spacing:4},t.createElement(w,{component:null},[...r].reverse().map(((o,a)=>t.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},t.createElement(Ss,Object.assign({className:e,e2eClassName:n,minWidth:i,last:a===r.length-1,onClose:()=>l(o.key)},o))))))),document.body)),Is=m.span.withConfig({displayName:"vui--Slider",componentId:"vui--10ka3tn"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?B.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Ls=m.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${Is}{box-shadow:0 0 0 4px ${B.colors.brand.blue.light};}&:checked + ${Is}{background-color:#0079d1;}&:disabled + ${Is}{background-color:${B.colors.neutral.grey.base};}&:checked:disabled + ${Is}{background-color:${B.colors.secondary.blue.light};}`,zs=m.label.withConfig({displayName:"vui--Switch",componentId:"vui--16c93z6"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${Is}: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"};}${Ls}:checked + ${Is}{&: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"});}}`,Fs=m(k).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Os=l((({id:e,className:n,name:o,switched:r,small:i,onClick:a=(()=>{}),disabled:l,ariaLabel:c},s)=>t.createElement(Fs,{className:n,disabled:l},t.createElement(zs,{small:i,disabled:l,role:"switch"},t.createElement(Ls,{id:e,type:"checkbox",name:o,"aria-label":c,checked:!!r,onChange:l?void 0:a,disabled:l,ref:s}),t.createElement(Is,{switched:r,disabled:l}))))),js=m.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--xt3hiw"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${B.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",r="24px",i="8px",a="16px",l="4px",c="white",s="#CDD1D5",d="#37424D";return"sm"===e&&(n="32px",o="16px",r="16px",i="4px",a="14px",l="2px"),t&&(c="#0079D1",s="#0079D1",d="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${r};\n border-radius: ${i};\n font-size: ${a};\n\n background-color: ${c};\n border-color: ${s};\n color: ${d};\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;}`,Ms=({children:e,checked:n,size:o="base",disabled:r=!1,onChange:i})=>t.createElement(js,{type:"button",checked:n,size:o,disabled:r,"aria-pressed":n,tabIndex:"0",onClick:()=>i(!n)},e),Rs="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Ds=m(k).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${Rs} display:${e=>e.shouldShow?"initial":"none"};z-index:${B.layers.modal};`,Ts=m(k).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${Rs} background-color:rgba(55,66,77,0.5);`,Bs=m(k).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,As=({usePortal:e,children:n})=>t.createElement(t.Fragment,null,e?t.createElement(Un,null,n):n),Hs=({className:e,children:n=null,shouldShow:o=!1,usePortal:r=!0})=>t.createElement(As,{usePortal:r},t.createElement(Ds,{className:Gn([`${e}-container`,e]),shouldShow:o},t.createElement(Ts,null),t.createElement($,{isActive:o},t.createElement(Bs,{className:Gn([`${e}-wrap`,e])},n)))),Ps=m.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,Ws=m.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Vs=m(bo).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`,qs=({id:e,youtubeVideoId:n,showVideoModal:o,handleCloseClick:r})=>{const i=La(o,r);return t.createElement(Hs,{shouldShow:o,className:`${e}-video`},t.createElement(Ps,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},t.createElement(Ws,{ref:i},t.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),t.createElement(Vs,{variant:"flat",onClick:r,"data-testid":"video-modal--close",icon:t.createElement(wo,{color:"white"})}))))};var Zs;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Zs||(Zs={}));const _s=m(k).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,Xs=m(W).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,Us=m(k).withConfig({displayName:"vui--Contour",componentId:"vui--b8oq7f"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${W} {\n color: ${null!=t?t:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ys=m(W).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1xuhw17"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Xs} {\n color: #fff;\n }\n `}`,Gs={style:{marginLeft:R.xs,padding:R.xs,height:R.base,width:R.base}},Ks=m.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${R.sm};svg{height:${R.base};width:${R.base};}`,Js=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Qs=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}),ed=({id:e,iconSlot:n,name:o,type:r,className:i,colourPalette:a=I.secondary.blue,customTextColour:l,count:s,active:d=!1,onClick:u,onDelete:p,onEdit:m,e2eClassName:f})=>{const h=Qs(i),g=Qs(f),[b,v,y]=Ra(),x=c((()=>u(e)),[e,u]),w=c((t=>{t.stopPropagation(),p&&p(e)}),[p,e]),E=c((t=>{t.stopPropagation(),m&&m(e)}),[m,e]),C=r===Zs.draft,$=r===Zs.saved,k=d?I.neutral.ink.dark:I.neutral.ink.base;return t.createElement(_s,{className:`${Gn([null==h?void 0:h.container,null==g?void 0:g.container])} ${d&&(null==g?void 0:g.active)||""}`,onClick:x},t.createElement(Us,{active:d,onMouseEnter:v,onMouseLeave:y,colourPalette:a,customTextColour:l},n&&t.createElement(Ks,null,n),t.createElement(W,{variant:"bodyBold"},o),s&&t.createElement(Ys,{active:d||b,colourPalette:a,customTextColour:l},t.createElement(Xs,{className:null==g?void 0:g.counter,variant:"subheadingSmall"},s)),C&&t.createElement(wo,Object.assign({},Gs,{color:k,className:null==g?void 0:g.delete,onClick:w})),$&&d&&t.createElement(Js,Object.assign({},Gs,{color:k,className:null==g?void 0:g.edit,onClick:E}))))},td=m(k).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,nd=m(k).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,od=m(Ca).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,rd=m(bo).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${B.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${B.colors.secondary.red.base};\n `};`,id=ba((e=>{var{size:n=ua.base,hasError:o,className:r}=e,i=ee(e,["size","hasError","className"]);return t.createElement(td,{className:r},t.createElement(nd,null,"g"===i.weightUnit&&t.createElement(da,null,t.createElement(od,Object.assign({size:n,onChange:i.handleChangeGram,name:"gram",type:"number",value:i.gram,hasError:o},i)),t.createElement(rd,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(i)&&t.createElement(t.Fragment,null,t.createElement(da,null,t.createElement(od,Object.assign({size:n,onChange:i.handleChangePound,name:"ounce",type:"number",value:i.pound,hasError:o},i)),t.createElement(rd,{hasError:o,size:n},"lb")),t.createElement(da,null,t.createElement(od,Object.assign({size:n,onChange:i.handleChangeOunce,name:"pound",type:"number",value:i.ounce,hasError:o},i)),t.createElement(rd,{hasError:o,size:n},"oz")))))}));id.displayName="WeightInput",id.defaultProps={weightUnit:"lb"};export{J as Accordion,Po as ActionList,Vo as Anchor,Yo as AnimatedDropdown,Ko as Avatar,dr as Badge,yr as Banner,k as BaseContainer,Nr as Breadcrumbs,bo as Button,Oo as Card,Eo as CardHeader,Xr as Checkbox,Wr as Choice,Jr as ChoiceList,oi as CopyToClipboard,Ki as DataTable,ra as DescriptionList,sa as DetailPage,Ia as DimensionsInput,_a as FilterTag,ja as FocusVisibleManager,Xa as Grid,el as Image,da as InputGroup,_l as LegacyDataTable,oo as Loader,Gl as LoginWithAmazonButton,ac as Modal,yc as PageHeader,Nc as Pagination,Dc as PaginationRange,Qn as Popover,Hs as Popup,Un as Portal,qc as PriceInput,Yr as Radio,Yc as Search,es as SegmentedControl,ns as Select,us as SimpleTable,bs as Slider,Lr as Stack,Ac as Stepper,vs as Tag,W as Text,Ca as TextField,Ns as ToastsLayout,Os as Toggle,Ms as ToggleButton,lr as Tooltip,qs as VideoModal,ed as View,id as WeightInput,Gn as buildClassnames,Xn as generateId,Jn as getOpaqueHexColor,Kn as hexToRgb,B as theme,pi as useCellWidths,La as useClickOutside,mi as useColumns,za as useDebounce,fi as useDragToScroll,Fa as useDropdown,Ma as useFocusVisible,Ra as useHover,Da as useIsOverflowing,hi as useNested,gi as useScrollPosition,Ci as useSelection,Ta as useTabs,va as withDeprecated,ba as withLabels};
2
15
  //# sourceMappingURL=index.esm.js.map