@veeqo/ui 4.0.0 → 4.0.2

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,2 @@
1
- import e,{useState as t,PureComponent as n,useEffect as o,forwardRef as i,useRef as r,useCallback as a,useMemo as l,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 C from"react-scrolllock-configurable";const $=u.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,E={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},k=(e,t)=>e||(t?E[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"}}},S={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 I,L;!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)"}(I||(I={})),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"}(L||(L={}));const F=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={[L.none]:"0",[L.line]:"1px",[L.xs]:F[1],[L.sm]:F[2],[L.base]:F[4],[L.md]:F[6],[L.lg]:F[8],[L.xl]:F[12],[L.xxl]:F[16]},j=Object.assign(Object.assign({},B),F),M={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},D={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"}},H=Object.assign(Object.assign({},M),{breakpoints:S,colors:N,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:I,sizes:j,text:D}),{text:O,colors:R,fontFamily:W}=H,T=u.span.attrs((({as:e,variant:t})=>({as:k(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:${W};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?R.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 `}}`,A=u($).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,P=u(A).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${j.base};width:${j.base};color:${({glyphColor:e})=>e};}`,V=u(A).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Z=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 ${H.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${H.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${H.colors.secondary.blue.light};}`,q=u($).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,X=u(T).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;`,Y=u.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,U=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:j.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"})),K=({className:n,children:o,label:i,iconSlot:r,glyphColor:a=N.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[m,u]=t(!!d);return e.createElement(Y,{open:!!d,className:n},e.createElement(Z,{onClick:()=>u(!m)},e.createElement(q,null,e.createElement(P,{glyphColor:a},r,e.createElement(T,{variant:"body"},i)),e.createElement(V,null,e.createElement(c.span,{animate:{rotate:m?180:0}},e.createElement(U,{name:m?"downArrow":"upArrow"})))),!!s&&e.createElement(X,{variant:"hintText"},s)),m&&e.createElement(G,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},o))},_=e=>`${e}-${Math.floor(1e3*Math.random())}`;class J extends n{constructor(e){super(e),this.id=_("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 Q=u.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--d5k10p"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ee=u.div.withConfig({displayName:"vui--PopoverWrapper",componentId:"vui--13ndjce"})`z-index:${({zIndex:e})=>e+1};`,te=({children:n,className:i,anchorElement:r,rootElementRef:a,placement:l="bottom",onShouldClose:s,zIndex:d=H.layers.popup})=>{const[c,m]=t(null),{styles:u,attributes:p,update:g}=h(r,c,{placement:l});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(J,{rootElementRef:a},s&&e.createElement(Q,{onClick:s,zIndex:d}),e.createElement(ee,Object.assign({ref:m,className:i,zIndex:d,style:Object.assign({},u.popper)},p.popper),n))};function ne(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const oe=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:i,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:i,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:i,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ie=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":r},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),re=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"aria-label":r},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ae=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(ie,{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(oe,{className:t,height:n,width:o,color:i})}},le=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})=>j[e]};height:${({size:e})=>j[e]};}`,se=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:${H.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",r="16px",a="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",a="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${a};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,de=u(se).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${H.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?H.colors.neutral.ink.base:H.colors.secondary.blue.base};&:hover{background-color:${H.colors.neutral.grey.lightest};}&:active{background-color:${H.colors.neutral.grey.lightest};border-color:${H.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${H.colors.neutral.grey.base} !important;border-color:${H.colors.neutral.grey.base} !important;color:${H.colors.neutral.ink.light} !important;}`,ce=u(de).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${H.colors.secondary.red.base};&:hover{color:${H.colors.secondary.red.dark};}&:active{border-color:${H.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};color:${H.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}`,me=u(de).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${H.colors.secondary.blue.base};border-color:${H.colors.secondary.blue.base};color:white;&:hover{background-color:${H.colors.secondary.blue.dark};border-color:${H.colors.secondary.blue.dark};}&:active{background-color:${H.colors.secondary.blue.dark};border-color:${H.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}`,ue=u(me).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${H.colors.secondary.red.base};border-color:${H.colors.secondary.red.base};color:white;&:hover{background-color:${H.colors.secondary.red.dark};border-color:${H.colors.secondary.red.dark};}&:active{background-color:${H.colors.secondary.red.dark};border-color:${H.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}`,pe=u(se).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${H.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)${H.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,ge=u.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,he=u(ge).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${H.text.link.fontFamily};font-size:${H.text.link.fontSize};font-weight:${H.text.link.fontWeight};line-height:${H.text.link.lineHeight};text-decoration:${H.text.link.textDecoration};color:${H.colors.secondary.blue.base};&:hover{color:${H.colors.secondary.blue.dark};}& > * + *{margin-left:${H.sizes.xs};}& > span{position:relative;top:-1px;}`,fe=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;`,be=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ve={default:de,primary:me,destructive:ce,primaryDestructive:ue,flat:pe,link:he,unstyled:ge},xe=i(((t,n)=>{var{className:o,children:i,icon:r,variant:a="default",size:l="base",dropdown:s=!1,loading:d=!1}=t,c=ne(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return e.createElement(ge,Object.assign({ref:n,className:o},c),i);const m=ve[a],u=void 0!==i,p=!!r;return e.createElement(m,Object.assign({ref:n,className:o,size:l,hasText:u,hasIcon:p,hasDropdown:s},c),(u||p)&&e.createElement(le,{loading:d,hasText:!!i,size:i||"sm"===l?"base":"md"},r&&r,void 0!==i&&e.createElement("span",null,i),s&&e.createElement(be,null)),d&&e.createElement(fe,null,e.createElement(ae,null)))})),ye=u.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${j.md};padding-right:${j.md};padding-left:${j.md};margin-bottom:${j.md};& > * + *{margin-top:${j.xs};}`,we=u.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${j.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ce=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:j.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"})),Ee=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:a,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(ye,null,e.createElement(we,null,e.createElement(T,{id:t,variant:i},n),r&&e.createElement(xe,{variant:"link",onClick:r.onClick},r.title),a,s&&e.createElement(xe,{variant:"flat",icon:l?e.createElement(Ce,null):e.createElement(U,null),onClick:s}),d&&e.createElement(xe,{variant:"flat",icon:e.createElement($e,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(T,{variant:"subheadingSmall"},o)),{grey:ke}=N.neutral,Ne={0:"none",1:I.sm,2:I.base,3:I.md,4:I.lg},Se={info:N.secondary.blue.base,success:N.secondary.green.base,error:N.secondary.red.base},ze=u.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${j.base};padding:${j.md};z-index:2;`,Ie=u.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${j.md};padding-left:${j.md};margin-top:${j.md};margin-bottom:${j.md};font-family:${D.body.fontFamily};font-size:${D.body.fontSize};font-weight:${D.body.fontWeight};line-height:${D.body.lineHeight};color:${D.body.color};& + &{border-top:${j.line} solid ${ke.base};padding-top:${j.md};}`,Le=u.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${j.md};margin-right:-${j.md};`,Fe=u(c.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ie}:first-child{margin-top:0;}`,Be=u.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${j.line} solid ${ke.base};box-shadow:${e=>void 0!==e.elevation?Ne[e.elevation]:I.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: ${j.xs};\n background-color: ${Se[e]};\n }\n `}`,je={expanded:{height:"auto"},collapsed:{height:0}},Me=({className:n,style:o,title:i,subtitle:r,HeaderActionSlot:a,action:l,collapsable:s,elevation:d,accent:c,children:m,onClose:u,renderFooter:p})=>{const[g,h]=t(!1),f=i&&e.createElement(Ee,{title:i,subtitle:r,ActionSlot:a,action:l,onClickClose:u,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),b=s&&!g||!s,v=e.createElement(Fe,{animate:b?"expanded":"collapsed",variants:je,transition:{duration:.3,ease:"easeOut"}},e.createElement(Ie,null,m)),x=void 0!==p&&e.createElement(ze,null,p());return e.createElement(Be,{className:n,style:o,elevation:d,accent:c},f,v,x)};Me.Surface=Be,Me.Section=Ie,Me.FullBleed=Le,Me.Footer=ze;const{sizes:De,colors:He,text:Oe}=H,Re=u(Me.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${De.base} 0;display:flex;flex-direction:column;`,We=u.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${He.neutral.grey.base};margin-top:${De.base};padding-top:${De.base};}`,Te=u(T).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${De.sm} ${De.base} ${De.sm};`,Ae=u(xe).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${De.lg};padding:${De.xs} ${De.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:${He.neutral.grey.light};color:${He.secondary.blue.base};}& > * + *{margin-left:${De[3]};}`,Pe={item:Ae,action:u(Ae).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${He.secondary.blue.base};`,link:u(Ae).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${He.secondary.blue.base};text-decoration:underline;`},Ve=({title:n,items:o=[],sections:i,buttonVariant:r,buttonSize:a})=>{const[l,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(We,{key:t.title},t.title&&e.createElement(Te,null,t.title),t.items.map(m)))):o.map(m);return e.createElement(e.Fragment,null,e.createElement(xe,{dropdown:!0,variant:r,size:a,onClick:()=>s(!l),ref:c},n),l&&e.createElement(te,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(Re,null,u)))},Ze=u.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${H.text.link.fontFamily};font-style:${H.text.link.fontStyle};font-weight:${H.text.link.fontWeight};font-size:${H.text.link.fontSize};line-height:${H.text.link.lineHeight};color:${H.colors.secondary.blue.base};text-decoration:${H.text.link.textDecoration};&:hover{color:${H.colors.secondary.blue.dark};}`,qe=({children:t,className:n,text:o,href:i,target:r})=>e.createElement(Ze,{href:i,target:r,className:n},t||o),Xe=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(Xe,{className:i,ref:n},o)})),Ye=u($).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Ue=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ke=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);}`,_e=({cta:t,shouldShowDropdown:n,children:i,className:a="animated-dropdown",reversed:l=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:m,onMouseEnter:u,onMouseLeave:p})=>{const g=r(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(Ye,{className:`${a}-container ${a}`,onClick:m,onMouseEnter:u,onMouseLeave:p,ref:g},!l&&t,e.createElement(Ue,{className:`${a}-wrap ${a}`},e.createElement(x,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(Ke,{reversed:l,className:`${a}-basic-dropdown ${a}`},i))),l&&t)},Je=u.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${H.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:${H.text.bodySmallBold.fontFamily};font-weight:${H.text.bodySmallBold.fontWeight};font-size:${H.text.bodySmallBold.fontSize};line-height:${H.text.bodySmallBold.lineHeight};}`,Qe=({width:t="40px",name:n="Veeqo",bgColor:o=H.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(Je,{width:t,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))};var et,tt;!function(e){e.end="end",e.start="start"}(et||(et={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(tt||(tt={}));const nt=u.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,ot=u(nt).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,it=u(T).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${H.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;}`,lt=u(nt).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;`,st={duration:400,side:tt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},dt=({children:n,text:o,content:i,config:r,reversed:l=!1,className:s,withTriangle:d,initialShouldShow:c=!1,useReactPortal:m=!0})=>{const u=!!o&&o.trim().length>0,p=Object.assign(Object.assign({},st),r),{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,$]=t(c),[E,k]=t(null),[N,S]=t(null),{styles:z,attributes:I}=h(E,N,{placement:`${f}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),L=a((()=>$(!0)),[$]),F=a((()=>$(!1)),[$]),B=Object.assign(Object.assign({},z.popper),{zIndex:H.layers.tooltip}),j=C&&(i||u)&&e.createElement(at,Object.assign({className:w.tip,ref:S,duration:g,triangleOffsetSize:v,style:B},I.popper,{role:"tooltip"}),e.createElement(lt,{className:w.wrap,tipMinWidth:x,tipMaxWidth:y},null!=i?i:e.createElement(it,null,o)),d&&e.createElement(rt,{id:"veeqo-components-triangle",className:w.triangle}));return e.createElement(nt,{className:w.container},m?b.createPortal(j,document.body):j,e.createElement(ot,{ref:k,className:w.hoverable,onMouseEnter:L,onMouseLeave:F},n))},ct=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:${D.bodySmall.fontFamily};font-weight:${D.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${j.base};height:${j.base};}`,mt=u(ct).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${N.secondary.blue.base};color:${N.secondary.blue.base};`,ut=u(ct).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};color:${N.secondary.blue.base};`,pt=u(ct).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${N.secondary.yellow.base};background-color:${N.secondary.yellow.lightest};color:${N.secondary.orange.dark};`,gt=e=>e.filter(Boolean).join(" "),ht={default:mt,primary:ut,warning:pt},ft=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:a,children:l})=>{const s=ht[t];return e.createElement(dt,{text:i},e.createElement(s,{className:gt([r,a]),hideBorder:n},o&&o,l&&e.createElement("span",null,l)))},bt=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"};`,vt=u($).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,xt=u($).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,yt=u(xt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${j.md};height:${j.md};color:${({accentColor:e})=>e};}`,wt=u($).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Ct=u(xt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,$t=u(T).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Et={help:N.secondary.blue.base,info:N.neutral.ink.base,error:N.secondary.red.base,success:N.secondary.green.base},kt=t=>{var{type:n="info",text:o,icon:i,onClose:r,className:a,header:l,children:s,backgroundColor:d="white"}=t,c=ne(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const m=Et[n];return e.createElement(bt,Object.assign({accentColor:m,className:a,backgroundColor:d},c),e.createElement(vt,null,i&&e.createElement(yt,{style:{marginRight:j.md},accentColor:m},i),s?e.createElement(wt,null,s):e.createElement(e.Fragment,null,e.createElement(Ct,null,l||e.createElement($t,{variant:"headingSmall"},o)),e.createElement(xt,null,r&&e.createElement(xe,{variant:"flat","aria-label":"Close",icon:e.createElement($e,null),onClick:r})))))},Nt=u.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${D.body.fontFamily};font-weight:${D.body.fontWeight};font-size:${D.body.fontSize};line-height:${D.body.lineHeight};`,St=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;}`,zt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),It=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(St,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(St,{className:"breadcrumb"},n,t),Lt=()=>e.createElement(zt,{className:"separator",width:j.base,height:j.base}),Ft=({children:t,href:n})=>e.createElement("a",{href:n},t),Bt=({children:t})=>e.createElement("span",null,t),jt=({items:t,Separator:n=e.createElement(Lt,null),LinkComponent:o=Ft})=>e.createElement(Nt,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(It,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Bt},t.length!==r+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 Dt=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 r,a,l,s,d="",c="";return"vertical"===t?(r=n&&Mt[n],a=o&&Mt[o],d=H.sizes[i],l="column"):(r=o&&Mt[o],a=n&&Mt[n],c=H.sizes[i],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${a};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Dt.displayName="Stack";const Ht={top:"flex-start",center:"center"},Ot=u.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${H.sizes.base};}`,Rt=u.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Ht[e.align]};width:24px;height:24px;`,Wt=u.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Tt=u.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${H.sizes.sm};}`,At=u.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${H.text.body.fontFamily};font-size:${H.text.body.fontSize};font-weight:${H.text.body.fontWeight};line-height:${H.sizes.md};color:${H.text.body.color};`,Pt=u.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`,Vt=u.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};`,Zt=u.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,qt=u(Zt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${H.colors.neutral.grey.dark};border-radius:${H.radius.md};padding:${H.sizes.base} 0.75rem;&:hover{border-color:${H.colors.secondary.blue.base};}& ${At}{font-weight:${H.text.bodyBold.fontWeight};}`,Xt=u(dt).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"})),Yt=({id:t,label:n,hint:o,tooltip:i,error:r,bordered:a,Badge:l,Accessory:s,Footer:d,children:c,disabled:m=!1})=>{const u=e.createElement(Ot,null,e.createElement(Rt,{align:s?"center":"top"},c),s&&e.createElement(Wt,null,s),n||o||r||l||d?e.createElement(Tt,null,e.createElement(Dt,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&e.createElement(At,null,n),i&&e.createElement(Xt,{text:i},e.createElement(Gt,{name:"help",width:H.sizes.base,color:H.colors.neutral.ink.lightest}))),o&&e.createElement(Pt,null,o),r&&e.createElement(Vt,null,r),d):null);return a?e.createElement(qt,{disabled:m,htmlFor:t},u):e.createElement(Zt,{disabled:m,htmlFor:t},u)},{colors:Ut,sizes:Kt,radius:_t}=H,Jt=u.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Ut.neutral.ink.lightest};border-radius:${_t.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Ut.secondary.blue.base};border-color:${Ut.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:${Kt[4]};background-position:center;}&:hover{border-color:${Ut.secondary.blue.base};}&:active{border-color:${Ut.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Ut.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Ut.secondary.blue.base};border-color:${Ut.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:${Kt[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Ut.neutral.grey.base};border-color:${Ut.neutral.grey.base};color:${Ut.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>");}`,Qt=t=>{var{checked:n,indeterminate:i,value:s,name:d,disabled:c,ariaLabel:m,className:u,onChange:p}=t,g=ne(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=l((()=>_("checkbox")),[]),f=r(null),b=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{f.current&&(f.current.indeterminate=!0===i)}),[i]),e.createElement(Yt,Object.assign({id:h,disabled:c},g),e.createElement(Jt,{ref:f,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":m,className:u,onChange:b}))},en=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;}`,tn=i(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d}=t,c=ne(t,["checked","value","name","disabled","onChange","id"]);const m=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),u=null!=d?d:_("radio");return e.createElement(Yt,Object.assign({id:u,disabled:l},c),e.createElement(en,{id:u,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:m,ref:n}))})),nn=u.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,on=u.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${H.text.inputLabel.fontFamily};font-size:${H.text.inputLabel.fontSize};font-style:${H.text.inputLabel.fontStyle};font-weight:${H.text.inputLabel.fontWeight};line-height:${H.text.inputLabel.lineHeight};text-decoration:${H.text.inputLabel.textDecoration};color:${H.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:r,bordered:a}=this.props,l=t?Qt:tn;return e.createElement(nn,{disabled:r},i&&e.createElement(on,null,i),n.map((t=>e.createElement(l,Object.assign({key:t.value,bordered:a,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const 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"})),ln=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"})),sn={width:j.base,height:j.base},dn=u(xe).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${j.base};width:${j.base};top:unset;}`,cn=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),l=a((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(dt,{text:i?"Copied!":"Copy to clipboard"},e.createElement(dn,{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},sn)):e.createElement(ln,Object.assign({color:N.secondary.blue.base},sn)),onClick:l}))};function mn(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function un(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${un(e.min,"max-content")}, ${un(e.max)})`;default:return t||"1fr"}}function pn({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){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 `)),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: ${H.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${H.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${H.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${H.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>un(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 ${d}\n ${m}\n\n ${"nested"===r?p:u}\n `}var gn;!function(e){e.ascending="ascending",e.descending="descending"}(gn||(gn={}));const hn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),fn=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"})),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:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),vn=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===gn.ascending?e.createElement(fn,{color:H.colors.neutral.ink.dark,size:o}):e.createElement(bn,{color:H.colors.neutral.ink.dark,size:o}):e.createElement(hn,{size:o});function xn(e,n){const[i,r]=t([]),a=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));r(n)};return o((()=>{a()}),[e.current]),o((()=>{if(!n.current)return;const e=w(a,50),t=new f(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function yn(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 wn(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},a=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",a),()=>null==n?void 0:n.removeEventListener("mousedown",a)}),[e.current])}function Cn(){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"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",r),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",r)}}),[e.current]),o((()=>{if(!e.current)return;const t=w(r,50),n=new f(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const En="56px",kn=u.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${En};display:flex;align-items:center;justify-content:${({align:e="left"})=>mn(e)};background-color:white;padding-left:${({spacing:e=3})=>H.sizes[e]};padding-right:${({spacing:e=3})=>H.sizes[e]};border-bottom:1px solid ${H.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Nn(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,a=ne(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(kn,Object.assign({},a)):e.createElement(kn,Object.assign({},a),e.createElement(Qt,{checked:n,indeterminate:o,onChange:i}))}const Sn=u.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>mn(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>H.sizes[e]};padding-right:${({spacing:e=3})=>H.sizes[e]};color:${H.text.bodySmall.color};font-family:${H.text.bodySmall.fontFamily};font-size:${H.text.bodySmall.fontSize};font-style:${H.text.bodySmall.fontStyle};font-weight:${H.text.bodySmall.fontWeight};line-height:${H.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${H.colors.secondary.blue.base};background-color:${H.colors.neutral.grey.lightest};}`;function zn(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:a}=t,l=ne(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Sn,Object.assign({},l),e.createElement(tn,{value:o,checked:n,disabled:a,onChange:i})):e.createElement(Sn,Object.assign({},l),e.createElement(Qt,{value:o,checked:n,disabled:a,onChange:i}))}const In=[[],()=>{}];function Ln({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,a]=n||In,l=()=>{r.length!==o.length?a(o):a([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(Nn,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:l,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(zn,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)a([n]);else if(e){if(r.includes(n))return;const e=[...r,n];a(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),a(t)}}}}const Fn=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:${H.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:${H.text.headingTable.color};font-family:${H.text.headingTable.fontFamily};font-size:${H.text.headingTable.fontSize};font-style:${H.text.headingTable.fontStyle};font-weight:${H.text.headingTable.fontWeight};line-height:${H.text.headingTable.lineHeight};`,jn=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 ${Fn}{background-color:${H.colors.neutral.grey.light};color:${H.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${H.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 r=t.sortable?jn:Bn,a=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===gn.ascending;let i=gn.ascending;return n&&o&&(i=gn.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(kn,Object.assign({},i),e.createElement(dt,{text:t.tooltip},e.createElement(r,Object.assign({},a),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Fn,null,e.createElement(vn,{sortState:n,columnId:t.id,size:5})))))}const Dn=H.colors.neutral.grey.base,Hn=H.colors.neutral.grey.dark,On=u.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${H.radius.base};background:${Dn};background-image:linear-gradient(\n to right,\n ${Dn} 0%,\n ${Hn} 20%,\n ${Dn} 40%,\n ${Dn} 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 Rn=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:${En};background-color:white;`,Wn=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 ${H.colors.neutral.grey.base};& > *{flex:1;}`;function Tn({selectionColumn:n,intersectionTargetRef:i,containerRef:r,children:a}){var l;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===(l=r.current)||void 0===l?void 0:l.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(Rn,{style:u},Mn({column:n}),e.createElement(Wn,null,a))}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",{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 Zn=u.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${H.sizes.lg};padding-bottom:${H.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${H.sizes.md};`,qn=u.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${H.sizes.md};background-color:${H.colors.neutral.grey.light};border-radius:${H.radius.full};`,Xn=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: ${H.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 `}`,Yn=u.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Un=u.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${H.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Kn=u.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,_n={full:`border-width: 1px; border-radius: ${H.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Jn=u.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${H.colors.neutral.grey.dark};${({borderMode:e="full"})=>_n[e]} &,& *{box-sizing:border-box;}`;function Qn({children:n,intersectionTargetRef:i,containerRef:a,cellWidths:l,tableCss:s}){const d=r(null),[c,m]=t(!1),[u,p]=t({top:0,left:0,width:0,height:0}),g=()=>{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};p(n)},h=()=>{var e;if(!a.current)return;const t=a.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&&a.current&&g()}),[a.current,c]),o((()=>{if(!c)return;if(!a.current)return;const e=w(g,33),t=new f(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,c]),o((()=>{h()}),[c]),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]),!c)return null;const b=Object.assign(Object.assign({},u),{height:En,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${H.colors.neutral.grey.base}`}),v=s+l.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(Un,{css:v},e.createElement("thead",null,n)))}const eo=(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}),to=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"})),no={icon:e.createElement(to,{width:48,height:48}),heading:"No results"},oo=()=>{},io=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=no,expandedRowIds:a,loading:l,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:m,selectionMode:u,selectionState:p,setExpanded:g,sortState:h,stripingMode:f,enableStickyHeader:b})=>{const v=r(null),x=r(null),y=r(null);wn(v);const w=c.map((e=>e.id)).filter((e=>!(null==m?void 0:m.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:E,setSelected:k}=Ln({selectionMode:u,selectionState:p,enabledRowIds:w}),N={setSelected:k||oo,setExpanded:g||oo},S=[E,...o],z=C?S:o,I=xn(x,v),{visible:L,pinnedLeft:F,pinnedRight:B}=yn(z),{scrollPosition:j}=$n(v),M=pn({pinnedLeft:F,pinnedRight:B,cellWidths:I,scrollPosition:j,visible:L,stripingMode:f});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Jn,{borderMode:n},e.createElement(Yn,{ref:v},e.createElement(Un,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Gn,{role:"row"},L.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Gn,{key:t.id},L.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(Sn,Object.assign({},o),e.createElement(On,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Jn,{borderMode:n},e.createElement(Yn,{ref:v},e.createElement(Un,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Gn,{role:"row"},L.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Zn,{columnCount:L.length},e.createElement(qn,null,i.icon),e.createElement(Dt,{spacing:"sm",alignX:"center"},e.createElement(T,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(T,{variant:"subheadingMedium"},i.subheading)))))));const D=t=>{const{e2eClassName:n="",accentColor:o}=t,i=eo(t.id,{selectedRowIds:$,expandedRowIds:a,disabledRowIds:m});return e.createElement(Gn,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),L.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,N,i))))},H=(t,n)=>{var o,i;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,l=eo(n,{selectedRowIds:$,expandedRowIds:a,disabledRowIds:m});return e.createElement(Gn,{role:"row",key:t.id,className:r},L.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(Sn,Object.assign({},i))}(t,n,l))))},O=t=>{var n;const o=null==a?void 0:a.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},D(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>H(e,t.id)))))},R=e.createElement(Gn,{role:"row"},L.map((e=>Mn({column:e,sortState:h,onChangeSort:d})))),W=o.some((e=>!!e.renderFooter)),A=$.length>0&&!!t;return e.createElement(Jn,{borderMode:n},A&&e.createElement(Tn,{selectionColumn:E,intersectionTargetRef:y,containerRef:v},t),e.createElement(Yn,{ref:v},b&&e.createElement(Qn,{tableCss:M,intersectionTargetRef:y,containerRef:v,cellWidths:I},R),e.createElement("div",{ref:y,style:{height:0}}),e.createElement(Un,{css:M,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},R),(()=>{const t=!!a;return t&&"nested"===f?c.map(O):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[D(e),...(null==a?void 0:a.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(D))})(),W&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Gn,{role:"row"},L.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(Sn,Object.assign({},n))}({column:t}))))))))};io.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},io.Cell=Sn,io.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,a]=t(null),[l,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),m=o.map((e=>e.map((e=>c[e])))),u=(e,t)=>{const o=m[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),i(r)};return e.createElement(e.Fragment,null,e.createElement(xe,{ref:a,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&e.createElement(te,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(Me,{style:{width:600}},e.createElement(Dt,{alignX:"stretch",spacing:"sm"},m.map(((t,n)=>e.createElement(Dt,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(xe,{variant:"flat",icon:e.createElement(Vn,null)}),e.createElement(Dt,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Dt,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(xe,{variant:"flat",icon:e.createElement(Pn,null),onClick:()=>u(n,!1),style:{color:H.colors.neutral.ink.lightest}}):e.createElement(xe,{variant:"flat",icon:e.createElement(An,null),onClick:()=>u(n,!0)})))))))))},io.SelectionCell=zn,io.SelectionHeader=Nn,io.Header=kn,io.Truncate=Kn,io.NoWrap=Xn;const ro=u.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${H.sizes.base};}`,ao=u.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${H.sizes.xs};}`,lo=u.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${H.sizes.base};}`,so=u.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${H.sizes.xs};}`,co=u.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${H.text.bodyBold.fontFamily};font-size:${H.text.bodyBold.fontSize};font-weight:${H.text.bodyBold.fontWeight};line-height:${H.text.bodyBold.lineHeight};color:${H.text.bodyBold.color};`,mo=u.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${H.text.body.fontFamily};font-size:${H.text.body.fontSize};font-weight:${H.text.body.fontWeight};line-height:${H.text.body.lineHeight};color:${H.text.body.color};`,uo=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(mo,{key:t},t))):e.createElement(mo,null,t);return e.createElement(ro,null,t.map((t=>n?e.createElement(lo,{key:t.term},e.createElement(co,null,t.term),e.createElement(so,null,o(t.description))):e.createElement(ao,{key:t.term},e.createElement(co,null,t.term),o(t.description)))))},{sizes:po,colors:go}=H,ho=u.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${po.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${po.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,fo=u.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${po.md};overflow-x:hidden;background-color:${go.neutral.grey.lightest};`,bo=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(fo,null,e.createElement(ho,{showSidebar:i},o)))},vo=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 xo;!function(e){e.base="base",e.sm="sm"}(xo||(xo={}));const yo=u.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${H.text.inputLabel.fontFamily};font-size:${H.text.inputLabel.fontSize};font-weight:${H.text.inputLabel.fontWeight};line-height:${H.text.inputLabel.lineHeight};color:${H.text.inputLabel.color};`,wo=u.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`,Co=u.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${H.sizes[2]} * -1);width:2px;background-color:${H.colors.secondary.red.base};}`,$o=u(Dt).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Eo=u(dt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,ko=t=>n=>{var{label:o,hint:i,error:r,tooltip:a}=n,s=ne(n,["label","hint","error","tooltip"]);const d=l((()=>_(t.name)),[]);return o?e.createElement($o,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Dt,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(yo,{htmlFor:d},o),a&&e.createElement(Eo,{text:a},e.createElement(Gt,{width:H.sizes.base,height:H.sizes.base,color:H.colors.neutral.ink.light}))),i&&e.createElement(wo,null,i)),e.createElement(t,Object.assign({id:d,hasError:!!r},s)),r&&e.createElement(Co,null,r)):e.createElement(t,Object.assign({hasError:!!r},s))},No=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),So=({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 "}`,zo=u.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${H.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 `}} ${So} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Io=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;${So}`,Lo=/^-?[0-9]*\.?[0-9]+$/,Fo=ko(i(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,max:s,min:d,multiline:c=!1,name:m,onChange:u,pattern:p,placeholder:g,rows:h="3",size:f=xo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=ne(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=a((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(Lo).test(t)&&u(t)}),[u,v]),$=null!=o?o:_("textfield");return"text"===v&&c?e.createElement(Io,Object.assign({className:i,disabled:r,hasError:l,id:$,name:m,onChange:C,placeholder:g,rows:h,value:x,spellCheck:y,ref:n},w)):e.createElement(zo,Object.assign({className:i,disabled:r,hasError:l,id:$,inputSize:f,max:s,min:d,name:m,onChange:C,placeholder:g,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));Fo.displayName="TextField";const Bo=u($).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,jo=u($).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Mo=u(Fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${H.colors.neutral.ink.lightest};}`,Do=u(xe).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${H.colors.neutral.ink.lightest};`;u(T).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,u.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${H.sizes[2]} * -1);width:2px;background-color:${H.colors.secondary.red.base};}`,u.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`;const Ho=ko((t=>{var{size:n=xo.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:a,height:l,width:s,length:d,unit:c}=t,m=ne(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Bo,{className:a},e.createElement(jo,null,e.createElement(Mo,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d},m)),e.createElement($e,{height:H.sizes.base,width:H.sizes.base}),e.createElement(Mo,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s},m)),e.createElement($e,{height:H.sizes.base,width:H.sizes.base}),e.createElement(vo,null,e.createElement(Mo,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l},m)),e.createElement(Do,{size:n},c))))}));Ho.displayName="DimensionsInput";const Oo=(e,t)=>{const n=r(null),i=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),l=a((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",l),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",i)}}),[l,i,e]),n},Ro=(e,n)=>{const[i,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function Wo(){const[e,n]=t(!1),o=a((()=>n(!e)),[e,n]),i=a((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:i}}const To=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Ao({children:n}){const[i,r]=t(!0);return o((()=>{function e(){r(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function i(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function a(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",a,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",a,!0),o()}}),[r]),e.createElement(To.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function Po(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(To),r=e.useCallback((()=>{t||n(!0)}),[t]),a=e.useCallback((()=>{t&&n(!1)}),[t]);let l;return l=i?o&&t:t,e.useMemo((()=>({focusVisible:l,onFocus:r,onBlur:a})),[l,a,r])}const Vo=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},Zo=e=>{const[n,i]=t(!1),[r,a]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;a(o-n-i<=0)}}},qo=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,a]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&a(t)}]},Xo=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:${j.base};height:${j.base};}`,Go=u(T).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Yo=u(Go).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Uo=u(Ce).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,Ko=u($e).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,_o=u($).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Jo=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:${j[5]};height:${j[5]};margin-right:10px;}`,Qo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ei=({className:t,e2eClassName:n,label:o,text:i,iconSlot:r,fill:l=N.secondary.blue.base,content:s,footer:d,onClickAway:c,onClick:m,shouldCloseOnClickAway:u=!0})=>{const p=Qo(t),g=Qo(n),{shouldShowDropdown:h,toggleShouldShowDropdown:f,closeDropdown:b}=Wo(),v=a((e=>{f(),c&&h&&c(e)}),[f,c,h]),x=a((e=>{c&&c(e,b),u&&b()}),[b,c,u]);return!s?e.createElement(Xo,{className:gt([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:m},o&&e.createElement(Yo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(T,null,i),e.createElement(Ko,{className:gt([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:N.neutral.ink.base})):e.createElement(_e,{className:p.filterTagDropdown,shouldShowDropdown:h,onClickAway:x,cta:e.createElement(Xo,{className:p.container,onClick:v},o&&e.createElement(Yo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(T,null,i),e.createElement(Uo,{color:N.neutral.ink.base,name:"downArrow",shouldShow:h}))},e.createElement(_o,null,e.createElement(Jo,{color:l},r,e.createElement(T,{variant:"bodyBold"},o)),s,d))},ti=u($).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?j[e]:0};`,ni=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"})),oi=u.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,ii=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);`,li=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}),si=({src:n,alt:o="",className:i,e2eClassName:r,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:m="right",previewEnabled:u=!1,placeholder:p,placeholderWidth:g,placeholderHeight:f,disablePlaceholder:b=!1})=>{const x=li(i),y=li(r),[w,C]=t(!1),[$,E]=t({isLoaded:!1,isError:!1}),[k,N]=e.useState(null),[S,z]=e.useState(null),{styles:I,attributes:L}=h(k,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=a((()=>u?C(!0):{}),[u]),B=a((()=>u?C(!1):{}),[u]),j=!$.isLoaded||$.isError;return e.createElement(oi,{className:gt([null==x?void 0:x.container,null==y?void 0:y.container,i])},e.createElement(ii,{src:n,alt:o,className:gt([null==x?void 0:x.image,null==y?void 0:y.image]),width:l,height:s,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:u,onMouseEnter:F,onMouseLeave:B,style:j?{display:"none"}:{},ref:N}),!b&&j&&(p||e.createElement(ni,{className:gt([null==x?void 0:x.placeholder,null==y?void 0:y.placeholder]),width:g||l,height:f||s})),w&&v(e.createElement(ri,Object.assign({ref:z,style:I.popper},L.popper,{className:gt([null==x?void 0:x.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(ai,{src:n,alt:"",width:d,height:c})),document.body))},di=u.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,ci="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",mi="Log in with Amazon",ui=n=>{const[o,i]=t(ci);return e.createElement(di,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(ci)},"aria-label":mi},n),e.createElement("img",{src:o,alt:mi}))},pi=g`body{overflow:hidden;scrollbar-gutter:stable;}`,gi=u.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${H.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Me.Footer} {\n box-shadow: 0px 10px 15px 0px ${H.colors.neutral.ink.dark};\n }\n `}`,hi=e=>!!e.footerSlot,fi=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},bi=(e,t)=>{const n=fi(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},vi={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},xi={[S.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[S.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[S.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[S.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[S.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},yi={xs:S.mobile,sm:S.mobile,base:S.tablet,lg:S.lgTablet},{breakpoints:wi}=H,Ci=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:${H.sizes.sm};box-shadow:${H.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Me.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${vi[e]};`} ${gi}{padding-bottom:${H.sizes.md};}${Me.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${wi.mobile} + 1px))and (max-width: ${wi.tablet}){max-width:${({variant:e})=>xi[wi.tablet][e]};}@media (min-width: ${wi.tablet})and (max-width: ${wi.lgTablet}){max-width:${({variant:e})=>xi[wi.lgTablet][e]};}@media (min-width: ${wi.lgTablet})and (max-width: ${wi.desktop}){max-width:${({variant:e})=>xi[wi.desktop][e]};}@media (min-width: ${wi.desktop}){max-width:${({variant:e})=>xi[wi.lgDesktop][e]};}@media (max-width: ${({variant:e})=>yi[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:${bi(H.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,$i=e.forwardRef(((t,n)=>{var o=ne(t,[]);return e.createElement(Ci,Object.assign({ref:n},o))})),Ei=n=>{const{shouldShow:i,showHeaderCloseButton:a=!0,fullBleed:l=!1,variant:s="base",onClose:d,children:c}=n,u=r(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}=Zo(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(pi,null),e.createElement($i,{ref:u,onClose:b,variant:s,"aria-describedby":"modal_title"},e.createElement(Me.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Ee,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},a&&{onClickClose:b})),e.createElement(gi,{onScroll:f,ref:g,isScrollable:h,fullBleed:l},c),hi(n)&&n.footerSlot,!hi(n)&&(n.leftActions||n.rightActions)&&e.createElement(Me.Footer,null,e.createElement(Dt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Dt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=ne(t,["label"]);return e.createElement(xe,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Dt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=ne(t,["label"]);return e.createElement(xe,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:ki,text:Ni,shadows:Si}=H,{grey:zi}=H.colors.neutral,Ii=u.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${ki.base} ${ki.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&Si[e]};`,Li=u.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Ni.headingXL.fontFamily};font-size:${Ni.headingXL.fontSize};font-weight:${Ni.headingXL.fontWeight};margin:unset;line-height:1;`,Fi=u.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Ni.subheadingLarge.fontFamily};font-weight:${Ni.subheadingLarge.fontWeight};font-size:${Ni.subheadingLarge.fontSize};line-height:${Ni.subheadingLarge.lineHeight};`,Bi=u.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${H.radius.base};border:${ki.line} solid ${zi.base};object-fit:cover;`,ji=u.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Mi=u(xe).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${H.text.link.fontFamily};font-size:${H.text.link.fontSize};font-weight:${H.text.link.fontWeight};line-height:${H.text.link.lineHeight};color:${H.text.link.color};&:hover{text-decoration:${H.text.link.textDecoration};}& > * + *{margin-left:${H.sizes.xs};}`,Di=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:${ki.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Hi=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Oi=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:r,backAction:a,Accessory:l,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:m})=>{const u=i&&e.createElement(Ve,{buttonVariant:r?"default":"primary",title:"Actions",sections:i}),p=null==r?void 0:r.map((t=>e.createElement(xe,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=a&&e.createElement(xe,{onClick:a.onClick,icon:e.createElement(Hi,null),variant:"link"},a.title),h=m&&e.createElement(Dt,{direction:"horizontal",alignX:"end"},e.createElement(Mi,{onClick:m},e.createElement("span",null,"Toggle sidebar"),e.createElement(zt,{width:j.md})));return e.createElement(Ii,{shadow:s},e.createElement(Dt,null,g,e.createElement(Di,null,e.createElement(Dt,{direction:"horizontal",spacing:"md"},o&&e.createElement(Bi,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Dt,{alignX:"stretch"},e.createElement(Li,null,t),l,n&&e.createElement(Fi,null,n)))),e.createElement(ji,null,e.createElement(Dt,{direction:"horizontal",alignX:"end",spacing:"sm"},p,u,d&&e.createElement(xe,{icon:e.createElement(Hi,null),onClick:d}),c&&e.createElement(xe,{icon:e.createElement(zt,null),onClick:c})),h))))},Ri=u(Dt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${H.sizes.lg};height:30px;background-color:${H.colors.neutral.grey.light};border:1px solid ${H.colors.neutral.grey.base};border-radius:${H.sizes.xs};`,Wi=u(xe).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${H.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Ti=u(Fo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Ai=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(T,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Ri,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(T,{variant:"bodySmall"},t))),Pi=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[r,a]=t(`${e}`);o((()=>{a(`${e}`)}),[e]);const l=e=>e>=1&&e<=n,s=()=>{if(r||a(`${e}`),r===`${e}`)return;const t=parseInt(r,10);l(t)&&i(t)};return{pageInputValue:r,handleIncrement:()=>{l(e+1)&&i(e+1)},handleDecrement:()=>{l(e-1)&&i(e-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;l(n=t)&&a(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Vi=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"})),Zi=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"})),qi=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:a,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:m}=Pi({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Dt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Wi,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Vi,null),size:"sm","aria-label":"go to first page"}),e.createElement(Wi,{onClick:s,icon:e.createElement(Hi,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Ti,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:xo.sm,type:"number",value:a,min:"1",max:`${i}`,onChange:c,onBlur:m})),e.createElement(Ai,{count:i}),e.createElement(Wi,{onClick:l,icon:e.createElement(zt,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(Wi,{onClick:()=>{o!==i&&r(i)},icon:e.createElement(Zi,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Xi=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Gi=u($).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Yi=u(_e).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Ui=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;}`,Ki=u($).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,_i=u(T).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};}`,Ji=({item:t,handleRangeListChange:n})=>{const o=a((()=>n(t)),[n,t]);return e.createElement(Ki,{onClick:o},e.createElement(_i,{variant:"bodySmall"},t.label))},Qi=t=>{const{handleRangeListChange:n,paginationRange:o=Xi}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(Ji,{item:t,handleRangeListChange:n})))))};class er 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=Xi[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Xi,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:r}=this.state;return e.createElement(Gi,{className:t},e.createElement(Yi,{cta:e.createElement(Ui,{onClick:this.toggleShouldShow},e.createElement(T,{variant:"bodySmall"},r.label),e.createElement(be,{color:H.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(Qi,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const tr=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;}`,nr=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;}`,or=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(tr,{size:i},e.createElement(nr,{type:"button",onClick:t,disabled:o},e.createElement(U,{height:H.sizes.base,width:H.sizes.base,color:H.colors.neutral.ink.base})),e.createElement(nr,{type:"button",onClick:n,disabled:o},e.createElement(Ce,{height:H.sizes.base,width:H.sizes.base,color:H.colors.neutral.ink.base}))),ir=u(Fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${H.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${H.colors.neutral.ink.lightest};}`,rr=u($).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${H.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?H.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;}}`,ar=u(T).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,lr=u(vo).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 ${H.colors.secondary.red.light};\n\n > * {\n border-top-color: ${H.colors.secondary.red.base};\n border-bottom-color: ${H.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${H.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${H.colors.secondary.red.base};\n border-right-color: ${H.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${H.colors.secondary.red.base};\n border-bottom-color: ${H.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${H.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}}`;const sr=ko((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:a,onPriceChange:l,priceValue:s,step:d="0.1",size:c=xo.base}=t,m=ne(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(lr,{className:n,hasError:o},e.createElement(rr,{disabled:r,size:c},e.createElement(ar,{variant:"hintText"},i)),e.createElement(ir,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void l("");const o=parseFloat(n.replace(",",".")).toFixed(2);l(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(a),"ArrowDown"===t&&p(a)},disabled:r,size:c},m)),e.createElement(or,{onIncrement:()=>u(),onDecrement:()=>p(),disabled:r,size:c}))}));sr.displayName="PriceInput";const dr=u(Fo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,cr=u.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,mr=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 & ${dr} {\n ${t}\n }\n\n & ${cr} {\n ${n}\n }\n `}}`,ur=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"})),pr=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,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(mr,{className:p,iconPosition:b?"left":"right"},e.createElement(dr,{size:x,type:t,value:c,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,onKeyDown:s,onKeyPress:d,placeholder:u,name:g,disabled:n,error:m,autoComplete:v}),e.createElement(cr,null,h?e.createElement(ae,{height:24,color:f||H.colors.secondary.blue.base}):y&&o?e.createElement(xe,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text"},e.createElement($e,{color:f||H.colors.neutral.ink.dark})):e.createElement(xe,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search"},e.createElement(ur,{color:f||H.colors.neutral.ink.dark,height:j.md,width:j.md}))))},gr=H.colors.neutral.grey.lightest,hr=H.colors.neutral.grey.dark,fr=H.colors.secondary.blue.dark,br=u($).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${gr};border-color:${hr};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${fr};border-color:${fr};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${H.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,vr=({options:t,selected:n,className:o,onChange:i})=>e.createElement(br,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(xe,{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)))),xr=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;}`,yr=ko(i(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,m=ne(t,["className","options","value","onChange","size","disabled","hasError"]);const u=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(xr,Object.assign({className:o,sizeVariant:s,value:null!=r?r: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))))})));yr.displayName="Select";const{blue:wr}=N.secondary,{grey:Cr}=N.neutral,$r=u.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Er=u.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${wr.lightest};}`,kr=u.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Nr=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:${D.bodySmall.fontFamily};font-size:${D.bodySmall.fontSize};font-weight:${D.bodySmall.fontWeight};color:${D.bodySmall.color};line-height:${j.base};& > *{vertical-align:middle;}`,Sr=u(Nr).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Cr.dark};font-family:${D.bodySmallBold.fontFamily};font-size:${D.bodySmallBold.fontSize};font-weight:${D.bodySmallBold.fontWeight};color:${D.bodySmallBold.color};`,zr=u.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Er} tr:nth-child(even) td {\n background-color: ${Cr.lightest};\n }\n `}`,Ir=({striped:t=!0,className:n,children:o})=>e.createElement(zr,{striped:t,className:n},o);Ir.Header=$r,Ir.Body=Er,Ir.Row=kr,Ir.HeaderCell=Sr,Ir.Cell=Nr;const Lr=u.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Fr=u.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${H.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Br=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 ${H.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 ${H.colors.secondary.blue.light};}`,jr=u(Fr).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${H.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Mr=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}),Dr=({id:n,value:i,min:l,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=r(null),y=r(null),w=r(null),C=Mr(m),$=Mr(u),E=a((e=>{var t;if(!h||!x.current)return;const n=b>-1?i[b]:i,o=x.current.getBoundingClientRect();let r=100*(e.pageX-o.x)/o.width/100*(s-l)+l;const a=n-r;if(a>0&&(r=n+Math.ceil(r/d-n/d)*d),a<0&&(r=n+Math.floor(r/d-n/d)*d),n===r)return;r>s&&(r=s),r<l&&(r=l),Array.isArray(i)&&(0===b&&r>i[1]&&([,r]=i),1===b&&r<i[0]&&([r]=i));const m=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let u;r=Number(r.toFixed(m)),u=Array.isArray(i)?0===b?[r,i[1]]:[i[0],r]:r,c(u),Array.isArray(u)&&u[0]===u[1]&&(0===b&&v(1),1===b&&v(0))}),[b,h,s,l,c,d,i]),k=a((()=>{f(!1),g()}),[g]),N=a(((e,t)=>{f(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);o((()=>{const e=e=>N(e,Array.isArray(i)?0:1),t=e=>N(e,1),n=y.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k)}}),[N,E,k,i]);const S=(t,n,o)=>{let i;return i=gt("number"==typeof o?0===o?[null==C?void 0:C.startSlider,null==$?void 0:$.startSlider]:[null==C?void 0:C.endSlider,null==$?void 0:$.endSlider]:[null==C?void 0:C.slider,null==$?void 0:$.slider]),e.createElement(Br,{role:"slider",ref:1===o?w:y,className:i,left:t,"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":n})},z=t=>{const n=100*(t[0]<l?0:t[0]-l)/(s-l),o=100*(t[1]>s?100:t[1]-l)/(s-l),i=o-n;return e.createElement(e.Fragment,null,e.createElement(jr,{className:gt([null==C?void 0:C.sliderRange,null==$?void 0:$.sliderRange]),left:n,width:i}),S(n,t[0],0),S(o,t[1],1))};let I;return I=Array.isArray(i)?z(i):(e=>{if(Array.isArray(i))return z(i);let t;return t=i>s?100:i<l?0:100*(e-l)/(s-l),S(t,e)})(i),e.createElement(Lr,{className:gt([null==C?void 0:C.container,null==$?void 0:$.container]),id:n,ref:x},e.createElement(Fr,null),I)},Hr=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 `}`,Or=u(Dt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Rr=u(Dt).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${H.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${H.shadows.lg};border-radius:${H.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;}`,Wr=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:${H.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${j.md};height:${j.md};}`,Tr=u(Dt).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Ar=u(T).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Pr={info:{accentColor:N.brand.blue.base,icon:e.createElement(to,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)}},Vr=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Zr=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:a,minWidth:l,cta:s,onClose:d})=>{const c=Vr(t),m=Vr(n);return e.createElement(Rr,{className:gt([null==c?void 0:c.container,null==m?void 0:m.container]),direction:"horizontal",alignY:"center",minWidth:l,last:a},e.createElement(Wr,{color:Pr[o].accentColor,className:gt([c.icon,m.icon])},null!=i?i:Pr[o].icon),e.createElement(Tr,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Ar,{variant:"body"},r),s),e.createElement(xe,{variant:"flat",icon:e.createElement($e,{color:"white"}),onClick:d,"aria-label":"Close"}))},qr=({className:t,e2eClassName:n,toasts:i,minWidth:r="50vw",max:a=3,onClose:l})=>(o((()=>{a&&i.length>a&&l(i[0].key)}),[i,a,l]),v(e.createElement(Or,{direction:"vertical",alignX:"center",spacing:4},e.createElement(y,{component:null},[...i].reverse().map(((o,a)=>e.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Zr,Object.assign({className:t,e2eClassName:n,minWidth:r,last:a===i.length-1,onClose:()=>l(o.key)},o))))))),document.body)),Xr=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?H.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Gr=u.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${Xr}{box-shadow:0 0 0 4px ${H.colors.brand.blue.light};}&:checked + ${Xr}{background-color:#0079d1;}&:disabled + ${Xr}{background-color:${H.colors.neutral.grey.base};}&:checked:disabled + ${Xr}{background-color:${H.colors.secondary.blue.light};}`,Yr=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;}${Xr}: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"};}${Gr}:checked + ${Xr}{&: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"});}}`,Ur=u($).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Kr=i((({id:t,className:n,name:o,switched:i,small:r,onClick:a=(()=>{}),disabled:l,ariaLabel:s},d)=>e.createElement(Ur,{className:n,disabled:l},e.createElement(Yr,{small:r,disabled:l,role:"switch"},e.createElement(Gr,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:l?void 0:a,disabled:l,ref:d}),e.createElement(Xr,{switched:i,disabled:l}))))),_r=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:${H.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",i="24px",r="8px",a="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",a="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${a};\n\n background-color: ${s};\n border-color: ${d};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Jr=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(_r,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),Qr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",ea=u($).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Qr} display:${e=>e.shouldShow?"initial":"none"};z-index:${H.layers.modal};`,ta=u($).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Qr} background-color:rgba(55,66,77,0.5);`,na=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,oa=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(J,null,n):n),ia=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(oa,{usePortal:i},e.createElement(ea,{className:gt([`${t}-container`,t]),shouldShow:o},e.createElement(ta,null),e.createElement(C,{isActive:o},e.createElement(na,{className:gt([`${t}-wrap`,t])},n)))),ra=u.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,aa=u.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,la=u(xe).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,sa=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=Oo(o,i);return e.createElement(ia,{shouldShow:o,className:`${t}-video`},e.createElement(ra,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(aa,{ref:r},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(la,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement($e,{color:"white"})}))))};var da;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(da||(da={}));const ca=u($).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,ma=u(T).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,ua=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 ${T} {\n color: ${null!=t?t:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,pa=u(T).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 & > ${ma} {\n color: #fff;\n }\n `}`,ga={style:{marginLeft:j.xs,padding:j.xs,height:j.base,width:j.base}},ha=u.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${j.sm};svg{height:${j.base};width:${j.base};}`,fa=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"})),ba=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}),va=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=N.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:m,onDelete:u,onEdit:p,e2eClassName:g})=>{const h=ba(r),f=ba(g),[b,v,x]=Vo(),y=a((()=>m(t)),[t,m]),w=a((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),C=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),$=i===da.draft,E=i===da.saved,k=c?N.neutral.ink.dark:N.neutral.ink.base;return e.createElement(ca,{className:`${gt([null==h?void 0:h.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:y},e.createElement(ua,{active:c,onMouseEnter:v,onMouseLeave:x,colourPalette:l,customTextColour:s},n&&e.createElement(ha,null,n),e.createElement(T,{variant:"bodyBold"},o),d&&e.createElement(pa,{active:c||b,colourPalette:l,customTextColour:s},e.createElement(ma,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),$&&e.createElement($e,Object.assign({},ga,{color:k,className:null==f?void 0:f.delete,onClick:w})),E&&c&&e.createElement(fa,Object.assign({},ga,{color:k,className:null==f?void 0:f.edit,onClick:C}))))},xa=u($).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,ya=u($).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,wa=u(Fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Ca=u(xe).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${H.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${H.colors.secondary.red.base};\n `};`,$a=ko((t=>{var{size:n=xo.base,hasError:o,className:i}=t,r=ne(t,["size","hasError","className"]);return e.createElement(xa,{className:i},e.createElement(ya,null,"g"===r.weightUnit&&e.createElement(vo,null,e.createElement(wa,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o},r)),e.createElement(Ca,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(vo,null,e.createElement(wa,Object.assign({size:n,onChange:r.handleChangePound,name:"ounce",type:"number",value:r.pound,hasError:o},r)),e.createElement(Ca,{hasError:o,size:n},"lb")),e.createElement(vo,null,e.createElement(wa,Object.assign({size:n,onChange:r.handleChangeOunce,name:"pound",type:"number",value:r.ounce,hasError:o},r)),e.createElement(Ca,{hasError:o,size:n},"oz")))))}));$a.displayName="WeightInput",$a.defaultProps={weightUnit:"lb"};export{K as Accordion,Ve as ActionList,qe as Anchor,_e as AnimatedDropdown,Qe as Avatar,ft as Badge,kt as Banner,$ as BaseContainer,jt as Breadcrumbs,xe as Button,Me as Card,Ee as CardHeader,Qt as Checkbox,Yt as Choice,rn as ChoiceList,cn as CopyToClipboard,io as DataTable,uo as DescriptionList,bo as DetailPage,Ho as DimensionsInput,ei as FilterTag,Ao as FocusVisibleManager,ti as Grid,si as Image,vo as InputGroup,ae as Loader,ui as LoginWithAmazonButton,Ei as Modal,Oi as PageHeader,qi as Pagination,er as PaginationRange,te as Popover,ia as Popup,J as Portal,sr as PriceInput,tn as Radio,pr as Search,vr as SegmentedControl,yr as Select,Ir as SimpleTable,Dr as Slider,Dt as Stack,or as Stepper,Hr as Tag,T as Text,Fo as TextField,qr as ToastsLayout,Kr as Toggle,Jr as ToggleButton,dt as Tooltip,sa as VideoModal,va as View,$a as WeightInput,gt as buildClassnames,_ as generateId,bi as getOpaqueHexColor,fi as hexToRgb,H as theme,xn as useCellWidths,Oo as useClickOutside,yn as useColumns,Ro as useDebounce,wn as useDragToScroll,Wo as useDropdown,Po as useFocusVisible,Vo as useHover,Zo as useIsOverflowing,Cn as useNested,$n as useScrollPosition,Ln as useSelection,qo as useTabs,No as withDeprecated,ko as withLabels};
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,role:l}=t;return e.createElement(Ye,{className:i,ref:n,role:l},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:${D.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,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,{role:"dialog",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};
2
2
  //# sourceMappingURL=index.esm.js.map