@veeqo/ui 5.17.0 → 5.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),a=require("react-popper"),o=require("resize-observer-polyfill"),l=require("react-dom"),i=require("uid/secure"),r=require("react-aria-components"),d=require("react-transition-group"),s=require("@internationalized/date"),c=require("lodash.throttle"),u=require("react-use"),m=require("react-scrolllock-configurable");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=p(e),g=p(n),h=p(o),b=p(l),v=p(c),x=p(m);const y=g.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,w={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},E=(e,t)=>e||(t?w[t]:void 0),C={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"}}},$={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},k={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var S,N;!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)"}(S||(S={})),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"}(N||(N={}));const L=function({increment:e,unit:t,count:n}){const a={};for(let o=0;o<=n;o++){const n=o*e;a[o]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),I={[N.none]:"0",[N.line]:"1px",[N.xs]:L[1],[N.sm]:L[2],[N.base]:L[4],[N.md]:L[6],[N.lg]:L[8],[N.xl]:L[12],[N.xxl]:L[16]},z=Object.assign(Object.assign({},I),L),D={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},F={headingXXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},R=Object.assign(Object.assign({},D),{breakpoints:$,colors:C,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:k,shadows:S,sizes:z,text:F}),{text:T,colors:M,fontFamily:A}=R,O=g.default.span.attrs((({as:e,variant:t})=>({as:E(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:${A};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?M.neutral.ink.lightest:T[e].color;return`\n font-family: ${T[e].fontFamily};\n font-style: ${T[e].fontStyle};\n font-weight: ${T[e].fontWeight};\n font-size: ${T[e].fontSize};\n line-height: ${T[e].lineHeight};\n color: ${n};\n text-decoration: ${T[e].textDecoration};\n letter-spacing: ${T[e].letterSpacing};\n `}}`,B=g.default(y).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=g.default(B).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${z.base};width:${z.base};color:${({glyphColor:e})=>e};}`,H=g.default(B).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,W=g.default.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 ${R.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,P=g.default(y).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,V=g.default(O).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,_=g.default(t.motion(y)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Z=g.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,q=g.default(t.motion(y)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,Y=g.default.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,X=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.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"}));function K(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;const G=e=>{const t=i.uid();return e?`${e}-${t}`:t};class U extends e.PureComponent{constructor(e){super(e),this.id=G("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?l.createPortal(e,this.portalNode):null}}const J=g.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Q=g.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ee=e=>e.filter(Boolean).join(" "),te=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a)),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},ne=(e,t)=>{const n=te(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ae=["app.veeqo.com"];function oe(e,t=ae){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const le='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',ie=({popperElement:t,anchorElement:n,onClose:a,disableFocusLock:o=!1})=>{e.useEffect((()=>{if(!t||o)return;const e=t.querySelectorAll(le);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,o]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(le);if(n.length<1)return void a();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,a]);return{handleKeyDown:e=>{t&&("Escape"===e.key?a():o||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(le),a=n[0],o=n[n.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),a.focus())})(e))}}},re=t=>{var{id:n,children:o,zIndex:l=R.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:u,removeBackdrop:m=!1,useAnchorWidth:p}=t,g=K(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[b,v]=e.useState(null),{styles:x,attributes:y,update:w}=a.usePopper(r,b,{placement:i}),E=e.useMemo((()=>n||G("popover")),[n]);(({anchorElement:t,popoverId:n})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n])})({anchorElement:r,popoverId:E});const C=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:$}=ie({popperElement:b,anchorElement:r,onClose:C,disableFocusLock:u});return e.useEffect((()=>{if(!w||!b)return;const e=new h.default(w);return e.observe(b),()=>e.disconnect()}),[w,b]),e.useEffect((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),f.default.createElement(U,{rootElementRef:d},!m&&f.default.createElement(Q,{onClick:C,zIndex:l,"data-testid":"popover-backdrop"}),f.default.createElement(J,Object.assign({open:!0,id:E,zIndex:l,ref:v,style:Object.assign(Object.assign(Object.assign({},x.popper),c),p?{minWidth:null==r?void 0:r.clientWidth}:{}),onKeyDown:$},y.popper,g),o))},de=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":o},f.default.createElement("defs",null,f.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},f.default.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),f.default.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),f.default.createElement("stop",{stopColor:a,offset:"100%"}))),f.default.createElement("g",{fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(1 1)"},f.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),f.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),se=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ce=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"15",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},f.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"105",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ue=({className:e,height:t=24,width:n=24,color:a="#588CB0",type:o="TailSpin"})=>{switch(o){case"Grid":return f.default.createElement(se,{className:e,height:t,width:n,color:a});case"ThreeDots":return f.default.createElement(ce,{className:e,height:t,width:n,color:a});default:return f.default.createElement(de,{className:e,height:t,width:n,color:a})}},me=g.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>z[e]};height:${({size:e})=>z[e]};}`,pe=g.default.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:${R.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",o="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",o="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${o};\n font-size: ${l};\n line-height: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,fe=g.default(pe).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${R.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?R.colors.neutral.ink.base:R.colors.secondary.blue.base};&:hover{background-color:${R.colors.neutral.grey.lightest};}&:active{background-color:${R.colors.neutral.grey.lightest};border-color:${R.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${R.colors.neutral.grey.base} !important;border-color:${R.colors.neutral.grey.base} !important;color:${R.colors.neutral.ink.light} !important;}`,ge=g.default(fe).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${R.colors.secondary.red.base};&:hover{color:${R.colors.secondary.red.dark};}&:active{border-color:${R.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};color:${R.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,he=g.default(fe).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${R.colors.secondary.blue.base};border-color:${R.colors.secondary.blue.base};color:white;&:hover{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};}&:active{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}`,be=g.default(he).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${R.colors.secondary.red.base};border-color:${R.colors.secondary.red.base};color:white;&:hover{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};}&:active{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,ve=g.default(pe).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${R.colors.neutral.ink.base};&:hover{background-color:${R.colors.neutral.grey.light};}&:active{background-color:${R.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,xe=g.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,ye=g.default(xe).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${R.text.link.fontFamily};font-size:${R.text.link.fontSize};line-height:${R.text.link.fontSize};font-weight:${R.text.link.fontWeight};line-height:${R.text.link.lineHeight};text-decoration:${R.text.link.textDecoration};color:${R.colors.secondary.blue.base};&:hover{color:${R.colors.secondary.blue.dark};}& > * + *{margin-left:${R.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${R.colors.secondary.blue.light};border-radius:4px;}`,we=g.default.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;`,Ee=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Ce={default:fe,primary:he,destructive:ge,primaryDestructive:be,flat:ve,link:ye,unstyled:xe},$e=e.forwardRef(((e,t)=>{var{className:n,children:a,icon:o,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=K(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return f.default.createElement(xe,Object.assign({ref:t,className:n},s),a);const c=Ce[l],u=void 0!==a,m=!!o;return f.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:u,hasIcon:m,hasDropdown:r},s),(u||m)&&f.default.createElement(me,{$loading:d,hasText:!!a,size:a||"sm"===i?"base":"md"},o&&o,void 0!==a&&a,r&&f.default.createElement(Ee,null)),d&&f.default.createElement(we,null,f.default.createElement(ue,null)))})),ke=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${z.md};padding-right:${z.md};padding-left:${z.md};margin-bottom:${z.md};& > * + *{margin-top:${z.xs};}`,Se=g.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${z.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ne=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.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"})),Le=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),f.default.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"})),Ie=({id:e,title:t,subtitle:n,headerVariant:a="headingSmall",action:o,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>f.default.createElement(ke,null,f.default.createElement(Se,null,f.default.createElement(O,{id:e,variant:a},t),o&&f.default.createElement($e,{variant:"link",onClick:o.onClick},o.title),l,r&&f.default.createElement($e,{variant:"flat",icon:i?f.default.createElement(Ne,null):f.default.createElement(X,null),onClick:r}),d&&f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,null),onClick:d,"aria-label":"Close"})),n&&f.default.createElement(O,{variant:"subheadingSmall"},n)),{grey:ze}=C.neutral,De={0:"none",1:S.sm,2:S.base,3:S.md,4:S.lg},Fe={info:C.secondary.blue.base,success:C.secondary.green.base,error:C.secondary.red.base},Re=g.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${z.base};padding:${z.md};z-index:2;`,Te=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${z.md};padding-left:${z.md};margin-top:${z.md};margin-bottom:${z.md};font-family:${F.body.fontFamily};font-size:${F.body.fontSize};font-weight:${F.body.fontWeight};line-height:${F.body.lineHeight};color:${F.body.color};& + &{border-top:${z.line} solid ${ze.base};padding-top:${z.md};}`,Me=g.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${z.md};margin-right:-${z.md};`,Ae=g.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Te}:first-child{margin-top:0;}`,Oe=g.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${z.line} solid ${ze.base};box-shadow:${e=>void 0!==e.elevation?De[e.elevation]:S.sm};border-radius:${k.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: ${z.xs};\n background-color: ${Fe[e]};\n }\n `}`,Be={expanded:{height:"auto"},collapsed:{height:0}},je=({className:t,style:n,title:a,subtitle:o,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:u,renderFooter:m})=>{const[p,g]=e.useState(!1),h=a&&f.default.createElement(Ie,{title:a,subtitle:o,ActionSlot:l,action:i,onClickClose:u,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=f.default.createElement(Ae,{animate:b?"expanded":"collapsed",variants:Be,transition:{duration:.3,ease:"easeOut"}},f.default.createElement(Te,null,c)),x=void 0!==m&&f.default.createElement(Re,null,m());return f.default.createElement(Oe,{className:t,style:n,elevation:d,accent:s},h,v,x)};je.Surface=Oe,je.Section=Te,je.FullBleed=Me,je.Footer=Re;const{sizes:He,colors:We,text:Pe}=R,Ve=g.default(je.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${He.base} 0;display:flex;flex-direction:column;`,_e=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${We.neutral.grey.base};margin-top:${He.base};padding-top:${He.base};}`,Ze=g.default(O).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${He.sm} ${He.base} ${He.sm};`,qe=g.default($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${He.lg};padding:${He.xs} ${He.base};display:flex;align-items:center;white-space:nowrap;font-family:${Pe.body.fontFamily};font-size:${Pe.body.fontSize};font-weight:${Pe.body.fontWeight};&:hover{background-color:${We.neutral.grey.light};color:${We.secondary.blue.base};}& > * + *{margin-left:${He[3]};}`,Ye={item:qe,action:g.default(qe).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${We.secondary.blue.base};`,link:g.default(qe).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${We.secondary.blue.base};text-decoration:underline;`},Xe=({title:t,items:n=[],sections:a,buttonVariant:o,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Ye[e.variant||"item"];return f.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,f.default.createElement("span",null,e.title))},u=a?a.map((e=>f.default.createElement(_e,{key:e.title},e.title&&f.default.createElement(Ze,null,e.title),e.items.map(c)))):n.map(c);return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,{dropdown:!0,variant:o,size:l,onClick:()=>r(!i),ref:s},t),i&&f.default.createElement(re,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},f.default.createElement(Ve,null,u)))},Ke=g.default(t.motion(je.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${R.colors.neutral.grey.base};border-radius:${R.radius.base};padding:${R.sizes.base};`,Ge=n=>{var{id:a,children:o,className:l,style:i,reversed:r,anchorElement:d,useAnchorWidth:s,onShouldClose:c}=n,u=K(n,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==d?void 0:d.focus()),[d]),f.default.createElement(re,Object.assign({id:a,"data-testid":a,anchorElement:d,onShouldClose:c,useAnchorWidth:s,placement:"bottom-start"},u),f.default.createElement(t.AnimatePresence,null,f.default.createElement(Ke,{className:l,style:i,useAnchorWidth:s,reversed:r,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},Ue=t=>{var{id:n,shouldShow:a,setShouldShow:o,ctaIconSlot:l,ctaProps:i}=t,r=K(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=e.useRef(null);return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":n,onClick:()=>null==o?void 0:o(!a),icon:l,dropdown:!0},i)),a&&f.default.createElement(Ge,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==o?void 0:o(!1)},r)))},Je=(t,n)=>{const a=e.useRef(null),o=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{a.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",o)}}),[l,o,t]),a},Qe=({anchorElement:t}={})=>{const[n,a]=e.useState(!1),o=e.useCallback((()=>a(!n)),[n,a]),l=e.useCallback((()=>{a(!1),setTimeout((()=>{null==t||t.focus()}),0)}),[a,t]);return{shouldShowDropdown:n,toggleShouldShowDropdown:o,setShouldShowDropdown:a,closeDropdown:l}},et=f.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const tt=(t=!1)=>{const[n,a]=e.useState(t);return[n,e.useCallback((()=>a(!0)),[a]),e.useCallback((()=>a(!1)),[a])]},nt=t=>{const[n,a]=e.useState(!1),[o,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;a(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!o,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:a,clientHeight:o}=e.target;l(a-n-o<=0)}}},at=({id:t,prefix:n})=>e.useMemo((()=>t||G(n)),[t,n]),ot=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,lt=g.default(r.MenuItem).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:block;cursor:pointer;margin:${R.sizes.xs};padding:${R.sizes.sm};border-radius:${R.radius.base};outline:0;&:is(a){${ot(R.text.link)}}&:is(div){${ot(R.text.body)}}white-space:nowrap;&[data-focused]{color:${R.colors.secondary.blue.base};box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&[data-hovered]{background-color:${R.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.lightest};color:${R.colors.neutral.ink.light};}`;var it;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(it||(it={}));const rt=g.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:o="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&it[n],i=a&&it[a],s=R.sizes[o],r="column"):(l=a&&it[a],i=n&&it[n],c=R.sizes[o],r="row"),("vertical"===t&&"stretch"===a||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;rt.displayName="Stack";const dt=g.default(rt).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${R.radius.base};background-color:${({colours:{background:e}})=>e};`,st=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),ct=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"}),f.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),f.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),mt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),pt={base:R.sizes.base,sm:R.sizes[3],xs:R.sizes.sm},ft={base:R.sizes.md,sm:R.sizes[5],xs:R.sizes[5]},gt={default:ut,error:st,success:mt,info:ct,warning:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),f.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),f.default.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),f.default.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},ht={default:{primary:R.colors.neutral.ink.base,background:R.colors.neutral.grey.lightest},error:{primary:R.colors.secondary.red.base,background:R.colors.secondary.red.lightest},success:{primary:R.colors.secondary.green.base,background:R.colors.secondary.green.lightest},info:{primary:R.colors.secondary.blue.base,background:R.colors.secondary.blue.lightest},warning:{primary:R.colors.secondary.orange.base,background:R.colors.secondary.orange.lightest},recommend:{primary:R.colors.secondary.purple.dark,background:R.colors.secondary.purple.lightest}},bt=g.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${R.text.link.fontFamily};font-style:${R.text.link.fontStyle};font-weight:${R.text.link.fontWeight};font-size:${R.text.link.fontSize};line-height:${R.text.link.lineHeight};color:${R.colors.secondary.blue.base};text-decoration:${R.text.link.textDecoration};&:hover{color:${R.colors.secondary.blue.dark};}`,vt=g.default(y).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;`,xt=e.forwardRef(((e,t)=>{const{children:n,className:a,role:o}=e;return f.default.createElement(vt,{className:a,ref:t,role:o},n)})),yt=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,wt=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Et=g.default(xt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${R.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);}`,Ct=({cta:t,shouldShowDropdown:n,children:a,className:o="animated-dropdown",reversed:l=!1,onClickAway:i=(()=>{}),timeout:r=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:u,onMouseLeave:m})=>{const p=e.useRef(null);return((t,n)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,n])})(p,(e=>{n&&i(e)})),f.default.createElement(yt,{className:`${o}-container ${o}`,onClick:c,onMouseEnter:u,onMouseLeave:m,ref:p},!l&&t,f.default.createElement(wt,{className:`${o}-wrap ${o}`},f.default.createElement(d.CSSTransition,{in:n,timeout:r,classNames:s,unmountOnExit:!0},f.default.createElement(Et,{role:"dialog",reversed:l,className:`${o}-basic-dropdown ${o}`},a))),l&&t)},$t=g.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${R.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:${R.text.bodySmallBold.fontFamily};font-weight:${R.text.bodySmallBold.fontWeight};font-size:${R.text.bodySmallBold.fontSize};line-height:${R.text.bodySmallBold.lineHeight};}`,kt=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,St=g.default(kt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,Nt=g.default(O).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${R.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Lt=g.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,It=g.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,zt=g.default(kt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var Dt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(Dt||(Dt={}));const Ft={duration:400,side:Dt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Rt=({content:t,text:n,hoverableElement:o,config:l,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),u=Object.assign(Object.assign({},Ft),l),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:v,attributes:x}=a.usePopper(o,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:R.layers.tooltip});return f.default.createElement(It,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),f.default.createElement(zt,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:f.default.createElement(Nt,null,n)),r&&f.default.createElement(Lt,{id:"veeqo-components-triangle",className:d.triangle}))},Tt=({children:t,text:n,content:a,config:o,reversed:l=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,u]=e.useState(d),[m,p]=e.useState(null),g=!!n&&n.trim().length>0,h={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!a&&!g);if(!v)return t;const x=c&&v&&f.default.createElement(Rt,{classNames:h,hoverableElement:m,config:o,reversed:l,withTriangle:r,text:n,content:a});return f.default.createElement(kt,{className:h.container},s?b.default.createPortal(x,document.body):x,f.default.createElement(St,{ref:p,className:h.hoverable,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},t))},Mt=g.default(y).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:${F.bodySmall.fontFamily};font-weight:${F.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${z.base};height:${z.base};}`,At={default:g.default(Mt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${C.secondary.blue.base};color:${C.secondary.blue.base};`,primary:g.default(Mt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};color:${C.secondary.blue.base};`,warning:g.default(Mt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${C.secondary.yellow.base};background-color:${C.secondary.yellow.lightest};color:${C.secondary.orange.dark};`},Ot=g.default(y).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"};`,Bt=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,jt=g.default(y).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Ht=g.default(jt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${z.md};height:${z.md};color:${({accentColor:e})=>e};}`,Wt=g.default(y).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Pt=g.default(jt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Vt=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,_t={help:C.secondary.blue.base,info:C.neutral.ink.base,error:C.secondary.red.base,success:C.secondary.green.base},Zt=g.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${F.body.fontFamily};font-weight:${F.body.fontWeight};font-size:${F.body.fontSize};line-height:${F.body.lineHeight};`,qt=g.default.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;}`,Yt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Xt=({children:e,title:t,LinkComponent:n,href:a})=>n?f.default.createElement(qt,{className:"breadcrumb"},f.default.createElement(n,{href:a},t),e):f.default.createElement(qt,{className:"breadcrumb"},t,e),Kt=()=>f.default.createElement(Yt,{className:"separator",width:z.base,height:z.base}),Gt=({children:e,href:t})=>f.default.createElement("a",{href:t},e),Ut=({children:e})=>f.default.createElement("span",null,e),Jt=e=>f.default.createElement(r.CalendarGrid,Object.assign({weekdayStyle:"short"},e),f.default.createElement(r.CalendarGridHeader,null,(e=>f.default.createElement(r.CalendarHeaderCell,null,e.slice(0,2)))),f.default.createElement(r.CalendarGridBody,null,(e=>f.default.createElement(r.CalendarCell,{date:e})))),Qt=n.css`.react-aria-Button{color:${R.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${R.sizes.base};height:${R.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:active,&:hover{background-color:${R.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${R.colors.neutral.grey.base};cursor:default;}}`,en=n.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${R.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${R.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${R.colors.secondary.blue.light};}&[data-selected]{background:${R.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${R.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${R.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${R.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${R.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${R.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,tn=n.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${ot(R.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${R.sizes.sm};}`,nn=g.default(r.RangeCalendar).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${R.colors.neutral.ink.base};font-size:14px;font-family:${R.fontFamily};${tn} ${Qt} ${en} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,an=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),on=t=>{var n,{disabledRanges:a=[],disallowWeekends:o=!1,isMultiMonth:l=!1}=t,i=K(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=f.default.useState(null===(n=i.value)||void 0===n?void 0:n.start),{locale:u}=r.useLocale(),m=e.useCallback((e=>!!o&&s.isWeekend(e,u)||a.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[a,o,u]);return e.useEffect((()=>{var e;c(null===(e=i.value)||void 0===e?void 0:e.start)}),[i.value]),f.default.createElement(nn,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:l?{months:2}:void 0},i),f.default.createElement("header",null,f.default.createElement(r.Button,{slot:"previous"},f.default.createElement(an,null)),f.default.createElement(r.Heading,null),f.default.createElement(r.Button,{slot:"next"},f.default.createElement(Yt,null))),l?f.default.createElement("div",{style:{display:"flex",gap:R.sizes.sm,overflow:"auto"}},f.default.createElement(Jt,null),f.default.createElement(Jt,{offset:{months:1}})):f.default.createElement(Jt,null))},ln={top:"flex-start",center:"center"},rn=g.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${R.sizes.base};}`,dn=g.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>ln[e.align]};`,sn=g.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,cn=g.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${R.sizes.sm};}`,un=g.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,mn=g.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};`,pn=g.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,fn=g.default(pn).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${R.colors.neutral.grey.dark};border-radius:${R.radius.md};padding:${R.sizes.base} 0.75rem;&:hover{border-color:${R.colors.secondary.blue.base};}`,gn=g.default(Tt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,hn=({id:e,className:t,label:n,hint:a,tooltip:o,error:l,bordered:i,Badge:r,Accessory:d,Footer:s,children:c,disabled:u=!1,labelVariant:m="body",inputPosition:p="left"})=>{const g={hint:(h=t)?"choice__hint":void 0,label:h?"choice__label":void 0,tooltip:h?"choice__tooltip":void 0,error:h?"choice__error":void 0};var h;const b=f.default.createElement(rn,null,"left"===p&&f.default.createElement(dn,{align:d?"center":"top"},c),d&&f.default.createElement(sn,null,d),n||a||l||r||s?f.default.createElement(cn,null,f.default.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"sm"},r,n&&f.default.createElement(O,{variant:m,className:g.label},n),o&&f.default.createElement(gn,{text:o,className:g.tooltip},f.default.createElement(ct,{name:"help",width:R.sizes.base,color:R.colors.neutral.ink.lightest}))),a&&f.default.createElement(un,{className:g.hint},a),l&&f.default.createElement(mn,{className:g.error},l),s):null,"right"===p&&f.default.createElement(dn,{align:d?"center":"top"},c));return i?f.default.createElement(fn,{disabled:u,htmlFor:e,className:t},b):f.default.createElement(pn,{disabled:u,htmlFor:e,className:t},b)},{colors:bn,sizes:vn,radius:xn}=R,yn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${bn.neutral.ink.lightest};border-radius:${xn.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${bn.secondary.blue.base};border-color:${bn.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:${vn[4]};background-position:center;}&:hover{border-color:${bn.secondary.blue.base};}&:active{border-color:${bn.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${bn.secondary.blue.light};outline:0;}&:indeterminate{background-color:${bn.secondary.blue.base};border-color:${bn.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:${vn[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${bn.neutral.grey.base};border-color:${bn.neutral.grey.base};color:${bn.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>");}`,wn=t=>{var{checked:n,indeterminate:a,value:o,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=K(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const u=e.useMemo((()=>G("checkbox")),[]),m=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,o)}),[s,o]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===a)}),[a]),f.default.createElement(hn,Object.assign({id:u,disabled:i,className:d},c),f.default.createElement(yn,{ref:m,id:u,type:"checkbox",checked:n,value:o,name:l,disabled:i,"aria-label":r,onChange:p}))},En=g.default.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;}`,Cn=e.forwardRef(((t,n)=>{var{checked:a,value:o,name:l,disabled:i,onChange:r,id:d,children:s}=t,c=K(t,["checked","value","name","disabled","onChange","id","children"]);const u=e.useCallback((e=>{r(e.currentTarget.checked,o)}),[r,o]),m=null!=d?d:G("radio");return f.default.createElement(hn,Object.assign({id:m,disabled:i},c),f.default.createElement(En,{id:m,type:"radio",checked:a,value:o,name:l,disabled:i,onChange:u,ref:n}),s)})),$n=g.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,kn=g.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-style:${R.text.inputLabel.fontStyle};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};text-decoration:${R.text.inputLabel.textDecoration};color:${R.text.inputLabel.color};`;class Sn extends e.Component{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:a}=this.props;let o=[];o=t?[...n,e]:n.filter((t=>t!==e)),a(o)}}render(){const{allowMultiple:e,options:t,selected:n,title:a,disabled:o,bordered:l}=this.props,i=e?wn:Cn;return f.default.createElement($n,{disabled:o},a&&f.default.createElement(kn,null,a),t.map((e=>f.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Nn=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Ln={width:z.base,height:z.base},In=g.default($e).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${z.base};width:${z.base};top:unset;}`,zn=g.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};color:${R.text.inputLabel.color};`,Dn=g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,Fn=g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,Rn=g.default(rt).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Tn=g.default(Tt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,Mn=e=>t=>{var{label:n,hint:a,error:o,tooltip:l}=t,i=K(t,["label","hint","error","tooltip"]);const r=at({id:null==i?void 0:i.id,prefix:e.name});return n?f.default.createElement(Rn,{spacing:"sm",alignX:"stretch"},f.default.createElement("div",{style:{marginBottom:R.sizes.xs}},f.default.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"sm"},f.default.createElement(zn,{id:`${r}-label`,htmlFor:r},n),l&&f.default.createElement(Tn,{text:l},f.default.createElement(ct,{width:R.sizes.base,height:R.sizes.base,color:R.colors.neutral.ink.light}))),a&&f.default.createElement(Dn,null,a)),f.default.createElement(e,Object.assign({id:r,hasError:!!o},i)),o&&f.default.createElement(Fn,null,o)):f.default.createElement(e,Object.assign({hasError:!!o},i))},An=g.default(r.Group).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${ot(R.text.body)} display:flex;align-items:center;border:1px solid ${R.colors.neutral.ink.lightest};border-radius:${R.radius.base};gap:${R.sizes.xs};padding:${R.sizes.sm};margin-top:${R.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${R.colors.secondary.red.light};border:1px solid ${R.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${R.colors.secondary.red.light};\n border: 1px solid ${R.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${R.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${R.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${R.radius.base};&[data-invalid]{color:${R.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${R.colors.secondary.blue.dark};&[data-invalid]{background-color:${R.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${R.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,On=Mn((({id:e,className:t,style:n,shouldForceLeadingZeros:a=!0,hasError:o,minValue:l,maxvalue:i,startValue:d,endValue:s,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>f.default.createElement(An,{style:n,className:t,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,$hasError:o,isDisabled:c},f.default.createElement(r.DateField,{shouldForceLeadingZeros:a,onChange:h,value:d,minValue:l,maxValue:i,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},f.default.createElement(r.DateInput,{slot:"start"},(e=>f.default.createElement(r.DateSegment,{segment:e})))),f.default.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),f.default.createElement(r.DateField,{shouldForceLeadingZeros:a,onChange:b,value:s,minValue:l,maxValue:i,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},f.default.createElement(r.DateInput,{slot:"end"},(e=>f.default.createElement(r.DateSegment,{segment:e}))))))),Bn=g.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,jn=Mn(e.forwardRef(((t,n)=>{var{className:a,options:o,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,c=K(t,["className","options","value","onChange","size","disabled","hasError"]);const u=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return f.default.createElement(Bn,Object.assign({className:a,sizeVariant:r,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:s,ref:n},c),!!o&&o.map((e=>f.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label))))})));jn.displayName="Select";const Hn=g.default.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?R.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Wn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${R.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${Hn}{box-shadow:0 0 0 4px ${R.colors.brand.blue.light};}&:checked + ${Hn}{background-color:#0079d1;}&:disabled + ${Hn}{background-color:${R.colors.neutral.grey.base};}&:checked:disabled + ${Hn}{background-color:${R.colors.secondary.blue.light};}`,Pn=g.default.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;position:relative;height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};z-index:1;input{position:absolute;opacity:0;}${Hn}: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"};}${Wn}:checked + ${Hn}{&: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"});}}`,Vn=g.default(y).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,_n=e.forwardRef(((e,t)=>{var{id:n="testid",className:a,name:o,switched:l,small:i,onClick:r=(()=>{}),disabled:d,ariaLabel:s,inputPosition:c="right"}=e,u=K(e,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return f.default.createElement(hn,Object.assign({id:n,inputPosition:c},u),f.default.createElement(Vn,{className:a,disabled:d},f.default.createElement(Pn,{small:i,disabled:d,className:a},f.default.createElement(Wn,{id:n,role:"switch",type:"checkbox",name:o,"aria-label":s,checked:!!l,onChange:e=>d?void 0:r(e),disabled:d,ref:t}),f.default.createElement(Hn,{switched:l,disabled:d}))))})),Zn=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],qn=({options:t=Zn,selectedPreviousPeriod:n,setSelectedPreviousPeriod:a})=>{const[o,l]=e.useState(!!n);return e.useEffect((()=>{n||null==a||a(t[0])}),[n,a,t]),f.default.createElement(f.default.Fragment,null,f.default.createElement(O,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:R.sizes.sm,whiteSpace:"nowrap"}},f.default.createElement(_n,{small:!0,switched:o,onClick:()=>{o&&(null==a||a(null)),l(!o)}}),"Compare previous period"),o&&f.default.createElement(jn,{"aria-label":"Period to compare against",options:t,value:(null==n?void 0:n.value)||t[0].value,onChange:e=>{const n=t.find((({value:t})=>t===e));n&&(null==a||a(n))}}))};var Yn;exports.DateRanges=void 0,(Yn=exports.DateRanges||(exports.DateRanges={})).TODAY="TODAY",Yn.YESTERDAY="YESTERDAY",Yn.LAST_7_DAYS="LAST_7_DAYS",Yn.LAST_30_DAYS="LAST_30_DAYS",Yn.LAST_90_DAYS="LAST_90_DAYS",Yn.LAST_MONTH="LAST_MONTH",Yn.LAST_12_MONTHS="LAST_12_MONTHS",Yn.WEEK_TO_DATE="WEEK_TO_DATE",Yn.MONTH_TO_DATE="MONTH_TO_DATE",Yn.YEAR_TO_DATE="YEAR_TO_DATE";const Xn=e=>{const t=s.now(s.getLocalTimeZone());let n;switch(e){case exports.DateRanges.TODAY:n={start:t,end:t};break;case exports.DateRanges.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case exports.DateRanges.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case exports.DateRanges.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case exports.DateRanges.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case exports.DateRanges.LAST_MONTH:{const e=s.startOfMonth(t.subtract({months:1}));n={start:e,end:s.endOfMonth(e)};break}case exports.DateRanges.LAST_12_MONTHS:{const e=s.startOfMonth(t.subtract({months:1}));n={start:s.startOfMonth(e).subtract({months:12}),end:s.endOfMonth(e)};break}case exports.DateRanges.WEEK_TO_DATE:n={start:s.startOfWeek(t,navigator.language),end:t};break;case exports.DateRanges.MONTH_TO_DATE:n={start:s.startOfMonth(t),end:t};break;case exports.DateRanges.YEAR_TO_DATE:n={start:s.startOfYear(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new s.CalendarDate(t.year,t.month,t.day),end:new s.CalendarDate(n.year,n.month,n.day)}})(n)},Kn=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:exports.DateRanges.TODAY},{label:"Yesterday",value:exports.DateRanges.YESTERDAY},{label:"Last 7 Days",value:exports.DateRanges.LAST_7_DAYS},{label:"Last 30 Days",value:exports.DateRanges.LAST_30_DAYS},{label:"Last 90 Days",value:exports.DateRanges.LAST_90_DAYS},{label:"Last Month",value:exports.DateRanges.LAST_MONTH},{label:"Last 12 Months",value:exports.DateRanges.LAST_12_MONTHS},{label:"Week to Date",value:exports.DateRanges.WEEK_TO_DATE},{label:"Month to Date",value:exports.DateRanges.MONTH_TO_DATE},{label:"Year to Date",value:exports.DateRanges.YEAR_TO_DATE}],Gn=exports.DateRanges.LAST_30_DAYS,Un=Xn(Gn),Jn=Kn.find((({value:e})=>e===Gn)),Qn=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:a}=t,[o,l]=[n,a].sort();return e.some((([e,t])=>o>=e&&o<=t||l>=e&&l<=t||o<=e&&l>=t))},ea=g.default.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${R.sizes.base};border-top:1px solid ${R.colors.neutral.grey.base};`;function ta(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function na(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${na(e.min,"max-content")}, ${na(e.max)})`;default:return t||"1fr"}}function aa({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:o,stripingMode:l}){const i=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 `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==a&&"none"!==a,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${o.map((e=>na(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?p:m}\n `}var oa;!function(e){e.ascending="ascending",e.descending="descending"}(oa||(oa={}));const la=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),ia=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),ra=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),da=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===oa.ascending?f.default.createElement(ia,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(ra,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(la,{size:n});function sa(t,n){const[a,o]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));o(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=v.default(l,50),t=new h.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}class ca extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const ua=({tableRef:t,columns:n,columnIds:a})=>{const o=e=>e.reduce(((e,t)=>(e[t.id]=t.width,e)),{}),[l,i]=e.useState(o(n));return e.useEffect((()=>{const e=o(n),t=Object.assign({},l);Object.keys(e).forEach((n=>{void 0===typeof l[n]&&(t[n]=e[n])})),i(t)}),[JSON.stringify(a)]),{setColumnWidth:({columnId:e,width:a})=>{const o=Object.assign({},l);n.forEach(((i,r)=>{const d=r===n.length-1,s=i.id===e?a:((e,n)=>{var a,o,i;return n?l[e.id]||e.width:l[e.id]||e.width||(null===(i=null===(o=null===(a=t.current)||void 0===a?void 0:a.querySelector(`th[data-columnid="${e.id}"]`))||void 0===o?void 0:o.getBoundingClientRect())||void 0===i?void 0:i.width)||void 0})(i,d);o[i.id]=s})),i(o),((e,t)=>{const n=new ca(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:t,columnWidths:o})},columnWidths:l}};function ma(e,t){const{columnWidths:n,setColumnWidth:a}=ua({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e))}),o=e.map((e=>Object.assign(Object.assign({},e),{width:n[e.id]||e.width}))).filter((e=>!0!==e.hidden)),l=o.filter((e=>"left"===e.pinned)),i=o.filter((e=>"right"===e.pinned)),r=o.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...l,...r,...i],pinnedLeft:l,pinnedRight:i,setColumnWidth:a}}function pa(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,a={left:0,x:0},o=t=>{if(!n)return;const o=t.clientX-a.x;n.scrollLeft=a.left-o,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function fa(t){const[n,a]=e.useState("start"),o=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=t.current;a(o<e?"none":0!==n?n+e>=o?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",o)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=v.default(o,50),n=new h.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const ga="56px",ha=g.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ga};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>ta(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};border-bottom:1px solid ${R.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function ba(e){var{selected:t,indeterminate:n,onChange:a,selectionMode:o}=e,l=K(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===o?f.default.createElement(ha,Object.assign({},l)):f.default.createElement(ha,Object.assign({},l),f.default.createElement(wn,{checked:t,indeterminate:n,onChange:a}))}const va=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>ta(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};color:${R.text.bodySmall.color};font-family:${R.text.bodySmall.fontFamily};font-size:${R.text.bodySmall.fontSize};font-style:${R.text.bodySmall.fontStyle};font-weight:${R.text.bodySmall.fontWeight};line-height:${R.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${R.colors.secondary.blue.base};background-color:${R.colors.neutral.grey.lightest};}`;function xa(e){var{selected:t,rowId:n,onChange:a,selectionMode:o,disabled:l}=e,i=K(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===o?f.default.createElement(va,Object.assign({},i),f.default.createElement(Cn,{value:n,checked:t,disabled:l,onChange:a})):f.default.createElement(va,Object.assign({},i),f.default.createElement(wn,{value:n,checked:t,disabled:l,onChange:a}))}const ya=[[],()=>{}];function wa({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const a=!!t,[o,l]=t||ya,i=()=>{o.length!==n.length?l(n):l([])};return{selectionEnabled:a,selectedRowIds:o,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,a)=>f.default.createElement(ba,Object.assign({},a,{selected:o.length===n.length,indeterminate:o.length>0&&o.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,a,o)=>f.default.createElement(xa,Object.assign({},n,{rowId:t.id,selected:o.selected,onChange:a.setSelected,selectionMode:e,disabled:o.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(o.includes(n))return;const e=[...o,n];l(e)}else{const e=o.findIndex((e=>e===n));if(e<0)return;const t=[...o];t.splice(e,1),l(t)}}}}const Ea=g.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${R.colors.neutral.ink.lightest};`,Ca=g.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${R.text.headingTable.color};font-family:${R.text.headingTable.fontFamily};font-size:${R.text.headingTable.fontSize};font-style:${R.text.headingTable.fontStyle};font-weight:${R.text.headingTable.fontWeight};line-height:${R.text.headingTable.lineHeight};`,$a=g.default(Ca).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 ${Ea}{background-color:${R.colors.neutral.grey.light};color:${R.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${R.colors.secondary.blue.light};}`,ka=g.default.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${R.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,Sa=({columnId:t,setColumnWidth:n})=>{const a=e.createRef(),o=e=>{const{minTranslate:t,dragDivider:n,dragInitX:a}=window.tableHeaders,o=Math.max(e.clientX-(a||0),t||0);n.parentElement.parentElement.classList.add("hideHeaderDetails"),n.style.transform=`translateX(${o}px)`},l=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:a}=n,o=null==a?void 0:a.getBoundingClientRect().width,l=a.querySelector(".headerContent").getBoundingClientRect().width,i=(e.clientX||0)-(t||0);return Math.max((o||0)+i,l+24)},i=e=>{window.removeEventListener("mouseup",i),window.removeEventListener("dragend",i),window.removeEventListener("mousemove",o),window.removeEventListener("drag",o),null==n||n({columnId:t,width:l({event:e})}),window.tableHeaders&&(window.tableHeaders.dragDivider.style.transform="translateX(0)",window.tableHeaders.dragDivider.parentElement.style.justifyContent="",window.tableHeaders.dragInitX=void 0,window.tableHeaders.minTranslate=void 0,window.tableHeaders.dragDivider.parentElement.parentElement.classList.remove("hideHeaderDetails"))},r=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:a.current},window.tableHeaders.minTranslate=(()=>{const{parentElement:e}=window.tableHeaders.dragDivider;return e.querySelector(".headerContent").getBoundingClientRect().width-e.getBoundingClientRect().width+24})(),window.addEventListener("mouseup",i),window.addEventListener("dragend",i),window.addEventListener("mousemove",o),window.addEventListener("drag",o))};return f.default.createElement(ka,{ref:a,className:"th-divider",onMouseDown:r,onDragStart:r})};function Na({column:e,sortState:t,onChangeSort:n,resizeableColumns:a,setColumnWidth:o,columnCount:l=1,columnI:i=0}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const r={key:e.id.toString(),id:`datatable-header-${e.id}`,"data-columnid":String(e.id),role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,r);const d=e.sortable?$a:Ca,s=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const a=function({sortState:e,columnId:t}){const n=e.columnId===t,a=e.direction===oa.ascending;let o=oa.ascending;return n&&a&&(o=oa.descending),{columnId:t,direction:o}}({sortState:t,columnId:e.id});n?n(a):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return f.default.createElement(ha,Object.assign({},r,{zIndex:3}),f.default.createElement(Tt,{text:e.tooltip},f.default.createElement(d,Object.assign({},s,{className:"headerContent"}),e.icon&&e.icon,e.title&&f.default.createElement("span",null,e.title),e.sortable&&f.default.createElement(Ea,null,f.default.createElement(da,{sortState:t,columnId:e.id,size:5})))),a&&i<l-1&&f.default.createElement(Sa,{columnId:e.id,setColumnWidth:o}))}const La=R.colors.neutral.grey.base,Ia=R.colors.neutral.grey.dark,za=g.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${R.radius.base};background:${La};background-image:linear-gradient(\n to right,\n ${La} 0%,\n ${Ia} 20%,\n ${La} 40%,\n ${La} 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 Da=g.default.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:${ga};background-color:white;`,Fa=g.default.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 ${R.colors.neutral.grey.base};& > *{flex:1;}`;function Ra({selectionColumn:t,intersectionTargetRef:n,containerRef:a,children:o}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=a.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return f.default.createElement(Da,{style:c},Na({column:t}),f.default.createElement(Fa,null,o))}const Ta=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Ma=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Aa=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Oa=g.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${R.sizes.lg};padding-bottom:${R.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${R.sizes.md};`,Ba=g.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${R.sizes.md};background-color:${R.colors.neutral.grey.light};border-radius:${R.radius.full};`,ja=g.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ha=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${R.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 `}`,Wa=g.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Pa=g.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${R.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Va=g.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,_a={full:`border-width: 1px; border-radius: ${R.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Za=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${R.colors.neutral.grey.dark};${({borderMode:e="full"})=>_a[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function qa({children:t,intersectionTargetRef:n,containerRef:a,cellWidths:o,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),u=()=>{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};c(n)},m=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&a.current&&u()}),[a.current,r]),e.useEffect((()=>{if(!r)return;if(!a.current)return;const e=v.default(u,33),t=new h.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,r]),e.useEffect((()=>{m()}),[r]),e.useEffect((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",m),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",m)}}),[a.current]),!r)return null;const p=Object.assign(Object.assign({},s),{height:ga,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${R.colors.neutral.grey.base}`}),g=l+o.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return f.default.createElement("div",{style:p,ref:i},f.default.createElement(Pa,{css:g},f.default.createElement("thead",null,t)))}const Ya=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:a})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==a?void 0:a.includes(e))||!1}),Xa={icon:f.default.createElement(ut,{width:48,height:48}),heading:"No results"},Ka=()=>{},Ga=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:o=Xa,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:u,selectionState:m,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b,resizeableColumns:v})=>{const x=e.useRef(null),y=e.useRef(null),w=e.useRef(null);pa(x);const E=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:k,setSelected:S}=wa({selectionMode:u,selectionState:m,enabledRowIds:E}),N={setSelected:S||Ka,setExpanded:p||Ka},L=[k,...a],I=C?L:a,z=sa(y,x),{visible:D,pinnedLeft:F,pinnedRight:R,setColumnWidth:T}=ma(I,y),M=z.length===D.length?D.map(((e,t)=>Number.isNaN(e.width||"")?z[t]:e.width)):z,{scrollPosition:A}=fa(x),B=aa({pinnedLeft:F,pinnedRight:R,cellWidths:M,scrollPosition:A,visible:D,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return f.default.createElement(Za,{borderMode:n},f.default.createElement(Wa,{ref:x},f.default.createElement(Pa,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Ha,{role:"row"},D.map(((e,t)=>Na({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},e.map((e=>f.default.createElement(Ha,{key:e.id},D.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return f.default.createElement(va,Object.assign({},n),f.default.createElement(za,null))}(e,t))))))))))}if(0===s.length)return f.default.createElement(Za,{borderMode:n},f.default.createElement(Wa,{ref:x},f.default.createElement(Pa,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Ha,{role:"row"},D.map(((e,t)=>Na({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},f.default.createElement(Oa,{columnCount:D.length},f.default.createElement(Ba,null,o.icon),f.default.createElement(rt,{spacing:"sm",alignX:"center"},f.default.createElement(O,{variant:"headingMedium"},o.heading),o.subheading&&f.default.createElement(O,{variant:"subheadingMedium"},o.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,a=Ya(e.id,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Ha,Object.assign({role:"row",key:e.id,accentColor:n,className:t},a),D.map((t=>function(e,t,n,a){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,o,n,a)}(e,t,N,a))))},H=(e,t)=>{var n,a;const o=null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row,i=Ya(t,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Ha,{role:"row",key:e.id,className:o},D.map((t=>function(e,t,n){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,a,n):f.default.createElement(va,Object.assign({},a))}(e,t,i))))},W=e=>{var t;const n=null==l?void 0:l.includes(e.id);return f.default.createElement("tbody",{role:"rowgroup",key:e.id},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},P=f.default.createElement(Ha,{role:"row"},D.map(((e,t)=>Na({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t})))),V=a.some((e=>!!e.renderFooter)),_=$.length>0&&!!t;return f.default.createElement(Za,{borderMode:n},_&&f.default.createElement(Ra,{selectionColumn:k,intersectionTargetRef:w,containerRef:x},t),f.default.createElement(Wa,{ref:x},b&&f.default.createElement(qa,{tableCss:B,intersectionTargetRef:w,containerRef:x,cellWidths:M},P),f.default.createElement("div",{ref:w,style:{height:0}}),f.default.createElement(Pa,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},P),(()=>{const e=!!l;return e&&"nested"===h?s.map(W):e?f.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[j(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):f.default.createElement("tbody",{role:"rowgroup"},s.map(j))})(),V&&f.default.createElement("tfoot",{role:"rowgroup"},f.default.createElement(Ha,{role:"row"},D.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):f.default.createElement(va,Object.assign({},t))}({column:e}))))))))};Ga.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ga.Cell=va,Ga.ColumnMenu=function({columns:t,columnGroups:n,setColumns:a}){const[o,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),u=(e,n)=>{const o=c[e].map((e=>e.id)),l=[...t];o.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),a(l)};return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&f.default.createElement(re,{anchorElement:o,onShouldClose:()=>r(!1)},f.default.createElement(je,{style:{width:600}},f.default.createElement(rt,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>f.default.createElement(rt,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Aa,null)}),f.default.createElement(rt,{spacing:"sm",style:{flex:1}},e.map((e=>f.default.createElement("div",{key:e.id},e.title)))),f.default.createElement(rt,{direction:"horizontal",spacing:"sm"},e[0].hidden?f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Ma,null),onClick:()=>u(t,!1),style:{color:R.colors.neutral.ink.lightest}}):f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Ta,null),onClick:()=>u(t,!0)})))))))))},Ga.SelectionCell=xa,Ga.SelectionHeader=ba,Ga.Header=ha,Ga.Truncate=Va,Ga.NoWrap=ja;const Ua=g.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${R.sizes.base};}`,Ja=g.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${R.sizes.xs};}`,Qa=g.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${R.sizes.base};}`,eo=g.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${R.sizes.xs};}`,to=g.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${R.text.bodyBold.fontFamily};font-size:${R.text.bodyBold.fontSize};font-weight:${R.text.bodyBold.fontWeight};line-height:${R.text.bodyBold.lineHeight};color:${R.text.bodyBold.color};`,no=g.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${R.text.body.fontFamily};font-size:${R.text.body.fontSize};font-weight:${R.text.body.fontWeight};line-height:${R.text.body.lineHeight};color:${R.text.body.color};`,{sizes:ao,colors:oo}=R,lo=g.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${ao.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${ao.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,io=g.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${ao.md};overflow-x:hidden;background-color:${oo.neutral.grey.lightest};`,ro=g.default.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 so;!function(e){e.base="base",e.sm="sm"}(so||(so={}));const co=({hasError:e,inputSize:t})=>n.css`&{--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 "}`,uo=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${R.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 `}} ${co} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,mo=g.default.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;${co}`,po=/^-?[0-9]*\.?[0-9]+$/,fo=Mn(e.forwardRef(((t,n)=>{var{id:a,className:o,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:u,pattern:m,placeholder:p,rows:g="3",size:h=so.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=K(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=e.useCallback((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(po).test(t)&&u(t)}),[u,v]),C=null!=a?a:G("textfield");return"text"===v&&s?f.default.createElement(mo,Object.assign({className:o,disabled:l,hasError:i,id:C,name:c,onChange:E,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):f.default.createElement(uo,Object.assign({className:o,disabled:l,hasError:i,id:C,inputSize:h,max:r,min:d,name:c,"aria-label":c,onChange:E,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));fo.displayName="TextField";const go=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,ho=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,bo=g.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${R.colors.neutral.ink.lightest};}`,vo=g.default($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${R.colors.neutral.ink.lightest};`;g.default(O).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`;const xo=(e,t)=>{t.includes(e.key)&&e.preventDefault()},yo=["-","+","E","e"],wo=e=>xo(e,yo),Eo=Mn((e=>{var{size:t=so.base,handleChangeHeight:n,handleChangeWidth:a,handleChangeLength:o,className:l,height:i,width:r,length:d,unit:s}=e,c=K(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return f.default.createElement(go,{className:l},f.default.createElement(ho,null,f.default.createElement(bo,Object.assign({onChange:o,size:t,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:wo},c)),f.default.createElement(Le,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(bo,Object.assign({onChange:a,size:t,name:"width",type:"number",placeholder:"W",value:r,min:"0",step:"any",onKeyDown:wo},c)),f.default.createElement(Le,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(ro,null,f.default.createElement(bo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:wo},c)),f.default.createElement(vo,{size:t},s))))}));Eo.displayName="DimensionsInput";const Co=g.default(y).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${C.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${C.neutral.grey.dark};border-radius:4px;svg{width:${z.base};height:${z.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,$o=g.default(O).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,ko=g.default($o).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,So=g.default(Ne).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,No=g.default(Le).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Lo=g.default(y).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Io=g.default(y).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 ${C.neutral.grey.base};svg{color:${({color:e})=>e};width:${z[5]};height:${z[5]};margin-right:10px;}`,zo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Do=g.default(y).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?z[e]:0};`,Fo=e=>f.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Ro=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,To=g.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Mo=g.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Ao=g.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Oo=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}),Bo={width:64,height:64},jo={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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({},Bo)),title:"No data found"},Ho={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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({},Bo)),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 Wo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Wo||(Wo={}));const{text:Po,sizes:Vo}=R,{blue:_o}=R.colors.secondary,{grey:Zo}=R.colors.neutral,{scrollbar:qo}=R.colors.system,Yo='\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',Xo=g.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Ko=g.default.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 ${Zo.dark};border-bottom:1px solid ${Zo.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: ${qo.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${qo.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:a})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Yo};\n\n ${a===Wo.middle||a===Wo.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 ${Yo};\n\n ${a===Wo.start||a===Wo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Go=g.default(Ko).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Zo.dark};border-radius:4px;`,Uo=g.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Jo=g.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Zo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;g.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Zo.lightest};padding:1.5rem 1rem;border-top:1px solid ${_o.base};}`;const Qo=g.default.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 `}`,el=g.default.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:${Po.bodySmall.fontFamily};font-size:${Po.bodySmall.fontSize};font-weight:${Po.bodySmall.fontWeight};color:${Po.bodySmall.color};line-height:${Vo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,tl=g.default(el).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Zo.dark};font-family:${Po.bodySmallBold.fontFamily};font-size:${Po.bodySmallBold.fontSize};font-weight:${Po.bodySmallBold.fontWeight};color:${Po.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Zo.light};}`,nl={left:"flex-start",center:"center",right:"flex-end"},al=g.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?nl[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,ol=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Jo}:nth-child(even) td {\n background-color: ${Zo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${tl}, & ${tl} span {\n white-space: nowrap;\n }\n `}`,ll=g.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${el}{border-top:1px solid ${Zo.dark};background-color:${Zo.lightest};padding-top:${Vo.base};padding-bottom:${Vo.base};line-height:2rem;}`,il=g.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,rl=g.default(ol).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,dl=g.default(y).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;`,sl=g.default(y).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${R.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,cl=g.default(O).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,ul=g.default(O).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,ml=({height:e,icon:t,title:n,subTitle:a})=>f.default.createElement(dl,{height:e},f.default.createElement(sl,null,t),f.default.createElement(cl,{variant:"headingLarge"},n),a&&f.default.createElement(ul,{variant:"subheadingMedium"},a)),pl=g.default.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:${R.sizes.base};border-radius:${R.radius.base};&:hover{cursor:pointer;background-color:${R.colors.secondary.blue.lightest};}`,fl=g.default(pl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${R.text.link.color};text-decoration:${R.text.link.textDecoration};`,gl=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:hl}=R.colors.neutral,bl=g.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,vl=g.default.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, ${hl.base} 8%, ${hl.dark} 15%, ${hl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,xl=({isLoading:e,style:t})=>f.default.createElement(bl,{style:t},f.default.createElement(vl,{isLoading:e})),yl=e=>{var{style:t}=e,n=K(e,["style"]);return f.default.createElement(el,Object.assign({},n),f.default.createElement(xl,{style:t}))};yl.defaultProps={style:{}};const wl=({renderHeader:t,tableRef:n,wrapperRef:a,isFixedLayout:o,wrapperStyle:l})=>{var i;const[r,d]=e.useState(null),{isSticky:s}=((t,n)=>{const[a,o]=e.useState(!1),l=e.useCallback((({top:e,bottom:t})=>{let l=a;l=e<=(n||0)&&t>0?!a||l:!a&&l,l!==a&&o(l)}),[a,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&l(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[l,t]),{isSticky:a}})(n,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),c=((null===(i=a.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;u.useScroll(a);const m=e=>{var t;const n=(null===(t=a.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return m(),s?f.default.createElement(il,{ref:e=>{d(e),m(e)},style:Object.assign({width:c},l)},f.default.createElement(rl,{style:{tableLayout:o?"fixed":"auto"}},t())):null},El=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")},Cl=e=>{var{style:t,width:n,isLoading:a}=e,o=K(e,["style","width","isLoading"]);return f.default.createElement(tl,Object.assign({},o,{style:{width:n}}),f.default.createElement(xl,{style:t,isLoading:a}))},$l=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),kl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Sl=()=>f.default.createElement(la,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),Nl=()=>f.default.createElement($l,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),Ll=()=>f.default.createElement(kl,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),Il=({borderless:t=!1,striped:n=!0,noWrap:a=!1,showScrollbar:o=!1,headers:l,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:u,renderFooterLoadingRow:m,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:E=!1,isLoading:C=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:L=375,startFixedColumnsNumber:I,endFixedColumnsNumber:z})=>{const D=t?Ko:Go,F=!!i&&0===i.length,R=Boolean(I||z),T=!I&&!z,M=e.useRef(null),A=e.useRef(null),[O,B]=e.useState(Wo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!A.current||T)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),o=n+a;t===a?B(Wo.none):0===n?B(Wo.start):n>0&&o<t?B(Wo.middle):o===t&&B(Wo.end)};return A.current&&(t=A.current,n(),null===(e=A.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[M,T]);const j=e.useCallback((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),[]),H=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!l||C)return null;const e=[],t=[];let n=0,a=0;if(I){g&&(e.push(H(1,n,"left")),n+=58);for(let t=0;t<I;t+=1){const a=j(l[t].width);a&&(e.push(H(g?t+2:t+1,n,"left")),n+=a)}}if(z)for(let e=0;e<z;e+=1){const n=j(l.slice(-e-1)[0].width);n&&(t.push(H(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[C,j,z,H,l,I,g]),P=e.useMemo((()=>W()),[W]),V=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],a=n.findIndex((e=>e===t.id));n.splice(a,1),v(n)}),[v,g,b]),_=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),Z=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),q=e.useCallback(((e,t)=>{let n="",a=()=>{},o=f.default.createElement(Sl,null);const{tooltip:l,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",a=()=>Z(c),x===c&&(o="ascending"===y?f.default.createElement(Nl,null):f.default.createElement(Ll,null)));const u=f.default.createElement(al,{align:i},r&&r,d&&f.default.createElement("span",null,d),s&&o);return f.default.createElement(tl,{key:c,id:`data-table-header-${c}`,className:n,onClick:a,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},l?f.default.createElement(Tt,{text:l},f.default.createElement(Xo,null,u)):u)}),[Z,x,y]),Y=e.useCallback(((e,t)=>f.default.createElement(Cl,{key:e.id,width:e.width||"auto",style:t,isLoading:C})),[C]),X=e.useCallback((()=>{if(!l)return null;const e=W(),t=e?e[0].style:{};return f.default.createElement(Uo,null,f.default.createElement(Qo,null,g&&f.default.createElement(tl,{style:Object.assign({width:58},t)},"multiple"===b&&f.default.createElement(wn,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:_,disabled:h&&h.length>0||C||F,ariaLabel:"Select all"})),l.map(((t,n)=>{const a=g?n+2:n+1,o=n-l.length,i=null==e?void 0:e.find((e=>e.index===a||e.index===o));return t.skeleton&&(C||E||F)?Y(t,t.skeletonStyle||{}):q(t,(null==i?void 0:i.style)||{})}))))}),[W,_,l,F,E,C,Y,q,i.length,g,b,h]),K=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>V(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?f.default.createElement(Cn,Object.assign({},n)):f.default.createElement(wn,Object.assign({},n))}),[V,b,h]),G=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?f.default.createElement(yl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):f.default.createElement(yl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),U=e.useCallback(((e,t)=>{var n,a;if(!d)return null;const o=d(e);if(!o)return null;const l=(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row)||"";return f.default.createElement(Qo,{key:e.id,className:`${l} ${t?"hidden":""}`},g&&f.default.createElement(el,null),o)}),[d,g]),J=e.useCallback((e=>{if(!l)return f.default.createElement(yl,null);const t=l.map((t=>f.default.createElement(yl,{key:`${e}-${t.id}`})));return g&&t.unshift(G(e)),t}),[l,G,g]),Q=()=>u?C&&!m||!C&&F?null:f.default.createElement(ll,{fixedColumnsStyle:El(P||[])},f.default.createElement(Qo,null,g&&!p&&f.default.createElement(el,null),!C&&u(i),C&&m&&m())):null;let ee=I;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,a;const{data:o}=e,l=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==o?void 0:o.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(a=null===(n=null==o?void 0:o.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==a?a:"",u=l?`selected ${c}`:`${c}`;return f.default.createElement(Jo,{key:e.id,className:d,fixedColumnsStyle:El(P||[])},f.default.createElement(Qo,{key:e.id,className:u,accentColor:e.accentColor},g&&f.default.createElement(el,null,K(l,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>U(e,!i))))}))),[i,s,P,U,r,K,g]);if(C){const e=[];for(let t=0;t<$;t+=1)e.push(f.default.createElement(Jo,{key:`loading-row-${t}`,fixedColumnsStyle:El(P||[])},f.default.createElement(Qo,null,c?f.default.createElement(f.default.Fragment,null,g&&G(),c()):J(t))));return f.default.createElement(D,{ref:A,scrollDisabled:!0,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&l&&f.default.createElement(wl,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(ol,{ref:M,striped:n,noWrap:a,tableLoading:!0,isFixedLayout:R},X(),e,Q()))}if(F||E){let e=jo;return N?e=N:E&&(e=Ho),f.default.createElement(D,{scrollDisabled:!0},f.default.createElement(ol,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),Q()),f.default.createElement(ml,Object.assign({height:L},e)))}return f.default.createElement(D,{scrollDisabled:!1,ref:A,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:o},k&&l&&f.default.createElement(wl,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(ol,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),te,Q()))};Il.Cell=el,Il.ClickableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(el,Object.assign({},a),f.default.createElement(fl,{onClick:t},n))},Il.EditableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(el,Object.assign({},a),f.default.createElement(pl,{onClick:t},f.default.createElement(gl,null,n)))},Il.SkeletonCell=yl,Il.SkeletonContent=xl;const zl=g.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Dl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Fl="Log in with Amazon",Rl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Tl=g.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${R.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${je.Footer} {\n box-shadow: 0px 10px 15px 0px ${R.colors.neutral.ink.dark};\n }\n `}`,Ml=e=>!!e.footerSlot,Al={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ol={[$.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[$.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[$.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Bl={xs:$.mobile,sm:$.mobile,base:$.tablet,lg:$.lgTablet},{breakpoints:jl}=R,Hl=g.default(t.motion.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:${R.sizes.sm};box-shadow:${R.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${je.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Al[e]};`} ${Tl}{padding-bottom:${R.sizes.md};}${je.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${jl.mobile} + 1px))and (max-width: ${jl.tablet}){max-width:${({variant:e})=>Ol[jl.tablet][e]};}@media (min-width: ${jl.tablet})and (max-width: ${jl.lgTablet}){max-width:${({variant:e})=>Ol[jl.lgTablet][e]};}@media (min-width: ${jl.lgTablet})and (max-width: ${jl.desktop}){max-width:${({variant:e})=>Ol[jl.desktop][e]};}@media (min-width: ${jl.desktop}){max-width:${({variant:e})=>Ol[jl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Bl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${je.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${ne(R.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Wl=f.default.forwardRef(((e,t)=>{var n=K(e,[]);return f.default.createElement(Hl,Object.assign({ref:t},n))})),{sizes:Pl,text:Vl,shadows:_l}=R,{grey:Zl}=R.colors.neutral,ql=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Pl.base} ${Pl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&_l[e]};`,Yl=g.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Vl.headingXL.fontFamily};font-size:${Vl.headingXL.fontSize};font-weight:${Vl.headingXL.fontWeight};margin:unset;line-height:1;`,Xl=g.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Vl.subheadingLarge.fontFamily};font-weight:${Vl.subheadingLarge.fontWeight};font-size:${Vl.subheadingLarge.fontSize};line-height:${Vl.subheadingLarge.lineHeight};`,Kl=g.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${R.radius.base};border:${Pl.line} solid ${Zl.base};object-fit:cover;`,Gl=g.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Ul=g.default($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${R.text.link.fontFamily};font-size:${R.text.link.fontSize};font-weight:${R.text.link.fontWeight};line-height:${R.text.link.lineHeight};color:${R.text.link.color};&:hover{text-decoration:${R.text.link.textDecoration};}& > * + *{margin-left:${R.sizes.xs};}`,Jl=g.default.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:${Pl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Ql=g.default(rt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${R.sizes.lg};height:30px;background-color:${R.colors.neutral.grey.light};border:1px solid ${R.colors.neutral.grey.base};border-radius:${R.sizes.xs};`,ei=g.default($e).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${R.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,ti=g.default(fo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,ni=({count:e})=>f.default.createElement(f.default.Fragment,null,f.default.createElement("div",null,f.default.createElement(O,{variant:"bodySmall","aria-hidden":!0},"/")),f.default.createElement(Ql,{alignX:"center",alignY:"center","aria-hidden":!0},f.default.createElement(O,{variant:"bodySmall"},e))),ai=({currentPage:t,totalPagesCount:n,handleChangePage:a})=>{const[o,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(o||l(`${t}`),o===`${t}`)return;const e=parseInt(o,10);i(e)&&a(e)};return{pageInputValue:o,handleIncrement:()=>{i(t+1)&&a(t+1)},handleDecrement:()=>{i(t-1)&&a(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},oi=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),li=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),ii=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ri=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,di=g.default(Ct).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,si=g.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${C.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;}`,ci=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ui=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${C.secondary.blue.base};background:${C.neutral.grey.lightest};}`,mi=({item:t,handleRangeListChange:n})=>{const a=e.useCallback((()=>n(t)),[n,t]);return f.default.createElement(ci,{onClick:a},f.default.createElement(ui,{variant:"bodySmall"},t.label))},pi=t=>{const{handleRangeListChange:n,paginationRange:a=ii}=t;return f.default.createElement(f.default.Fragment,null,a.map((t=>f.default.createElement(e.Fragment,{key:t.label},f.default.createElement(mi,{item:t,handleRangeListChange:n})))))};class fi extends e.Component{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=ii[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=ii,reversedDropdown:n}=this.props,{shouldShowDropdown:a,dropdownValue:o}=this.state;return f.default.createElement(ri,{className:e},f.default.createElement(di,{cta:f.default.createElement(si,{onClick:this.toggleShouldShow},f.default.createElement(O,{variant:"bodySmall"},o.label),f.default.createElement(Ee,{color:R.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:n},f.default.createElement(pi,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const gi=g.default.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;}`,hi=g.default.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;}`,bi=({onIncrement:e,onDecrement:t,disabled:n=!1,size:a})=>f.default.createElement(gi,{size:a},f.default.createElement(hi,{type:"button",onClick:e,disabled:n},f.default.createElement(X,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base})),f.default.createElement(hi,{type:"button",onClick:t,disabled:n},f.default.createElement(Ne,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base}))),vi=g.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${R.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${R.colors.neutral.ink.lightest};}`,xi=g.default(y).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${R.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?R.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;}}`,yi=g.default(O).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,wi=g.default(ro).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 ${R.colors.secondary.red.light};\n\n > * {\n border-top-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${R.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${R.colors.secondary.red.base};\n border-right-color: ${R.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${R.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}}`;const Ei=Mn((e=>{var{className:t="",hasError:n,currency:a,disabled:o=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=so.base}=e,c=K(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return f.default.createElement(wi,{className:t,hasError:n},f.default.createElement(xi,{disabled:o,size:s},f.default.createElement(yi,{variant:"hintText"},a)),f.default.createElement(vi,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const a=parseFloat(n.replace(",",".")).toFixed(2);i(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(l),"ArrowDown"===t&&m(l)},disabled:o,size:s},c)),f.default.createElement(bi,{onIncrement:()=>u(),onDecrement:()=>m(),disabled:o,size:s}))}));Ei.displayName="PriceInput";const Ci=g.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,$i=g.default(fo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,ki=g.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Si=g.default(y).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 & ${$i} {\n ${t}\n }\n\n & ${ki} {\n ${n}\n }\n `}}`,Ni=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Li=R.colors.neutral.grey.lightest,Ii=R.colors.neutral.grey.dark,zi=R.colors.secondary.blue.dark,Di=g.default(y).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${Li};border-color:${Ii};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${zi};border-color:${zi};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${R.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Fi=g.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};font-size:${R.text.bodySmall.fontSize};line-height:${R.text.bodySmall.lineHeight};font-weight:${R.text.bodySmall.fontWeight};text-decoration:${R.text.bodySmall.textDecoration};letter-spacing:${R.text.bodySmall.letterSpacing};`,Ri=g.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${R.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};`,Ti={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Mi={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:Ai}=C.secondary,{grey:Oi}=C.neutral,Bi=g.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,ji=g.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Ai.lightest};}`,Hi=g.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Wi=g.default.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:${F.bodySmall.fontFamily};font-size:${F.bodySmall.fontSize};font-weight:${F.bodySmall.fontWeight};color:${F.bodySmall.color};line-height:${z.base};& > *{vertical-align:middle;}`,Pi=g.default(Wi).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Oi.dark};font-family:${F.bodySmallBold.fontFamily};font-size:${F.bodySmallBold.fontSize};font-weight:${F.bodySmallBold.fontWeight};color:${F.bodySmallBold.color};`,Vi=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${ji} tr:nth-child(even) td {\n background-color: ${Oi.lightest};\n }\n `}`,_i=({striped:e=!0,className:t,children:n})=>f.default.createElement(Vi,{striped:e,className:t},n);_i.Header=Bi,_i.Body=ji,_i.Row=Hi,_i.HeaderCell=Pi,_i.Cell=Wi;const Zi=g.default(y).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Zi.displayName="Skeleton";const qi=g.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Yi=g.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${R.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Xi=g.default.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 ${R.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 ${R.colors.secondary.blue.light};}`,Ki=g.default(Yi).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${R.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Gi=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}),Ui=g.default(y).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:C.neutral.ink.base};\n background-color: ${null!=e?e:C.neutral.grey.base};\n `}`,Ji=g.default(rt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${R.layers.tooltip};`,Qi=g.default(rt).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${R.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${R.shadows.lg};border-radius:${R.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;}`,er=g.default(y).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${R.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${z.md};height:${z.md};}`,tr=g.default(rt).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,nr=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,ar={info:{accentColor:C.brand.blue.base,icon:f.default.createElement(ut,null)},success:{accentColor:C.secondary.green.base,icon:f.default.createElement(mt,null)},error:{accentColor:C.secondary.red.base,icon:f.default.createElement(st,null)},merge:{accentColor:C.secondary.purple.base,icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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)}},or=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),lr=({className:e,e2eClassName:t,type:n,iconSlot:a,text:o,last:l,minWidth:i,cta:r,onClose:d})=>{const s=or(e),c=or(t);return f.default.createElement(Qi,{className:ee([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},f.default.createElement(er,{color:ar[n].accentColor,className:ee([s.icon,c.icon])},null!=a?a:ar[n].icon),f.default.createElement(tr,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(nr,{variant:"body"},o),r),f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,{color:"white"}),onClick:d,"aria-label":"Close"}))},ir=g.default.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:${R.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",a="24px",o="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",o="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${a};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\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;}`,rr=g.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${z.md};border-radius:${k.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${C.neutral.ink.lightest};background-color:${C.neutral.grey.lightest};:hover{border:2px dashed ${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};}:active{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}:focus-within{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${C.secondary.red.base};:hover{border:2px dashed ${C.secondary.red.base};background-color:${C.secondary.red.lightest};}:active{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}:focus-within{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${C.neutral.grey.light};border-color:${C.neutral.ink.lightest};color:${C.neutral.ink.light};}`;var dr,sr,cr;exports.AcceptedFileTypes=void 0,(dr=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",dr.JPEG=".jpeg",dr.JPG=".jpg",dr.GIF=".gif",dr.PNG=".png",exports.FileSizeUnit=void 0,(sr=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",sr.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(cr||(cr={}));const ur=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},f.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),f.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),mr=()=>f.default.createElement(rt,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},f.default.createElement(ur,null),f.default.createElement(O,{variant:"subheadingSmall",style:{paddingTop:z.sm}},"Browse files or drag them here")),pr=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?f.default.createElement(rt,{alignX:"start",spacing:"xs"},e&&f.default.createElement(O,{variant:"errorSmall"},"Invalid format (",e,")"),t&&f.default.createElement(O,{variant:"errorSmall"},"File is too big (",t,")")):null,fr=g.default(O).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,gr=g.default(rt).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${C.neutral.ink.lightest};border-radius:${k.base};padding:${z.xs};${O}{padding-left:${z.xs};}`,hr=({file:e,resetSelection:t,disabled:n})=>e?f.default.createElement(gr,{alignX:"between",direction:"horizontal",alignY:"center"},f.default.createElement(fr,{variant:"body"},null==e?void 0:e.name),f.default.createElement($e,{size:"sm",variant:"flat",onClick:t,icon:f.default.createElement(Le,null),"aria-label":"Remove file",disabled:n})):null,br=e.forwardRef(((t,n)=>{var{id:a,name:o,maxBytes:l=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:r,label:d="Upload file",required:s,disabled:c}=t,u=K(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const m=e.useRef(null);e.useImperativeHandle(n,(()=>m.current),[]);const[p,g]=e.useState(),[h,b]=e.useState(cr.VALID),v=h===cr.INVALID_FORMAT||h===cr.INVALID_FORMAT_AND_SIZE,x=h===cr.INVALID_SIZE||h===cr.INVALID_FORMAT_AND_SIZE,y=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${a}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:l,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const o=a.length>1,l=t===a.length-1&&o,i=t===a.length-2&&o;switch(l&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!l&&a.length>2&&(n+=", ")})),n})({fileTypes:r}),E=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const o=a.length-1===n&&a.length>1;t+=o?`${e}`:`${e}, `})),t.trim()})({fileTypes:r}),C=()=>{var e;(null===(e=m.current)||void 0===e?void 0:e.value)&&(m.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let a=cr.VALID;t&&!e?a=cr.INVALID_FORMAT:!t&&e?a=cr.INVALID_SIZE:t&&e&&(a=cr.INVALID_FORMAT_AND_SIZE),null===(n=m.current)||void 0===n||n.setCustomValidity(a),b(a)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>l,[,o]=t.type.split("/"),i=!r.find((e=>e.substring(1)===o));n||i?C():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:a}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[r,a,l]),S=e.useCallback((()=>{C(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),N=e.useCallback((()=>{var e;const t=null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==m?void 0:m.current;return null==e||e.addEventListener("change",N),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",N),null==e||e.removeEventListener("cancel",S)}}),[N,S]),f.default.createElement(Rn,{spacing:"sm",alignX:"stretch"},f.default.createElement(zn,{htmlFor:a},d,f.default.createElement(rt,{spacing:3,alignX:"stretch",style:{paddingTop:z.sm}},f.default.createElement(Dn,null,f.default.createElement("div",null,w),f.default.createElement("div",null,y)),f.default.createElement(rr,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.blur()}},f.default.createElement(mr,null),f.default.createElement("input",Object.assign({ref:m,id:a,type:"file",accept:E,name:o,required:s,disabled:c},u))))),f.default.createElement(rt,{alignX:"stretch",spacing:"sm"},f.default.createElement(hr,{file:p,resetSelection:S,disabled:c}),f.default.createElement(pr,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:x?y:void 0})))})),vr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",xr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${vr} display:${e=>e.shouldShow?"initial":"none"};z-index:${R.layers.modal};`,yr=g.default(y).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${vr} background-color:rgba(55,66,77,0.5);`,wr=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Er=({usePortal:e,children:t})=>f.default.createElement(f.default.Fragment,null,e?f.default.createElement(U,null,t):t),Cr=({className:e,children:t=null,shouldShow:n=!1,usePortal:a=!0})=>f.default.createElement(Er,{usePortal:a},f.default.createElement(xr,{className:ee([`${e}-container`,e]),shouldShow:n},f.default.createElement(yr,null),f.default.createElement(x.default,{isActive:n},f.default.createElement(wr,{className:ee([`${e}-wrap`,e])},t)))),$r=g.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,kr=g.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Sr=g.default($e).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Nr;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Nr||(Nr={}));const Lr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Ir=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,zr=g.default(y).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 ${O} {\n color: ${null!=t?t:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Dr=g.default(O).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 & > ${Ir} {\n color: #fff;\n }\n `}`,Fr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Rr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,Tr=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Mr=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});var Ar;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Ar||(Ar={}));const Or=e=>f.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),f.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Br=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,jr=g.default(Or).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Hr=g.default(Le).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Wr=g.default(O).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Br} {\n color: ${C.neutral.grey.lightest};\n }\n `}`,Pr=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${R.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${C.neutral.grey.base};\n & > ${Wr} {\n background-color: ${C.neutral.grey.base};\n & > ${Br} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${jr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${Hr} {\n color: ${C.neutral.ink.dark};\n }\n }\n\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${jr} {\n color: ${t.dark};\n }\n & > ${Hr} {\n color: ${t.dark};\n }\n\n & > ${O} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Vr=g.default(ve).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${R.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Pr} {\n background-color: ${C.neutral.grey.base};\n & > ${Wr} {\n background-color: ${C.neutral.grey.base};\n & > ${Br} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${jr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${Hr} {\n color: ${C.neutral.ink.dark};\n }\n }\n `}`,_r={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Zr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,qr=f.default.forwardRef(((e,t)=>{var{id:n,iconSlot:a,name:o,type:l,className:i,colourPalette:r=C.secondary.blue,customTextColour:d,count:s,active:c=!1,onClick:u,subAction:m,ariaContext:p}=e,g=K(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,x,y]=tt(),w=c&&m?m:u,E=l===Ar.draft,$=l===Ar.saved;return f.default.createElement(Vr,Object.assign({className:ee([null==h?void 0:h.container]),onClick:()=>w(n),role:"tab","aria-selected":c,"aria-label":`${c&&E?"Delete":c&&$?"Edit":""} ${o} view ${s?`with ${s} ${p}`:""}`,customTextColour:d,ref:t},g),f.default.createElement(Pr,{active:c,onMouseEnter:x,onMouseLeave:y,colourPalette:r,customTextColour:d},a&&f.default.createElement(Zr,null,a),f.default.createElement(O,{variant:"bodyBold"},o),null!=s&&f.default.createElement(Wr,{"data-testid":"countContainer",active:c||v,colourPalette:r,customTextColour:d},f.default.createElement(Br,{variant:"subheadingSmall"},s)),E&&f.default.createElement(Hr,Object.assign({},_r,{"aria-label":"delete icon"})),$&&c&&f.default.createElement(jr,Object.assign({},_r,{"aria-label":"edit icon"}))))})),Yr=g.default(rt).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Xr=g.default(rt).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${C.neutral.grey.lightest};`,Kr=g.default(an).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${C.neutral.ink.base};`,Gr=g.default(Yt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${C.neutral.ink.base};`,Ur=g.default(Or).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${C.neutral.ink.base};`,Jr=g.default($e).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${C.neutral.grey.lightest};}`,Qr=g.default($e).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Kr}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,ed=g.default($e).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Gr}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,td=g.default(ro).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,nd=(t,n)=>{var a;const[o,l]=e.useState(!0),[i,r]=e.useState(!1),[d,s]=e.useState([]),c=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.querySelector("[aria-selected = true]"),m=u.usePrevious(c),p=e.useCallback((()=>{var e,n,a,o,i,d,s,c;(null===(e=t.current)||void 0===e?void 0:e.scrollLeft)>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(n=document.getElementById("right-arrow"))||void 0===n||n.focus()),l(!0));const u=(null!==(o=null===(a=t.current)||void 0===a?void 0:a.scrollWidth)&&void 0!==o?o:0)-(null!==(d=null===(i=t.current)||void 0===i?void 0:i.clientWidth)&&void 0!==d?d:0);(null===(s=t.current)||void 0===s?void 0:s.scrollLeft)>=u-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(c=document.getElementById("left-arrow"))||void 0===c||c.focus()),r(!0)):r(!1)}),[t]),f=e.useCallback((()=>{t.current&&(t.current.scrollWidth-t.current.getBoundingClientRect().width<5?r(!0):r(!1))}),[t]),g=e.useCallback((()=>{const e=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(d,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]),h=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(d,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]);return e.useEffect((()=>{var e,a,o,l,i,r,u;if(null==t?void 0:t.current){if((null===(e=t.current.children)||void 0===e?void 0:e.length)&&(null===(a=t.current.children)||void 0===a?void 0:a.length)!==d.length&&d.length>0&&d.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),s([...d,d[d.length-1]+(null!==(l=null===(o=t.current.children[d.length-1])||void 0===o?void 0:o.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(i=t.current.children)||void 0===i?void 0:i.length)&&0===d.length&&s((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c!==m&&null!==c&&(null===(r=t.current.children)||void 0===r?void 0:r.length)===d.length){const e=Array.from(t.current.children).indexOf(c);t.current.scrollTo({left:d[e],top:0,behavior:"smooth"})}return f(),window.addEventListener("resize",f),null===(u=t.current)||void 0===u||u.addEventListener("scroll",p),()=>{window.removeEventListener("resize",f)}}}),[t,n,f,p,d,c,m]),{rightDisabled:i,leftDisabled:o,toNextScrollPosition:g,toPrevScrollPosition:h}},ad=f.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:o},l)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=nd(i,t);return f.default.createElement(Xr,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(Yr,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),f.default.createElement(td,null,(!d||!r)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(Qr,{id:"left-arrow",icon:f.default.createElement(Kr,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),f.default.createElement(ed,{id:"right-arrow",icon:f.default.createElement(Gr,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),f.default.createElement(Jr,{icon:f.default.createElement(Ur,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":o,"aria-haspopup":a?"dialog":void 0,ref:l})))})),od=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,ld=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,id=g.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,rd=g.default($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${R.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${R.colors.secondary.red.base};\n `};`,dd=e=>xo(e,yo),sd=Mn((e=>{var{size:t=so.base,hasError:n,className:a}=e,o=K(e,["size","hasError","className"]);return f.default.createElement(od,{className:a},f.default.createElement(ld,null,"g"===o.weightUnit&&f.default.createElement(ro,null,f.default.createElement(id,Object.assign({size:t,onChange:o.handleChangeGram,name:"gram",type:"number",value:o.gram,hasError:n,min:"0",step:"any",onKeyDown:dd},o)),f.default.createElement(rd,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(o)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(ro,null,f.default.createElement(id,Object.assign({size:t,onChange:o.handleChangePound,name:"pound",type:"number",value:o.pound,hasError:n,step:"any",min:"0",onKeyDown:dd},o)),f.default.createElement(rd,{hasError:n,size:t},"lb")),f.default.createElement(ro,null,f.default.createElement(id,Object.assign({size:t,onChange:o.handleChangeOunce,name:"ounce",type:"number",value:o.ounce,hasError:n,min:"0",step:"any",onKeyDown:dd},o)),f.default.createElement(rd,{hasError:n,size:t},"oz")))))}));sd.displayName="WeightInput",sd.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:a,label:o,iconSlot:l,glyphColor:i=C.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s,variant:c="default",summaryTextVariant:u="body"})=>{const[m,p]=e.useState(!!s),g=()=>p(!m),h={initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}};return"unstyled"===c?f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(Y,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(O,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(V,{variant:"hintText"},d)),m&&f.default.createElement(q,Object.assign({},h),a)):f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(W,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(O,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(V,{variant:"hintText"},d)),m&&f.default.createElement(_,Object.assign({},h),a))},exports.ActionList=Xe,exports.ActionMenu=({id:t,menuLabel:n,ctaProps:a,actions:o})=>{var l;const[i,d]=e.useState(!1),s=at({id:t,prefix:"action-menu"});return f.default.createElement(Ue,{id:s,style:{padding:"0"},shouldShow:i,setShouldShow:d,ctaProps:Object.assign({size:"sm"},a),useAnchorWidth:!0,onKeyDown:({code:e})=>{"Escape"!==e&&"Tab"!==e||d(!1)}},f.default.createElement(r.Menu,{onClose:()=>d(!1),"aria-label":n||(null===(l=a.children)||void 0===l?void 0:l.toString())},null==o?void 0:o.map((e=>{var t;return f.default.createElement(lt,Object.assign({},e,{key:e.id||(null===(t=e.children)||void 0===t?void 0:t.toString())}))}))))},exports.Alert=e=>{var{size:t="base",variant:n="default",colours:a,rightActions:o,title:l,titleSlot:i,message:r,children:d,iconSlot:s,onClickClose:c}=e,u=K(e,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const m=null!=a?a:ht[n],p=s||gt[n],g="xs"===t;return f.default.createElement(dt,Object.assign({colours:m,direction:"horizontal",alignX:"between",spacing:"0"},u),f.default.createElement(rt,{direction:"horizontal",alignY:g?"center":"start",style:{margin:pt[t],gap:pt[t]},spacing:0},f.default.createElement(p,{"aria-hidden":!0,style:{minWidth:ft[t],minHeight:ft[t],width:ft[t],height:ft[t]},color:m.primary}),f.default.createElement(rt,{direction:"vertical",spacing:g?0:"xs"},i||f.default.createElement(O,{variant:g?"bodySmallBold":"bodyBold",style:"base"===t?{lineHeight:"24px"}:{}},l),d||f.default.createElement(O,{variant:g?"bodySmall":"body"},r))),f.default.createElement(rt,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:g?void 0:R.sizes[3],gap:g?void 0:pt[t],alignItems:"center"}},o&&f.default.createElement(rt,{alignY:"center",spacing:0,style:{gap:pt[t]}},o.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button",size:"sm"},n),t)}))),c&&f.default.createElement(rt,{alignY:g?"center":"start",style:{height:"100%",padding:g?R.sizes.xs:void 0}},f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,null),onClick:c,"aria-label":"Close",size:"sm"}))))},exports.Anchor=e=>{var{children:t,href:n,rel:a,allowedHostnames:o=ae}=e,l=K(e,["children","href","rel","allowedHostnames"]);const i=oe(n,o),r=a||(i?"noopener noreferrer":void 0);return f.default.createElement(bt,Object.assign({href:n,rel:r},l),t)},exports.AnimatedDropdown=Ct,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=R.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const o=t.toUpperCase().match(/\b(\w)/g);return f.default.createElement($t,{width:e,bgColor:n,textColor:a,className:"avatar"},null==o?void 0:o.slice(0,2).map(((e,t)=>f.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:a,className:o,e2eClassName:l,children:i})=>{const r=At[e];return f.default.createElement(Tt,{text:a},f.default.createElement(r,{className:ee([o,l]),hideBorder:t},n&&n,i&&f.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:a,onClose:o,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=K(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=_t[t];return f.default.createElement(Ot,Object.assign({accentColor:c,className:l,backgroundColor:d},s),f.default.createElement(Bt,null,a&&f.default.createElement(Ht,{style:{marginRight:z.md},accentColor:c},a),r?f.default.createElement(Wt,null,r):f.default.createElement(f.default.Fragment,null,f.default.createElement(Pt,null,i||f.default.createElement(Vt,{variant:"headingSmall"},n)),f.default.createElement(jt,null,o&&f.default.createElement($e,{variant:"flat","aria-label":"Close",icon:f.default.createElement(Le,null),onClick:o})))))},exports.BaseContainer=y,exports.Breadcrumbs=({items:e,Separator:t=f.default.createElement(Kt,null),LinkComponent:n=Gt})=>f.default.createElement(Zt,{className:"breadcrumbs"},e.map(((a,o)=>f.default.createElement(Xt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:o!==e.length-1?n:Ut},e.length!==o+1&&t)))),exports.Button=$e,exports.Card=je,exports.CardHeader=Ie,exports.Checkbox=wn,exports.Choice=hn,exports.ChoiceList=Sn,exports.CopyToClipboard=({className:t,text:n,onCopy:a})=>{const[o,l]=f.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),a&&a(),l(!0),setTimeout((()=>l(!1)),2500)}),[a,n]);return f.default.createElement(Tt,{text:o?"Copied!":"Copy to clipboard"},f.default.createElement(In,{variant:"flat",size:"sm",className:t,"aria-label":`${o?"Copied":"Copy"} "${n}" to clipboard`,icon:o?f.default.createElement(mt,Object.assign({color:C.secondary.green.base},Ln)):f.default.createElement(Nn,Object.assign({color:C.secondary.blue.base},Ln)),onClick:i}))},exports.DATE_RANGE_OPTIONS=Kn,exports.DEFAULT_PRESET=Jn,exports.DEFAULT_RANGE=Un,exports.DataTable=Ga,exports.DateRangeInput=On,exports.DateRangePicker=t=>{var{className:n,style:a,isDisabled:o,isMultiMonth:l=!1,showDatePresets:i=!0,onReset:r,disabledRanges:d,selectedPreset:s,setSelectedPreset:c,selectedRange:u,setSelectedRange:m,"aria-describedby":p,"aria-label":g}=t,h=K(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const b=e.useCallback((e=>t=>{const n={start:"start"===e?t:null==u?void 0:u.start,end:"end"===e?t:null==u?void 0:u.end};m(n)}),[null==u?void 0:u.end,null==u?void 0:u.start,m]),v=e.useMemo((()=>Qn({disabledRanges:d,selectedRange:u})),[d,u]),x=e.useMemo((()=>u?(e=>Kn.reduce(((t,n)=>{if(n.hidden||t)return t;const a=Xn(n.value);if(!a)return t;const{start:o,end:l}=a;return 0===e.start.compare(o)&&0===e.end.compare(l)?n:t}),void 0))(u):null),[u]);return e.useEffect((()=>{c(x||Kn[0])}),[x,c]),f.default.createElement(rt,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:R.sizes.base},a),className:n,"aria-describedby":p,"aria-label":g},i&&f.default.createElement(jn,{disabled:o,label:"Date Range",options:Kn,value:null==s?void 0:s.value,onChange:e=>{m(Xn(exports.DateRanges[e])),c(Kn.find((({value:t})=>t===e))||Kn[0])}}),f.default.createElement(On,{isDisabled:o,label:"Start date - End date",onChangeStartDate:b("start"),onChangeEndDate:b("end"),startValue:u&&u.start,endValue:u&&u.end,error:v?"Range contains invalid dates":void 0}),h.showPreviousPeriod&&f.default.createElement(qn,Object.assign({},h)),f.default.createElement(ea,null),f.default.createElement(rt,{alignX:"center"},f.default.createElement(on,{"aria-label":"Selected Date Range",isDisabled:o,isMultiMonth:l,value:u,onChange:m,disabledRanges:d})),!!r&&f.default.createElement(f.default.Fragment,null,f.default.createElement(ea,null),f.default.createElement(je.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},f.default.createElement($e,{variant:"default",size:"sm",onClick:r,disabled:o},"Reset"))))},exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>f.default.createElement(no,{key:e},e))):f.default.createElement(no,null,e);return f.default.createElement(Ua,null,e.map((e=>t?f.default.createElement(Qa,{key:e.term},f.default.createElement(to,null,e.term),f.default.createElement(eo,null,n(e.description))):f.default.createElement(Ja,{key:e.term},f.default.createElement(to,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[a,o]=e.useState(!0);return f.default.createElement("main",null,t((()=>o(!a)),a),f.default.createElement(io,null,f.default.createElement(lo,{showSidebar:a},n)))},exports.DimensionsInput=Eo,exports.Dropdown=Ue,exports.FilterTag=({className:t,e2eClassName:n,label:a,text:o,iconSlot:l,fill:i=C.secondary.blue.base,content:r,footer:d,header:s,onClickAway:c,onClick:u,shouldCloseOnClickAway:m=!0})=>{const p=zo(t),g=zo(n),[h,b]=e.useState(null),[v,x]=e.useState(null),{shouldShowDropdown:y,toggleShouldShowDropdown:w,closeDropdown:E}=Qe({anchorElement:h}),{handleKeyDown:$}=ie({popperElement:v,anchorElement:h,onClose:E}),k=e.useCallback((e=>{y?E():w(),c&&y&&c(e)}),[y,E,w,c]),S=e.useCallback((e=>{c&&c(e,E),m&&E()}),[c,E,m]);return!r?f.default.createElement(Co,{className:ee([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:u},a&&f.default.createElement(ko,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(O,null,o),f.default.createElement(No,{className:ee([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:C.neutral.ink.base})):f.default.createElement(Ct,{className:p.filterTagDropdown,shouldShowDropdown:y,onClickAway:S,cta:f.default.createElement(Co,{className:p.container,onClick:k,ref:b},a&&f.default.createElement(ko,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(O,null,o),f.default.createElement(So,{color:C.neutral.ink.base,name:"downArrow",$shouldShow:y}))},f.default.createElement(Lo,{ref:x,onKeyDown:$},f.default.createElement(Io,{color:i},s||f.default.createElement(f.default.Fragment,null,l,f.default.createElement(O,{variant:"bodyBold"},a))),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,a]=e.useState(!0);return e.useEffect((()=>{function e(){a(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(a(!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 l(e){e.metaKey||e.altKey||e.ctrlKey||a(!0)}function i(){"hidden"===document.visibilityState&&(a(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[a]),f.default.createElement(et.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Do,exports.Image=({src:t,alt:n="",className:o,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Oo(o),x=Oo(i),[y,w]=e.useState(!1),[E,C]=e.useState({isLoaded:!1,isError:!1}),[$,k]=f.default.useState(null),[S,N]=f.default.useState(null),{styles:L,attributes:I}=a.usePopper($,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),D=e.useCallback((()=>m?w(!1):{}),[m]),F=!E.isLoaded||E.isError;return f.default.createElement(Ro,{className:ee([null==v?void 0:v.container,null==x?void 0:x.container,o])},f.default.createElement(To,{src:t,alt:n,className:ee([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:D,style:F?{display:"none"}:{},ref:k}),!b&&F&&(p||f.default.createElement(Fo,{className:ee([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(f.default.createElement(Mo,Object.assign({ref:N,style:L.popper},I.popper,{className:ee([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),f.default.createElement(Ao,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=ro,exports.LegacyDataTable=Il,exports.Loader=ue,exports.LoginWithAmazonButton=t=>{const[n,a]=e.useState(Dl);return f.default.createElement(zl,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(Dl)},"aria-label":Fl},t),f.default.createElement("img",{src:n,alt:Fl}))},exports.Modal=n=>{const{shouldShow:a,showHeaderCloseButton:o=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,u]=e.useState(null);e.useEffect((()=>{var e,t;a&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:m,onScroll:p}=nt(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return f.default.createElement(t.AnimatePresence,null,a&&f.default.createElement("div",{"data-testid":"dialog-wrapper"},f.default.createElement(Rl,null),f.default.createElement(Wl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},f.default.createElement(je.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:f.default.createElement(Ie,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},o&&{onClickClose:g})),f.default.createElement(Tl,{onScroll:p,ref:u,isScrollable:m,fullBleed:l},d),Ml(n)&&n.footerSlot,!Ml(n)&&(n.leftActions||n.rightActions)&&f.default.createElement(je.Footer,null,f.default.createElement(rt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&f.default.createElement(rt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&f.default.createElement(rt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:a,quickActions:o,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const u=a&&f.default.createElement(Xe,{buttonVariant:o?"default":"primary",title:"Actions",sections:a}),m=null==o?void 0:o.map((e=>f.default.createElement($e,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=l&&f.default.createElement($e,{onClick:l.onClick,icon:f.default.createElement(an,null),variant:"link"},l.title),g=c&&f.default.createElement(rt,{direction:"horizontal",alignX:"end"},f.default.createElement(Ul,{onClick:c},f.default.createElement("span",null,"Toggle sidebar"),f.default.createElement(Yt,{width:z.md})));return f.default.createElement(ql,{shadow:r},f.default.createElement(rt,null,p,f.default.createElement(Jl,null,f.default.createElement(rt,{direction:"horizontal",spacing:"md"},n&&f.default.createElement(Kl,{src:n,alt:"",width:"72",height:"72"}),f.default.createElement("div",{style:{flex:1}},f.default.createElement(rt,{alignX:"stretch"},f.default.createElement(Yl,null,e),i,t&&f.default.createElement(Xl,null,t)))),f.default.createElement(Gl,null,f.default.createElement(rt,{direction:"horizontal",alignX:"end",spacing:"sm"},m,u,d&&f.default.createElement($e,{icon:f.default.createElement(an,null),onClick:d}),s&&f.default.createElement($e,{icon:f.default.createElement(Yt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:a,handleChangePage:o})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=ai({currentPage:n,totalPagesCount:a,handleChangePage:o});return f.default.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},f.default.createElement(ei,{onClick:()=>{1!==n&&o(1)},icon:f.default.createElement(oi,null),size:"sm","aria-label":"go to first page"}),f.default.createElement(ei,{onClick:r,icon:f.default.createElement(an,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),f.default.createElement("form",{onSubmit:d},f.default.createElement(ti,{"aria-live":"polite","aria-label":`page ${n} of ${a}`,size:so.sm,type:"number",value:l,min:"1",max:`${a}`,onChange:s,onBlur:c})),f.default.createElement(ni,{count:a}),f.default.createElement(ei,{onClick:i,icon:f.default.createElement(Yt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=a}),f.default.createElement(ei,{onClick:()=>{n!==a&&o(a)},icon:f.default.createElement(li,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=a}))},exports.PaginationRange=fi,exports.Popover=re,exports.Popup=Cr,exports.Portal=U,exports.PriceInput=Ei,exports.Radio=Cn,exports.RangeCalendar=on,exports.ScreenReaderOnly=({children:e})=>f.default.createElement(Ci,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:u="",className:m="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return f.default.createElement(Si,{className:m,iconPosition:b?"left":"right"},f.default.createElement($i,{size:x,type:e,value:s,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:u,name:p,disabled:t,error:c,autoComplete:v}),f.default.createElement(ki,null,g?f.default.createElement(ue,{height:24,color:h||R.colors.secondary.blue.base}):y&&n?f.default.createElement($e,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},f.default.createElement(Le,{color:h||R.colors.neutral.ink.dark})):f.default.createElement($e,{variant:"unstyled",onClick:()=>a(s),style:{display:"flex"},"aria-label":"Search",type:"button"},f.default.createElement(Ni,{color:h||R.colors.neutral.ink.dark,height:z.md,width:z.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:a})=>f.default.createElement(Di,{className:n?`${n}-container`:void 0},e.map((e=>f.default.createElement($e,{type:"button","aria-pressed":e.value===t,variant:e.value===t?"primary":"default",key:e.key,onClick:()=>a(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=jn,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:a=!1,displayLabel:o=!1}=e,l=K(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Ti[e]?f.default.createElement(Ri,{key:`Key: ${e}`,"aria-label":Mi[e]},Ti[e]):f.default.createElement(Ri,{key:`Key: ${e}`},e))).reduce(((e,t)=>f.default.createElement(f.default.Fragment,null,e,"+",t)));return f.default.createElement(Fi,Object.assign({"aria-label":n,$inverse:a},l),i," ",o?f.default.createElement("span",null,n):null)},exports.SimpleTable=_i,exports.Skeleton=Zi,exports.Slider=({id:t,value:n,min:a,max:o,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[u,m]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Gi(r),y=Gi(d),w=e.useCallback((e=>{var t;if(!u||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(o-a)+a;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>o&&(s=o),s<a&&(s=a),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const m=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;s=Number(s.toFixed(m)),f=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&g(1),1===p&&g(0))}),[p,u,o,a,i,l,n]),E=e.useCallback((()=>{m(!1),c()}),[c]),C=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>C(e,Array.isArray(n)?0:1),t=e=>C(e,1),a=b.current,o=v.current;return null==a||a.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),()=>{null==a||a.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)}}),[C,w,E,n]);const $=(e,t,n)=>{let l;return l=ee("number"==typeof n?0===n?[null==x?void 0:x.startSlider,null==y?void 0:y.startSlider]:[null==x?void 0:x.endSlider,null==y?void 0:y.endSlider]:[null==x?void 0:x.slider,null==y?void 0:y.slider]),f.default.createElement(Xi,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<a?0:e[0]-a)/(o-a),n=100*(e[1]>o?100:e[1]-a)/(o-a),l=n-t;return f.default.createElement(f.default.Fragment,null,f.default.createElement(Ki,{className:ee([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>o?100:n<a?0:100*(e-a)/(o-a),$(t,e)})(n),f.default.createElement(qi,{className:ee([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},f.default.createElement(Yi,null),S)},exports.Stack=rt,exports.Stepper=bi,exports.Tag=Ui,exports.Text=O,exports.TextField=fo,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:a,minWidth:o="50vw",max:i=3,onClose:r})=>(e.useEffect((()=>{i&&a.length>i&&r(a[0].key)}),[a,i,r]),l.createPortal(f.default.createElement(Ji,{direction:"vertical",alignX:"center",spacing:4},f.default.createElement(d.TransitionGroup,{component:null},[...a].reverse().map(((e,l)=>f.default.createElement(d.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},f.default.createElement(lr,Object.assign({className:t,e2eClassName:n,minWidth:o,last:l===a.length-1,onClose:()=>r(e.key)},e))))))),document.body)),exports.Toggle=_n,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:a=!1,onChange:o})=>f.default.createElement(ir,{type:"button",checked:t,size:n,disabled:a,"aria-pressed":t,tabIndex:"0",onClick:()=>o(!t)},e),exports.Tooltip=Tt,exports.UploadFile=br,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:a})=>{const o=Je(n,a);return f.default.createElement(Cr,{shouldShow:n,className:`${e}-video`},f.default.createElement($r,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},f.default.createElement(kr,{ref:o},f.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),f.default.createElement(Sr,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:f.default.createElement(Le,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:a,type:o,className:l,colourPalette:i=C.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:u,onEdit:m,e2eClassName:p})=>{const g=Mr(l),h=Mr(p),[b,v,x]=tt(),y=e.useCallback((()=>c(t)),[t,c]),w=e.useCallback((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=o===Nr.draft,k=o===Nr.saved,S=s?C.neutral.ink.dark:C.neutral.ink.base;return f.default.createElement(Lr,{className:`${ee([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:y},f.default.createElement(zr,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&f.default.createElement(Rr,null,n),f.default.createElement(O,{variant:"bodyBold"},a),d&&f.default.createElement(Dr,{active:s||b,colourPalette:i,customTextColour:r},f.default.createElement(Ir,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&f.default.createElement(Le,Object.assign({},Fr,{color:S,className:null==h?void 0:h.delete,onClick:w})),k&&s&&f.default.createElement(Tr,Object.assign({},Fr,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=qr,exports.ViewsContainer=ad,exports.WeightInput=sd,exports.buildClassnames=ee,exports.checkIfDateRangeInvalid=Qn,exports.generateId=G,exports.getDateRange=Xn,exports.getOpaqueHexColor=ne,exports.hexToRgb=te,exports.isExternalLink=oe,exports.theme=R,exports.useCellWidths=sa,exports.useClickOutside=Je,exports.useColumns=ma,exports.useDebounce=(t,n)=>{const[a,o]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>o(t)),n);return()=>clearTimeout(e)}),[t,n]),a},exports.useDragToScroll=pa,exports.useDropdown=Qe,exports.useFocusVisible=function(){const[e,t]=f.default.useState(!1),{hadKeyboardEvent:n,isInitialized:a}=f.default.useContext(et),o=f.default.useCallback((()=>{e||t(!0)}),[e]),l=f.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=a?n&&e:e,f.default.useMemo((()=>({focusVisible:i,onFocus:o,onBlur:l})),[i,l,o])},exports.useHover=tt,exports.useId=at,exports.useIsOverflowing=nt,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,a)=>{if(a)if(e){if(t.includes(a))return;const e=[...t,a];n(e)}else{const e=t.findIndex((e=>e===a));if(e<0)return;const o=[...t];o.splice(e,1),n(o)}}}}},exports.useScrollPosition=fa,exports.useSelection=wa,exports.useTabs=(t,n)=>{const{defaultActiveIndex:a=0}=n||{},[o]=e.useState(t),[l,i]=e.useState(o[a]);return[l,e=>{const t=o.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),f.default.createElement(t,Object.assign({},n))),exports.withLabels=Mn;
1
+ "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),a=require("react-popper"),o=require("resize-observer-polyfill"),l=require("react-dom"),i=require("uid/secure"),r=require("react-aria-components"),d=require("react-transition-group"),s=require("@internationalized/date"),c=require("lodash.throttle"),u=require("react-use"),m=require("react-scrolllock-configurable");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=p(e),g=p(n),h=p(o),b=p(l),v=p(c),x=p(m);const y=g.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,w={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},E=(e,t)=>e||(t?w[t]:void 0),C={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"}}},$={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},k={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var S,N;!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)"}(S||(S={})),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"}(N||(N={}));const L=function({increment:e,unit:t,count:n}){const a={};for(let o=0;o<=n;o++){const n=o*e;a[o]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),I={[N.none]:"0",[N.line]:"1px",[N.xs]:L[1],[N.sm]:L[2],[N.base]:L[4],[N.md]:L[6],[N.lg]:L[8],[N.xl]:L[12],[N.xxl]:L[16]},z=Object.assign(Object.assign({},I),L),D={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},F={headingXXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},R=Object.assign(Object.assign({},D),{breakpoints:$,colors:C,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:k,shadows:S,sizes:z,text:F}),{text:T,colors:M,fontFamily:A}=R,O=g.default.span.attrs((({as:e,variant:t})=>({as:E(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:${A};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?M.neutral.ink.lightest:T[e].color;return`\n font-family: ${T[e].fontFamily};\n font-style: ${T[e].fontStyle};\n font-weight: ${T[e].fontWeight};\n font-size: ${T[e].fontSize};\n line-height: ${T[e].lineHeight};\n color: ${n};\n text-decoration: ${T[e].textDecoration};\n letter-spacing: ${T[e].letterSpacing};\n `}}`,B=g.default(y).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=g.default(B).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${z.base};width:${z.base};color:${({glyphColor:e})=>e};}`,H=g.default(B).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,W=g.default.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 ${R.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,P=g.default(y).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,V=g.default(O).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,_=g.default(t.motion(y)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Z=g.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,q=g.default(t.motion(y)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,Y=g.default.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,X=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.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"}));function K(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;const G=e=>{const t=i.uid();return e?`${e}-${t}`:t};class U extends e.PureComponent{constructor(e){super(e),this.id=G("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?l.createPortal(e,this.portalNode):null}}const J=g.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Q=g.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ee=e=>e.filter(Boolean).join(" "),te=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a)),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},ne=(e,t)=>{const n=te(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ae=["app.veeqo.com"];function oe(e,t=ae){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const le='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',ie=({popperElement:t,anchorElement:n,onClose:a,disableFocusLock:o=!1})=>{e.useEffect((()=>{if(!t||o)return;const e=t.querySelectorAll(le);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,o]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(le);if(n.length<1)return void a();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,a]);return{handleKeyDown:e=>{t&&("Escape"===e.key?a():o||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(le),a=n[0],o=n[n.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),a.focus())})(e))}}},re=t=>{var{id:n,children:o,zIndex:l=R.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:u,removeBackdrop:m=!1,useAnchorWidth:p}=t,g=K(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[b,v]=e.useState(null),{styles:x,attributes:y,update:w}=a.usePopper(r,b,{placement:i}),E=e.useMemo((()=>n||G("popover")),[n]);(({anchorElement:t,popoverId:n})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n])})({anchorElement:r,popoverId:E});const C=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:$}=ie({popperElement:b,anchorElement:r,onClose:C,disableFocusLock:u});return e.useEffect((()=>{if(!w||!b)return;const e=new h.default(w);return e.observe(b),()=>e.disconnect()}),[w,b]),e.useEffect((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),f.default.createElement(U,{rootElementRef:d},!m&&f.default.createElement(Q,{onClick:C,zIndex:l,"data-testid":"popover-backdrop"}),f.default.createElement(J,Object.assign({open:!0,id:E,zIndex:l,ref:v,style:Object.assign(Object.assign(Object.assign({},x.popper),c),p?{minWidth:null==r?void 0:r.clientWidth}:{}),onKeyDown:$},y.popper,g),o))},de=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":o},f.default.createElement("defs",null,f.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},f.default.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),f.default.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),f.default.createElement("stop",{stopColor:a,offset:"100%"}))),f.default.createElement("g",{fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(1 1)"},f.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),f.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),se=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ce=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"15",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},f.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"105",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ue=({className:e,height:t=24,width:n=24,color:a="#588CB0",type:o="TailSpin"})=>{switch(o){case"Grid":return f.default.createElement(se,{className:e,height:t,width:n,color:a});case"ThreeDots":return f.default.createElement(ce,{className:e,height:t,width:n,color:a});default:return f.default.createElement(de,{className:e,height:t,width:n,color:a})}},me=g.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>z[e]};height:${({size:e})=>z[e]};}`,pe=g.default.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:${R.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",o="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",o="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${o};\n font-size: ${l};\n line-height: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,fe=g.default(pe).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${R.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?R.colors.neutral.ink.base:R.colors.secondary.blue.base};&:hover{background-color:${R.colors.neutral.grey.lightest};}&:active{background-color:${R.colors.neutral.grey.lightest};border-color:${R.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${R.colors.neutral.grey.base} !important;border-color:${R.colors.neutral.grey.base} !important;color:${R.colors.neutral.ink.light} !important;}`,ge=g.default(fe).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${R.colors.secondary.red.base};&:hover{color:${R.colors.secondary.red.dark};}&:active{border-color:${R.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};color:${R.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,he=g.default(fe).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${R.colors.secondary.blue.base};border-color:${R.colors.secondary.blue.base};color:white;&:hover{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};}&:active{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}`,be=g.default(he).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${R.colors.secondary.red.base};border-color:${R.colors.secondary.red.base};color:white;&:hover{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};}&:active{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,ve=g.default(pe).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${R.colors.neutral.ink.base};&:hover{background-color:${R.colors.neutral.grey.light};}&:active{background-color:${R.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,xe=g.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,ye=g.default(xe).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${R.text.link.fontFamily};font-size:${R.text.link.fontSize};line-height:${R.text.link.fontSize};font-weight:${R.text.link.fontWeight};line-height:${R.text.link.lineHeight};text-decoration:${R.text.link.textDecoration};color:${R.colors.secondary.blue.base};&:hover{color:${R.colors.secondary.blue.dark};}& > * + *{margin-left:${R.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${R.colors.secondary.blue.light};border-radius:4px;}`,we=g.default.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;`,Ee=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Ce={default:fe,primary:he,destructive:ge,primaryDestructive:be,flat:ve,link:ye,unstyled:xe},$e=e.forwardRef(((e,t)=>{var{className:n,children:a,icon:o,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=K(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return f.default.createElement(xe,Object.assign({ref:t,className:n},s),a);const c=Ce[l],u=void 0!==a,m=!!o;return f.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:u,hasIcon:m,hasDropdown:r},s),(u||m)&&f.default.createElement(me,{$loading:d,hasText:!!a,size:a||"sm"===i?"base":"md"},o&&o,void 0!==a&&a,r&&f.default.createElement(Ee,null)),d&&f.default.createElement(we,null,f.default.createElement(ue,null)))})),ke=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${z.md};padding-right:${z.md};padding-left:${z.md};margin-bottom:${z.md};& > * + *{margin-top:${z.xs};}`,Se=g.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${z.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ne=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.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"})),Le=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),f.default.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"})),Ie=({id:e,title:t,subtitle:n,headerVariant:a="headingSmall",action:o,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>f.default.createElement(ke,null,f.default.createElement(Se,null,f.default.createElement(O,{id:e,variant:a},t),o&&f.default.createElement($e,{variant:"link",onClick:o.onClick},o.title),l,r&&f.default.createElement($e,{variant:"flat",icon:i?f.default.createElement(Ne,null):f.default.createElement(X,null),onClick:r}),d&&f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,null),onClick:d,"aria-label":"Close"})),n&&f.default.createElement(O,{variant:"subheadingSmall"},n)),{grey:ze}=C.neutral,De={0:"none",1:S.sm,2:S.base,3:S.md,4:S.lg},Fe={info:C.secondary.blue.base,success:C.secondary.green.base,error:C.secondary.red.base},Re=g.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${z.base};padding:${z.md};z-index:2;`,Te=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${z.md};padding-left:${z.md};margin-top:${z.md};margin-bottom:${z.md};font-family:${F.body.fontFamily};font-size:${F.body.fontSize};font-weight:${F.body.fontWeight};line-height:${F.body.lineHeight};color:${F.body.color};& + &{border-top:${z.line} solid ${ze.base};padding-top:${z.md};}`,Me=g.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${z.md};margin-right:-${z.md};`,Ae=g.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Te}:first-child{margin-top:0;}`,Oe=g.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${z.line} solid ${ze.base};box-shadow:${e=>void 0!==e.elevation?De[e.elevation]:S.sm};border-radius:${k.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: ${z.xs};\n background-color: ${Fe[e]};\n }\n `}`,Be={expanded:{height:"auto"},collapsed:{height:0}},je=({className:t,style:n,title:a,subtitle:o,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:u,renderFooter:m})=>{const[p,g]=e.useState(!1),h=a&&f.default.createElement(Ie,{title:a,subtitle:o,ActionSlot:l,action:i,onClickClose:u,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=f.default.createElement(Ae,{animate:b?"expanded":"collapsed",variants:Be,transition:{duration:.3,ease:"easeOut"}},f.default.createElement(Te,null,c)),x=void 0!==m&&f.default.createElement(Re,null,m());return f.default.createElement(Oe,{className:t,style:n,elevation:d,accent:s},h,v,x)};je.Surface=Oe,je.Section=Te,je.FullBleed=Me,je.Footer=Re;const{sizes:He,colors:We,text:Pe}=R,Ve=g.default(je.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${He.base} 0;display:flex;flex-direction:column;`,_e=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${We.neutral.grey.base};margin-top:${He.base};padding-top:${He.base};}`,Ze=g.default(O).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${He.sm} ${He.base} ${He.sm};`,qe=g.default($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${He.lg};padding:${He.xs} ${He.base};display:flex;align-items:center;white-space:nowrap;font-family:${Pe.body.fontFamily};font-size:${Pe.body.fontSize};font-weight:${Pe.body.fontWeight};&:hover{background-color:${We.neutral.grey.light};color:${We.secondary.blue.base};}& > * + *{margin-left:${He[3]};}`,Ye={item:qe,action:g.default(qe).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${We.secondary.blue.base};`,link:g.default(qe).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${We.secondary.blue.base};text-decoration:underline;`},Xe=({title:t,items:n=[],sections:a,buttonVariant:o,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Ye[e.variant||"item"];return f.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,f.default.createElement("span",null,e.title))},u=a?a.map((e=>f.default.createElement(_e,{key:e.title},e.title&&f.default.createElement(Ze,null,e.title),e.items.map(c)))):n.map(c);return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,{dropdown:!0,variant:o,size:l,onClick:()=>r(!i),ref:s},t),i&&f.default.createElement(re,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},f.default.createElement(Ve,null,u)))},Ke=g.default(t.motion(je.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${R.colors.neutral.grey.base};border-radius:${R.radius.base};padding:${R.sizes.base};`,Ge=n=>{var{id:a,children:o,className:l,style:i,reversed:r,anchorElement:d,useAnchorWidth:s,onShouldClose:c}=n,u=K(n,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==d?void 0:d.focus()),[d]),f.default.createElement(re,Object.assign({id:a,"data-testid":a,anchorElement:d,onShouldClose:c,useAnchorWidth:s,placement:"bottom-start"},u),f.default.createElement(t.AnimatePresence,null,f.default.createElement(Ke,{className:l,style:i,useAnchorWidth:s,reversed:r,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},Ue=t=>{var{id:n,shouldShow:a,setShouldShow:o,ctaIconSlot:l,ctaProps:i}=t,r=K(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=e.useRef(null);return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":n,onClick:()=>null==o?void 0:o(!a),icon:l,dropdown:!0},i)),a&&f.default.createElement(Ge,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==o?void 0:o(!1)},r)))},Je=(t,n)=>{const a=e.useRef(null),o=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{a.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",o)}}),[l,o,t]),a},Qe=({anchorElement:t}={})=>{const[n,a]=e.useState(!1),o=e.useCallback((()=>a(!n)),[n,a]),l=e.useCallback((()=>{a(!1),setTimeout((()=>{null==t||t.focus()}),0)}),[a,t]);return{shouldShowDropdown:n,toggleShouldShowDropdown:o,setShouldShowDropdown:a,closeDropdown:l}},et=f.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const tt=(t=!1)=>{const[n,a]=e.useState(t);return[n,e.useCallback((()=>a(!0)),[a]),e.useCallback((()=>a(!1)),[a])]},nt=t=>{const[n,a]=e.useState(!1),[o,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;a(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!o,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:a,clientHeight:o}=e.target;l(a-n-o<=0)}}},at=({id:t,prefix:n})=>e.useMemo((()=>t||G(n)),[t,n]),ot=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,lt=g.default(r.MenuItem).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:grid;grid-template-areas:'label''description';cursor:pointer;margin:${R.sizes.xs};padding:${R.sizes.sm};border-radius:${R.radius.base};outline:0;&:is(a){${ot(R.text.link)}}&:is(div){${ot(R.text.body)}}white-space:nowrap;&[data-focused]{color:${R.colors.secondary.blue.base};box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&[data-hovered]{background-color:${R.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.lightest};color:${R.colors.neutral.ink.light};}[slot='label']{grid-area:label;}[slot='description']{grid-area:description;color:${R.colors.neutral.ink.light};font-size:12px;}`,it=g.default(r.Section).withConfig({displayName:"vui--Section",componentId:"vui--1lpesff"})`&:not(:first-child){margin-top:0.5rem;border-top:1px solid ${R.colors.neutral.grey.base};padding-top:0.5rem;}`,rt=({id:t,menuLabel:n,ctaProps:a,actions:o,children:l})=>{var i;const[d,s]=e.useState(!1),c=at({id:t,prefix:"action-menu"});return f.default.createElement(Ue,{id:c,style:{padding:"0"},shouldShow:d,setShouldShow:s,ctaProps:Object.assign({size:"sm"},a),useAnchorWidth:!0,onKeyDown:e=>{"Escape"!==e.code&&"Tab"!==e.code||s(!1),e.preventDefault()}},f.default.createElement(r.Menu,{onClose:()=>s(!1),"aria-label":n||(null===(i=a.children)||void 0===i?void 0:i.toString())},null==o?void 0:o.map((e=>{var t;return f.default.createElement(lt,Object.assign({},e,{key:e.id||(null===(t=e.children)||void 0===t?void 0:t.toString())}))})),l))};var dt;rt.Item=lt,rt.Section=it,rt.Text=r.Text,function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(dt||(dt={}));const st=g.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:o="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&dt[n],i=a&&dt[a],s=R.sizes[o],r="column"):(l=a&&dt[a],i=n&&dt[n],c=R.sizes[o],r="row"),("vertical"===t&&"stretch"===a||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;st.displayName="Stack";const ct=g.default(st).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${R.radius.base};background-color:${({colours:{background:e}})=>e};`,ut=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),mt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),pt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"}),f.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),f.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),ft=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),gt={base:R.sizes.base,sm:R.sizes[3],xs:R.sizes.sm},ht={base:R.sizes.md,sm:R.sizes[5],xs:R.sizes[5]},bt={default:pt,error:ut,success:ft,info:mt,warning:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),f.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),f.default.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),f.default.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},vt={default:{primary:R.colors.neutral.ink.base,background:R.colors.neutral.grey.lightest},error:{primary:R.colors.secondary.red.base,background:R.colors.secondary.red.lightest},success:{primary:R.colors.secondary.green.base,background:R.colors.secondary.green.lightest},info:{primary:R.colors.secondary.blue.base,background:R.colors.secondary.blue.lightest},warning:{primary:R.colors.secondary.orange.base,background:R.colors.secondary.orange.lightest},recommend:{primary:R.colors.secondary.purple.dark,background:R.colors.secondary.purple.lightest}},xt=g.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${R.text.link.fontFamily};font-style:${R.text.link.fontStyle};font-weight:${R.text.link.fontWeight};font-size:${R.text.link.fontSize};line-height:${R.text.link.lineHeight};color:${R.colors.secondary.blue.base};text-decoration:${R.text.link.textDecoration};&:hover{color:${R.colors.secondary.blue.dark};}`,yt=g.default(y).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;`,wt=e.forwardRef(((e,t)=>{const{children:n,className:a,role:o}=e;return f.default.createElement(yt,{className:a,ref:t,role:o},n)})),Et=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Ct=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,$t=g.default(wt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${R.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);}`,kt=({cta:t,shouldShowDropdown:n,children:a,className:o="animated-dropdown",reversed:l=!1,onClickAway:i=(()=>{}),timeout:r=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:u,onMouseLeave:m})=>{const p=e.useRef(null);return((t,n)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,n])})(p,(e=>{n&&i(e)})),f.default.createElement(Et,{className:`${o}-container ${o}`,onClick:c,onMouseEnter:u,onMouseLeave:m,ref:p},!l&&t,f.default.createElement(Ct,{className:`${o}-wrap ${o}`},f.default.createElement(d.CSSTransition,{in:n,timeout:r,classNames:s,unmountOnExit:!0},f.default.createElement($t,{role:"dialog",reversed:l,className:`${o}-basic-dropdown ${o}`},a))),l&&t)},St=g.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${R.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:${R.text.bodySmallBold.fontFamily};font-weight:${R.text.bodySmallBold.fontWeight};font-size:${R.text.bodySmallBold.fontSize};line-height:${R.text.bodySmallBold.lineHeight};}`,Nt=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,Lt=g.default(Nt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,It=g.default(O).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${R.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,zt=g.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Dt=g.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,Ft=g.default(Nt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var Rt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(Rt||(Rt={}));const Tt={duration:400,side:Rt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Mt=({content:t,text:n,hoverableElement:o,config:l,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),u=Object.assign(Object.assign({},Tt),l),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:v,attributes:x}=a.usePopper(o,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:R.layers.tooltip});return f.default.createElement(Dt,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),f.default.createElement(Ft,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:f.default.createElement(It,null,n)),r&&f.default.createElement(zt,{id:"veeqo-components-triangle",className:d.triangle}))},At=({children:t,text:n,content:a,config:o,reversed:l=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,u]=e.useState(d),[m,p]=e.useState(null),g=!!n&&n.trim().length>0,h={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!a&&!g);if(!v)return t;const x=c&&v&&f.default.createElement(Mt,{classNames:h,hoverableElement:m,config:o,reversed:l,withTriangle:r,text:n,content:a});return f.default.createElement(Nt,{className:h.container},s?b.default.createPortal(x,document.body):x,f.default.createElement(Lt,{ref:p,className:h.hoverable,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},t))},Ot=g.default(y).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:${F.bodySmall.fontFamily};font-weight:${F.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${z.base};height:${z.base};}`,Bt={default:g.default(Ot).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${C.secondary.blue.base};color:${C.secondary.blue.base};`,primary:g.default(Ot).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};color:${C.secondary.blue.base};`,warning:g.default(Ot).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${C.secondary.yellow.base};background-color:${C.secondary.yellow.lightest};color:${C.secondary.orange.dark};`},jt=g.default(y).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"};`,Ht=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Wt=g.default(y).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Pt=g.default(Wt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${z.md};height:${z.md};color:${({accentColor:e})=>e};}`,Vt=g.default(y).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,_t=g.default(Wt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Zt=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,qt={help:C.secondary.blue.base,info:C.neutral.ink.base,error:C.secondary.red.base,success:C.secondary.green.base},Yt=g.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${F.body.fontFamily};font-weight:${F.body.fontWeight};font-size:${F.body.fontSize};line-height:${F.body.lineHeight};`,Xt=g.default.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;}`,Kt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Gt=({children:e,title:t,LinkComponent:n,href:a})=>n?f.default.createElement(Xt,{className:"breadcrumb"},f.default.createElement(n,{href:a},t),e):f.default.createElement(Xt,{className:"breadcrumb"},t,e),Ut=()=>f.default.createElement(Kt,{className:"separator",width:z.base,height:z.base}),Jt=({children:e,href:t})=>f.default.createElement("a",{href:t},e),Qt=({children:e})=>f.default.createElement("span",null,e),en=e=>f.default.createElement(r.CalendarGrid,Object.assign({weekdayStyle:"short"},e),f.default.createElement(r.CalendarGridHeader,null,(e=>f.default.createElement(r.CalendarHeaderCell,null,e.slice(0,2)))),f.default.createElement(r.CalendarGridBody,null,(e=>f.default.createElement(r.CalendarCell,{date:e})))),tn=n.css`.react-aria-Button{color:${R.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${R.sizes.base};height:${R.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:active,&:hover{background-color:${R.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${R.colors.neutral.grey.base};cursor:default;}}`,nn=n.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${R.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${R.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${R.colors.secondary.blue.light};}&[data-selected]{background:${R.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${R.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${R.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${R.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${R.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${R.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,an=n.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${ot(R.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${R.sizes.sm};}`,on=g.default(r.RangeCalendar).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${R.colors.neutral.ink.base};font-size:14px;font-family:${R.fontFamily};${an} ${tn} ${nn} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,ln=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),rn=t=>{var n,{disabledRanges:a=[],disallowWeekends:o=!1,isMultiMonth:l=!1}=t,i=K(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=f.default.useState(null===(n=i.value)||void 0===n?void 0:n.start),{locale:u}=r.useLocale(),m=e.useCallback((e=>!!o&&s.isWeekend(e,u)||a.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[a,o,u]);return e.useEffect((()=>{var e;c(null===(e=i.value)||void 0===e?void 0:e.start)}),[i.value]),f.default.createElement(on,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:l?{months:2}:void 0},i),f.default.createElement("header",null,f.default.createElement(r.Button,{slot:"previous"},f.default.createElement(ln,null)),f.default.createElement(r.Heading,null),f.default.createElement(r.Button,{slot:"next"},f.default.createElement(Kt,null))),l?f.default.createElement("div",{style:{display:"flex",gap:R.sizes.sm,overflow:"auto"}},f.default.createElement(en,null),f.default.createElement(en,{offset:{months:1}})):f.default.createElement(en,null))},dn={top:"flex-start",center:"center"},sn=g.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${R.sizes.base};}`,cn=g.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>dn[e.align]};`,un=g.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,mn=g.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${R.sizes.sm};}`,pn=g.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,fn=g.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};`,gn=g.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,hn=g.default(gn).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${R.colors.neutral.grey.dark};border-radius:${R.radius.md};padding:${R.sizes.base} 0.75rem;&:hover{border-color:${R.colors.secondary.blue.base};}`,bn=g.default(At).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,vn=({id:e,className:t,label:n,hint:a,tooltip:o,error:l,bordered:i,Badge:r,Accessory:d,Footer:s,children:c,disabled:u=!1,labelVariant:m="body",inputPosition:p="left"})=>{const g={hint:(h=t)?"choice__hint":void 0,label:h?"choice__label":void 0,tooltip:h?"choice__tooltip":void 0,error:h?"choice__error":void 0};var h;const b=f.default.createElement(sn,null,"left"===p&&f.default.createElement(cn,{align:d?"center":"top"},c),d&&f.default.createElement(un,null,d),n||a||l||r||s?f.default.createElement(mn,null,f.default.createElement(st,{direction:"horizontal",alignY:"center",spacing:"sm"},r,n&&f.default.createElement(O,{variant:m,className:g.label},n),o&&f.default.createElement(bn,{text:o,className:g.tooltip},f.default.createElement(mt,{name:"help",width:R.sizes.base,color:R.colors.neutral.ink.lightest}))),a&&f.default.createElement(pn,{className:g.hint},a),l&&f.default.createElement(fn,{className:g.error},l),s):null,"right"===p&&f.default.createElement(cn,{align:d?"center":"top"},c));return i?f.default.createElement(hn,{disabled:u,htmlFor:e,className:t},b):f.default.createElement(gn,{disabled:u,htmlFor:e,className:t},b)},{colors:xn,sizes:yn,radius:wn}=R,En=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${xn.neutral.ink.lightest};border-radius:${wn.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${xn.secondary.blue.base};border-color:${xn.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:${yn[4]};background-position:center;}&:hover{border-color:${xn.secondary.blue.base};}&:active{border-color:${xn.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${xn.secondary.blue.light};outline:0;}&:indeterminate{background-color:${xn.secondary.blue.base};border-color:${xn.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:${yn[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${xn.neutral.grey.base};border-color:${xn.neutral.grey.base};color:${xn.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>");}`,Cn=t=>{var{checked:n,indeterminate:a,value:o,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=K(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const u=e.useMemo((()=>G("checkbox")),[]),m=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,o)}),[s,o]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===a)}),[a]),f.default.createElement(vn,Object.assign({id:u,disabled:i,className:d},c),f.default.createElement(En,{ref:m,id:u,type:"checkbox",checked:n,value:o,name:l,disabled:i,"aria-label":r,onChange:p}))},$n=g.default.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;}`,kn=e.forwardRef(((t,n)=>{var{checked:a,value:o,name:l,disabled:i,onChange:r,id:d,children:s}=t,c=K(t,["checked","value","name","disabled","onChange","id","children"]);const u=e.useCallback((e=>{r(e.currentTarget.checked,o)}),[r,o]),m=null!=d?d:G("radio");return f.default.createElement(vn,Object.assign({id:m,disabled:i},c),f.default.createElement($n,{id:m,type:"radio",checked:a,value:o,name:l,disabled:i,onChange:u,ref:n}),s)})),Sn=g.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Nn=g.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-style:${R.text.inputLabel.fontStyle};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};text-decoration:${R.text.inputLabel.textDecoration};color:${R.text.inputLabel.color};`;class Ln extends e.Component{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:a}=this.props;let o=[];o=t?[...n,e]:n.filter((t=>t!==e)),a(o)}}render(){const{allowMultiple:e,options:t,selected:n,title:a,disabled:o,bordered:l}=this.props,i=e?Cn:kn;return f.default.createElement(Sn,{disabled:o},a&&f.default.createElement(Nn,null,a),t.map((e=>f.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const In=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),zn={width:z.base,height:z.base},Dn=g.default($e).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${z.base};width:${z.base};top:unset;}`,Fn=g.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};color:${R.text.inputLabel.color};`,Rn=g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,Tn=g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,Mn=g.default(st).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,An=g.default(At).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,On=e=>t=>{var{label:n,hint:a,error:o,tooltip:l}=t,i=K(t,["label","hint","error","tooltip"]);const r=at({id:null==i?void 0:i.id,prefix:e.name});return n?f.default.createElement(Mn,{spacing:"sm",alignX:"stretch"},f.default.createElement("div",{style:{marginBottom:R.sizes.xs}},f.default.createElement(st,{direction:"horizontal",alignY:"center",spacing:"sm"},f.default.createElement(Fn,{id:`${r}-label`,htmlFor:r},n),l&&f.default.createElement(An,{text:l},f.default.createElement(mt,{width:R.sizes.base,height:R.sizes.base,color:R.colors.neutral.ink.light}))),a&&f.default.createElement(Rn,null,a)),f.default.createElement(e,Object.assign({id:r,hasError:!!o},i)),o&&f.default.createElement(Tn,null,o)):f.default.createElement(e,Object.assign({hasError:!!o},i))},Bn=g.default(r.Group).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${ot(R.text.body)} display:flex;align-items:center;border:1px solid ${R.colors.neutral.ink.lightest};border-radius:${R.radius.base};gap:${R.sizes.xs};padding:${R.sizes.sm};margin-top:${R.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${R.colors.secondary.red.light};border:1px solid ${R.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${R.colors.secondary.red.light};\n border: 1px solid ${R.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${R.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${R.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${R.radius.base};&[data-invalid]{color:${R.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${R.colors.secondary.blue.dark};&[data-invalid]{background-color:${R.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${R.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,jn=On((({id:e,className:t,style:n,shouldForceLeadingZeros:a=!0,hasError:o,minValue:l,maxvalue:i,startValue:d,endValue:s,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>f.default.createElement(Bn,{style:n,className:t,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,$hasError:o,isDisabled:c},f.default.createElement(r.DateField,{shouldForceLeadingZeros:a,onChange:h,value:d,minValue:l,maxValue:i,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},f.default.createElement(r.DateInput,{slot:"start"},(e=>f.default.createElement(r.DateSegment,{segment:e})))),f.default.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),f.default.createElement(r.DateField,{shouldForceLeadingZeros:a,onChange:b,value:s,minValue:l,maxValue:i,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},f.default.createElement(r.DateInput,{slot:"end"},(e=>f.default.createElement(r.DateSegment,{segment:e}))))))),Hn=g.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Wn=On(e.forwardRef(((t,n)=>{var{className:a,options:o,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,c=K(t,["className","options","value","onChange","size","disabled","hasError"]);const u=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return f.default.createElement(Hn,Object.assign({className:a,sizeVariant:r,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:s,ref:n},c),!!o&&o.map((e=>f.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label))))})));Wn.displayName="Select";const Pn=g.default.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?R.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Vn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${R.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${Pn}{box-shadow:0 0 0 4px ${R.colors.brand.blue.light};}&:checked + ${Pn}{background-color:#0079d1;}&:disabled + ${Pn}{background-color:${R.colors.neutral.grey.base};}&:checked:disabled + ${Pn}{background-color:${R.colors.secondary.blue.light};}`,_n=g.default.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;position:relative;height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};z-index:1;input{position:absolute;opacity:0;}${Pn}: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"};}${Vn}:checked + ${Pn}{&: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"});}}`,Zn=g.default(y).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,qn=e.forwardRef(((e,t)=>{var{id:n="testid",className:a,name:o,switched:l,small:i,onClick:r=(()=>{}),disabled:d,ariaLabel:s,inputPosition:c="right"}=e,u=K(e,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return f.default.createElement(vn,Object.assign({id:n,inputPosition:c},u),f.default.createElement(Zn,{className:a,disabled:d},f.default.createElement(_n,{small:i,disabled:d,className:a},f.default.createElement(Vn,{id:n,role:"switch",type:"checkbox",name:o,"aria-label":s,checked:!!l,onChange:e=>d?void 0:r(e),disabled:d,ref:t}),f.default.createElement(Pn,{switched:l,disabled:d}))))})),Yn=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],Xn=({options:t=Yn,selectedPreviousPeriod:n,setSelectedPreviousPeriod:a})=>{const[o,l]=e.useState(!!n);return e.useEffect((()=>{n||null==a||a(t[0])}),[n,a,t]),f.default.createElement(f.default.Fragment,null,f.default.createElement(O,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:R.sizes.sm,whiteSpace:"nowrap"}},f.default.createElement(qn,{small:!0,switched:o,onClick:()=>{o&&(null==a||a(null)),l(!o)}}),"Compare previous period"),o&&f.default.createElement(Wn,{"aria-label":"Period to compare against",options:t,value:(null==n?void 0:n.value)||t[0].value,onChange:e=>{const n=t.find((({value:t})=>t===e));n&&(null==a||a(n))}}))};var Kn;exports.DateRanges=void 0,(Kn=exports.DateRanges||(exports.DateRanges={})).TODAY="TODAY",Kn.YESTERDAY="YESTERDAY",Kn.LAST_7_DAYS="LAST_7_DAYS",Kn.LAST_30_DAYS="LAST_30_DAYS",Kn.LAST_90_DAYS="LAST_90_DAYS",Kn.LAST_MONTH="LAST_MONTH",Kn.LAST_12_MONTHS="LAST_12_MONTHS",Kn.WEEK_TO_DATE="WEEK_TO_DATE",Kn.MONTH_TO_DATE="MONTH_TO_DATE",Kn.YEAR_TO_DATE="YEAR_TO_DATE";const Gn=e=>{const t=s.now(s.getLocalTimeZone());let n;switch(e){case exports.DateRanges.TODAY:n={start:t,end:t};break;case exports.DateRanges.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case exports.DateRanges.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case exports.DateRanges.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case exports.DateRanges.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case exports.DateRanges.LAST_MONTH:{const e=s.startOfMonth(t.subtract({months:1}));n={start:e,end:s.endOfMonth(e)};break}case exports.DateRanges.LAST_12_MONTHS:{const e=s.startOfMonth(t.subtract({months:1}));n={start:s.startOfMonth(e).subtract({months:12}),end:s.endOfMonth(e)};break}case exports.DateRanges.WEEK_TO_DATE:n={start:s.startOfWeek(t,navigator.language),end:t};break;case exports.DateRanges.MONTH_TO_DATE:n={start:s.startOfMonth(t),end:t};break;case exports.DateRanges.YEAR_TO_DATE:n={start:s.startOfYear(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new s.CalendarDate(t.year,t.month,t.day),end:new s.CalendarDate(n.year,n.month,n.day)}})(n)},Un=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:exports.DateRanges.TODAY},{label:"Yesterday",value:exports.DateRanges.YESTERDAY},{label:"Last 7 Days",value:exports.DateRanges.LAST_7_DAYS},{label:"Last 30 Days",value:exports.DateRanges.LAST_30_DAYS},{label:"Last 90 Days",value:exports.DateRanges.LAST_90_DAYS},{label:"Last Month",value:exports.DateRanges.LAST_MONTH},{label:"Last 12 Months",value:exports.DateRanges.LAST_12_MONTHS},{label:"Week to Date",value:exports.DateRanges.WEEK_TO_DATE},{label:"Month to Date",value:exports.DateRanges.MONTH_TO_DATE},{label:"Year to Date",value:exports.DateRanges.YEAR_TO_DATE}],Jn=exports.DateRanges.LAST_30_DAYS,Qn=Gn(Jn),ea=Un.find((({value:e})=>e===Jn)),ta=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:a}=t,[o,l]=[n,a].sort();return e.some((([e,t])=>o>=e&&o<=t||l>=e&&l<=t||o<=e&&l>=t))},na=g.default.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${R.sizes.base};border-top:1px solid ${R.colors.neutral.grey.base};`;function aa(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function oa(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${oa(e.min,"max-content")}, ${oa(e.max)})`;default:return t||"1fr"}}function la({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:o,stripingMode:l}){const i=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 `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==a&&"none"!==a,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${o.map((e=>oa(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?p:m}\n `}var ia;!function(e){e.ascending="ascending",e.descending="descending"}(ia||(ia={}));const ra=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),da=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),sa=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),ca=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===ia.ascending?f.default.createElement(da,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(sa,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(ra,{size:n});function ua(t,n){const[a,o]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));o(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=v.default(l,50),t=new h.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}class ma extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const pa=({tableRef:t,columns:n,columnIds:a})=>{const o=e=>e.reduce(((e,t)=>(e[t.id]=t.width,e)),{}),[l,i]=e.useState(o(n));return e.useEffect((()=>{const e=o(n),t=Object.assign({},l);Object.keys(e).forEach((n=>{void 0===typeof l[n]&&(t[n]=e[n])})),i(t)}),[JSON.stringify(a)]),{setColumnWidth:({columnId:e,width:a})=>{const o=Object.assign({},l);n.forEach(((i,r)=>{const d=r===n.length-1,s=i.id===e?a:((e,n)=>{var a,o,i;return n?l[e.id]||e.width:l[e.id]||e.width||(null===(i=null===(o=null===(a=t.current)||void 0===a?void 0:a.querySelector(`th[data-columnid="${e.id}"]`))||void 0===o?void 0:o.getBoundingClientRect())||void 0===i?void 0:i.width)||void 0})(i,d);o[i.id]=s})),i(o),((e,t)=>{const n=new ma(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:t,columnWidths:o})},columnWidths:l}};function fa(e,t){const{columnWidths:n,setColumnWidth:a}=pa({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e))}),o=e.map((e=>Object.assign(Object.assign({},e),{width:n[e.id]||e.width}))).filter((e=>!0!==e.hidden)),l=o.filter((e=>"left"===e.pinned)),i=o.filter((e=>"right"===e.pinned)),r=o.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...l,...r,...i],pinnedLeft:l,pinnedRight:i,setColumnWidth:a}}function ga(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,a={left:0,x:0},o=t=>{if(!n)return;const o=t.clientX-a.x;n.scrollLeft=a.left-o,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function ha(t){const[n,a]=e.useState("start"),o=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=t.current;a(o<e?"none":0!==n?n+e>=o?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",o)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=v.default(o,50),n=new h.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const ba="56px",va=g.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ba};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>aa(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};border-bottom:1px solid ${R.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function xa(e){var{selected:t,indeterminate:n,onChange:a,selectionMode:o}=e,l=K(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===o?f.default.createElement(va,Object.assign({},l)):f.default.createElement(va,Object.assign({},l),f.default.createElement(Cn,{checked:t,indeterminate:n,onChange:a}))}const ya=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>aa(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};color:${R.text.bodySmall.color};font-family:${R.text.bodySmall.fontFamily};font-size:${R.text.bodySmall.fontSize};font-style:${R.text.bodySmall.fontStyle};font-weight:${R.text.bodySmall.fontWeight};line-height:${R.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${R.colors.secondary.blue.base};background-color:${R.colors.neutral.grey.lightest};}`;function wa(e){var{selected:t,rowId:n,onChange:a,selectionMode:o,disabled:l}=e,i=K(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===o?f.default.createElement(ya,Object.assign({},i),f.default.createElement(kn,{value:n,checked:t,disabled:l,onChange:a})):f.default.createElement(ya,Object.assign({},i),f.default.createElement(Cn,{value:n,checked:t,disabled:l,onChange:a}))}const Ea=[[],()=>{}];function Ca({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const a=!!t,[o,l]=t||Ea,i=()=>{o.length!==n.length?l(n):l([])};return{selectionEnabled:a,selectedRowIds:o,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,a)=>f.default.createElement(xa,Object.assign({},a,{selected:o.length===n.length,indeterminate:o.length>0&&o.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,a,o)=>f.default.createElement(wa,Object.assign({},n,{rowId:t.id,selected:o.selected,onChange:a.setSelected,selectionMode:e,disabled:o.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(o.includes(n))return;const e=[...o,n];l(e)}else{const e=o.findIndex((e=>e===n));if(e<0)return;const t=[...o];t.splice(e,1),l(t)}}}}const $a=g.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${R.colors.neutral.ink.lightest};`,ka=g.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${R.text.headingTable.color};font-family:${R.text.headingTable.fontFamily};font-size:${R.text.headingTable.fontSize};font-style:${R.text.headingTable.fontStyle};font-weight:${R.text.headingTable.fontWeight};line-height:${R.text.headingTable.lineHeight};`,Sa=g.default(ka).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 ${$a}{background-color:${R.colors.neutral.grey.light};color:${R.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${R.colors.secondary.blue.light};}`,Na=g.default.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${R.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,La=({columnId:t,setColumnWidth:n})=>{const a=e.createRef(),o=e=>{const{minTranslate:t,dragDivider:n,dragInitX:a}=window.tableHeaders,o=Math.max(e.clientX-(a||0),t||0);n.parentElement.parentElement.classList.add("hideHeaderDetails"),n.style.transform=`translateX(${o}px)`},l=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:a}=n,o=null==a?void 0:a.getBoundingClientRect().width,l=a.querySelector(".headerContent").getBoundingClientRect().width,i=(e.clientX||0)-(t||0);return Math.max((o||0)+i,l+24)},i=e=>{window.removeEventListener("mouseup",i),window.removeEventListener("dragend",i),window.removeEventListener("mousemove",o),window.removeEventListener("drag",o),null==n||n({columnId:t,width:l({event:e})}),window.tableHeaders&&(window.tableHeaders.dragDivider.style.transform="translateX(0)",window.tableHeaders.dragDivider.parentElement.style.justifyContent="",window.tableHeaders.dragInitX=void 0,window.tableHeaders.minTranslate=void 0,window.tableHeaders.dragDivider.parentElement.parentElement.classList.remove("hideHeaderDetails"))},r=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:a.current},window.tableHeaders.minTranslate=(()=>{const{parentElement:e}=window.tableHeaders.dragDivider;return e.querySelector(".headerContent").getBoundingClientRect().width-e.getBoundingClientRect().width+24})(),window.addEventListener("mouseup",i),window.addEventListener("dragend",i),window.addEventListener("mousemove",o),window.addEventListener("drag",o))};return f.default.createElement(Na,{ref:a,className:"th-divider",onMouseDown:r,onDragStart:r})};function Ia({column:e,sortState:t,onChangeSort:n,resizeableColumns:a,setColumnWidth:o,columnCount:l=1,columnI:i=0}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const r={key:e.id.toString(),id:`datatable-header-${e.id}`,"data-columnid":String(e.id),role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,r);const d=e.sortable?Sa:ka,s=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const a=function({sortState:e,columnId:t}){const n=e.columnId===t,a=e.direction===ia.ascending;let o=ia.ascending;return n&&a&&(o=ia.descending),{columnId:t,direction:o}}({sortState:t,columnId:e.id});n?n(a):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return f.default.createElement(va,Object.assign({},r,{zIndex:3}),f.default.createElement(At,{text:e.tooltip},f.default.createElement(d,Object.assign({},s,{className:"headerContent"}),e.icon&&e.icon,e.title&&f.default.createElement("span",null,e.title),e.sortable&&f.default.createElement($a,null,f.default.createElement(ca,{sortState:t,columnId:e.id,size:5})))),a&&i<l-1&&f.default.createElement(La,{columnId:e.id,setColumnWidth:o}))}const za=R.colors.neutral.grey.base,Da=R.colors.neutral.grey.dark,Fa=g.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${R.radius.base};background:${za};background-image:linear-gradient(\n to right,\n ${za} 0%,\n ${Da} 20%,\n ${za} 40%,\n ${za} 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 Ra=g.default.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:${ba};background-color:white;`,Ta=g.default.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 ${R.colors.neutral.grey.base};& > *{flex:1;}`;function Ma({selectionColumn:t,intersectionTargetRef:n,containerRef:a,children:o}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=a.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return f.default.createElement(Ra,{style:c},Ia({column:t}),f.default.createElement(Ta,null,o))}const Aa=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Oa=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Ba=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const ja=g.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${R.sizes.lg};padding-bottom:${R.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${R.sizes.md};`,Ha=g.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${R.sizes.md};background-color:${R.colors.neutral.grey.light};border-radius:${R.radius.full};`,Wa=g.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Pa=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${R.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 `}`,Va=g.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,_a=g.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${R.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Za=g.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,qa={full:`border-width: 1px; border-radius: ${R.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Ya=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${R.colors.neutral.grey.dark};${({borderMode:e="full"})=>qa[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function Xa({children:t,intersectionTargetRef:n,containerRef:a,cellWidths:o,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),u=()=>{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};c(n)},m=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&a.current&&u()}),[a.current,r]),e.useEffect((()=>{if(!r)return;if(!a.current)return;const e=v.default(u,33),t=new h.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,r]),e.useEffect((()=>{m()}),[r]),e.useEffect((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",m),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",m)}}),[a.current]),!r)return null;const p=Object.assign(Object.assign({},s),{height:ba,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${R.colors.neutral.grey.base}`}),g=l+o.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return f.default.createElement("div",{style:p,ref:i},f.default.createElement(_a,{css:g},f.default.createElement("thead",null,t)))}const Ka=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:a})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==a?void 0:a.includes(e))||!1}),Ga={icon:f.default.createElement(pt,{width:48,height:48}),heading:"No results"},Ua=()=>{},Ja=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:o=Ga,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:u,selectionState:m,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b,resizeableColumns:v})=>{const x=e.useRef(null),y=e.useRef(null),w=e.useRef(null);ga(x);const E=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:k,setSelected:S}=Ca({selectionMode:u,selectionState:m,enabledRowIds:E}),N={setSelected:S||Ua,setExpanded:p||Ua},L=[k,...a],I=C?L:a,z=ua(y,x),{visible:D,pinnedLeft:F,pinnedRight:R,setColumnWidth:T}=fa(I,y),M=z.length===D.length?D.map(((e,t)=>Number.isNaN(e.width||"")?z[t]:e.width)):z,{scrollPosition:A}=ha(x),B=la({pinnedLeft:F,pinnedRight:R,cellWidths:M,scrollPosition:A,visible:D,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return f.default.createElement(Ya,{borderMode:n},f.default.createElement(Va,{ref:x},f.default.createElement(_a,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Pa,{role:"row"},D.map(((e,t)=>Ia({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},e.map((e=>f.default.createElement(Pa,{key:e.id},D.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return f.default.createElement(ya,Object.assign({},n),f.default.createElement(Fa,null))}(e,t))))))))))}if(0===s.length)return f.default.createElement(Ya,{borderMode:n},f.default.createElement(Va,{ref:x},f.default.createElement(_a,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Pa,{role:"row"},D.map(((e,t)=>Ia({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},f.default.createElement(ja,{columnCount:D.length},f.default.createElement(Ha,null,o.icon),f.default.createElement(st,{spacing:"sm",alignX:"center"},f.default.createElement(O,{variant:"headingMedium"},o.heading),o.subheading&&f.default.createElement(O,{variant:"subheadingMedium"},o.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,a=Ka(e.id,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Pa,Object.assign({role:"row",key:e.id,accentColor:n,className:t},a),D.map((t=>function(e,t,n,a){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,o,n,a)}(e,t,N,a))))},H=(e,t)=>{var n,a;const o=null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row,i=Ka(t,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Pa,{role:"row",key:e.id,className:o},D.map((t=>function(e,t,n){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,a,n):f.default.createElement(ya,Object.assign({},a))}(e,t,i))))},W=e=>{var t;const n=null==l?void 0:l.includes(e.id);return f.default.createElement("tbody",{role:"rowgroup",key:e.id},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},P=f.default.createElement(Pa,{role:"row"},D.map(((e,t)=>Ia({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t})))),V=a.some((e=>!!e.renderFooter)),_=$.length>0&&!!t;return f.default.createElement(Ya,{borderMode:n},_&&f.default.createElement(Ma,{selectionColumn:k,intersectionTargetRef:w,containerRef:x},t),f.default.createElement(Va,{ref:x},b&&f.default.createElement(Xa,{tableCss:B,intersectionTargetRef:w,containerRef:x,cellWidths:M},P),f.default.createElement("div",{ref:w,style:{height:0}}),f.default.createElement(_a,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},P),(()=>{const e=!!l;return e&&"nested"===h?s.map(W):e?f.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[j(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):f.default.createElement("tbody",{role:"rowgroup"},s.map(j))})(),V&&f.default.createElement("tfoot",{role:"rowgroup"},f.default.createElement(Pa,{role:"row"},D.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):f.default.createElement(ya,Object.assign({},t))}({column:e}))))))))};Ja.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ja.Cell=ya,Ja.ColumnMenu=function({columns:t,columnGroups:n,setColumns:a}){const[o,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),u=(e,n)=>{const o=c[e].map((e=>e.id)),l=[...t];o.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),a(l)};return f.default.createElement(f.default.Fragment,null,f.default.createElement($e,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&f.default.createElement(re,{anchorElement:o,onShouldClose:()=>r(!1)},f.default.createElement(je,{style:{width:600}},f.default.createElement(st,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>f.default.createElement(st,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Ba,null)}),f.default.createElement(st,{spacing:"sm",style:{flex:1}},e.map((e=>f.default.createElement("div",{key:e.id},e.title)))),f.default.createElement(st,{direction:"horizontal",spacing:"sm"},e[0].hidden?f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Oa,null),onClick:()=>u(t,!1),style:{color:R.colors.neutral.ink.lightest}}):f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Aa,null),onClick:()=>u(t,!0)})))))))))},Ja.SelectionCell=wa,Ja.SelectionHeader=xa,Ja.Header=va,Ja.Truncate=Za,Ja.NoWrap=Wa;const Qa=g.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${R.sizes.base};}`,eo=g.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${R.sizes.xs};}`,to=g.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${R.sizes.base};}`,no=g.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${R.sizes.xs};}`,ao=g.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${R.text.bodyBold.fontFamily};font-size:${R.text.bodyBold.fontSize};font-weight:${R.text.bodyBold.fontWeight};line-height:${R.text.bodyBold.lineHeight};color:${R.text.bodyBold.color};`,oo=g.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${R.text.body.fontFamily};font-size:${R.text.body.fontSize};font-weight:${R.text.body.fontWeight};line-height:${R.text.body.lineHeight};color:${R.text.body.color};`,{sizes:lo,colors:io}=R,ro=g.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${lo.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${lo.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,so=g.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${lo.md};overflow-x:hidden;background-color:${io.neutral.grey.lightest};`,co=g.default.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 uo;!function(e){e.base="base",e.sm="sm"}(uo||(uo={}));const mo=({hasError:e,inputSize:t})=>n.css`&{--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 "}`,po=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${R.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 `}} ${mo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,fo=g.default.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;${mo}`,go=/^-?[0-9]*\.?[0-9]+$/,ho=On(e.forwardRef(((t,n)=>{var{id:a,className:o,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:u,pattern:m,placeholder:p,rows:g="3",size:h=uo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=K(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=e.useCallback((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(go).test(t)&&u(t)}),[u,v]),C=null!=a?a:G("textfield");return"text"===v&&s?f.default.createElement(fo,Object.assign({className:o,disabled:l,hasError:i,id:C,name:c,onChange:E,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):f.default.createElement(po,Object.assign({className:o,disabled:l,hasError:i,id:C,inputSize:h,max:r,min:d,name:c,"aria-label":c,onChange:E,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));ho.displayName="TextField";const bo=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,vo=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,xo=g.default(ho).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${R.colors.neutral.ink.lightest};}`,yo=g.default($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${R.colors.neutral.ink.lightest};`;g.default(O).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`;const wo=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Eo=["-","+","E","e"],Co=e=>wo(e,Eo),$o=On((e=>{var{size:t=uo.base,handleChangeHeight:n,handleChangeWidth:a,handleChangeLength:o,className:l,height:i,width:r,length:d,unit:s}=e,c=K(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return f.default.createElement(bo,{className:l},f.default.createElement(vo,null,f.default.createElement(xo,Object.assign({onChange:o,size:t,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Co},c)),f.default.createElement(Le,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(xo,Object.assign({onChange:a,size:t,name:"width",type:"number",placeholder:"W",value:r,min:"0",step:"any",onKeyDown:Co},c)),f.default.createElement(Le,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(co,null,f.default.createElement(xo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:Co},c)),f.default.createElement(yo,{size:t},s))))}));$o.displayName="DimensionsInput";const ko=g.default(y).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${C.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${C.neutral.grey.dark};border-radius:4px;svg{width:${z.base};height:${z.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,So=g.default(O).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,No=g.default(So).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Lo=g.default(Ne).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Io=g.default(Le).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,zo=g.default(y).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Do=g.default(y).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 ${C.neutral.grey.base};svg{color:${({color:e})=>e};width:${z[5]};height:${z[5]};margin-right:10px;}`,Fo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Ro=g.default(y).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?z[e]:0};`,To=e=>f.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Mo=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Ao=g.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Oo=g.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Bo=g.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,jo=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}),Ho={width:64,height:64},Wo={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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({},Ho)),title:"No data found"},Po={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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({},Ho)),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 Vo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Vo||(Vo={}));const{text:_o,sizes:Zo}=R,{blue:qo}=R.colors.secondary,{grey:Yo}=R.colors.neutral,{scrollbar:Xo}=R.colors.system,Ko='\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',Go=g.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Uo=g.default.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 ${Yo.dark};border-bottom:1px solid ${Yo.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: ${Xo.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Xo.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:a})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Ko};\n\n ${a===Vo.middle||a===Vo.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 ${Ko};\n\n ${a===Vo.start||a===Vo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Jo=g.default(Uo).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Yo.dark};border-radius:4px;`,Qo=g.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,el=g.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Yo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;g.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Yo.lightest};padding:1.5rem 1rem;border-top:1px solid ${qo.base};}`;const tl=g.default.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 `}`,nl=g.default.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:${_o.bodySmall.fontFamily};font-size:${_o.bodySmall.fontSize};font-weight:${_o.bodySmall.fontWeight};color:${_o.bodySmall.color};line-height:${Zo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,al=g.default(nl).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Yo.dark};font-family:${_o.bodySmallBold.fontFamily};font-size:${_o.bodySmallBold.fontSize};font-weight:${_o.bodySmallBold.fontWeight};color:${_o.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Yo.light};}`,ol={left:"flex-start",center:"center",right:"flex-end"},ll=g.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?ol[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,il=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${el}:nth-child(even) td {\n background-color: ${Yo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${al}, & ${al} span {\n white-space: nowrap;\n }\n `}`,rl=g.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${nl}{border-top:1px solid ${Yo.dark};background-color:${Yo.lightest};padding-top:${Zo.base};padding-bottom:${Zo.base};line-height:2rem;}`,dl=g.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,sl=g.default(il).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,cl=g.default(y).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;`,ul=g.default(y).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${R.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,ml=g.default(O).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,pl=g.default(O).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,fl=({height:e,icon:t,title:n,subTitle:a})=>f.default.createElement(cl,{height:e},f.default.createElement(ul,null,t),f.default.createElement(ml,{variant:"headingLarge"},n),a&&f.default.createElement(pl,{variant:"subheadingMedium"},a)),gl=g.default.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:${R.sizes.base};border-radius:${R.radius.base};&:hover{cursor:pointer;background-color:${R.colors.secondary.blue.lightest};}`,hl=g.default(gl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${R.text.link.color};text-decoration:${R.text.link.textDecoration};`,bl=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:vl}=R.colors.neutral,xl=g.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,yl=g.default.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, ${vl.base} 8%, ${vl.dark} 15%, ${vl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,wl=({isLoading:e,style:t})=>f.default.createElement(xl,{style:t},f.default.createElement(yl,{isLoading:e})),El=e=>{var{style:t}=e,n=K(e,["style"]);return f.default.createElement(nl,Object.assign({},n),f.default.createElement(wl,{style:t}))};El.defaultProps={style:{}};const Cl=({renderHeader:t,tableRef:n,wrapperRef:a,isFixedLayout:o,wrapperStyle:l})=>{var i;const[r,d]=e.useState(null),{isSticky:s}=((t,n)=>{const[a,o]=e.useState(!1),l=e.useCallback((({top:e,bottom:t})=>{let l=a;l=e<=(n||0)&&t>0?!a||l:!a&&l,l!==a&&o(l)}),[a,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&l(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[l,t]),{isSticky:a}})(n,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),c=((null===(i=a.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;u.useScroll(a);const m=e=>{var t;const n=(null===(t=a.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return m(),s?f.default.createElement(dl,{ref:e=>{d(e),m(e)},style:Object.assign({width:c},l)},f.default.createElement(sl,{style:{tableLayout:o?"fixed":"auto"}},t())):null},$l=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")},kl=e=>{var{style:t,width:n,isLoading:a}=e,o=K(e,["style","width","isLoading"]);return f.default.createElement(al,Object.assign({},o,{style:{width:n}}),f.default.createElement(wl,{style:t,isLoading:a}))},Sl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Nl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Ll=()=>f.default.createElement(ra,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),Il=()=>f.default.createElement(Sl,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),zl=()=>f.default.createElement(Nl,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),Dl=({borderless:t=!1,striped:n=!0,noWrap:a=!1,showScrollbar:o=!1,headers:l,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:u,renderFooterLoadingRow:m,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:E=!1,isLoading:C=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:L=375,startFixedColumnsNumber:I,endFixedColumnsNumber:z})=>{const D=t?Uo:Jo,F=!!i&&0===i.length,R=Boolean(I||z),T=!I&&!z,M=e.useRef(null),A=e.useRef(null),[O,B]=e.useState(Vo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!A.current||T)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),o=n+a;t===a?B(Vo.none):0===n?B(Vo.start):n>0&&o<t?B(Vo.middle):o===t&&B(Vo.end)};return A.current&&(t=A.current,n(),null===(e=A.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[M,T]);const j=e.useCallback((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),[]),H=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!l||C)return null;const e=[],t=[];let n=0,a=0;if(I){g&&(e.push(H(1,n,"left")),n+=58);for(let t=0;t<I;t+=1){const a=j(l[t].width);a&&(e.push(H(g?t+2:t+1,n,"left")),n+=a)}}if(z)for(let e=0;e<z;e+=1){const n=j(l.slice(-e-1)[0].width);n&&(t.push(H(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[C,j,z,H,l,I,g]),P=e.useMemo((()=>W()),[W]),V=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],a=n.findIndex((e=>e===t.id));n.splice(a,1),v(n)}),[v,g,b]),_=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),Z=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),q=e.useCallback(((e,t)=>{let n="",a=()=>{},o=f.default.createElement(Ll,null);const{tooltip:l,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",a=()=>Z(c),x===c&&(o="ascending"===y?f.default.createElement(Il,null):f.default.createElement(zl,null)));const u=f.default.createElement(ll,{align:i},r&&r,d&&f.default.createElement("span",null,d),s&&o);return f.default.createElement(al,{key:c,id:`data-table-header-${c}`,className:n,onClick:a,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},l?f.default.createElement(At,{text:l},f.default.createElement(Go,null,u)):u)}),[Z,x,y]),Y=e.useCallback(((e,t)=>f.default.createElement(kl,{key:e.id,width:e.width||"auto",style:t,isLoading:C})),[C]),X=e.useCallback((()=>{if(!l)return null;const e=W(),t=e?e[0].style:{};return f.default.createElement(Qo,null,f.default.createElement(tl,null,g&&f.default.createElement(al,{style:Object.assign({width:58},t)},"multiple"===b&&f.default.createElement(Cn,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:_,disabled:h&&h.length>0||C||F,ariaLabel:"Select all"})),l.map(((t,n)=>{const a=g?n+2:n+1,o=n-l.length,i=null==e?void 0:e.find((e=>e.index===a||e.index===o));return t.skeleton&&(C||E||F)?Y(t,t.skeletonStyle||{}):q(t,(null==i?void 0:i.style)||{})}))))}),[W,_,l,F,E,C,Y,q,i.length,g,b,h]),K=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>V(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?f.default.createElement(kn,Object.assign({},n)):f.default.createElement(Cn,Object.assign({},n))}),[V,b,h]),G=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?f.default.createElement(El,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):f.default.createElement(El,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),U=e.useCallback(((e,t)=>{var n,a;if(!d)return null;const o=d(e);if(!o)return null;const l=(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row)||"";return f.default.createElement(tl,{key:e.id,className:`${l} ${t?"hidden":""}`},g&&f.default.createElement(nl,null),o)}),[d,g]),J=e.useCallback((e=>{if(!l)return f.default.createElement(El,null);const t=l.map((t=>f.default.createElement(El,{key:`${e}-${t.id}`})));return g&&t.unshift(G(e)),t}),[l,G,g]),Q=()=>u?C&&!m||!C&&F?null:f.default.createElement(rl,{fixedColumnsStyle:$l(P||[])},f.default.createElement(tl,null,g&&!p&&f.default.createElement(nl,null),!C&&u(i),C&&m&&m())):null;let ee=I;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,a;const{data:o}=e,l=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==o?void 0:o.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(a=null===(n=null==o?void 0:o.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==a?a:"",u=l?`selected ${c}`:`${c}`;return f.default.createElement(el,{key:e.id,className:d,fixedColumnsStyle:$l(P||[])},f.default.createElement(tl,{key:e.id,className:u,accentColor:e.accentColor},g&&f.default.createElement(nl,null,K(l,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>U(e,!i))))}))),[i,s,P,U,r,K,g]);if(C){const e=[];for(let t=0;t<$;t+=1)e.push(f.default.createElement(el,{key:`loading-row-${t}`,fixedColumnsStyle:$l(P||[])},f.default.createElement(tl,null,c?f.default.createElement(f.default.Fragment,null,g&&G(),c()):J(t))));return f.default.createElement(D,{ref:A,scrollDisabled:!0,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&l&&f.default.createElement(Cl,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(il,{ref:M,striped:n,noWrap:a,tableLoading:!0,isFixedLayout:R},X(),e,Q()))}if(F||E){let e=Wo;return N?e=N:E&&(e=Po),f.default.createElement(D,{scrollDisabled:!0},f.default.createElement(il,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),Q()),f.default.createElement(fl,Object.assign({height:L},e)))}return f.default.createElement(D,{scrollDisabled:!1,ref:A,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:o},k&&l&&f.default.createElement(Cl,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(il,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),te,Q()))};Dl.Cell=nl,Dl.ClickableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(nl,Object.assign({},a),f.default.createElement(hl,{onClick:t},n))},Dl.EditableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(nl,Object.assign({},a),f.default.createElement(gl,{onClick:t},f.default.createElement(bl,null,n)))},Dl.SkeletonCell=El,Dl.SkeletonContent=wl;const Fl=g.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Rl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Tl="Log in with Amazon",Ml=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Al=g.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${R.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${je.Footer} {\n box-shadow: 0px 10px 15px 0px ${R.colors.neutral.ink.dark};\n }\n `}`,Ol=e=>!!e.footerSlot,Bl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},jl={[$.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[$.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[$.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Hl={xs:$.mobile,sm:$.mobile,base:$.tablet,lg:$.lgTablet},{breakpoints:Wl}=R,Pl=g.default(t.motion.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:${R.sizes.sm};box-shadow:${R.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${je.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Bl[e]};`} ${Al}{padding-bottom:${R.sizes.md};}${je.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Wl.mobile} + 1px))and (max-width: ${Wl.tablet}){max-width:${({variant:e})=>jl[Wl.tablet][e]};}@media (min-width: ${Wl.tablet})and (max-width: ${Wl.lgTablet}){max-width:${({variant:e})=>jl[Wl.lgTablet][e]};}@media (min-width: ${Wl.lgTablet})and (max-width: ${Wl.desktop}){max-width:${({variant:e})=>jl[Wl.desktop][e]};}@media (min-width: ${Wl.desktop}){max-width:${({variant:e})=>jl[Wl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Hl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${je.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${ne(R.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Vl=f.default.forwardRef(((e,t)=>{var n=K(e,[]);return f.default.createElement(Pl,Object.assign({ref:t},n))})),{sizes:_l,text:Zl,shadows:ql}=R,{grey:Yl}=R.colors.neutral,Xl=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${_l.base} ${_l.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&ql[e]};`,Kl=g.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Zl.headingXL.fontFamily};font-size:${Zl.headingXL.fontSize};font-weight:${Zl.headingXL.fontWeight};margin:unset;line-height:1;`,Gl=g.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Zl.subheadingLarge.fontFamily};font-weight:${Zl.subheadingLarge.fontWeight};font-size:${Zl.subheadingLarge.fontSize};line-height:${Zl.subheadingLarge.lineHeight};`,Ul=g.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${R.radius.base};border:${_l.line} solid ${Yl.base};object-fit:cover;`,Jl=g.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Ql=g.default($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${R.text.link.fontFamily};font-size:${R.text.link.fontSize};font-weight:${R.text.link.fontWeight};line-height:${R.text.link.lineHeight};color:${R.text.link.color};&:hover{text-decoration:${R.text.link.textDecoration};}& > * + *{margin-left:${R.sizes.xs};}`,ei=g.default.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:${_l.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ti=g.default(st).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${R.sizes.lg};height:30px;background-color:${R.colors.neutral.grey.light};border:1px solid ${R.colors.neutral.grey.base};border-radius:${R.sizes.xs};`,ni=g.default($e).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${R.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,ai=g.default(ho).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,oi=({count:e})=>f.default.createElement(f.default.Fragment,null,f.default.createElement("div",null,f.default.createElement(O,{variant:"bodySmall","aria-hidden":!0},"/")),f.default.createElement(ti,{alignX:"center",alignY:"center","aria-hidden":!0},f.default.createElement(O,{variant:"bodySmall"},e))),li=({currentPage:t,totalPagesCount:n,handleChangePage:a})=>{const[o,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(o||l(`${t}`),o===`${t}`)return;const e=parseInt(o,10);i(e)&&a(e)};return{pageInputValue:o,handleIncrement:()=>{i(t+1)&&a(t+1)},handleDecrement:()=>{i(t-1)&&a(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},ii=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),ri=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),di=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],si=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ci=g.default(kt).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,ui=g.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${C.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;}`,mi=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,pi=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${C.secondary.blue.base};background:${C.neutral.grey.lightest};}`,fi=({item:t,handleRangeListChange:n})=>{const a=e.useCallback((()=>n(t)),[n,t]);return f.default.createElement(mi,{onClick:a},f.default.createElement(pi,{variant:"bodySmall"},t.label))},gi=t=>{const{handleRangeListChange:n,paginationRange:a=di}=t;return f.default.createElement(f.default.Fragment,null,a.map((t=>f.default.createElement(e.Fragment,{key:t.label},f.default.createElement(fi,{item:t,handleRangeListChange:n})))))};class hi extends e.Component{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=di[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=di,reversedDropdown:n}=this.props,{shouldShowDropdown:a,dropdownValue:o}=this.state;return f.default.createElement(si,{className:e},f.default.createElement(ci,{cta:f.default.createElement(ui,{onClick:this.toggleShouldShow},f.default.createElement(O,{variant:"bodySmall"},o.label),f.default.createElement(Ee,{color:R.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:n},f.default.createElement(gi,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const bi=g.default.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;}`,vi=g.default.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;}`,xi=({onIncrement:e,onDecrement:t,disabled:n=!1,size:a})=>f.default.createElement(bi,{size:a},f.default.createElement(vi,{type:"button",onClick:e,disabled:n},f.default.createElement(X,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base})),f.default.createElement(vi,{type:"button",onClick:t,disabled:n},f.default.createElement(Ne,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base}))),yi=g.default(ho).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${R.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${R.colors.neutral.ink.lightest};}`,wi=g.default(y).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${R.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?R.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;}}`,Ei=g.default(O).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Ci=g.default(co).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 ${R.colors.secondary.red.light};\n\n > * {\n border-top-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${R.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${R.colors.secondary.red.base};\n border-right-color: ${R.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${R.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}}`;const $i=On((e=>{var{className:t="",hasError:n,currency:a,disabled:o=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=uo.base}=e,c=K(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return f.default.createElement(Ci,{className:t,hasError:n},f.default.createElement(wi,{disabled:o,size:s},f.default.createElement(Ei,{variant:"hintText"},a)),f.default.createElement(yi,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const a=parseFloat(n.replace(",",".")).toFixed(2);i(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(l),"ArrowDown"===t&&m(l)},disabled:o,size:s},c)),f.default.createElement(xi,{onIncrement:()=>u(),onDecrement:()=>m(),disabled:o,size:s}))}));$i.displayName="PriceInput";const ki=g.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Si=g.default(ho).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ni=g.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Li=g.default(y).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 & ${Si} {\n ${t}\n }\n\n & ${Ni} {\n ${n}\n }\n `}}`,Ii=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),zi=R.colors.neutral.grey.lightest,Di=R.colors.neutral.grey.dark,Fi=R.colors.secondary.blue.dark,Ri=g.default(y).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${zi};border-color:${Di};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${Fi};border-color:${Fi};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${R.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Ti=g.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};font-size:${R.text.bodySmall.fontSize};line-height:${R.text.bodySmall.lineHeight};font-weight:${R.text.bodySmall.fontWeight};text-decoration:${R.text.bodySmall.textDecoration};letter-spacing:${R.text.bodySmall.letterSpacing};`,Mi=g.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${R.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};`,Ai={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Oi={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:Bi}=C.secondary,{grey:ji}=C.neutral,Hi=g.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Wi=g.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Bi.lightest};}`,Pi=g.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Vi=g.default.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:${F.bodySmall.fontFamily};font-size:${F.bodySmall.fontSize};font-weight:${F.bodySmall.fontWeight};color:${F.bodySmall.color};line-height:${z.base};& > *{vertical-align:middle;}`,_i=g.default(Vi).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${ji.dark};font-family:${F.bodySmallBold.fontFamily};font-size:${F.bodySmallBold.fontSize};font-weight:${F.bodySmallBold.fontWeight};color:${F.bodySmallBold.color};`,Zi=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Wi} tr:nth-child(even) td {\n background-color: ${ji.lightest};\n }\n `}`,qi=({striped:e=!0,className:t,children:n})=>f.default.createElement(Zi,{striped:e,className:t},n);qi.Header=Hi,qi.Body=Wi,qi.Row=Pi,qi.HeaderCell=_i,qi.Cell=Vi;const Yi=g.default(y).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Yi.displayName="Skeleton";const Xi=g.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ki=g.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${R.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Gi=g.default.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 ${R.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 ${R.colors.secondary.blue.light};}`,Ui=g.default(Ki).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${R.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ji=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}),Qi=g.default(y).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:C.neutral.ink.base};\n background-color: ${null!=e?e:C.neutral.grey.base};\n `}`,er=g.default(st).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${R.layers.tooltip};`,tr=g.default(st).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${R.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${R.shadows.lg};border-radius:${R.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;}`,nr=g.default(y).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${R.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${z.md};height:${z.md};}`,ar=g.default(st).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,or=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,lr={info:{accentColor:C.brand.blue.base,icon:f.default.createElement(pt,null)},success:{accentColor:C.secondary.green.base,icon:f.default.createElement(ft,null)},error:{accentColor:C.secondary.red.base,icon:f.default.createElement(ut,null)},merge:{accentColor:C.secondary.purple.base,icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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)}},ir=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),rr=({className:e,e2eClassName:t,type:n,iconSlot:a,text:o,last:l,minWidth:i,cta:r,onClose:d})=>{const s=ir(e),c=ir(t);return f.default.createElement(tr,{className:ee([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},f.default.createElement(nr,{color:lr[n].accentColor,className:ee([s.icon,c.icon])},null!=a?a:lr[n].icon),f.default.createElement(ar,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(or,{variant:"body"},o),r),f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,{color:"white"}),onClick:d,"aria-label":"Close"}))},dr=g.default.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:${R.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",a="24px",o="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",o="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${a};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\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;}`,sr=g.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${z.md};border-radius:${k.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${C.neutral.ink.lightest};background-color:${C.neutral.grey.lightest};:hover{border:2px dashed ${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};}:active{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}:focus-within{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${C.secondary.red.base};:hover{border:2px dashed ${C.secondary.red.base};background-color:${C.secondary.red.lightest};}:active{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}:focus-within{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${C.neutral.grey.light};border-color:${C.neutral.ink.lightest};color:${C.neutral.ink.light};}`;var cr,ur,mr;exports.AcceptedFileTypes=void 0,(cr=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",cr.JPEG=".jpeg",cr.JPG=".jpg",cr.GIF=".gif",cr.PNG=".png",exports.FileSizeUnit=void 0,(ur=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",ur.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(mr||(mr={}));const pr=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},f.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),f.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),fr=()=>f.default.createElement(st,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},f.default.createElement(pr,null),f.default.createElement(O,{variant:"subheadingSmall",style:{paddingTop:z.sm}},"Browse files or drag them here")),gr=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?f.default.createElement(st,{alignX:"start",spacing:"xs"},e&&f.default.createElement(O,{variant:"errorSmall"},"Invalid format (",e,")"),t&&f.default.createElement(O,{variant:"errorSmall"},"File is too big (",t,")")):null,hr=g.default(O).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,br=g.default(st).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${C.neutral.ink.lightest};border-radius:${k.base};padding:${z.xs};${O}{padding-left:${z.xs};}`,vr=({file:e,resetSelection:t,disabled:n})=>e?f.default.createElement(br,{alignX:"between",direction:"horizontal",alignY:"center"},f.default.createElement(hr,{variant:"body"},null==e?void 0:e.name),f.default.createElement($e,{size:"sm",variant:"flat",onClick:t,icon:f.default.createElement(Le,null),"aria-label":"Remove file",disabled:n})):null,xr=e.forwardRef(((t,n)=>{var{id:a,name:o,maxBytes:l=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:r,label:d="Upload file",required:s,disabled:c}=t,u=K(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const m=e.useRef(null);e.useImperativeHandle(n,(()=>m.current),[]);const[p,g]=e.useState(),[h,b]=e.useState(mr.VALID),v=h===mr.INVALID_FORMAT||h===mr.INVALID_FORMAT_AND_SIZE,x=h===mr.INVALID_SIZE||h===mr.INVALID_FORMAT_AND_SIZE,y=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${a}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:l,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const o=a.length>1,l=t===a.length-1&&o,i=t===a.length-2&&o;switch(l&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!l&&a.length>2&&(n+=", ")})),n})({fileTypes:r}),E=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const o=a.length-1===n&&a.length>1;t+=o?`${e}`:`${e}, `})),t.trim()})({fileTypes:r}),C=()=>{var e;(null===(e=m.current)||void 0===e?void 0:e.value)&&(m.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let a=mr.VALID;t&&!e?a=mr.INVALID_FORMAT:!t&&e?a=mr.INVALID_SIZE:t&&e&&(a=mr.INVALID_FORMAT_AND_SIZE),null===(n=m.current)||void 0===n||n.setCustomValidity(a),b(a)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>l,[,o]=t.type.split("/"),i=!r.find((e=>e.substring(1)===o));n||i?C():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:a}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[r,a,l]),S=e.useCallback((()=>{C(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),N=e.useCallback((()=>{var e;const t=null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==m?void 0:m.current;return null==e||e.addEventListener("change",N),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",N),null==e||e.removeEventListener("cancel",S)}}),[N,S]),f.default.createElement(Mn,{spacing:"sm",alignX:"stretch"},f.default.createElement(Fn,{htmlFor:a},d,f.default.createElement(st,{spacing:3,alignX:"stretch",style:{paddingTop:z.sm}},f.default.createElement(Rn,null,f.default.createElement("div",null,w),f.default.createElement("div",null,y)),f.default.createElement(sr,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.blur()}},f.default.createElement(fr,null),f.default.createElement("input",Object.assign({ref:m,id:a,type:"file",accept:E,name:o,required:s,disabled:c},u))))),f.default.createElement(st,{alignX:"stretch",spacing:"sm"},f.default.createElement(vr,{file:p,resetSelection:S,disabled:c}),f.default.createElement(gr,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:x?y:void 0})))})),yr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",wr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${yr} display:${e=>e.shouldShow?"initial":"none"};z-index:${R.layers.modal};`,Er=g.default(y).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${yr} background-color:rgba(55,66,77,0.5);`,Cr=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,$r=({usePortal:e,children:t})=>f.default.createElement(f.default.Fragment,null,e?f.default.createElement(U,null,t):t),kr=({className:e,children:t=null,shouldShow:n=!1,usePortal:a=!0})=>f.default.createElement($r,{usePortal:a},f.default.createElement(wr,{className:ee([`${e}-container`,e]),shouldShow:n},f.default.createElement(Er,null),f.default.createElement(x.default,{isActive:n},f.default.createElement(Cr,{className:ee([`${e}-wrap`,e])},t)))),Sr=g.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Nr=g.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Lr=g.default($e).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Ir;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Ir||(Ir={}));const zr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Dr=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Fr=g.default(y).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 ${O} {\n color: ${null!=t?t:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Rr=g.default(O).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 & > ${Dr} {\n color: #fff;\n }\n `}`,Tr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Mr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,Ar=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.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"})),Or=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});var Br;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Br||(Br={}));const jr=e=>f.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),f.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Hr=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Wr=g.default(jr).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Pr=g.default(Le).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Vr=g.default(O).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Hr} {\n color: ${C.neutral.grey.lightest};\n }\n `}`,_r=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${R.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${C.neutral.grey.base};\n & > ${Vr} {\n background-color: ${C.neutral.grey.base};\n & > ${Hr} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${Wr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${Pr} {\n color: ${C.neutral.ink.dark};\n }\n }\n\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Wr} {\n color: ${t.dark};\n }\n & > ${Pr} {\n color: ${t.dark};\n }\n\n & > ${O} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Zr=g.default(ve).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${R.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${_r} {\n background-color: ${C.neutral.grey.base};\n & > ${Vr} {\n background-color: ${C.neutral.grey.base};\n & > ${Hr} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${Wr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${Pr} {\n color: ${C.neutral.ink.dark};\n }\n }\n `}`,qr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Yr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,Xr=f.default.forwardRef(((e,t)=>{var{id:n,iconSlot:a,name:o,type:l,className:i,colourPalette:r=C.secondary.blue,customTextColour:d,count:s,active:c=!1,onClick:u,subAction:m,ariaContext:p}=e,g=K(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,x,y]=tt(),w=c&&m?m:u,E=l===Br.draft,$=l===Br.saved;return f.default.createElement(Zr,Object.assign({className:ee([null==h?void 0:h.container]),onClick:()=>w(n),role:"tab","aria-selected":c,"aria-label":`${c&&E?"Delete":c&&$?"Edit":""} ${o} view ${s?`with ${s} ${p}`:""}`,customTextColour:d,ref:t},g),f.default.createElement(_r,{active:c,onMouseEnter:x,onMouseLeave:y,colourPalette:r,customTextColour:d},a&&f.default.createElement(Yr,null,a),f.default.createElement(O,{variant:"bodyBold"},o),null!=s&&f.default.createElement(Vr,{"data-testid":"countContainer",active:c||v,colourPalette:r,customTextColour:d},f.default.createElement(Hr,{variant:"subheadingSmall"},s)),E&&f.default.createElement(Pr,Object.assign({},qr,{"aria-label":"delete icon"})),$&&c&&f.default.createElement(Wr,Object.assign({},qr,{"aria-label":"edit icon"}))))})),Kr=g.default(st).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Gr=g.default(st).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${C.neutral.grey.lightest};`,Ur=g.default(ln).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${C.neutral.ink.base};`,Jr=g.default(Kt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${C.neutral.ink.base};`,Qr=g.default(jr).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${C.neutral.ink.base};`,ed=g.default($e).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${C.neutral.grey.lightest};}`,td=g.default($e).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Ur}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,nd=g.default($e).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Jr}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,ad=g.default(co).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,od=(t,n)=>{var a;const[o,l]=e.useState(!0),[i,r]=e.useState(!1),[d,s]=e.useState([]),c=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.querySelector("[aria-selected = true]"),m=u.usePrevious(c),p=e.useCallback((()=>{var e,n,a,o,i,d,s,c;(null===(e=t.current)||void 0===e?void 0:e.scrollLeft)>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(n=document.getElementById("right-arrow"))||void 0===n||n.focus()),l(!0));const u=(null!==(o=null===(a=t.current)||void 0===a?void 0:a.scrollWidth)&&void 0!==o?o:0)-(null!==(d=null===(i=t.current)||void 0===i?void 0:i.clientWidth)&&void 0!==d?d:0);(null===(s=t.current)||void 0===s?void 0:s.scrollLeft)>=u-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(c=document.getElementById("left-arrow"))||void 0===c||c.focus()),r(!0)):r(!1)}),[t]),f=e.useCallback((()=>{t.current&&(t.current.scrollWidth-t.current.getBoundingClientRect().width<5?r(!0):r(!1))}),[t]),g=e.useCallback((()=>{const e=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(d,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]),h=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(d,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]);return e.useEffect((()=>{var e,a,o,l,i,r,u;if(null==t?void 0:t.current){if((null===(e=t.current.children)||void 0===e?void 0:e.length)&&(null===(a=t.current.children)||void 0===a?void 0:a.length)!==d.length&&d.length>0&&d.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),s([...d,d[d.length-1]+(null!==(l=null===(o=t.current.children[d.length-1])||void 0===o?void 0:o.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(i=t.current.children)||void 0===i?void 0:i.length)&&0===d.length&&s((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c!==m&&null!==c&&(null===(r=t.current.children)||void 0===r?void 0:r.length)===d.length){const e=Array.from(t.current.children).indexOf(c);t.current.scrollTo({left:d[e],top:0,behavior:"smooth"})}return f(),window.addEventListener("resize",f),null===(u=t.current)||void 0===u||u.addEventListener("scroll",p),()=>{window.removeEventListener("resize",f)}}}),[t,n,f,p,d,c,m]),{rightDisabled:i,leftDisabled:o,toNextScrollPosition:g,toPrevScrollPosition:h}},ld=f.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:o},l)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=od(i,t);return f.default.createElement(Gr,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(Kr,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),f.default.createElement(ad,null,(!d||!r)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(td,{id:"left-arrow",icon:f.default.createElement(Ur,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),f.default.createElement(nd,{id:"right-arrow",icon:f.default.createElement(Jr,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),f.default.createElement(ed,{icon:f.default.createElement(Qr,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":o,"aria-haspopup":a?"dialog":void 0,ref:l})))})),id=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,rd=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,dd=g.default(ho).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,sd=g.default($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${R.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${R.colors.secondary.red.base};\n `};`,cd=e=>wo(e,Eo),ud=On((e=>{var{size:t=uo.base,hasError:n,className:a}=e,o=K(e,["size","hasError","className"]);return f.default.createElement(id,{className:a},f.default.createElement(rd,null,"g"===o.weightUnit&&f.default.createElement(co,null,f.default.createElement(dd,Object.assign({size:t,onChange:o.handleChangeGram,name:"gram",type:"number",value:o.gram,hasError:n,min:"0",step:"any",onKeyDown:cd},o)),f.default.createElement(sd,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(o)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(co,null,f.default.createElement(dd,Object.assign({size:t,onChange:o.handleChangePound,name:"pound",type:"number",value:o.pound,hasError:n,step:"any",min:"0",onKeyDown:cd},o)),f.default.createElement(sd,{hasError:n,size:t},"lb")),f.default.createElement(co,null,f.default.createElement(dd,Object.assign({size:t,onChange:o.handleChangeOunce,name:"ounce",type:"number",value:o.ounce,hasError:n,min:"0",step:"any",onKeyDown:cd},o)),f.default.createElement(sd,{hasError:n,size:t},"oz")))))}));ud.displayName="WeightInput",ud.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:a,label:o,iconSlot:l,glyphColor:i=C.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s,variant:c="default",summaryTextVariant:u="body"})=>{const[m,p]=e.useState(!!s),g=()=>p(!m),h={initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}};return"unstyled"===c?f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(Y,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(O,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(V,{variant:"hintText"},d)),m&&f.default.createElement(q,Object.assign({},h),a)):f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(W,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(O,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(V,{variant:"hintText"},d)),m&&f.default.createElement(_,Object.assign({},h),a))},exports.ActionList=Xe,exports.ActionMenu=rt,exports.Alert=e=>{var{size:t="base",variant:n="default",colours:a,rightActions:o,title:l,titleSlot:i,message:r,children:d,iconSlot:s,onClickClose:c}=e,u=K(e,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const m=null!=a?a:vt[n],p=s||bt[n],g="xs"===t;return f.default.createElement(ct,Object.assign({colours:m,direction:"horizontal",alignX:"between",spacing:"0"},u),f.default.createElement(st,{direction:"horizontal",alignY:g?"center":"start",style:{margin:gt[t],gap:gt[t]},spacing:0},f.default.createElement(p,{"aria-hidden":!0,style:{minWidth:ht[t],minHeight:ht[t],width:ht[t],height:ht[t]},color:m.primary}),f.default.createElement(st,{direction:"vertical",spacing:g?0:"xs"},i||f.default.createElement(O,{variant:g?"bodySmallBold":"bodyBold",style:"base"===t?{lineHeight:"24px"}:{}},l),d||f.default.createElement(O,{variant:g?"bodySmall":"body"},r))),f.default.createElement(st,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:g?void 0:R.sizes[3],gap:g?void 0:gt[t],alignItems:"center"}},o&&f.default.createElement(st,{alignY:"center",spacing:0,style:{gap:gt[t]}},o.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button",size:"sm"},n),t)}))),c&&f.default.createElement(st,{alignY:g?"center":"start",style:{height:"100%",padding:g?R.sizes.xs:void 0}},f.default.createElement($e,{variant:"flat",icon:f.default.createElement(Le,null),onClick:c,"aria-label":"Close",size:"sm"}))))},exports.Anchor=e=>{var{children:t,href:n,rel:a,allowedHostnames:o=ae}=e,l=K(e,["children","href","rel","allowedHostnames"]);const i=oe(n,o),r=a||(i?"noopener noreferrer":void 0);return f.default.createElement(xt,Object.assign({href:n,rel:r},l),t)},exports.AnimatedDropdown=kt,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=R.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const o=t.toUpperCase().match(/\b(\w)/g);return f.default.createElement(St,{width:e,bgColor:n,textColor:a,className:"avatar"},null==o?void 0:o.slice(0,2).map(((e,t)=>f.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:a,className:o,e2eClassName:l,children:i})=>{const r=Bt[e];return f.default.createElement(At,{text:a},f.default.createElement(r,{className:ee([o,l]),hideBorder:t},n&&n,i&&f.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:a,onClose:o,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=K(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=qt[t];return f.default.createElement(jt,Object.assign({accentColor:c,className:l,backgroundColor:d},s),f.default.createElement(Ht,null,a&&f.default.createElement(Pt,{style:{marginRight:z.md},accentColor:c},a),r?f.default.createElement(Vt,null,r):f.default.createElement(f.default.Fragment,null,f.default.createElement(_t,null,i||f.default.createElement(Zt,{variant:"headingSmall"},n)),f.default.createElement(Wt,null,o&&f.default.createElement($e,{variant:"flat","aria-label":"Close",icon:f.default.createElement(Le,null),onClick:o})))))},exports.BaseContainer=y,exports.Breadcrumbs=({items:e,Separator:t=f.default.createElement(Ut,null),LinkComponent:n=Jt})=>f.default.createElement(Yt,{className:"breadcrumbs"},e.map(((a,o)=>f.default.createElement(Gt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:o!==e.length-1?n:Qt},e.length!==o+1&&t)))),exports.Button=$e,exports.Card=je,exports.CardHeader=Ie,exports.Checkbox=Cn,exports.Choice=vn,exports.ChoiceList=Ln,exports.CopyToClipboard=({className:t,text:n,onCopy:a})=>{const[o,l]=f.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),a&&a(),l(!0),setTimeout((()=>l(!1)),2500)}),[a,n]);return f.default.createElement(At,{text:o?"Copied!":"Copy to clipboard"},f.default.createElement(Dn,{variant:"flat",size:"sm",className:t,"aria-label":`${o?"Copied":"Copy"} "${n}" to clipboard`,icon:o?f.default.createElement(ft,Object.assign({color:C.secondary.green.base},zn)):f.default.createElement(In,Object.assign({color:C.secondary.blue.base},zn)),onClick:i}))},exports.DATE_RANGE_OPTIONS=Un,exports.DEFAULT_PRESET=ea,exports.DEFAULT_RANGE=Qn,exports.DataTable=Ja,exports.DateRangeInput=jn,exports.DateRangePicker=t=>{var{className:n,style:a,isDisabled:o,isMultiMonth:l=!1,showDatePresets:i=!0,onReset:r,disabledRanges:d,selectedPreset:s,setSelectedPreset:c,selectedRange:u,setSelectedRange:m,"aria-describedby":p,"aria-label":g}=t,h=K(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const b=e.useCallback((e=>t=>{const n={start:"start"===e?t:null==u?void 0:u.start,end:"end"===e?t:null==u?void 0:u.end};m(n)}),[null==u?void 0:u.end,null==u?void 0:u.start,m]),v=e.useMemo((()=>ta({disabledRanges:d,selectedRange:u})),[d,u]),x=e.useMemo((()=>u?(e=>Un.reduce(((t,n)=>{if(n.hidden||t)return t;const a=Gn(n.value);if(!a)return t;const{start:o,end:l}=a;return 0===e.start.compare(o)&&0===e.end.compare(l)?n:t}),void 0))(u):null),[u]);return e.useEffect((()=>{c(x||Un[0])}),[x,c]),f.default.createElement(st,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:R.sizes.base},a),className:n,"aria-describedby":p,"aria-label":g},i&&f.default.createElement(Wn,{disabled:o,label:"Date Range",options:Un,value:null==s?void 0:s.value,onChange:e=>{m(Gn(exports.DateRanges[e])),c(Un.find((({value:t})=>t===e))||Un[0])}}),f.default.createElement(jn,{isDisabled:o,label:"Start date - End date",onChangeStartDate:b("start"),onChangeEndDate:b("end"),startValue:u&&u.start,endValue:u&&u.end,error:v?"Range contains invalid dates":void 0}),h.showPreviousPeriod&&f.default.createElement(Xn,Object.assign({},h)),f.default.createElement(na,null),f.default.createElement(st,{alignX:"center"},f.default.createElement(rn,{"aria-label":"Selected Date Range",isDisabled:o,isMultiMonth:l,value:u,onChange:m,disabledRanges:d})),!!r&&f.default.createElement(f.default.Fragment,null,f.default.createElement(na,null),f.default.createElement(je.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},f.default.createElement($e,{variant:"default",size:"sm",onClick:r,disabled:o},"Reset"))))},exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>f.default.createElement(oo,{key:e},e))):f.default.createElement(oo,null,e);return f.default.createElement(Qa,null,e.map((e=>t?f.default.createElement(to,{key:e.term},f.default.createElement(ao,null,e.term),f.default.createElement(no,null,n(e.description))):f.default.createElement(eo,{key:e.term},f.default.createElement(ao,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[a,o]=e.useState(!0);return f.default.createElement("main",null,t((()=>o(!a)),a),f.default.createElement(so,null,f.default.createElement(ro,{showSidebar:a},n)))},exports.DimensionsInput=$o,exports.Dropdown=Ue,exports.FilterTag=({className:t,e2eClassName:n,label:a,text:o,iconSlot:l,fill:i=C.secondary.blue.base,content:r,footer:d,header:s,onClickAway:c,onClick:u,shouldCloseOnClickAway:m=!0})=>{const p=Fo(t),g=Fo(n),[h,b]=e.useState(null),[v,x]=e.useState(null),{shouldShowDropdown:y,toggleShouldShowDropdown:w,closeDropdown:E}=Qe({anchorElement:h}),{handleKeyDown:$}=ie({popperElement:v,anchorElement:h,onClose:E}),k=e.useCallback((e=>{y?E():w(),c&&y&&c(e)}),[y,E,w,c]),S=e.useCallback((e=>{c&&c(e,E),m&&E()}),[c,E,m]);return!r?f.default.createElement(ko,{className:ee([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:u},a&&f.default.createElement(No,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(O,null,o),f.default.createElement(Io,{className:ee([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:C.neutral.ink.base})):f.default.createElement(kt,{className:p.filterTagDropdown,shouldShowDropdown:y,onClickAway:S,cta:f.default.createElement(ko,{className:p.container,onClick:k,ref:b},a&&f.default.createElement(No,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(O,null,o),f.default.createElement(Lo,{color:C.neutral.ink.base,name:"downArrow",$shouldShow:y}))},f.default.createElement(zo,{ref:x,onKeyDown:$},f.default.createElement(Do,{color:i},s||f.default.createElement(f.default.Fragment,null,l,f.default.createElement(O,{variant:"bodyBold"},a))),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,a]=e.useState(!0);return e.useEffect((()=>{function e(){a(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(a(!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 l(e){e.metaKey||e.altKey||e.ctrlKey||a(!0)}function i(){"hidden"===document.visibilityState&&(a(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[a]),f.default.createElement(et.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Ro,exports.Image=({src:t,alt:n="",className:o,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=jo(o),x=jo(i),[y,w]=e.useState(!1),[E,C]=e.useState({isLoaded:!1,isError:!1}),[$,k]=f.default.useState(null),[S,N]=f.default.useState(null),{styles:L,attributes:I}=a.usePopper($,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),D=e.useCallback((()=>m?w(!1):{}),[m]),F=!E.isLoaded||E.isError;return f.default.createElement(Mo,{className:ee([null==v?void 0:v.container,null==x?void 0:x.container,o])},f.default.createElement(Ao,{src:t,alt:n,className:ee([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:D,style:F?{display:"none"}:{},ref:k}),!b&&F&&(p||f.default.createElement(To,{className:ee([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(f.default.createElement(Oo,Object.assign({ref:N,style:L.popper},I.popper,{className:ee([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),f.default.createElement(Bo,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=co,exports.LegacyDataTable=Dl,exports.Loader=ue,exports.LoginWithAmazonButton=t=>{const[n,a]=e.useState(Rl);return f.default.createElement(Fl,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(Rl)},"aria-label":Tl},t),f.default.createElement("img",{src:n,alt:Tl}))},exports.Modal=n=>{const{shouldShow:a,showHeaderCloseButton:o=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,u]=e.useState(null);e.useEffect((()=>{var e,t;a&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:m,onScroll:p}=nt(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return f.default.createElement(t.AnimatePresence,null,a&&f.default.createElement("div",{"data-testid":"dialog-wrapper"},f.default.createElement(Ml,null),f.default.createElement(Vl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},f.default.createElement(je.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:f.default.createElement(Ie,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},o&&{onClickClose:g})),f.default.createElement(Al,{onScroll:p,ref:u,isScrollable:m,fullBleed:l},d),Ol(n)&&n.footerSlot,!Ol(n)&&(n.leftActions||n.rightActions)&&f.default.createElement(je.Footer,null,f.default.createElement(st,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&f.default.createElement(st,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&f.default.createElement(st,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement($e,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:a,quickActions:o,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const u=a&&f.default.createElement(Xe,{buttonVariant:o?"default":"primary",title:"Actions",sections:a}),m=null==o?void 0:o.map((e=>f.default.createElement($e,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=l&&f.default.createElement($e,{onClick:l.onClick,icon:f.default.createElement(ln,null),variant:"link"},l.title),g=c&&f.default.createElement(st,{direction:"horizontal",alignX:"end"},f.default.createElement(Ql,{onClick:c},f.default.createElement("span",null,"Toggle sidebar"),f.default.createElement(Kt,{width:z.md})));return f.default.createElement(Xl,{shadow:r},f.default.createElement(st,null,p,f.default.createElement(ei,null,f.default.createElement(st,{direction:"horizontal",spacing:"md"},n&&f.default.createElement(Ul,{src:n,alt:"",width:"72",height:"72"}),f.default.createElement("div",{style:{flex:1}},f.default.createElement(st,{alignX:"stretch"},f.default.createElement(Kl,null,e),i,t&&f.default.createElement(Gl,null,t)))),f.default.createElement(Jl,null,f.default.createElement(st,{direction:"horizontal",alignX:"end",spacing:"sm"},m,u,d&&f.default.createElement($e,{icon:f.default.createElement(ln,null),onClick:d}),s&&f.default.createElement($e,{icon:f.default.createElement(Kt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:a,handleChangePage:o})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=li({currentPage:n,totalPagesCount:a,handleChangePage:o});return f.default.createElement(st,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},f.default.createElement(ni,{onClick:()=>{1!==n&&o(1)},icon:f.default.createElement(ii,null),size:"sm","aria-label":"go to first page"}),f.default.createElement(ni,{onClick:r,icon:f.default.createElement(ln,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),f.default.createElement("form",{onSubmit:d},f.default.createElement(ai,{"aria-live":"polite","aria-label":`page ${n} of ${a}`,size:uo.sm,type:"number",value:l,min:"1",max:`${a}`,onChange:s,onBlur:c})),f.default.createElement(oi,{count:a}),f.default.createElement(ni,{onClick:i,icon:f.default.createElement(Kt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=a}),f.default.createElement(ni,{onClick:()=>{n!==a&&o(a)},icon:f.default.createElement(ri,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=a}))},exports.PaginationRange=hi,exports.Popover=re,exports.Popup=kr,exports.Portal=U,exports.PriceInput=$i,exports.Radio=kn,exports.RangeCalendar=rn,exports.ScreenReaderOnly=({children:e})=>f.default.createElement(ki,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:u="",className:m="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return f.default.createElement(Li,{className:m,iconPosition:b?"left":"right"},f.default.createElement(Si,{size:x,type:e,value:s,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:u,name:p,disabled:t,error:c,autoComplete:v}),f.default.createElement(Ni,null,g?f.default.createElement(ue,{height:24,color:h||R.colors.secondary.blue.base}):y&&n?f.default.createElement($e,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},f.default.createElement(Le,{color:h||R.colors.neutral.ink.dark})):f.default.createElement($e,{variant:"unstyled",onClick:()=>a(s),style:{display:"flex"},"aria-label":"Search",type:"button"},f.default.createElement(Ii,{color:h||R.colors.neutral.ink.dark,height:z.md,width:z.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:a})=>f.default.createElement(Ri,{className:n?`${n}-container`:void 0},e.map((e=>f.default.createElement($e,{type:"button","aria-pressed":e.value===t,variant:e.value===t?"primary":"default",key:e.key,onClick:()=>a(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Wn,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:a=!1,displayLabel:o=!1}=e,l=K(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Ai[e]?f.default.createElement(Mi,{key:`Key: ${e}`,"aria-label":Oi[e]},Ai[e]):f.default.createElement(Mi,{key:`Key: ${e}`},e))).reduce(((e,t)=>f.default.createElement(f.default.Fragment,null,e,"+",t)));return f.default.createElement(Ti,Object.assign({"aria-label":n,$inverse:a},l),i," ",o?f.default.createElement("span",null,n):null)},exports.SimpleTable=qi,exports.Skeleton=Yi,exports.Slider=({id:t,value:n,min:a,max:o,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[u,m]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Ji(r),y=Ji(d),w=e.useCallback((e=>{var t;if(!u||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(o-a)+a;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>o&&(s=o),s<a&&(s=a),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const m=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;s=Number(s.toFixed(m)),f=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&g(1),1===p&&g(0))}),[p,u,o,a,i,l,n]),E=e.useCallback((()=>{m(!1),c()}),[c]),C=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>C(e,Array.isArray(n)?0:1),t=e=>C(e,1),a=b.current,o=v.current;return null==a||a.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),()=>{null==a||a.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)}}),[C,w,E,n]);const $=(e,t,n)=>{let l;return l=ee("number"==typeof n?0===n?[null==x?void 0:x.startSlider,null==y?void 0:y.startSlider]:[null==x?void 0:x.endSlider,null==y?void 0:y.endSlider]:[null==x?void 0:x.slider,null==y?void 0:y.slider]),f.default.createElement(Gi,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<a?0:e[0]-a)/(o-a),n=100*(e[1]>o?100:e[1]-a)/(o-a),l=n-t;return f.default.createElement(f.default.Fragment,null,f.default.createElement(Ui,{className:ee([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>o?100:n<a?0:100*(e-a)/(o-a),$(t,e)})(n),f.default.createElement(Xi,{className:ee([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},f.default.createElement(Ki,null),S)},exports.Stack=st,exports.Stepper=xi,exports.Tag=Qi,exports.Text=O,exports.TextField=ho,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:a,minWidth:o="50vw",max:i=3,onClose:r})=>(e.useEffect((()=>{i&&a.length>i&&r(a[0].key)}),[a,i,r]),l.createPortal(f.default.createElement(er,{direction:"vertical",alignX:"center",spacing:4},f.default.createElement(d.TransitionGroup,{component:null},[...a].reverse().map(((e,l)=>f.default.createElement(d.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},f.default.createElement(rr,Object.assign({className:t,e2eClassName:n,minWidth:o,last:l===a.length-1,onClose:()=>r(e.key)},e))))))),document.body)),exports.Toggle=qn,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:a=!1,onChange:o})=>f.default.createElement(dr,{type:"button",checked:t,size:n,disabled:a,"aria-pressed":t,tabIndex:"0",onClick:()=>o(!t)},e),exports.Tooltip=At,exports.UploadFile=xr,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:a})=>{const o=Je(n,a);return f.default.createElement(kr,{shouldShow:n,className:`${e}-video`},f.default.createElement(Sr,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},f.default.createElement(Nr,{ref:o},f.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),f.default.createElement(Lr,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:f.default.createElement(Le,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:a,type:o,className:l,colourPalette:i=C.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:u,onEdit:m,e2eClassName:p})=>{const g=Or(l),h=Or(p),[b,v,x]=tt(),y=e.useCallback((()=>c(t)),[t,c]),w=e.useCallback((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=o===Ir.draft,k=o===Ir.saved,S=s?C.neutral.ink.dark:C.neutral.ink.base;return f.default.createElement(zr,{className:`${ee([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:y},f.default.createElement(Fr,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&f.default.createElement(Mr,null,n),f.default.createElement(O,{variant:"bodyBold"},a),d&&f.default.createElement(Rr,{active:s||b,colourPalette:i,customTextColour:r},f.default.createElement(Dr,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&f.default.createElement(Le,Object.assign({},Tr,{color:S,className:null==h?void 0:h.delete,onClick:w})),k&&s&&f.default.createElement(Ar,Object.assign({},Tr,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=Xr,exports.ViewsContainer=ld,exports.WeightInput=ud,exports.buildClassnames=ee,exports.checkIfDateRangeInvalid=ta,exports.generateId=G,exports.getDateRange=Gn,exports.getOpaqueHexColor=ne,exports.hexToRgb=te,exports.isExternalLink=oe,exports.theme=R,exports.useCellWidths=ua,exports.useClickOutside=Je,exports.useColumns=fa,exports.useDebounce=(t,n)=>{const[a,o]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>o(t)),n);return()=>clearTimeout(e)}),[t,n]),a},exports.useDragToScroll=ga,exports.useDropdown=Qe,exports.useFocusVisible=function(){const[e,t]=f.default.useState(!1),{hadKeyboardEvent:n,isInitialized:a}=f.default.useContext(et),o=f.default.useCallback((()=>{e||t(!0)}),[e]),l=f.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=a?n&&e:e,f.default.useMemo((()=>({focusVisible:i,onFocus:o,onBlur:l})),[i,l,o])},exports.useHover=tt,exports.useId=at,exports.useIsOverflowing=nt,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,a)=>{if(a)if(e){if(t.includes(a))return;const e=[...t,a];n(e)}else{const e=t.findIndex((e=>e===a));if(e<0)return;const o=[...t];o.splice(e,1),n(o)}}}}},exports.useScrollPosition=ha,exports.useSelection=Ca,exports.useTabs=(t,n)=>{const{defaultActiveIndex:a=0}=n||{},[o]=e.useState(t),[l,i]=e.useState(o[a]);return[l,e=>{const t=o.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),f.default.createElement(t,Object.assign({},n))),exports.withLabels=On;
2
2
  //# sourceMappingURL=index.js.map