@veeqo/ui 4.5.0-beta → 4.6.0-beta

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"),o=require("react-popper"),l=require("resize-observer-polyfill"),a=require("react-dom"),i=require("react-transition-group"),r=require("lodash.throttle"),d=require("react-use"),s=require("react-scrolllock-configurable");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),m=c(n),f=c(l),p=c(a),g=c(r),h=c(s);const b=m.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,v={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},x=(e,t)=>e||(t?v[t]:void 0),y={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"}}},w={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},C={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var E,$;!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)"}(E||(E={})),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"}($||($={}));const k=function({increment:e,unit:t,count:n}){const o={};for(let l=0;l<=n;l++){const n=l*e;o[l]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),S={[$.none]:"0",[$.line]:"1px",[$.xs]:k[1],[$.sm]:k[2],[$.base]:k[4],[$.md]:k[6],[$.lg]:k[8],[$.xl]:k[12],[$.xxl]:k[16]},N=Object.assign(Object.assign({},S),k),I={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},L={headingXXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},z=Object.assign(Object.assign({},I),{breakpoints:w,colors:y,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:C,shadows:E,sizes:N,text:L}),{text:F,colors:j,fontFamily:B}=z,D=m.default.span.attrs((({as:e,variant:t})=>({as:x(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--m0sc57"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${B};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?j.neutral.ink.lightest:F[e].color;return`\n font-family: ${F[e].fontFamily};\n font-style: ${F[e].fontStyle};\n font-weight: ${F[e].fontWeight};\n font-size: ${F[e].fontSize};\n line-height: ${F[e].lineHeight};\n color: ${n};\n text-decoration: ${F[e].textDecoration};\n letter-spacing: ${F[e].letterSpacing};\n `}}`,M=m.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,R=m.default(M).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${N.base};width:${N.base};color:${({glyphColor:e})=>e};}`,H=m.default(M).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,T=m.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1lgp9cv"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${z.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}`,A=m.default(b).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,O=m.default(D).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,W=m.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,P=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,V=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.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 Z(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n}"function"==typeof SuppressedError&&SuppressedError;const q=e=>`${e}-${Math.floor(1e3*Math.random())}`;class X extends e.PureComponent{constructor(e){super(e),this.id=q("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?a.createPortal(e,this.portalNode):null}}const G=m.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,U=m.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,_=e=>e.filter(Boolean).join(" "),K=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},Y=(e,t)=>{const n=K(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},J='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])',Q=({popperElement:t,anchorElement:n,onClose:o,disableFocusLock:l=!1})=>{e.useEffect((()=>{if(!t||l)return;const e=t.querySelectorAll(J);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,l]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(J);if(n.length<1)return void o();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,o]);return{handleKeyDown:e=>{t&&("Escape"===e.key?o():l||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(J),o=n[0],l=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),l.focus()):e.shiftKey||document.activeElement!==l||(e.preventDefault(),o.focus())})(e))}}},ee=t=>{var{id:n,children:l,zIndex:a=z.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:m}=t,p=Z(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock"]);const[g,h]=e.useState(null),{styles:b,attributes:v,update:x}=o.usePopper(r,g,{placement:i}),y=e.useMemo((()=>n||q("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:y});const w=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:C}=Q({popperElement:g,anchorElement:r,onClose:w,disableFocusLock:m});return e.useEffect((()=>{if(!x||!g)return;const e=new f.default(x);return e.observe(g),()=>e.disconnect()}),[x,g]),e.useEffect((()=>{if(x)return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)}),[x]),u.default.createElement(X,{rootElementRef:d},u.default.createElement(U,{onClick:w,zIndex:a}),u.default.createElement(G,Object.assign({open:!0,zIndex:a,ref:h,style:Object.assign(Object.assign({},b.popper),c),onKeyDown:C},v.popper,p),l))},te=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":l},u.default.createElement("defs",null,u.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},u.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),u.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),u.default.createElement("stop",{stopColor:o,offset:"100%"}))),u.default.createElement("g",{fill:"none",fillRule:"evenodd"},u.default.createElement("g",{transform:"translate(1 1)"},u.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),u.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ne=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),oe=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"15",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},u.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"105",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),le=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:l="TailSpin"})=>{switch(l){case"Grid":return u.default.createElement(ne,{className:e,height:t,width:n,color:o});case"ThreeDots":return u.default.createElement(oe,{className:e,height:t,width:n,color:o});default:return u.default.createElement(te,{className:e,height:t,width:n,color:o})}},ae=m.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({loading:e})=>e&&"opacity: 0;"};svg{width:${({size:e})=>N[e]};height:${({size:e})=>N[e]};}`,ie=m.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--1xsghtl"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",l="8px",a="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",l="4px",a="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${a};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,re=m.default(ie).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${z.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?z.colors.neutral.ink.base:z.colors.secondary.blue.base};&:hover{background-color:${z.colors.neutral.grey.lightest};}&:active{background-color:${z.colors.neutral.grey.lightest};border-color:${z.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${z.colors.neutral.grey.base} !important;border-color:${z.colors.neutral.grey.base} !important;color:${z.colors.neutral.ink.light} !important;}`,de=m.default(re).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${z.colors.secondary.red.base};&:hover{color:${z.colors.secondary.red.dark};}&:active{border-color:${z.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};color:${z.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,se=m.default(re).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${z.colors.secondary.blue.base};border-color:${z.colors.secondary.blue.base};color:white;&:hover{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};}&:active{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}`,ce=m.default(se).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${z.colors.secondary.red.base};border-color:${z.colors.secondary.red.base};color:white;&:hover{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};}&:active{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,ue=m.default(ie).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${z.colors.neutral.ink.base};&:hover{background-color:${z.colors.neutral.grey.light};}&:active{background-color:${z.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,me=m.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,fe=m.default(me).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};text-decoration:${z.text.link.textDecoration};color:${z.colors.secondary.blue.base};&:hover{color:${z.colors.secondary.blue.dark};}& > * + *{margin-left:${z.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${z.colors.secondary.blue.light};border-radius:4px;}`,pe=m.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--cvu4hf"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ge=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),he={default:re,primary:se,destructive:de,primaryDestructive:ce,flat:ue,link:fe,unstyled:me},be=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:l,variant:a="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Z(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return u.default.createElement(me,Object.assign({ref:t,className:n},s),o);const c=he[a],m=void 0!==o,f=!!l;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:f,hasDropdown:r},s),(m||f)&&u.default.createElement(ae,{loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},l&&l,void 0!==o&&u.default.createElement("span",null,o),r&&u.default.createElement(ge,null)),d&&u.default.createElement(pe,null,u.default.createElement(le,null)))})),ve=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${N.md};padding-right:${N.md};padding-left:${N.md};margin-bottom:${N.md};& > * + *{margin-top:${N.xs};}`,xe=m.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${N.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ye=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.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"})),we=e=>u.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),u.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"})),Ce=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:l,ActionSlot:a,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>u.default.createElement(ve,null,u.default.createElement(xe,null,u.default.createElement(D,{id:e,variant:o},t),l&&u.default.createElement(be,{variant:"link",onClick:l.onClick},l.title),a,r&&u.default.createElement(be,{variant:"flat",icon:i?u.default.createElement(ye,null):u.default.createElement(V,null),onClick:r}),d&&u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,null),onClick:d,"aria-label":"Close"})),n&&u.default.createElement(D,{variant:"subheadingSmall"},n)),{grey:Ee}=y.neutral,$e={0:"none",1:E.sm,2:E.base,3:E.md,4:E.lg},ke={info:y.secondary.blue.base,success:y.secondary.green.base,error:y.secondary.red.base},Se=m.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${N.base};padding:${N.md};z-index:2;`,Ne=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${N.md};padding-left:${N.md};margin-top:${N.md};margin-bottom:${N.md};font-family:${L.body.fontFamily};font-size:${L.body.fontSize};font-weight:${L.body.fontWeight};line-height:${L.body.lineHeight};color:${L.body.color};& + &{border-top:${N.line} solid ${Ee.base};padding-top:${N.md};}`,Ie=m.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${N.md};margin-right:-${N.md};`,Le=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${N.line} solid ${Ee.base};box-shadow:${e=>void 0!==e.elevation?$e[e.elevation]:E.sm};border-radius:${C.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: ${N.xs};\n background-color: ${ke[e]};\n }\n `}`,Fe={expanded:{height:"auto"},collapsed:{height:0}},je=({className:t,style:n,title:o,subtitle:l,HeaderActionSlot:a,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:m,renderFooter:f})=>{const[p,g]=e.useState(!1),h=o&&u.default.createElement(Ce,{title:o,subtitle:l,ActionSlot:a,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=u.default.createElement(Le,{animate:b?"expanded":"collapsed",variants:Fe,transition:{duration:.3,ease:"easeOut"}},u.default.createElement(Ne,null,c)),x=void 0!==f&&u.default.createElement(Se,null,f());return u.default.createElement(ze,{className:t,style:n,elevation:d,accent:s},h,v,x)};je.Surface=ze,je.Section=Ne,je.FullBleed=Ie,je.Footer=Se;const{sizes:Be,colors:De,text:Me}=z,Re=m.default(je.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${Be.base} 0;display:flex;flex-direction:column;`,He=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${De.neutral.grey.base};margin-top:${Be.base};padding-top:${Be.base};}`,Te=m.default(D).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${Be.sm} ${Be.base} ${Be.sm};`,Ae=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${Be.lg};padding:${Be.xs} ${Be.base};display:flex;align-items:center;white-space:nowrap;font-family:${Me.body.fontFamily};font-size:${Me.body.fontSize};font-weight:${Me.body.fontWeight};&:hover{background-color:${De.neutral.grey.light};color:${De.secondary.blue.base};}& > * + *{margin-left:${Be[3]};}`,Oe={item:Ae,action:m.default(Ae).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${De.secondary.blue.base};`,link:m.default(Ae).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${De.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:n=[],sections:o,buttonVariant:l,buttonSize:a})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Oe[e.variant||"item"];return u.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,u.default.createElement("span",null,e.title))},m=o?o.map((e=>u.default.createElement(He,{key:e.title},e.title&&u.default.createElement(Te,null,e.title),e.items.map(c)))):n.map(c);return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{dropdown:!0,variant:l,size:a,onClick:()=>r(!i),ref:s},t),i&&u.default.createElement(ee,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},u.default.createElement(Re,null,m)))},Pe=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${z.text.link.fontFamily};font-style:${z.text.link.fontStyle};font-weight:${z.text.link.fontWeight};font-size:${z.text.link.fontSize};line-height:${z.text.link.lineHeight};color:${z.colors.secondary.blue.base};text-decoration:${z.text.link.textDecoration};&:hover{color:${z.colors.secondary.blue.dark};}`,Ve=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--901a1g"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Ze=e.forwardRef(((e,t)=>{const{children:n,className:o,role:l}=e;return u.default.createElement(Ve,{className:o,ref:t,role:l},n)})),qe=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xe=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ge=m.default(Ze).withConfig({displayName:"vui--Dropdown",componentId:"vui--dv3wrs"})`flex-direction:column;position:absolute;z-index:${z.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);}`,Ue=({cta:t,shouldShowDropdown:n,children:o,className:l="animated-dropdown",reversed:a=!1,onClickAway:r=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:m,onMouseLeave:f})=>{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&&r(e)})),u.default.createElement(qe,{className:`${l}-container ${l}`,onClick:c,onMouseEnter:m,onMouseLeave:f,ref:p},!a&&t,u.default.createElement(Xe,{className:`${l}-wrap ${l}`},u.default.createElement(i.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},u.default.createElement(Ge,{role:"dialog",reversed:a,className:`${l}-basic-dropdown ${l}`},o))),a&&t)},_e=m.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${z.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:${z.text.bodySmallBold.fontFamily};font-weight:${z.text.bodySmallBold.fontWeight};font-size:${z.text.bodySmallBold.fontSize};line-height:${z.text.bodySmallBold.lineHeight};}`,Ke=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--t7r6of"})`display:inline-block;`,Ye=m.default(Ke).withConfig({displayName:"vui--Hoverable",componentId:"vui--1yesgsr"})``,Je=m.default(D).withConfig({displayName:"vui--TooltipText",componentId:"vui--14vro0x"})`color:${z.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Qe=m.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--yf0fwi"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,et=m.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--ll0nnf"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,tt=m.default(Ke).withConfig({displayName:"vui--Wrap",componentId:"vui--1u8lm59"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var nt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(nt||(nt={}));const ot={duration:400,side:nt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},lt=({content:t,text:n,hoverableElement:l,config:a,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),m=Object.assign(Object.assign({},ot),a),{duration:f,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=m,{styles:v,attributes:x}=o.usePopper(l,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:z.layers.tooltip});return u.default.createElement(et,Object.assign({className:d.tip,ref:c,duration:f,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),u.default.createElement(tt,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:u.default.createElement(Je,null,n)),r&&u.default.createElement(Qe,{id:"veeqo-components-triangle",className:d.triangle}))},at=({children:t,text:n,content:o,config:l,reversed:a=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,m]=e.useState(d),[f,g]=e.useState(null),h=!!n&&n.trim().length>0,b={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!o&&!h);if(!v)return t;const x=c&&v&&u.default.createElement(lt,{classNames:b,hoverableElement:f,config:l,reversed:a,withTriangle:r,text:n,content:o});return u.default.createElement(Ke,{className:b.container},s?p.default.createPortal(x,document.body):x,u.default.createElement(Ye,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},t))},it=m.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--idt2e7"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${L.bodySmall.fontFamily};font-weight:${L.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${N.base};height:${N.base};}`,rt={default:m.default(it).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${y.secondary.blue.base};color:${y.secondary.blue.base};`,primary:m.default(it).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};color:${y.secondary.blue.base};`,warning:m.default(it).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${y.secondary.yellow.base};background-color:${y.secondary.yellow.lightest};color:${y.secondary.orange.dark};`},dt=m.default(b).withConfig({displayName:"vui--BannerLayout",componentId:"vui--5tzoxx"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,st=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,ct=m.default(b).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ut=m.default(ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${N.md};height:${N.md};color:${({accentColor:e})=>e};}`,mt=m.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,ft=m.default(ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,pt=m.default(D).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,gt={help:y.secondary.blue.base,info:y.neutral.ink.base,error:y.secondary.red.base,success:y.secondary.green.base},ht=m.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${L.body.fontFamily};font-weight:${L.body.fontWeight};font-size:${L.body.fontSize};line-height:${L.body.lineHeight};`,bt=m.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--19n9row"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,vt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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:o})=>n?u.default.createElement(bt,{className:"breadcrumb"},u.default.createElement(n,{href:o},t),e):u.default.createElement(bt,{className:"breadcrumb"},t,e),yt=()=>u.default.createElement(vt,{className:"separator",width:N.base,height:N.base}),wt=({children:e,href:t})=>u.default.createElement("a",{href:t},e),Ct=({children:e})=>u.default.createElement("span",null,e);var Et;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Et||(Et={}));const $t=m.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:l="base"}=e;let a,i,r,d,s="",c="";return"vertical"===t?(a=n&&Et[n],i=o&&Et[o],s=z.sizes[l],r="column"):(a=o&&Et[o],i=n&&Et[n],c=z.sizes[l],r="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${a};\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 `}}`;$t.displayName="Stack";const kt={top:"flex-start",center:"center"},St=m.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${z.sizes.base};}`,Nt=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>kt[e.align]};width:24px;height:24px;`,It=m.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,Lt=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${z.sizes.sm};}`,zt=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.sizes.md};color:${z.text.body.color};`,Ft=m.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,jt=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};`,Bt=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Dt=m.default(Bt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${z.colors.neutral.grey.dark};border-radius:${z.radius.md};padding:${z.sizes.base} 0.75rem;&:hover{border-color:${z.colors.secondary.blue.base};}& ${zt}{font-weight:${z.text.bodyBold.fontWeight};}`,Mt=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Rt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Ht=({id:e,label:t,hint:n,tooltip:o,error:l,bordered:a,Badge:i,Accessory:r,Footer:d,children:s,disabled:c=!1})=>{const m=u.default.createElement(St,null,u.default.createElement(Nt,{align:r?"center":"top"},s),r&&u.default.createElement(It,null,r),t||n||l||i||d?u.default.createElement(Lt,null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&u.default.createElement(zt,null,t),o&&u.default.createElement(Mt,{text:o},u.default.createElement(Rt,{name:"help",width:z.sizes.base,color:z.colors.neutral.ink.lightest}))),n&&u.default.createElement(Ft,null,n),l&&u.default.createElement(jt,null,l),d):null);return a?u.default.createElement(Dt,{disabled:c,htmlFor:e},m):u.default.createElement(Bt,{disabled:c,htmlFor:e},m)},{colors:Tt,sizes:At,radius:Ot}=z,Wt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Tt.neutral.ink.lightest};border-radius:${Ot.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Tt.secondary.blue.base};border-color:${Tt.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:${At[4]};background-position:center;}&:hover{border-color:${Tt.secondary.blue.base};}&:active{border-color:${Tt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Tt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Tt.secondary.blue.base};border-color:${Tt.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:${At[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Tt.neutral.grey.base};border-color:${Tt.neutral.grey.base};color:${Tt.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>");}`,Pt=t=>{var{checked:n,indeterminate:o,value:l,name:a,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=Z(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const m=e.useMemo((()=>q("checkbox")),[]),f=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,l)}),[s,l]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===o)}),[o]),u.default.createElement(Ht,Object.assign({id:m,disabled:i},c),u.default.createElement(Wt,{ref:f,id:m,type:"checkbox",checked:n,value:l,name:a,disabled:i,"aria-label":r,className:d,onChange:p}))},Vt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--14lc9u"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Zt=e.forwardRef(((t,n)=>{var{checked:o,value:l,name:a,disabled:i,onChange:r,id:d}=t,s=Z(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{r(e.currentTarget.checked,l)}),[r,l]),m=null!=d?d:q("radio");return u.default.createElement(Ht,Object.assign({id:m,disabled:i},s),u.default.createElement(Vt,{id:m,type:"radio",checked:o,value:l,name:a,disabled:i,onChange:c,ref:n}))})),qt=m.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Xt=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-style:${z.text.inputLabel.fontStyle};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};text-decoration:${z.text.inputLabel.textDecoration};color:${z.text.inputLabel.color};`;class Gt 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:o}=this.props;let l=[];l=t?[...n,e]:n.filter((t=>t!==e)),o(l)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:l,bordered:a}=this.props,i=e?Pt:Zt;return u.default.createElement(qt,{disabled:l},o&&u.default.createElement(Xt,null,o),t.map((e=>u.default.createElement(i,Object.assign({key:e.value,bordered:a,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Ut=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),_t=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Kt={width:N.base,height:N.base},Yt=m.default(be).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${N.base};width:${N.base};top:unset;}`;function Jt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Qt(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Qt(e.min,"max-content")}, ${Qt(e.max)})`;default:return t||"1fr"}}function en({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:l,stripingMode:a}){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"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${l.map((e=>Qt(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"===a?f:m}\n `}var tn;!function(e){e.ascending="ascending",e.descending="descending"}(tn||(tn={}));const nn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),on=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),an=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===tn.ascending?u.default.createElement(on,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(ln,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(nn,{size:n});function rn(t,n){const[o,l]=e.useState([]),a=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));l(n)};return e.useEffect((()=>{a()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=g.default(a,50),t=new f.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function dn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),l=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...l,...o],pinnedLeft:n,pinnedRight:o}}function sn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},l=t=>{if(!n)return;const l=t.clientX-o.x;n.scrollLeft=o.left-l,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},a=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",l),document.addEventListener("mouseup",a))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function cn(t){const[n,o]=e.useState("start"),l=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:l}=t.current;o(l<e?"none":0!==n?n+e>=l?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",l),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",l)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=g.default(l,50),n=new f.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const un="56px",mn=m.default.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${un};display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};border-bottom:1px solid ${z.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function fn(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:l}=e,a=Z(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===l?u.default.createElement(mn,Object.assign({},a)):u.default.createElement(mn,Object.assign({},a),u.default.createElement(Pt,{checked:t,indeterminate:n,onChange:o}))}const pn=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};color:${z.text.bodySmall.color};font-family:${z.text.bodySmall.fontFamily};font-size:${z.text.bodySmall.fontSize};font-style:${z.text.bodySmall.fontStyle};font-weight:${z.text.bodySmall.fontWeight};line-height:${z.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${z.colors.secondary.blue.base};background-color:${z.colors.neutral.grey.lightest};}`;function gn(e){var{selected:t,rowId:n,onChange:o,selectionMode:l,disabled:a}=e,i=Z(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===l?u.default.createElement(pn,Object.assign({},i),u.default.createElement(Zt,{value:n,checked:t,disabled:a,onChange:o})):u.default.createElement(pn,Object.assign({},i),u.default.createElement(Pt,{value:n,checked:t,disabled:a,onChange:o}))}const hn=[[],()=>{}];function bn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[l,a]=t||hn,i=()=>{l.length!==n.length?a(n):a([])};return{selectionEnabled:o,selectedRowIds:l,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>u.default.createElement(fn,Object.assign({},o,{selected:l.length===n.length,indeterminate:l.length>0&&l.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,l)=>u.default.createElement(gn,Object.assign({},n,{rowId:t.id,selected:l.selected,onChange:o.setSelected,selectionMode:e,disabled:l.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)a([n]);else if(t){if(l.includes(n))return;const e=[...l,n];a(e)}else{const e=l.findIndex((e=>e===n));if(e<0)return;const t=[...l];t.splice(e,1),a(t)}}}}const vn=m.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${z.colors.neutral.ink.lightest};`,xn=m.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${z.text.headingTable.color};font-family:${z.text.headingTable.fontFamily};font-size:${z.text.headingTable.fontSize};font-style:${z.text.headingTable.fontStyle};font-weight:${z.text.headingTable.fontWeight};line-height:${z.text.headingTable.lineHeight};`,yn=m.default(xn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--p1ald0"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${vn}{background-color:${z.colors.neutral.grey.light};color:${z.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${z.colors.secondary.blue.light};}`;function wn({column:e,sortState:t,onChangeSort:n}){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 o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const l=e.sortable?yn:xn,a=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===tn.ascending;let l=tn.ascending;return n&&o&&(l=tn.descending),{columnId:t,direction:l}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return u.default.createElement(mn,Object.assign({},o),u.default.createElement(at,{text:e.tooltip},u.default.createElement(l,Object.assign({},a),e.icon&&e.icon,e.title&&u.default.createElement("span",null,e.title),e.sortable&&u.default.createElement(vn,null,u.default.createElement(an,{sortState:t,columnId:e.id,size:5})))))}const Cn=z.colors.neutral.grey.base,En=z.colors.neutral.grey.dark,$n=m.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${z.radius.base};background:${Cn};background-image:linear-gradient(\n to right,\n ${Cn} 0%,\n ${En} 20%,\n ${Cn} 40%,\n ${Cn} 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 kn=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--uoc40o"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${un};background-color:white;`,Sn=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--x1996k"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${z.colors.neutral.grey.base};& > *{flex:1;}`;function Nn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:l}){var a;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===(a=o.current)||void 0===a?void 0:a.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 u.default.createElement(kn,{style:c},wn({column:t}),u.default.createElement(Sn,null,l))}const In=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),zn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Fn=m.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${z.sizes.lg};padding-bottom:${z.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${z.sizes.md};`,jn=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${z.sizes.md};background-color:${z.colors.neutral.grey.light};border-radius:${z.radius.full};`,Bn=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,Dn=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${z.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 `}`,Mn=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Rn=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${z.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Hn=m.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Tn={full:`border-width: 1px; border-radius: ${z.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},An=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${z.colors.neutral.grey.dark};${({borderMode:e="full"})=>Tn[e]} &,& *{box-sizing:border-box;}`;function On({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:l,tableCss:a}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),m=()=>{var e;const t=null===(e=o.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)},p=()=>{var e;if(!o.current)return;const t=o.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&&o.current&&m()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=g.default(m,33),t=new f.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{p()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",p)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:un,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${z.colors.neutral.grey.base}`}),b=a+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return u.default.createElement("div",{style:h,ref:i},u.default.createElement(Rn,{css:b},u.default.createElement("thead",null,t)))}const Wn=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),Pn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}),u.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),u.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Vn={icon:u.default.createElement(Pn,{width:48,height:48}),heading:"No results"},Zn=()=>{},qn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:l=Vn,expandedRowIds:a,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:m,selectionState:f,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),x=e.useRef(null),y=e.useRef(null);sn(v);const w=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=bn({selectionMode:m,selectionState:f,enabledRowIds:w}),S={setSelected:k||Zn,setExpanded:p||Zn},N=[$,...o],I=C?N:o,L=rn(x,v),{visible:z,pinnedLeft:F,pinnedRight:j}=dn(I),{scrollPosition:B}=cn(v),M=en({pinnedLeft:F,pinnedRight:j,cellWidths:L,scrollPosition:B,visible:z,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return u.default.createElement(An,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(Rn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Dn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(Dn,{key:e.id},z.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 u.default.createElement(pn,Object.assign({},n),u.default.createElement($n,null))}(e,t))))))))))}if(0===s.length)return u.default.createElement(An,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(Rn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Dn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},u.default.createElement(Fn,{columnCount:z.length},u.default.createElement(jn,null,l.icon),u.default.createElement($t,{spacing:"sm",alignX:"center"},u.default.createElement(D,{variant:"headingMedium"},l.heading),l.subheading&&u.default.createElement(D,{variant:"subheadingMedium"},l.subheading)))))));const R=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Wn(e.id,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Dn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const l={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,l,n,o)}(e,t,S,o))))},H=(e,t)=>{var n,o;const l=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=Wn(t,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Dn,{role:"row",key:e.id,className:l},z.map((t=>function(e,t,n){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,o,n):u.default.createElement(pn,Object.assign({},o))}(e,t,i))))},T=e=>{var t;const n=null==a?void 0:a.includes(e.id);return u.default.createElement("tbody",{role:"rowgroup",key:e.id},R(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},A=u.default.createElement(Dn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d})))),O=o.some((e=>!!e.renderFooter)),W=E.length>0&&!!t;return u.default.createElement(An,{borderMode:n},W&&u.default.createElement(Nn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),u.default.createElement(Mn,{ref:v},b&&u.default.createElement(On,{tableCss:M,intersectionTargetRef:y,containerRef:v,cellWidths:L},A),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(Rn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},A),(()=>{const e=!!a;return e&&"nested"===h?s.map(T):e?u.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[R(e),...(null==a?void 0:a.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):u.default.createElement("tbody",{role:"rowgroup"},s.map(R))})(),O&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(Dn,{role:"row"},z.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):u.default.createElement(pn,Object.assign({},t))}({column:e}))))))))};qn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},qn.Cell=pn,qn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[l,a]=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])))),m=(e,n)=>{const l=c[e].map((e=>e.id)),a=[...t];l.forEach((e=>{const t=a.findIndex((t=>t.id===e));t<0||(a[t]=Object.assign(Object.assign({},a[t]),{hidden:n}))})),o(a)};return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{ref:a,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&u.default.createElement(ee,{anchorElement:l,onShouldClose:()=>r(!1)},u.default.createElement(je,{style:{width:600}},u.default.createElement($t,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>u.default.createElement($t,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},u.default.createElement(be,{variant:"flat",icon:u.default.createElement(zn,null)}),u.default.createElement($t,{spacing:"sm",style:{flex:1}},e.map((e=>u.default.createElement("div",{key:e.id},e.title)))),u.default.createElement($t,{direction:"horizontal",spacing:"sm"},e[0].hidden?u.default.createElement(be,{variant:"flat",icon:u.default.createElement(Ln,null),onClick:()=>m(t,!1),style:{color:z.colors.neutral.ink.lightest}}):u.default.createElement(be,{variant:"flat",icon:u.default.createElement(In,null),onClick:()=>m(t,!0)})))))))))},qn.SelectionCell=gn,qn.SelectionHeader=fn,qn.Header=mn,qn.Truncate=Hn,qn.NoWrap=Bn;const Xn=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${z.sizes.base};}`,Gn=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${z.sizes.xs};}`,Un=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${z.sizes.base};}`,_n=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${z.sizes.xs};}`,Kn=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${z.text.bodyBold.fontFamily};font-size:${z.text.bodyBold.fontSize};font-weight:${z.text.bodyBold.fontWeight};line-height:${z.text.bodyBold.lineHeight};color:${z.text.bodyBold.color};`,Yn=m.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.text.body.lineHeight};color:${z.text.body.color};`,{sizes:Jn,colors:Qn}=z,eo=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Jn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Jn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,to=m.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${Jn.md};overflow-x:hidden;background-color:${Qn.neutral.grey.lightest};`,no=m.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--2b6aqg"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var oo;!function(e){e.base="base",e.sm="sm"}(oo||(oo={}));const lo=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};color:${z.text.inputLabel.color};`,ao=m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,io=m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,ro=m.default($t).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,so=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,co=t=>n=>{var{label:o,hint:l,error:a,tooltip:i}=n,r=Z(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>q(t.name)),[]);return o?u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement("div",null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},u.default.createElement(lo,{htmlFor:d},o),i&&u.default.createElement(so,{text:i},u.default.createElement(Rt,{width:z.sizes.base,height:z.sizes.base,color:z.colors.neutral.ink.light}))),l&&u.default.createElement(ao,null,l)),u.default.createElement(t,Object.assign({id:d,hasError:!!a},r)),a&&u.default.createElement(io,null,a)):u.default.createElement(t,Object.assign({hasError:!!a},r))},uo=({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 "}`,mo=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${z.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 `}} ${uo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,fo=m.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1jp908v"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${uo}`,po=/^-?[0-9]*\.?[0-9]+$/,go=co(e.forwardRef(((t,n)=>{var{id:o,className:l,disabled:a=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:m,pattern:f,placeholder:p,rows:g="3",size:h=oo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Z(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=e.useCallback((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(po).test(t)&&m(t)}),[m,v]),E=null!=o?o:q("textfield");return"text"===v&&s?u.default.createElement(fo,Object.assign({className:l,disabled:a,hasError:i,id:E,name:c,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):u.default.createElement(mo,Object.assign({className:l,disabled:a,hasError:i,id:E,inputSize:h,max:r,min:d,name:c,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));go.displayName="TextField";const ho=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,bo=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,vo=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${z.colors.neutral.ink.lightest};}`,xo=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${z.colors.neutral.ink.lightest};`;m.default(D).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`;const yo=co((e=>{var{size:t=oo.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:l,className:a,height:i,width:r,length:d,unit:s}=e,c=Z(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return u.default.createElement(ho,{className:a},u.default.createElement(bo,null,u.default.createElement(vo,Object.assign({onChange:l,size:t,name:"length",type:"number",placeholder:"L",value:d},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(vo,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(no,null,u.default.createElement(vo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i},c)),u.default.createElement(xo,{size:t},s))))}));yo.displayName="DimensionsInput";const wo=(t,n)=>{const o=e.useRef(null),l=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),a=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",a),document.addEventListener("keyup",l),()=>{document.removeEventListener("click",a),document.removeEventListener("keyup",l)}}),[a,l,t]),o};function Co(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),l=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:l}}const Eo=u.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const $o=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},ko=t=>{const[n,o]=e.useState(!1),[l,a]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!l,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:l}=e.target;a(o-n-l<=0)}}},So=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${y.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${N.base};height:${N.base};}`,No=m.default(D).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Io=m.default(No).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Lo=m.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=m.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Fo=m.default(b).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,jo=m.default(b).withConfig({displayName:"vui--Header",componentId:"vui--188pxr2"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${y.neutral.grey.base};svg{color:${({color:e})=>e};width:${N[5]};height:${N[5]};margin-right:10px;}`,Bo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Do=m.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?N[e]:0};`,Mo=e=>u.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,Ho=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,To=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,Ao=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`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}),Wo={width:64,height:64},Po={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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({},Wo)),title:"No data found"},Vo={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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({},Wo)),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 Zo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Zo||(Zo={}));const{text:qo,sizes:Xo}=z,{blue:Go}=z.colors.secondary,{grey:Uo}=z.colors.neutral,{scrollbar:_o}=z.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',Yo=m.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,Jo=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--8prdgq"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Uo.dark};border-bottom:1px solid ${Uo.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: ${_o.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${_o.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Ko};\n\n ${o===Zo.middle||o===Zo.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 ${o===Zo.start||o===Zo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Qo=m.default(Jo).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${Uo.dark};border-radius:4px;`,el=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,tl=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Uo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;m.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${Uo.lightest};padding:1.5rem 1rem;border-top:1px solid ${Go.base};}`;const nl=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ostkmy"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,ol=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--9fl65z"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${qo.bodySmall.fontFamily};font-size:${qo.bodySmall.fontSize};font-weight:${qo.bodySmall.fontWeight};color:${qo.bodySmall.color};line-height:${Xo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,ll=m.default(ol).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${Uo.dark};font-family:${qo.bodySmallBold.fontFamily};font-size:${qo.bodySmallBold.fontSize};font-weight:${qo.bodySmallBold.fontWeight};color:${qo.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Uo.light};}`,al={left:"flex-start",center:"center",right:"flex-end"},il=m.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?al[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,rl=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${tl}:nth-child(even) td {\n background-color: ${Uo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${ll}, & ${ll} span {\n white-space: nowrap;\n }\n `}`,dl=m.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${ol}{border-top:1px solid ${Uo.dark};background-color:${Uo.lightest};padding-top:${Xo.base};padding-bottom:${Xo.base};line-height:2rem;}`,sl=m.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,cl=m.default(rl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,ul=m.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--120wsfh"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,ml=m.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${z.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,fl=m.default(D).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,pl=m.default(D).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,gl=({height:e,icon:t,title:n,subTitle:o})=>u.default.createElement(ul,{height:e},u.default.createElement(ml,null,t),u.default.createElement(fl,{variant:"headingLarge"},n),o&&u.default.createElement(pl,{variant:"subheadingMedium"},o)),hl=m.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--14e2rl4"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${z.sizes.base};border-radius:${z.radius.base};&:hover{cursor:pointer;background-color:${z.colors.secondary.blue.lightest};}`,bl=m.default(hl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${z.text.link.color};text-decoration:${z.text.link.textDecoration};`,vl=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:xl}=z.colors.neutral,yl=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,wl=m.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--yfc89o"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${xl.base} 8%, ${xl.dark} 15%, ${xl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Cl=({isLoading:e,style:t})=>u.default.createElement(yl,{style:t},u.default.createElement(wl,{isLoading:e})),El=e=>{var{style:t}=e,n=Z(e,["style"]);return u.default.createElement(ol,Object.assign({},n),u.default.createElement(Cl,{style:t}))};El.defaultProps={style:{}};const $l=({renderHeader:t,tableRef:n,wrapperRef:o,isFixedLayout:l,wrapperStyle:a})=>{var i;const[r,s]=e.useState(null),{isSticky:c}=((t,n)=>{const[o,l]=e.useState(!1),a=e.useCallback((({top:e,bottom:t})=>{let a=o;a=e<=(n||0)&&t>0?!o||a:!o&&a,a!==o&&l(a)}),[o,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&a(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[a,t]),{isSticky:o}})(n,parseInt("string"==typeof(null==a?void 0:a.top)?null==a?void 0:a.top:`${null==a?void 0:a.top}`,10)),m=((null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;d.useScroll(o);const f=e=>{var t;const n=(null===(t=o.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return f(),c?u.default.createElement(sl,{ref:e=>{s(e),f(e)},style:Object.assign({width:m},a)},u.default.createElement(cl,{style:{tableLayout:l?"fixed":"auto"}},t())):null},kl=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")},Sl=e=>{var{style:t,width:n,isLoading:o}=e,l=Z(e,["style","width","isLoading"]);return u.default.createElement(ll,Object.assign({},l,{style:{width:n}}),u.default.createElement(Cl,{style:t,isLoading:o}))},Nl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Il=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Ll=()=>u.default.createElement(nn,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),zl=()=>u.default.createElement(Nl,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Fl=()=>u.default.createElement(Il,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),jl=({borderless:t=!1,striped:n=!0,noWrap:o=!1,showScrollbar:l=!1,headers:a,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:m,renderFooterLoadingRow:f,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:C=!1,isLoading:E=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:I=375,startFixedColumnsNumber:L,endFixedColumnsNumber:z})=>{const F=t?Jo:Qo,j=!!i&&0===i.length,B=Boolean(L||z),D=!L&&!z,M=e.useRef(null),R=e.useRef(null),[H,T]=e.useState(Zo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!R.current||D)return;const e=R.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),l=n+o;t===o?T(Zo.none):0===n?T(Zo.start):n>0&&l<t?T(Zo.middle):l===t&&T(Zo.end)};return R.current&&(t=R.current,n(),null===(e=R.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[M,D]);const A=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),[]),O=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!a||E)return null;const e=[],t=[];let n=0,o=0;if(L){g&&(e.push(O(1,n,"left")),n+=58);for(let t=0;t<L;t+=1){const o=A(a[t].width);o&&(e.push(O(g?t+2:t+1,n,"left")),n+=o)}}if(z)for(let e=0;e<z;e+=1){const n=A(a.slice(-e-1)[0].width);n&&(t.push(O(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[E,A,z,O,a,L,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],o=n.findIndex((e=>e===t.id));n.splice(o,1),v(n)}),[v,g,b]),Z=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]),q=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]),X=e.useCallback(((e,t)=>{let n="",o=()=>{},l=u.default.createElement(Ll,null);const{tooltip:a,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",o=()=>q(c),x===c&&(l="ascending"===y?u.default.createElement(zl,null):u.default.createElement(Fl,null)));const m=u.default.createElement(il,{align:i},r&&r,d&&u.default.createElement("span",null,d),s&&l);return u.default.createElement(ll,{key:c,id:`data-table-header-${c}`,className:n,onClick:o,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},a?u.default.createElement(at,{text:a},u.default.createElement(Yo,null,m)):m)}),[q,x,y]),G=e.useCallback(((e,t)=>u.default.createElement(Sl,{key:e.id,width:e.width||"auto",style:t,isLoading:E})),[E]),U=e.useCallback((()=>{if(!a)return null;const e=W(),t=e?e[0].style:{};return u.default.createElement(el,null,u.default.createElement(nl,null,g&&u.default.createElement(ll,{style:Object.assign({width:58},t)},"multiple"===b&&u.default.createElement(Pt,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:Z,disabled:h&&h.length>0||E||j,ariaLabel:"Select all"})),a.map(((t,n)=>{const o=g?n+2:n+1,l=n-a.length,i=null==e?void 0:e.find((e=>e.index===o||e.index===l));return t.skeleton&&(E||C||j)?G(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,Z,a,j,C,E,G,X,i.length,g,b,h]),_=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?u.default.createElement(Zt,Object.assign({},n)):u.default.createElement(Pt,Object.assign({},n))}),[V,b,h]),K=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?u.default.createElement(El,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):u.default.createElement(El,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),Y=e.useCallback(((e,t)=>{var n,o;if(!d)return null;const l=d(e);if(!l)return null;const a=(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row)||"";return u.default.createElement(nl,{key:e.id,className:`${a} ${t?"hidden":""}`},g&&u.default.createElement(ol,null),l)}),[d,g]),J=e.useCallback((e=>{if(!a)return u.default.createElement(El,null);const t=a.map((t=>u.default.createElement(El,{key:`${e}-${t.id}`})));return g&&t.unshift(K(e)),t}),[a,K,g]),Q=()=>m?E&&!f||!E&&j?null:u.default.createElement(dl,{fixedColumnsStyle:kl(P||[])},u.default.createElement(nl,null,g&&!p&&u.default.createElement(ol,null),!E&&m(i),E&&f&&f())):null;let ee=L;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,o;const{data:l}=e,a=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==l?void 0:l.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(o=null===(n=null==l?void 0:l.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==o?o:"",m=a?`selected ${c}`:`${c}`;return u.default.createElement(tl,{key:e.id,className:d,fixedColumnsStyle:kl(P||[])},u.default.createElement(nl,{key:e.id,className:m,accentColor:e.accentColor},g&&u.default.createElement(ol,null,_(a,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>Y(e,!i))))}))),[i,s,P,Y,r,_,g]);if(E){const e=[];for(let t=0;t<$;t+=1)e.push(u.default.createElement(tl,{key:`loading-row-${t}`,fixedColumnsStyle:kl(P||[])},u.default.createElement(nl,null,c?u.default.createElement(u.default.Fragment,null,g&&K(),c()):J(t))));return u.default.createElement(F,{ref:R,scrollDisabled:!0,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:M,wrapperRef:R,isFixedLayout:B,wrapperStyle:S}),u.default.createElement(rl,{ref:M,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:B},U(),e,Q()))}if(j||C){let e=Po;return N?e=N:C&&(e=Vo),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(rl,{ref:M,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:B},U(),Q()),u.default.createElement(gl,Object.assign({height:I},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:R,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:l},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:M,wrapperRef:R,isFixedLayout:B,wrapperStyle:S}),u.default.createElement(rl,{ref:M,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:B},U(),te,Q()))};jl.Cell=ol,jl.ClickableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(ol,Object.assign({},o),u.default.createElement(bl,{onClick:t},n))},jl.EditableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(ol,Object.assign({},o),u.default.createElement(hl,{onClick:t},u.default.createElement(vl,null,n)))},jl.SkeletonCell=El,jl.SkeletonContent=Cl;const Bl=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`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",Ml="Log in with Amazon",Rl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Hl=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${z.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${je.Footer} {\n box-shadow: 0px 10px 15px 0px ${z.colors.neutral.ink.dark};\n }\n `}`,Tl=e=>!!e.footerSlot,Al={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ol={[w.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[w.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[w.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Wl={xs:w.mobile,sm:w.mobile,base:w.tablet,lg:w.lgTablet},{breakpoints:Pl}=z,Vl=m.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--hfuefb"})`padding:0;border:none;border-radius:${z.sizes.sm};box-shadow:${z.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]};`} ${Hl}{padding-bottom:${z.sizes.md};}${je.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Pl.mobile} + 1px))and (max-width: ${Pl.tablet}){max-width:${({variant:e})=>Ol[Pl.tablet][e]};}@media (min-width: ${Pl.tablet})and (max-width: ${Pl.lgTablet}){max-width:${({variant:e})=>Ol[Pl.lgTablet][e]};}@media (min-width: ${Pl.lgTablet})and (max-width: ${Pl.desktop}){max-width:${({variant:e})=>Ol[Pl.desktop][e]};}@media (min-width: ${Pl.desktop}){max-width:${({variant:e})=>Ol[Pl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Wl[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:${Y(z.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Zl=u.default.forwardRef(((e,t)=>{var n=Z(e,[]);return u.default.createElement(Vl,Object.assign({ref:t},n))})),{sizes:ql,text:Xl,shadows:Gl}=z,{grey:Ul}=z.colors.neutral,_l=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${ql.base} ${ql.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&Gl[e]};`,Kl=m.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${Xl.headingXL.fontFamily};font-size:${Xl.headingXL.fontSize};font-weight:${Xl.headingXL.fontWeight};margin:unset;line-height:1;`,Yl=m.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${Xl.subheadingLarge.fontFamily};font-weight:${Xl.subheadingLarge.fontWeight};font-size:${Xl.subheadingLarge.fontSize};line-height:${Xl.subheadingLarge.lineHeight};`,Jl=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${z.radius.base};border:${ql.line} solid ${Ul.base};object-fit:cover;`,Ql=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,ea=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};color:${z.text.link.color};&:hover{text-decoration:${z.text.link.textDecoration};}& > * + *{margin-left:${z.sizes.xs};}`,ta=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--498dtg"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${ql.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,na=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),oa=m.default($t).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${z.sizes.lg};height:30px;background-color:${z.colors.neutral.grey.light};border:1px solid ${z.colors.neutral.grey.base};border-radius:${z.sizes.xs};`,la=m.default(be).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${z.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,aa=m.default(go).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,ia=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(D,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(oa,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(D,{variant:"bodySmall"},e))),ra=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[l,a]=e.useState(`${t}`);e.useEffect((()=>{a(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(l||a(`${t}`),l===`${t}`)return;const e=parseInt(l,10);i(e)&&o(e)};return{pageInputValue:l,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(t-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;i(n=t)&&a(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},da=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),sa=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),ca=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ua=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ma=m.default(Ue).withConfig({displayName:"vui--Dropdown",componentId:"vui--6y6o6p"})`&-container{width:100%;}`,fa=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--6l6anz"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${y.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;}`,pa=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--33jbzi"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ga=m.default(D).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${y.secondary.blue.base};background:${y.neutral.grey.lightest};}`,ha=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return u.default.createElement(pa,{onClick:o},u.default.createElement(ga,{variant:"bodySmall"},t.label))},ba=t=>{const{handleRangeListChange:n,paginationRange:o=ca}=t;return u.default.createElement(u.default.Fragment,null,o.map((t=>u.default.createElement(e.Fragment,{key:t.label},u.default.createElement(ha,{item:t,handleRangeListChange:n})))))};class va 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=ca[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=ca,reversedDropdown:n}=this.props,{shouldShowDropdown:o,dropdownValue:l}=this.state;return u.default.createElement(ua,{className:e},u.default.createElement(ma,{cta:u.default.createElement(fa,{onClick:this.toggleShouldShow},u.default.createElement(D,{variant:"bodySmall"},l.label),u.default.createElement(ge,{color:z.colors.neutral.ink.base})),shouldShowDropdown:o,onClickAway:this.toggleShouldShow,reversed:n},u.default.createElement(ba,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const xa=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,ya=m.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--1myicuk"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,wa=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>u.default.createElement(xa,{size:o},u.default.createElement(ya,{type:"button",onClick:e,disabled:n},u.default.createElement(V,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base})),u.default.createElement(ya,{type:"button",onClick:t,disabled:n},u.default.createElement(ye,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base}))),Ca=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${z.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${z.colors.neutral.ink.lightest};}`,Ea=m.default(b).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${z.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?z.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;}}`,$a=m.default(D).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,ka=m.default(no).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--1sahwox"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${z.colors.secondary.red.light};\n\n > * {\n border-top-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${z.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${z.colors.secondary.red.base};\n border-right-color: ${z.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${z.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}}`;const Sa=co((e=>{var{className:t="",hasError:n,currency:o,disabled:l=!1,onChange:a,onPriceChange:i,priceValue:r,step:d="0.1",size:s=oo.base}=e,c=Z(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},f=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return u.default.createElement(ka,{className:t,hasError:n},u.default.createElement(Ea,{disabled:l,size:s},u.default.createElement($a,{variant:"hintText"},o)),u.default.createElement(Ca,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(a),"ArrowDown"===t&&f(a)},disabled:l,size:s},c)),u.default.createElement(wa,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:l,size:s}))}));Sa.displayName="PriceInput";const Na=m.default(go).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ia=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,La=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--g7dno3"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Na} {\n ${t}\n }\n\n & ${Ia} {\n ${n}\n }\n `}}`,za=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Fa=z.colors.neutral.grey.lightest,ja=z.colors.neutral.grey.dark,Ba=z.colors.secondary.blue.dark,Da=m.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Fa};border-color:${ja};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Ba};border-color:${Ba};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${z.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Ma=m.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1h93380"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,Ra=co(e.forwardRef(((t,n)=>{var{className:o,options:l,value:a,onChange:i,size:r,disabled:d,hasError:s}=t,c=Z(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return u.default.createElement(Ma,Object.assign({className:o,sizeVariant:r,value:null!=a?a:void 0,onChange:m,disabled:d,hasError:s,ref:n},c),!!l&&l.map((e=>u.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Ra.displayName="Select";const{blue:Ha}=y.secondary,{grey:Ta}=y.neutral,Aa=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,Oa=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${Ha.lightest};}`,Wa=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,Pa=m.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--1o4t01c"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${L.bodySmall.fontFamily};font-size:${L.bodySmall.fontSize};font-weight:${L.bodySmall.fontWeight};color:${L.bodySmall.color};line-height:${N.base};& > *{vertical-align:middle;}`,Va=m.default(Pa).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${Ta.dark};font-family:${L.bodySmallBold.fontFamily};font-size:${L.bodySmallBold.fontSize};font-weight:${L.bodySmallBold.fontWeight};color:${L.bodySmallBold.color};`,Za=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Oa} tr:nth-child(even) td {\n background-color: ${Ta.lightest};\n }\n `}`,qa=({striped:e=!0,className:t,children:n})=>u.default.createElement(Za,{striped:e,className:t},n);qa.Header=Aa,qa.Body=Oa,qa.Row=Wa,qa.HeaderCell=Va,qa.Cell=Pa;const Xa=m.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ga=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${z.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Ua=m.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--19twtgm"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${z.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 ${z.colors.secondary.blue.light};}`,_a=m.default(Ga).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${z.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ka=e=>({container:e?`${e}-slider-container`:void 0,sliderRange:e?`${e}-slider-range`:void 0,slider:e?`${e}-slider`:void 0,startSlider:e?`${e}-start-slider`:void 0,endSlider:e?`${e}-end-slider`:void 0}),Ya=m.default(b).withConfig({displayName:"vui--Tag",componentId:"vui--qsag0v"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:y.neutral.ink.base};\n background-color: ${null!=e?e:y.neutral.grey.base};\n `}`,Ja=m.default($t).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Qa=m.default($t).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${z.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${z.shadows.lg};border-radius:${z.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;}`,ei=m.default(b).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${z.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${N.md};height:${N.md};}`,ti=m.default($t).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,ni=m.default(D).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,oi={info:{accentColor:y.brand.blue.base,icon:u.default.createElement(Pn,null)},success:{accentColor:y.secondary.green.base,icon:u.default.createElement(Ut,null)},error:{accentColor:y.secondary.red.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}))),null)},merge:{accentColor:y.secondary.purple.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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)}},li=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),ai=({className:e,e2eClassName:t,type:n,iconSlot:o,text:l,last:a,minWidth:i,cta:r,onClose:d})=>{const s=li(e),c=li(t);return u.default.createElement(Qa,{className:_([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:a},u.default.createElement(ei,{color:oi[n].accentColor,className:_([s.icon,c.icon])},null!=o?o:oi[n].icon),u.default.createElement(ti,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(ni,{variant:"body"},l),r),u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,{color:"white"}),onClick:d,"aria-label":"Close"}))},ii=m.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--10ka3tn"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?z.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,ri=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${ii}{box-shadow:0 0 0 4px ${z.colors.brand.blue.light};}&:checked + ${ii}{background-color:#0079d1;}&:disabled + ${ii}{background-color:${z.colors.neutral.grey.base};}&:checked:disabled + ${ii}{background-color:${z.colors.secondary.blue.light};}`,di=m.default.label.withConfig({displayName:"vui--Switch",componentId:"vui--16c93z6"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${ii}: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"};}${ri}:checked + ${ii}{&: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"});}}`,si=m.default(b).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,ci=e.forwardRef((({id:e,className:t,name:n,switched:o,small:l,onClick:a=(()=>{}),disabled:i,ariaLabel:r},d)=>u.default.createElement(si,{className:t,disabled:i},u.default.createElement(di,{small:l,disabled:i,role:"switch"},u.default.createElement(ri,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:a,disabled:i,ref:d}),u.default.createElement(ii,{switched:o,disabled:i}))))),ui=m.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--xt3hiw"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",l="24px",a="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",l="16px",a="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${l};\n border-radius: ${a};\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;}`,mi=m.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--ljd9es"})`display:flex;align-items:center;justify-content:center;padding:${N.md};border-radius:${C.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${y.neutral.ink.lightest};background-color:${y.neutral.grey.lightest};:hover{border:2px dashed ${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};}:active{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}:focus-within{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${y.secondary.red.base};:hover{border:2px dashed ${y.secondary.red.base};background-color:${y.secondary.red.lightest};}:active{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}:focus-within{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}}`;var fi,pi,gi;exports.AcceptedFileTypes=void 0,(fi=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",fi.JPEG=".jpeg",fi.JPG=".jpg",fi.GIF=".gif",fi.PNG=".png",exports.FileSizeUnit=void 0,(pi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",pi.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"}(gi||(gi={}));const hi=()=>u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},u.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"}),u.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"})),bi=()=>u.default.createElement($t,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},u.default.createElement(hi,null),u.default.createElement(D,{variant:"subheadingSmall",style:{paddingTop:N.sm}},"Browse files or drag them here")),vi=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?u.default.createElement($t,{alignX:"start",spacing:"xs"},e&&u.default.createElement(D,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(D,{variant:"errorSmall"},"File is too big (",t,")")):null,xi=m.default(D).withConfig({displayName:"vui--SingleLineText",componentId:"vui--2zjkq9"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,yi=m.default($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--r41a54"})`border:1px solid ${y.neutral.ink.lightest};border-radius:${C.base};padding:${N.xs};${D}{padding-left:${N.xs};}`,wi=({file:e,resetSelection:t})=>e?u.default.createElement(yi,{alignX:"between",direction:"horizontal",alignY:"center"},u.default.createElement(xi,{variant:"body"},null==e?void 0:e.name),u.default.createElement(be,{size:"sm",variant:"flat",onClick:t,icon:u.default.createElement(we,null),"aria-label":"Remove file"})):null,Ci=e.forwardRef((({id:t,name:n,maxBytes:o=1e6,format:l=exports.FileSizeUnit.MB,fileTypes:a,label:i="Upload file"},r)=>{const d=e.useRef(null);e.useImperativeHandle(r,(()=>d.current),[]);const[s,c]=e.useState(),[m,f]=e.useState(gi.VALID),p=m===gi.INVALID_FORMAT||m===gi.INVALID_FORMAT_AND_SIZE,g=m===gi.INVALID_SIZE||m===gi.INVALID_FORMAT_AND_SIZE,h=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${o}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:o,format:l}),b=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const l=o.length>1,a=t===o.length-1&&l,i=t===o.length-2&&l;switch(a&&(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&&!a&&o.length>2&&(n+=", ")})),n})({fileTypes:a}),v=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const l=o.length-1===n&&o.length>1;t+=l?`${e}`:`${e}, `})),t.trim()})({fileTypes:a}),x=()=>{var e;(null===(e=d.current)||void 0===e?void 0:e.value)&&(d.current.value="")},y=({overMaxSize:e,invalidFormat:t})=>{var n;let o=gi.VALID;t&&!e?o=gi.INVALID_FORMAT:!t&&e?o=gi.INVALID_SIZE:t&&e&&(o=gi.INVALID_FORMAT_AND_SIZE),null===(n=d.current)||void 0===n||n.setCustomValidity(o),f(o)},w=e.useCallback((e=>{if(!e.length)return void y({invalidFormat:!0});const[n]=e,l=n.size>o,[,i]=n.type.split("/"),r=!a.find((e=>e.substring(1)===i));l||r?x():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:t}),y({invalidFormat:r,overMaxSize:l}),c(n)}),[a,t,o]),C=e.useCallback((()=>{var e;const t=null===(e=null==d?void 0:d.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&w(t)}),[w]),E=e.useCallback((()=>{x(),c(void 0),y({invalidFormat:!1,overMaxSize:!1})}),[]),$=()=>{var e;null===(e=d.current)||void 0===e||e.reportValidity()};return e.useEffect((()=>{const e=null==d?void 0:d.current;return null==e||e.addEventListener("change",C),null==e||e.addEventListener("invalid",$),()=>{null==e||e.removeEventListener("change",C),null==e||e.removeEventListener("invalid",$)}}),[C]),u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement(lo,{htmlFor:t},i,u.default.createElement($t,{spacing:"xs",alignX:"stretch",style:{paddingTop:N.sm}},u.default.createElement(ao,null,u.default.createElement("div",null,b),u.default.createElement("div",null,h)),u.default.createElement(mi,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&w(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.blur()}},u.default.createElement(bi,null),u.default.createElement("input",{ref:d,id:t,type:"file",accept:v,name:n})))),u.default.createElement($t,{alignX:"stretch",spacing:"sm"},u.default.createElement(wi,{file:s,resetSelection:E}),u.default.createElement(vi,{acceptedTypesCopy:p?b:void 0,maxSizeCopy:g?h:void 0})))})),Ei="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",$i=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${Ei} display:${e=>e.shouldShow?"initial":"none"};z-index:${z.layers.modal};`,ki=m.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${Ei} background-color:rgba(55,66,77,0.5);`,Si=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,Ni=({usePortal:e,children:t})=>u.default.createElement(u.default.Fragment,null,e?u.default.createElement(X,null,t):t),Ii=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>u.default.createElement(Ni,{usePortal:o},u.default.createElement($i,{className:_([`${e}-container`,e]),shouldShow:n},u.default.createElement(ki,null),u.default.createElement(h.default,{isActive:n},u.default.createElement(Si,{className:_([`${e}-wrap`,e])},t)))),Li=m.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,zi=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Fi=m.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`;var ji;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(ji||(ji={}));const Bi=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,Di=m.default(D).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,Mi=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--b8oq7f"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${D} {\n color: ${null!=t?t:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ri=m.default(D).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1xuhw17"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Di} {\n color: #fff;\n }\n `}`,Hi={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},Ti=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Ai=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Oi=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 Wi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Wi||(Wi={}));const Pi=m.default(D).withConfig({displayName:"vui--CounterText",componentId:"vui--3am01d"})`line-height:1;`,Vi=m.default((e=>u.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",role:"presentation"},e),u.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"})))).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--1uc98sf"})``,Zi=m.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--1te682y"})``,qi=m.default(D).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1giom5i"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Pi} {\n color: ${y.neutral.grey.lightest};\n }\n `}`,Xi=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--jegwey"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:white;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${y.neutral.grey.base};\n & > ${qi} {\n background-color: ${y.neutral.grey.base};\n & > ${Pi} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${D} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Vi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${Zi} {\n color: ${y.neutral.ink.dark};\n }\n }\n\n & > ${D} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Vi} {\n color: ${t.dark};\n }\n & > ${Zi} {\n color: ${t.dark};\n }\n\n & > ${D} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Gi=m.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--176jtjf"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Xi} {\n background-color: ${y.neutral.grey.base};\n & > ${qi} {\n background-color: ${y.neutral.grey.base};\n & > ${Pi} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${D} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Vi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${Zi} {\n color: ${y.neutral.ink.dark};\n }\n }\n `}`,Ui={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},_i=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1omb2tl"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Ki=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,Yi=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,Ji=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,Qi=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${z.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${z.colors.secondary.red.base};\n `};`,er=co((e=>{var{size:t=oo.base,hasError:n,className:o}=e,l=Z(e,["size","hasError","className"]);return u.default.createElement(Ki,{className:o},u.default.createElement(Yi,null,"g"===l.weightUnit&&u.default.createElement(no,null,u.default.createElement(Ji,Object.assign({size:t,onChange:l.handleChangeGram,name:"gram",type:"number",value:l.gram,hasError:n},l)),u.default.createElement(Qi,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(l)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(no,null,u.default.createElement(Ji,Object.assign({size:t,onChange:l.handleChangePound,name:"ounce",type:"number",value:l.pound,hasError:n},l)),u.default.createElement(Qi,{hasError:n,size:t},"lb")),u.default.createElement(no,null,u.default.createElement(Ji,Object.assign({size:t,onChange:l.handleChangeOunce,name:"pound",type:"number",value:l.ounce,hasError:n},l)),u.default.createElement(Qi,{hasError:n,size:t},"oz")))))}));er.displayName="WeightInput",er.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:l,iconSlot:a,glyphColor:i=y.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[c,m]=e.useState(!!s);return u.default.createElement(P,{open:!!s,className:n},u.default.createElement(T,{onClick:()=>m(!c)},u.default.createElement(A,null,u.default.createElement(R,{glyphColor:i},a,u.default.createElement(D,{variant:"body"},l)),u.default.createElement(H,null,u.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},u.default.createElement(V,{name:c?"downArrow":"upArrow"})))),!!d&&u.default.createElement(O,{variant:"hintText"},d)),c&&u.default.createElement(W,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=We,exports.Anchor=({children:e,className:t,text:n,href:o,target:l})=>u.default.createElement(Pe,{href:o,target:l,className:t},e||n),exports.AnimatedDropdown=Ue,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=z.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const l=t.toUpperCase().match(/\b(\w)/g);return u.default.createElement(_e,{width:e,bgColor:n,textColor:o,className:"avatar"},null==l?void 0:l.slice(0,2).map(((e,t)=>u.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:l,e2eClassName:a,children:i})=>{const r=rt[e];return u.default.createElement(at,{text:o},u.default.createElement(r,{className:_([l,a]),hideBorder:t},n&&n,i&&u.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:l,className:a,header:i,children:r,backgroundColor:d="white"}=e,s=Z(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=gt[t];return u.default.createElement(dt,Object.assign({accentColor:c,className:a,backgroundColor:d},s),u.default.createElement(st,null,o&&u.default.createElement(ut,{style:{marginRight:N.md},accentColor:c},o),r?u.default.createElement(mt,null,r):u.default.createElement(u.default.Fragment,null,u.default.createElement(ft,null,i||u.default.createElement(pt,{variant:"headingSmall"},n)),u.default.createElement(ct,null,l&&u.default.createElement(be,{variant:"flat","aria-label":"Close",icon:u.default.createElement(we,null),onClick:l})))))},exports.BaseContainer=b,exports.Breadcrumbs=({items:e,Separator:t=u.default.createElement(yt,null),LinkComponent:n=wt})=>u.default.createElement(ht,{className:"breadcrumbs"},e.map(((o,l)=>u.default.createElement(xt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:l!==e.length-1?n:Ct},e.length!==l+1&&t)))),exports.Button=be,exports.Card=je,exports.CardHeader=Ce,exports.Checkbox=Pt,exports.Choice=Ht,exports.ChoiceList=Gt,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[l,a]=u.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),a(!0),setTimeout((()=>a(!1)),2500)}),[o,n]);return u.default.createElement(at,{text:l?"Copied!":"Copy to clipboard"},u.default.createElement(Yt,{variant:"flat",size:"sm",className:t,"aria-label":`${l?"Copied":"Copy"} "${n}" to clipboard`,icon:l?u.default.createElement(Ut,Object.assign({color:y.secondary.green.base},Kt)):u.default.createElement(_t,Object.assign({color:y.secondary.blue.base},Kt)),onClick:i}))},exports.DataTable=qn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>u.default.createElement(Yn,{key:e},e))):u.default.createElement(Yn,null,e);return u.default.createElement(Xn,null,e.map((e=>t?u.default.createElement(Un,{key:e.term},u.default.createElement(Kn,null,e.term),u.default.createElement(_n,null,n(e.description))):u.default.createElement(Gn,{key:e.term},u.default.createElement(Kn,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,l]=e.useState(!0);return u.default.createElement("main",null,t((()=>l(!o)),o),u.default.createElement(to,null,u.default.createElement(eo,{showSidebar:o},n)))},exports.DimensionsInput=yo,exports.FilterTag=({className:t,e2eClassName:n,label:o,text:l,iconSlot:a,fill:i=y.secondary.blue.base,content:r,footer:d,onClickAway:s,onClick:c,shouldCloseOnClickAway:m=!0})=>{const f=Bo(t),p=Bo(n),{shouldShowDropdown:g,toggleShouldShowDropdown:h,closeDropdown:b}=Co(),v=e.useCallback((e=>{h(),s&&g&&s(e)}),[h,s,g]),x=e.useCallback((e=>{s&&s(e,b),m&&b()}),[b,s,m]);return!r?u.default.createElement(So,{className:_([null==f?void 0:f.container,null==p?void 0:p.container]),onClick:c},o&&u.default.createElement(Io,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(D,null,l),u.default.createElement(zo,{className:_([null==f?void 0:f.cross,null==p?void 0:p.cross]),name:"cross",size:"base",color:y.neutral.ink.base})):u.default.createElement(Ue,{className:f.filterTagDropdown,shouldShowDropdown:g,onClickAway:x,cta:u.default.createElement(So,{className:f.container,onClick:v},o&&u.default.createElement(Io,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(D,null,l),u.default.createElement(Lo,{color:y.neutral.ink.base,name:"downArrow",shouldShow:g}))},u.default.createElement(Fo,null,u.default.createElement(jo,{color:i},a,u.default.createElement(D,{variant:"bodyBold"},o)),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),l())}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 l(){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 a(e){e.metaKey||e.altKey||e.ctrlKey||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!0),n())}return document.addEventListener("keydown",a,!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",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),l()}}),[o]),u.default.createElement(Eo.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Do,exports.Image=({src:t,alt:n="",className:l,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Oo(l),x=Oo(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=u.default.useState(null),[S,N]=u.default.useState(null),{styles:I,attributes:L}=o.usePopper($,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>f?w(!0):{}),[f]),F=e.useCallback((()=>f?w(!1):{}),[f]),j=!C.isLoaded||C.isError;return u.default.createElement(Ro,{className:_([null==v?void 0:v.container,null==x?void 0:x.container,l])},u.default.createElement(Ho,{src:t,alt:n,className:_([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:f,onMouseEnter:z,onMouseLeave:F,style:j?{display:"none"}:{},ref:k}),!b&&j&&(p||u.default.createElement(Mo,{className:_([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&a.createPortal(u.default.createElement(To,Object.assign({ref:N,style:I.popper},L.popper,{className:_([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),u.default.createElement(Ao,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=no,exports.LegacyDataTable=jl,exports.Loader=le,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Dl);return u.default.createElement(Bl,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Dl)},"aria-label":Ml},t),u.default.createElement("img",{src:n,alt:Ml}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:l=!0,fullBleed:a=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,m]=e.useState(null);e.useEffect((()=>{var e,t;o&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:f,onScroll:p}=ko(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return u.default.createElement(t.AnimatePresence,null,o&&u.default.createElement("div",{"data-testid":"dialog-wrapper"},u.default.createElement(Rl,null),u.default.createElement(Zl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(je.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:u.default.createElement(Ce,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},l&&{onClickClose:g})),u.default.createElement(Hl,{onScroll:p,ref:m,isScrollable:f,fullBleed:a},d),Tl(n)&&n.footerSlot,!Tl(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(je.Footer,null,u.default.createElement($t,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&u.default.createElement($t,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&u.default.createElement($t,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:l,backAction:a,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const m=o&&u.default.createElement(We,{buttonVariant:l?"default":"primary",title:"Actions",sections:o}),f=null==l?void 0:l.map((e=>u.default.createElement(be,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=a&&u.default.createElement(be,{onClick:a.onClick,icon:u.default.createElement(na,null),variant:"link"},a.title),g=c&&u.default.createElement($t,{direction:"horizontal",alignX:"end"},u.default.createElement(ea,{onClick:c},u.default.createElement("span",null,"Toggle sidebar"),u.default.createElement(vt,{width:N.md})));return u.default.createElement(_l,{shadow:r},u.default.createElement($t,null,p,u.default.createElement(ta,null,u.default.createElement($t,{direction:"horizontal",spacing:"md"},n&&u.default.createElement(Jl,{src:n,alt:"",width:"72",height:"72"}),u.default.createElement("div",{style:{flex:1}},u.default.createElement($t,{alignX:"stretch"},u.default.createElement(Kl,null,e),i,t&&u.default.createElement(Yl,null,t)))),u.default.createElement(Ql,null,u.default.createElement($t,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,d&&u.default.createElement(be,{icon:u.default.createElement(na,null),onClick:d}),s&&u.default.createElement(be,{icon:u.default.createElement(vt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:l})=>{const{pageInputValue:a,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=ra({currentPage:n,totalPagesCount:o,handleChangePage:l});return u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},u.default.createElement(la,{onClick:()=>{1!==n&&l(1)},icon:u.default.createElement(da,null),size:"sm","aria-label":"go to first page"}),u.default.createElement(la,{onClick:r,icon:u.default.createElement(na,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),u.default.createElement("form",{onSubmit:d},u.default.createElement(aa,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:oo.sm,type:"number",value:a,min:"1",max:`${o}`,onChange:s,onBlur:c})),u.default.createElement(ia,{count:o}),u.default.createElement(la,{onClick:i,icon:u.default.createElement(vt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),u.default.createElement(la,{onClick:()=>{n!==o&&l(o)},icon:u.default.createElement(sa,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=va,exports.Popover=ee,exports.Popup=Ii,exports.Portal=X,exports.PriceInput=Sa,exports.Radio=Zt,exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:m="",className:f="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return u.default.createElement(La,{className:f,iconPosition:b?"left":"right"},u.default.createElement(Na,{size:x,type:e,value:s,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:m,name:p,disabled:t,error:c,autoComplete:v}),u.default.createElement(Ia,null,g?u.default.createElement(le,{height:24,color:h||z.colors.secondary.blue.base}):y&&n?u.default.createElement(be,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text"},u.default.createElement(we,{color:h||z.colors.neutral.ink.dark})):u.default.createElement(be,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search"},u.default.createElement(za,{color:h||z.colors.neutral.ink.dark,height:N.md,width:N.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>u.default.createElement(Da,{className:n?`${n}-container`:void 0},e.map((e=>u.default.createElement(be,{variant:e.value===t?"primary":"default",key:e.key,onClick:()=>o(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Ra,exports.SimpleTable=qa,exports.Slider=({id:t,value:n,min:o,max:l,step:a=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[m,f]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Ka(r),y=Ka(d),w=e.useCallback((e=>{var t;if(!m||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(l-o)+o;const c=r-s;if(c>0&&(s=r+Math.ceil(s/a-r/a)*a),c<0&&(s=r+Math.floor(s/a-r/a)*a),r===s)return;s>l&&(s=l),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=a.toString().includes(".")?null===(t=a.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;s=Number(s.toFixed(u)),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,m,l,o,i,a,n]),C=e.useCallback((()=>{f(!1),c()}),[c]),E=e.useCallback(((e,t)=>{f(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>E(e,Array.isArray(n)?0:1),t=e=>E(e,1),o=b.current,l=v.current;return null==o||o.addEventListener("mousedown",e),null==l||l.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==l||l.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let a;return a=_("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]),u.default.createElement(Ua,{role:"slider",ref:1===n?v:b,className:a,left:e,"aria-valuemin":o,"aria-valuemax":l,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(l-o),n=100*(e[1]>l?100:e[1]-o)/(l-o),a=n-t;return u.default.createElement(u.default.Fragment,null,u.default.createElement(_a,{className:_([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:a}),$(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>l?100:n<o?0:100*(e-o)/(l-o),$(t,e)})(n),u.default.createElement(Xa,{className:_([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},u.default.createElement(Ga,null),S)},exports.Stack=$t,exports.Stepper=wa,exports.Tag=Ya,exports.Text=D,exports.TextField=go,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:l="50vw",max:r=3,onClose:d})=>(e.useEffect((()=>{r&&o.length>r&&d(o[0].key)}),[o,r,d]),a.createPortal(u.default.createElement(Ja,{direction:"vertical",alignX:"center",spacing:4},u.default.createElement(i.TransitionGroup,{component:null},[...o].reverse().map(((e,a)=>u.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},u.default.createElement(ai,Object.assign({className:t,e2eClassName:n,minWidth:l,last:a===o.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=ci,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:l})=>u.default.createElement(ui,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>l(!t)},e),exports.Tooltip=at,exports.UploadFile=Ci,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const l=wo(n,o);return u.default.createElement(Ii,{shouldShow:n,className:`${e}-video`},u.default.createElement(Li,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},u.default.createElement(zi,{ref:l},u.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}),u.default.createElement(Fi,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:u.default.createElement(we,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:l,className:a,colourPalette:i=y.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:m,onEdit:f,e2eClassName:p})=>{const g=Oi(a),h=Oi(p),[b,v,x]=$o(),w=e.useCallback((()=>c(t)),[t,c]),C=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=l===ji.draft,k=l===ji.saved,S=s?y.neutral.ink.dark:y.neutral.ink.base;return u.default.createElement(Bi,{className:`${_([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},u.default.createElement(Mi,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&u.default.createElement(Ti,null,n),u.default.createElement(D,{variant:"bodyBold"},o),d&&u.default.createElement(Ri,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(Di,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&u.default.createElement(we,Object.assign({},Hi,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&u.default.createElement(Ai,Object.assign({},Hi,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=({id:e,iconSlot:t,name:n,type:o,className:l,colourPalette:a=y.secondary.blue,customTextColour:i,count:r,active:d=!1,onClick:s,subAction:c,ariaContext:m})=>{const f={delete:(p=l)?`${p}-delete`:void 0,edit:p?`${p}-edit`:void 0,container:p?`${p}-view`:void 0,active:p?`${p}-active`:void 0,counter:p?`${p}-counter`:void 0};var p;const[g,h,b]=$o(),v=d&&c?c:s,x=o===Wi.draft,w=o===Wi.saved;return u.default.createElement(Gi,{className:`${_([null==f?void 0:f.container])}\n }`,onClick:()=>v(e),role:"tab","aria-selected":d,"aria-label":`${d&&x?"Delete":d&&w?"Edit":""} ${n} view ${r?`with ${r} ${m}`:""}`,customTextColour:i},u.default.createElement(Xi,{active:d,onMouseEnter:h,onMouseLeave:b,colourPalette:a,customTextColour:i},t&&u.default.createElement(_i,null,t),u.default.createElement(D,{variant:"bodyBold"},n),r&&u.default.createElement(qi,{active:d||g,colourPalette:a,customTextColour:i},u.default.createElement(Pi,{variant:"subheadingSmall"},r)),x&&u.default.createElement(Zi,Object.assign({},Ui,{"aria-label":"delete icon"})),w&&d&&u.default.createElement(Vi,Object.assign({},Ui,{"aria-label":"edit icon"}))))},exports.WeightInput=er,exports.buildClassnames=_,exports.generateId=q,exports.getOpaqueHexColor=Y,exports.hexToRgb=K,exports.theme=z,exports.useCellWidths=rn,exports.useClickOutside=wo,exports.useColumns=dn,exports.useDebounce=(t,n)=>{const[o,l]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>l(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=sn,exports.useDropdown=Co,exports.useFocusVisible=function(){const[e,t]=u.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=u.default.useContext(Eo),l=u.default.useCallback((()=>{e||t(!0)}),[e]),a=u.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,u.default.useMemo((()=>({focusVisible:i,onFocus:l,onBlur:a})),[i,a,l])},exports.useHover=$o,exports.useIsOverflowing=ko,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const l=[...t];l.splice(e,1),n(l)}}}}},exports.useScrollPosition=cn,exports.useSelection=bn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[l]=e.useState(t),[a,i]=e.useState(l[o]);return[a,e=>{const t=l.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),u.default.createElement(t,Object.assign({},n))),exports.withLabels=co;
1
+ "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),o=require("react-popper"),a=require("resize-observer-polyfill"),l=require("react-dom"),i=require("react-transition-group"),r=require("lodash.throttle"),d=require("react-use");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=c(e),f=s(n),m=s(a),p=s(l),g=s(r);const h=f.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,b={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},v=(e,t)=>e||(t?b[t]:void 0),x={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"}}},y={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},w={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var C,E;!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)"}(C||(C={})),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"}(E||(E={}));const $=function({increment:e,unit:t,count:n}){const o={};for(let a=0;a<=n;a++){const n=a*e;o[a]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),k={[E.none]:"0",[E.line]:"1px",[E.xs]:$[1],[E.sm]:$[2],[E.base]:$[4],[E.md]:$[6],[E.lg]:$[8],[E.xl]:$[12],[E.xxl]:$[16]},S=Object.assign(Object.assign({},k),$),N={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},L={headingXXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},I=Object.assign(Object.assign({},N),{breakpoints:y,colors:x,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:w,shadows:C,sizes:S,text:L}),{text:z,colors:F,fontFamily:M}=I,R=f.default.span.attrs((({as:e,variant:t})=>({as:v(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--m0sc57"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${M};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?F.neutral.ink.lightest:z[e].color;return`\n font-family: ${z[e].fontFamily};\n font-style: ${z[e].fontStyle};\n font-weight: ${z[e].fontWeight};\n font-size: ${z[e].fontSize};\n line-height: ${z[e].lineHeight};\n color: ${n};\n text-decoration: ${z[e].textDecoration};\n letter-spacing: ${z[e].letterSpacing};\n `}}`,j=f.default(h).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,B=f.default(j).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${S.base};width:${S.base};color:${({glyphColor:e})=>e};}`,D=f.default(j).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,T=f.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1lgp9cv"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${I.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}`,H=f.default(h).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,O=f.default(R).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,A=f.default(t.motion(h)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,W=f.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,P=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),u.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"}));var V=function(){return V=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},V.apply(this,arguments)};function Z(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const q=e=>`${e}-${Math.floor(1e3*Math.random())}`;class X extends e.PureComponent{constructor(e){super(e),this.id=q("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 _=f.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,G=f.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,Y=e=>e.filter(Boolean).join(" "),U=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},K=(e,t)=>{const n=U(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},J='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])',Q=({popperElement:t,anchorElement:n,onClose:o,disableFocusLock:a=!1})=>{e.useEffect((()=>{if(!t||a)return;const e=t.querySelectorAll(J);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,a]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(J);if(n.length<1)return void o();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,o]);return{handleKeyDown:e=>{t&&("Escape"===e.key?o():a||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(J),o=n[0],a=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),o.focus())})(e))}}},ee=t=>{var{id:n,children:a,zIndex:l=I.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:f}=t,p=Z(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock"]);const[g,h]=e.useState(null),{styles:b,attributes:v,update:x}=o.usePopper(r,g,{placement:i}),y=e.useMemo((()=>n||q("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:y});const w=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:C}=Q({popperElement:g,anchorElement:r,onClose:w,disableFocusLock:f});return e.useEffect((()=>{if(!x||!g)return;const e=new m.default(x);return e.observe(g),()=>e.disconnect()}),[x,g]),e.useEffect((()=>{if(x)return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)}),[x]),u.default.createElement(X,{rootElementRef:d},u.default.createElement(G,{onClick:w,zIndex:l}),u.default.createElement(_,Object.assign({open:!0,zIndex:l,ref:h,style:Object.assign(Object.assign({},b.popper),c),onKeyDown:C},v.popper,p),a))},te=({width:e,height:t,className:n,color:o,label:a})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":a},u.default.createElement("defs",null,u.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},u.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),u.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),u.default.createElement("stop",{stopColor:o,offset:"100%"}))),u.default.createElement("g",{fill:"none",fillRule:"evenodd"},u.default.createElement("g",{transform:"translate(1 1)"},u.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),u.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ne=({width:e,height:t,className:n,color:o,label:a})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":a},u.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),oe=({width:e,height:t,className:n,color:o,label:a})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":a},u.default.createElement("circle",{cx:"15",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},u.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"105",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ae=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:a="TailSpin"})=>{switch(a){case"Grid":return u.default.createElement(ne,{className:e,height:t,width:n,color:o});case"ThreeDots":return u.default.createElement(oe,{className:e,height:t,width:n,color:o});default:return u.default.createElement(te,{className:e,height:t,width:n,color:o})}},le=f.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({loading:e})=>e&&"opacity: 0;"};svg{width:${({size:e})=>S[e]};height:${({size:e})=>S[e]};}`,ie=f.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--1xsghtl"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${I.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",a="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",a="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${a};\n font-size: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,re=f.default(ie).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${I.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?I.colors.neutral.ink.base:I.colors.secondary.blue.base};&:hover{background-color:${I.colors.neutral.grey.lightest};}&:active{background-color:${I.colors.neutral.grey.lightest};border-color:${I.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${I.colors.neutral.grey.base} !important;border-color:${I.colors.neutral.grey.base} !important;color:${I.colors.neutral.ink.light} !important;}`,de=f.default(re).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${I.colors.secondary.red.base};&:hover{color:${I.colors.secondary.red.dark};}&:active{border-color:${I.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};color:${I.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,se=f.default(re).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${I.colors.secondary.blue.base};border-color:${I.colors.secondary.blue.base};color:white;&:hover{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};}&:active{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}`,ce=f.default(se).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${I.colors.secondary.red.base};border-color:${I.colors.secondary.red.base};color:white;&:hover{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};}&:active{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,ue=f.default(ie).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${I.colors.neutral.ink.base};&:hover{background-color:${I.colors.neutral.grey.light};}&:active{background-color:${I.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,fe=f.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,me=f.default(fe).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};text-decoration:${I.text.link.textDecoration};color:${I.colors.secondary.blue.base};&:hover{color:${I.colors.secondary.blue.dark};}& > * + *{margin-left:${I.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${I.colors.secondary.blue.light};border-radius:4px;}`,pe=f.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--cvu4hf"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ge=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),he={default:re,primary:se,destructive:de,primaryDestructive:ce,flat:ue,link:me,unstyled:fe},be=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:a,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Z(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return u.default.createElement(fe,Object.assign({ref:t,className:n},s),o);const c=he[l],f=void 0!==o,m=!!a;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:f,hasIcon:m,hasDropdown:r},s),(f||m)&&u.default.createElement(le,{loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},a&&a,void 0!==o&&u.default.createElement("span",null,o),r&&u.default.createElement(ge,null)),d&&u.default.createElement(pe,null,u.default.createElement(ae,null)))})),ve=f.default.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${S.md};padding-right:${S.md};padding-left:${S.md};margin-bottom:${S.md};& > * + *{margin-top:${S.xs};}`,xe=f.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${S.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ye=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),u.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"})),we=e=>u.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),u.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"})),Ce=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:a,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>u.default.createElement(ve,null,u.default.createElement(xe,null,u.default.createElement(R,{id:e,variant:o},t),a&&u.default.createElement(be,{variant:"link",onClick:a.onClick},a.title),l,r&&u.default.createElement(be,{variant:"flat",icon:i?u.default.createElement(ye,null):u.default.createElement(P,null),onClick:r}),d&&u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,null),onClick:d,"aria-label":"Close"})),n&&u.default.createElement(R,{variant:"subheadingSmall"},n)),{grey:Ee}=x.neutral,$e={0:"none",1:C.sm,2:C.base,3:C.md,4:C.lg},ke={info:x.secondary.blue.base,success:x.secondary.green.base,error:x.secondary.red.base},Se=f.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${S.base};padding:${S.md};z-index:2;`,Ne=f.default.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${S.md};padding-left:${S.md};margin-top:${S.md};margin-bottom:${S.md};font-family:${L.body.fontFamily};font-size:${L.body.fontSize};font-weight:${L.body.fontWeight};line-height:${L.body.lineHeight};color:${L.body.color};& + &{border-top:${S.line} solid ${Ee.base};padding-top:${S.md};}`,Le=f.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${S.md};margin-right:-${S.md};`,Ie=f.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=f.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${S.line} solid ${Ee.base};box-shadow:${e=>void 0!==e.elevation?$e[e.elevation]:C.sm};border-radius:${w.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: ${S.xs};\n background-color: ${ke[e]};\n }\n `}`,Fe={expanded:{height:"auto"},collapsed:{height:0}},Me=({className:t,style:n,title:o,subtitle:a,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:f,renderFooter:m})=>{const[p,g]=e.useState(!1),h=o&&u.default.createElement(Ce,{title:o,subtitle:a,ActionSlot:l,action:i,onClickClose:f,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=u.default.createElement(Ie,{animate:b?"expanded":"collapsed",variants:Fe,transition:{duration:.3,ease:"easeOut"}},u.default.createElement(Ne,null,c)),x=void 0!==m&&u.default.createElement(Se,null,m());return u.default.createElement(ze,{className:t,style:n,elevation:d,accent:s},h,v,x)};Me.Surface=ze,Me.Section=Ne,Me.FullBleed=Le,Me.Footer=Se;const{sizes:Re,colors:je,text:Be}=I,De=f.default(Me.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${Re.base} 0;display:flex;flex-direction:column;`,Te=f.default.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${je.neutral.grey.base};margin-top:${Re.base};padding-top:${Re.base};}`,He=f.default(R).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${Re.sm} ${Re.base} ${Re.sm};`,Oe=f.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${Re.lg};padding:${Re.xs} ${Re.base};display:flex;align-items:center;white-space:nowrap;font-family:${Be.body.fontFamily};font-size:${Be.body.fontSize};font-weight:${Be.body.fontWeight};&:hover{background-color:${je.neutral.grey.light};color:${je.secondary.blue.base};}& > * + *{margin-left:${Re[3]};}`,Ae={item:Oe,action:f.default(Oe).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${je.secondary.blue.base};`,link:f.default(Oe).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${je.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:n=[],sections:o,buttonVariant:a,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Ae[e.variant||"item"];return u.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,u.default.createElement("span",null,e.title))},f=o?o.map((e=>u.default.createElement(Te,{key:e.title},e.title&&u.default.createElement(He,null,e.title),e.items.map(c)))):n.map(c);return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{dropdown:!0,variant:a,size:l,onClick:()=>r(!i),ref:s},t),i&&u.default.createElement(ee,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},u.default.createElement(De,null,f)))},Pe=f.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${I.text.link.fontFamily};font-style:${I.text.link.fontStyle};font-weight:${I.text.link.fontWeight};font-size:${I.text.link.fontSize};line-height:${I.text.link.lineHeight};color:${I.colors.secondary.blue.base};text-decoration:${I.text.link.textDecoration};&:hover{color:${I.colors.secondary.blue.dark};}`,Ve=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--901a1g"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Ze=e.forwardRef(((e,t)=>{const{children:n,className:o,role:a}=e;return u.default.createElement(Ve,{className:o,ref:t,role:a},n)})),qe=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xe=f.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,_e=f.default(Ze).withConfig({displayName:"vui--Dropdown",componentId:"vui--dv3wrs"})`flex-direction:column;position:absolute;z-index:${I.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);}`,Ge=({cta:t,shouldShowDropdown:n,children:o,className:a="animated-dropdown",reversed:l=!1,onClickAway:r=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:f,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&&r(e)})),u.default.createElement(qe,{className:`${a}-container ${a}`,onClick:c,onMouseEnter:f,onMouseLeave:m,ref:p},!l&&t,u.default.createElement(Xe,{className:`${a}-wrap ${a}`},u.default.createElement(i.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},u.default.createElement(_e,{role:"dialog",reversed:l,className:`${a}-basic-dropdown ${a}`},o))),l&&t)},Ye=f.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${I.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:${I.text.bodySmallBold.fontFamily};font-weight:${I.text.bodySmallBold.fontWeight};font-size:${I.text.bodySmallBold.fontSize};line-height:${I.text.bodySmallBold.lineHeight};}`,Ue=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--t7r6of"})`display:inline-block;`,Ke=f.default(Ue).withConfig({displayName:"vui--Hoverable",componentId:"vui--1yesgsr"})``,Je=f.default(R).withConfig({displayName:"vui--TooltipText",componentId:"vui--14vro0x"})`color:${I.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Qe=f.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--yf0fwi"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,et=f.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--ll0nnf"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,tt=f.default(Ue).withConfig({displayName:"vui--Wrap",componentId:"vui--1u8lm59"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var nt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(nt||(nt={}));const ot={duration:400,side:nt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},at=({content:t,text:n,hoverableElement:a,config:l,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),f=Object.assign(Object.assign({},ot),l),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=f,{styles:v,attributes:x}=o.usePopper(a,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:I.layers.tooltip});return u.default.createElement(et,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),u.default.createElement(tt,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:u.default.createElement(Je,null,n)),r&&u.default.createElement(Qe,{id:"veeqo-components-triangle",className:d.triangle}))},lt=({children:t,text:n,content:o,config:a,reversed:l=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,f]=e.useState(d),[m,g]=e.useState(null),h=!!n&&n.trim().length>0,b={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!o&&!h);if(!v)return t;const x=c&&v&&u.default.createElement(at,{classNames:b,hoverableElement:m,config:a,reversed:l,withTriangle:r,text:n,content:o});return u.default.createElement(Ue,{className:b.container},s?p.default.createPortal(x,document.body):x,u.default.createElement(Ke,{ref:g,className:b.hoverable,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)},t))},it=f.default(h).withConfig({displayName:"vui--BaseBadge",componentId:"vui--idt2e7"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${L.bodySmall.fontFamily};font-weight:${L.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${S.base};height:${S.base};}`,rt={default:f.default(it).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${x.secondary.blue.base};color:${x.secondary.blue.base};`,primary:f.default(it).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};color:${x.secondary.blue.base};`,warning:f.default(it).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${x.secondary.yellow.base};background-color:${x.secondary.yellow.lightest};color:${x.secondary.orange.dark};`},dt=f.default(h).withConfig({displayName:"vui--BannerLayout",componentId:"vui--5tzoxx"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,st=f.default(h).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,ct=f.default(h).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ut=f.default(ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${S.md};height:${S.md};color:${({accentColor:e})=>e};}`,ft=f.default(h).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,mt=f.default(ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,pt=f.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,gt={help:x.secondary.blue.base,info:x.neutral.ink.base,error:x.secondary.red.base,success:x.secondary.green.base},ht=f.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${L.body.fontFamily};font-weight:${L.body.fontWeight};font-size:${L.body.fontSize};line-height:${L.body.lineHeight};`,bt=f.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--19n9row"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,vt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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:o})=>n?u.default.createElement(bt,{className:"breadcrumb"},u.default.createElement(n,{href:o},t),e):u.default.createElement(bt,{className:"breadcrumb"},t,e),yt=()=>u.default.createElement(vt,{className:"separator",width:S.base,height:S.base}),wt=({children:e,href:t})=>u.default.createElement("a",{href:t},e),Ct=({children:e})=>u.default.createElement("span",null,e);var Et;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Et||(Et={}));const $t=f.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:a="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&Et[n],i=o&&Et[o],s=I.sizes[a],r="column"):(l=o&&Et[o],i=n&&Et[n],c=I.sizes[a],r="row"),("vertical"===t&&"stretch"===o||"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 `}}`;$t.displayName="Stack";const kt={top:"flex-start",center:"center"},St=f.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${I.sizes.base};}`,Nt=f.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>kt[e.align]};width:24px;height:24px;`,Lt=f.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,It=f.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${I.sizes.sm};}`,zt=f.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.sizes.md};color:${I.text.body.color};`,Ft=f.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,Mt=f.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};`,Rt=f.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,jt=f.default(Rt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${I.colors.neutral.grey.dark};border-radius:${I.radius.md};padding:${I.sizes.base} 0.75rem;&:hover{border-color:${I.colors.secondary.blue.base};}& ${zt}{font-weight:${I.text.bodyBold.fontWeight};}`,Bt=f.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Dt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Tt=({id:e,label:t,hint:n,tooltip:o,error:a,bordered:l,Badge:i,Accessory:r,Footer:d,children:s,disabled:c=!1})=>{const f=u.default.createElement(St,null,u.default.createElement(Nt,{align:r?"center":"top"},s),r&&u.default.createElement(Lt,null,r),t||n||a||i||d?u.default.createElement(It,null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&u.default.createElement(zt,null,t),o&&u.default.createElement(Bt,{text:o},u.default.createElement(Dt,{name:"help",width:I.sizes.base,color:I.colors.neutral.ink.lightest}))),n&&u.default.createElement(Ft,null,n),a&&u.default.createElement(Mt,null,a),d):null);return l?u.default.createElement(jt,{disabled:c,htmlFor:e},f):u.default.createElement(Rt,{disabled:c,htmlFor:e},f)},{colors:Ht,sizes:Ot,radius:At}=I,Wt=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Ht.neutral.ink.lightest};border-radius:${At.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Ht.secondary.blue.base};border-color:${Ht.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:${Ot[4]};background-position:center;}&:hover{border-color:${Ht.secondary.blue.base};}&:active{border-color:${Ht.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Ht.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Ht.secondary.blue.base};border-color:${Ht.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:${Ot[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Ht.neutral.grey.base};border-color:${Ht.neutral.grey.base};color:${Ht.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>");}`,Pt=t=>{var{checked:n,indeterminate:o,value:a,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=Z(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const f=e.useMemo((()=>q("checkbox")),[]),m=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,a)}),[s,a]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===o)}),[o]),u.default.createElement(Tt,Object.assign({id:f,disabled:i},c),u.default.createElement(Wt,{ref:m,id:f,type:"checkbox",checked:n,value:a,name:l,disabled:i,"aria-label":r,className:d,onChange:p}))},Vt=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--14lc9u"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Zt=e.forwardRef(((t,n)=>{var{checked:o,value:a,name:l,disabled:i,onChange:r,id:d}=t,s=Z(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{r(e.currentTarget.checked,a)}),[r,a]),f=null!=d?d:q("radio");return u.default.createElement(Tt,Object.assign({id:f,disabled:i},s),u.default.createElement(Vt,{id:f,type:"radio",checked:o,value:a,name:l,disabled:i,onChange:c,ref:n}))})),qt=f.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Xt=f.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-style:${I.text.inputLabel.fontStyle};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};text-decoration:${I.text.inputLabel.textDecoration};color:${I.text.inputLabel.color};`;class _t 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:o}=this.props;let a=[];a=t?[...n,e]:n.filter((t=>t!==e)),o(a)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:a,bordered:l}=this.props,i=e?Pt:Zt;return u.default.createElement(qt,{disabled:a},o&&u.default.createElement(Xt,null,o),t.map((e=>u.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Gt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Yt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Ut={width:S.base,height:S.base},Kt=f.default(be).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${S.base};width:${S.base};top:unset;}`;function Jt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Qt(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Qt(e.min,"max-content")}, ${Qt(e.max)})`;default:return t||"1fr"}}function en({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:a,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"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,f=`\n tr:nth-child(odd) > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `,m=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>Qt(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?m:f}\n `}var tn;!function(e){e.ascending="ascending",e.descending="descending"}(tn||(tn={}));const nn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),on=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),an=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),ln=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===tn.ascending?u.default.createElement(on,{color:I.colors.neutral.ink.dark,size:n}):u.default.createElement(an,{color:I.colors.neutral.ink.dark,size:n}):u.default.createElement(nn,{size:n});function rn(t,n){const[o,a]=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));a(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=g.default(l,50),t=new m.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function dn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),a=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...a,...o],pinnedLeft:n,pinnedRight:o}}function sn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},a=t=>{if(!n)return;const a=t.clientX-o.x;n.scrollLeft=o.left-a,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function cn(t){const[n,o]=e.useState("start"),a=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:a}=t.current;o(a<e?"none":0!==n?n+e>=a?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",a),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",a)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=g.default(a,50),n=new m.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const un="56px",fn=f.default.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${un};display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};border-bottom:1px solid ${I.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function mn(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:a}=e,l=Z(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===a?u.default.createElement(fn,Object.assign({},l)):u.default.createElement(fn,Object.assign({},l),u.default.createElement(Pt,{checked:t,indeterminate:n,onChange:o}))}const pn=f.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};color:${I.text.bodySmall.color};font-family:${I.text.bodySmall.fontFamily};font-size:${I.text.bodySmall.fontSize};font-style:${I.text.bodySmall.fontStyle};font-weight:${I.text.bodySmall.fontWeight};line-height:${I.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${I.colors.secondary.blue.base};background-color:${I.colors.neutral.grey.lightest};}`;function gn(e){var{selected:t,rowId:n,onChange:o,selectionMode:a,disabled:l}=e,i=Z(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===a?u.default.createElement(pn,Object.assign({},i),u.default.createElement(Zt,{value:n,checked:t,disabled:l,onChange:o})):u.default.createElement(pn,Object.assign({},i),u.default.createElement(Pt,{value:n,checked:t,disabled:l,onChange:o}))}const hn=[[],()=>{}];function bn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[a,l]=t||hn,i=()=>{a.length!==n.length?l(n):l([])};return{selectionEnabled:o,selectedRowIds:a,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>u.default.createElement(mn,Object.assign({},o,{selected:a.length===n.length,indeterminate:a.length>0&&a.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,a)=>u.default.createElement(gn,Object.assign({},n,{rowId:t.id,selected:a.selected,onChange:o.setSelected,selectionMode:e,disabled:a.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(a.includes(n))return;const e=[...a,n];l(e)}else{const e=a.findIndex((e=>e===n));if(e<0)return;const t=[...a];t.splice(e,1),l(t)}}}}const vn=f.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${I.colors.neutral.ink.lightest};`,xn=f.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${I.text.headingTable.color};font-family:${I.text.headingTable.fontFamily};font-size:${I.text.headingTable.fontSize};font-style:${I.text.headingTable.fontStyle};font-weight:${I.text.headingTable.fontWeight};line-height:${I.text.headingTable.lineHeight};`,yn=f.default(xn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--p1ald0"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${vn}{background-color:${I.colors.neutral.grey.light};color:${I.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${I.colors.secondary.blue.light};}`;function wn({column:e,sortState:t,onChangeSort:n}){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 o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const a=e.sortable?yn:xn,l=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===tn.ascending;let a=tn.ascending;return n&&o&&(a=tn.descending),{columnId:t,direction:a}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return u.default.createElement(fn,Object.assign({},o),u.default.createElement(lt,{text:e.tooltip},u.default.createElement(a,Object.assign({},l),e.icon&&e.icon,e.title&&u.default.createElement("span",null,e.title),e.sortable&&u.default.createElement(vn,null,u.default.createElement(ln,{sortState:t,columnId:e.id,size:5})))))}const Cn=I.colors.neutral.grey.base,En=I.colors.neutral.grey.dark,$n=f.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${I.radius.base};background:${Cn};background-image:linear-gradient(\n to right,\n ${Cn} 0%,\n ${En} 20%,\n ${Cn} 40%,\n ${Cn} 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 kn=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--uoc40o"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${un};background-color:white;`,Sn=f.default.div.withConfig({displayName:"vui--Content",componentId:"vui--x1996k"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${I.colors.neutral.grey.base};& > *{flex:1;}`;function Nn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:a}){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=o.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 u.default.createElement(kn,{style:c},wn({column:t}),u.default.createElement(Sn,null,a))}const Ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),In=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),zn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Fn=f.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${I.sizes.lg};padding-bottom:${I.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${I.sizes.md};`,Mn=f.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${I.sizes.md};background-color:${I.colors.neutral.grey.light};border-radius:${I.radius.full};`,Rn=f.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,jn=f.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${I.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 `}`,Bn=f.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Dn=f.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${I.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Tn=f.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Hn={full:`border-width: 1px; border-radius: ${I.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},On=f.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${I.colors.neutral.grey.dark};${({borderMode:e="full"})=>Hn[e]} &,& *{box-sizing:border-box;}`;function An({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:a,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=o.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)},p=()=>{var e;if(!o.current)return;const t=o.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&&o.current&&f()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=g.default(f,33),t=new m.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{p()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",p)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:un,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${I.colors.neutral.grey.base}`}),b=l+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return u.default.createElement("div",{style:h,ref:i},u.default.createElement(Dn,{css:b},u.default.createElement("thead",null,t)))}const Wn=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),Pn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}),u.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),u.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Vn={icon:u.default.createElement(Pn,{width:48,height:48}),heading:"No results"},Zn=()=>{},qn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:a=Vn,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:f,selectionState:m,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),x=e.useRef(null),y=e.useRef(null);sn(v);const w=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=bn({selectionMode:f,selectionState:m,enabledRowIds:w}),S={setSelected:k||Zn,setExpanded:p||Zn},N=[$,...o],L=C?N:o,I=rn(x,v),{visible:z,pinnedLeft:F,pinnedRight:M}=dn(L),{scrollPosition:j}=cn(v),B=en({pinnedLeft:F,pinnedRight:M,cellWidths:I,scrollPosition:j,visible:z,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return u.default.createElement(On,{borderMode:n},u.default.createElement(Bn,{ref:v},u.default.createElement(Dn,{css:B,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(jn,{key:e.id},z.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 u.default.createElement(pn,Object.assign({},n),u.default.createElement($n,null))}(e,t))))))))))}if(0===s.length)return u.default.createElement(On,{borderMode:n},u.default.createElement(Bn,{ref:v},u.default.createElement(Dn,{css:B,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},u.default.createElement(Fn,{columnCount:z.length},u.default.createElement(Mn,null,a.icon),u.default.createElement($t,{spacing:"sm",alignX:"center"},u.default.createElement(R,{variant:"headingMedium"},a.heading),a.subheading&&u.default.createElement(R,{variant:"subheadingMedium"},a.subheading)))))));const D=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Wn(e.id,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:c});return u.default.createElement(jn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,a,n,o)}(e,t,S,o))))},T=(e,t)=>{var n,o;const a=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=Wn(t,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:c});return u.default.createElement(jn,{role:"row",key:e.id,className:a},z.map((t=>function(e,t,n){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,o,n):u.default.createElement(pn,Object.assign({},o))}(e,t,i))))},H=e=>{var t;const n=null==l?void 0:l.includes(e.id);return u.default.createElement("tbody",{role:"rowgroup",key:e.id},D(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id)))))},O=u.default.createElement(jn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d})))),A=o.some((e=>!!e.renderFooter)),W=E.length>0&&!!t;return u.default.createElement(On,{borderMode:n},W&&u.default.createElement(Nn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),u.default.createElement(Bn,{ref:v},b&&u.default.createElement(An,{tableCss:B,intersectionTargetRef:y,containerRef:v,cellWidths:I},O),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(Dn,{css:B,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},O),(()=>{const e=!!l;return e&&"nested"===h?s.map(H):e?u.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[D(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id))))||[]]}))):u.default.createElement("tbody",{role:"rowgroup"},s.map(D))})(),A&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.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):u.default.createElement(pn,Object.assign({},t))}({column:e}))))))))};qn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},qn.Cell=pn,qn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[a,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])))),f=(e,n)=>{const a=c[e].map((e=>e.id)),l=[...t];a.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),o(l)};return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&u.default.createElement(ee,{anchorElement:a,onShouldClose:()=>r(!1)},u.default.createElement(Me,{style:{width:600}},u.default.createElement($t,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>u.default.createElement($t,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},u.default.createElement(be,{variant:"flat",icon:u.default.createElement(zn,null)}),u.default.createElement($t,{spacing:"sm",style:{flex:1}},e.map((e=>u.default.createElement("div",{key:e.id},e.title)))),u.default.createElement($t,{direction:"horizontal",spacing:"sm"},e[0].hidden?u.default.createElement(be,{variant:"flat",icon:u.default.createElement(In,null),onClick:()=>f(t,!1),style:{color:I.colors.neutral.ink.lightest}}):u.default.createElement(be,{variant:"flat",icon:u.default.createElement(Ln,null),onClick:()=>f(t,!0)})))))))))},qn.SelectionCell=gn,qn.SelectionHeader=mn,qn.Header=fn,qn.Truncate=Tn,qn.NoWrap=Rn;const Xn=f.default.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${I.sizes.base};}`,_n=f.default.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${I.sizes.xs};}`,Gn=f.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${I.sizes.base};}`,Yn=f.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${I.sizes.xs};}`,Un=f.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${I.text.bodyBold.fontFamily};font-size:${I.text.bodyBold.fontSize};font-weight:${I.text.bodyBold.fontWeight};line-height:${I.text.bodyBold.lineHeight};color:${I.text.bodyBold.color};`,Kn=f.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.text.body.lineHeight};color:${I.text.body.color};`,{sizes:Jn,colors:Qn}=I,eo=f.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Jn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Jn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,to=f.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${Jn.md};overflow-x:hidden;background-color:${Qn.neutral.grey.lightest};`,no=f.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--2b6aqg"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var oo;!function(e){e.base="base",e.sm="sm"}(oo||(oo={}));const ao=f.default.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};color:${I.text.inputLabel.color};`,lo=f.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,io=f.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,ro=f.default($t).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,so=f.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,co=t=>n=>{var{label:o,hint:a,error:l,tooltip:i}=n,r=Z(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>q(t.name)),[]);return o?u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement("div",null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},u.default.createElement(ao,{htmlFor:d},o),i&&u.default.createElement(so,{text:i},u.default.createElement(Dt,{width:I.sizes.base,height:I.sizes.base,color:I.colors.neutral.ink.light}))),a&&u.default.createElement(lo,null,a)),u.default.createElement(t,Object.assign({id:d,hasError:!!l},r)),l&&u.default.createElement(io,null,l)):u.default.createElement(t,Object.assign({hasError:!!l},r))},uo=({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 "}`,fo=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${I.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 `}} ${uo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,mo=f.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1jp908v"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${uo}`,po=/^-?[0-9]*\.?[0-9]+$/,go=co(e.forwardRef(((t,n)=>{var{id:o,className:a,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:f,pattern:m,placeholder:p,rows:g="3",size:h=oo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Z(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=e.useCallback((e=>{if(!f)return;const t=e.currentTarget.value;if(""===t)return void f(t);if("number"!==v)return void f(t);new RegExp(po).test(t)&&f(t)}),[f,v]),E=null!=o?o:q("textfield");return"text"===v&&s?u.default.createElement(mo,Object.assign({className:a,disabled:l,hasError:i,id:E,name:c,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):u.default.createElement(fo,Object.assign({className:a,disabled:l,hasError:i,id:E,inputSize:h,max:r,min:d,name:c,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));go.displayName="TextField";const ho=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,bo=f.default(h).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,vo=f.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${I.colors.neutral.ink.lightest};}`,xo=f.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${I.colors.neutral.ink.lightest};`;f.default(R).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,f.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,f.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`;const yo=co((e=>{var{size:t=oo.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:a,className:l,height:i,width:r,length:d,unit:s}=e,c=Z(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return u.default.createElement(ho,{className:l},u.default.createElement(bo,null,u.default.createElement(vo,Object.assign({onChange:a,size:t,name:"length",type:"number",placeholder:"L",value:d},c)),u.default.createElement(we,{height:I.sizes.base,width:I.sizes.base}),u.default.createElement(vo,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r},c)),u.default.createElement(we,{height:I.sizes.base,width:I.sizes.base}),u.default.createElement(no,null,u.default.createElement(vo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i},c)),u.default.createElement(xo,{size:t},s))))}));yo.displayName="DimensionsInput";const wo=(t,n)=>{const o=e.useRef(null),a=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",a),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",a)}}),[l,a,t]),o};function Co(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),a=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:a}}const Eo=u.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const $o=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},ko=t=>{const[n,o]=e.useState(!1),[a,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!a,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:a}=e.target;l(o-n-a<=0)}}},So=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${x.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${S.base};height:${S.base};}`,No=f.default(R).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Lo=f.default(No).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Io=f.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=f.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Fo=f.default(h).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Mo=f.default(h).withConfig({displayName:"vui--Header",componentId:"vui--188pxr2"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${x.neutral.grey.base};svg{color:${({color:e})=>e};width:${S[5]};height:${S[5]};margin-right:10px;}`,Ro=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),jo=f.default(h).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?S[e]:0};`,Bo=e=>u.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Do=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,To=f.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Ho=f.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,Oo=f.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Ao=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}),Wo={width:64,height:64},Po={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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({},Wo)),title:"No data found"},Vo={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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({},Wo)),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 Zo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Zo||(Zo={}));const{text:qo,sizes:Xo}=I,{blue:_o}=I.colors.secondary,{grey:Go}=I.colors.neutral,{scrollbar:Yo}=I.colors.system,Uo='\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',Ko=f.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,Jo=f.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--8prdgq"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Go.dark};border-bottom:1px solid ${Go.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: ${Yo.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Yo.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Uo};\n\n ${o===Zo.middle||o===Zo.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 ${Uo};\n\n ${o===Zo.start||o===Zo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Qo=f.default(Jo).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${Go.dark};border-radius:4px;`,ea=f.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,ta=f.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Go.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;f.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${Go.lightest};padding:1.5rem 1rem;border-top:1px solid ${_o.base};}`;const na=f.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ostkmy"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,oa=f.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--9fl65z"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${qo.bodySmall.fontFamily};font-size:${qo.bodySmall.fontSize};font-weight:${qo.bodySmall.fontWeight};color:${qo.bodySmall.color};line-height:${Xo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,aa=f.default(oa).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${Go.dark};font-family:${qo.bodySmallBold.fontFamily};font-size:${qo.bodySmallBold.fontSize};font-weight:${qo.bodySmallBold.fontWeight};color:${qo.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Go.light};}`,la={left:"flex-start",center:"center",right:"flex-end"},ia=f.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?la[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,ra=f.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${ta}:nth-child(even) td {\n background-color: ${Go.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${aa}, & ${aa} span {\n white-space: nowrap;\n }\n `}`,da=f.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${oa}{border-top:1px solid ${Go.dark};background-color:${Go.lightest};padding-top:${Xo.base};padding-bottom:${Xo.base};line-height:2rem;}`,sa=f.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,ca=f.default(ra).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,ua=f.default(h).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--120wsfh"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,fa=f.default(h).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${I.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,ma=f.default(R).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,pa=f.default(R).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,ga=({height:e,icon:t,title:n,subTitle:o})=>u.default.createElement(ua,{height:e},u.default.createElement(fa,null,t),u.default.createElement(ma,{variant:"headingLarge"},n),o&&u.default.createElement(pa,{variant:"subheadingMedium"},o)),ha=f.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--14e2rl4"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${I.sizes.base};border-radius:${I.radius.base};&:hover{cursor:pointer;background-color:${I.colors.secondary.blue.lightest};}`,ba=f.default(ha).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${I.text.link.color};text-decoration:${I.text.link.textDecoration};`,va=f.default.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:xa}=I.colors.neutral,ya=f.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,wa=f.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--yfc89o"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${xa.base} 8%, ${xa.dark} 15%, ${xa.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Ca=({isLoading:e,style:t})=>u.default.createElement(ya,{style:t},u.default.createElement(wa,{isLoading:e})),Ea=e=>{var{style:t}=e,n=Z(e,["style"]);return u.default.createElement(oa,Object.assign({},n),u.default.createElement(Ca,{style:t}))};Ea.defaultProps={style:{}};const $a=({renderHeader:t,tableRef:n,wrapperRef:o,isFixedLayout:a,wrapperStyle:l})=>{var i;const[r,s]=e.useState(null),{isSticky:c}=((t,n)=>{const[o,a]=e.useState(!1),l=e.useCallback((({top:e,bottom:t})=>{let l=o;l=e<=(n||0)&&t>0?!o||l:!o&&l,l!==o&&a(l)}),[o,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:o}})(n,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),f=((null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;d.useScroll(o);const m=e=>{var t;const n=(null===(t=o.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return m(),c?u.default.createElement(sa,{ref:e=>{s(e),m(e)},style:Object.assign({width:f},l)},u.default.createElement(ca,{style:{tableLayout:a?"fixed":"auto"}},t())):null},ka=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")},Sa=e=>{var{style:t,width:n,isLoading:o}=e,a=Z(e,["style","width","isLoading"]);return u.default.createElement(aa,Object.assign({},a,{style:{width:n}}),u.default.createElement(Ca,{style:t,isLoading:o}))},Na=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),La=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Ia=()=>u.default.createElement(nn,{width:I.sizes.base,height:I.sizes.base,color:"lightgrey"}),za=()=>u.default.createElement(Na,{width:I.sizes.base,height:I.sizes.base,color:"lightgrey"}),Fa=()=>u.default.createElement(La,{width:I.sizes.base,height:I.sizes.base,color:"lightgrey"}),Ma=({borderless:t=!1,striped:n=!0,noWrap:o=!1,showScrollbar:a=!1,headers:l,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:f,renderFooterLoadingRow:m,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:C=!1,isLoading:E=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:L=375,startFixedColumnsNumber:I,endFixedColumnsNumber:z})=>{const F=t?Jo:Qo,M=!!i&&0===i.length,R=Boolean(I||z),j=!I&&!z,B=e.useRef(null),D=e.useRef(null),[T,H]=e.useState(Zo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!D.current||j)return;const e=D.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),a=n+o;t===o?H(Zo.none):0===n?H(Zo.start):n>0&&a<t?H(Zo.middle):a===t&&H(Zo.end)};return D.current&&(t=D.current,n(),null===(e=D.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[B,j]);const O=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),[]),A=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!l||E)return null;const e=[],t=[];let n=0,o=0;if(I){g&&(e.push(A(1,n,"left")),n+=58);for(let t=0;t<I;t+=1){const o=O(l[t].width);o&&(e.push(A(g?t+2:t+1,n,"left")),n+=o)}}if(z)for(let e=0;e<z;e+=1){const n=O(l.slice(-e-1)[0].width);n&&(t.push(A(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[E,O,z,A,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],o=n.findIndex((e=>e===t.id));n.splice(o,1),v(n)}),[v,g,b]),Z=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]),q=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]),X=e.useCallback(((e,t)=>{let n="",o=()=>{},a=u.default.createElement(Ia,null);const{tooltip:l,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",o=()=>q(c),x===c&&(a="ascending"===y?u.default.createElement(za,null):u.default.createElement(Fa,null)));const f=u.default.createElement(ia,{align:i},r&&r,d&&u.default.createElement("span",null,d),s&&a);return u.default.createElement(aa,{key:c,id:`data-table-header-${c}`,className:n,onClick:o,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},l?u.default.createElement(lt,{text:l},u.default.createElement(Ko,null,f)):f)}),[q,x,y]),_=e.useCallback(((e,t)=>u.default.createElement(Sa,{key:e.id,width:e.width||"auto",style:t,isLoading:E})),[E]),G=e.useCallback((()=>{if(!l)return null;const e=W(),t=e?e[0].style:{};return u.default.createElement(ea,null,u.default.createElement(na,null,g&&u.default.createElement(aa,{style:Object.assign({width:58},t)},"multiple"===b&&u.default.createElement(Pt,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:Z,disabled:h&&h.length>0||E||M,ariaLabel:"Select all"})),l.map(((t,n)=>{const o=g?n+2:n+1,a=n-l.length,i=null==e?void 0:e.find((e=>e.index===o||e.index===a));return t.skeleton&&(E||C||M)?_(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,Z,l,M,C,E,_,X,i.length,g,b,h]),Y=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?u.default.createElement(Zt,Object.assign({},n)):u.default.createElement(Pt,Object.assign({},n))}),[V,b,h]),U=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?u.default.createElement(Ea,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):u.default.createElement(Ea,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),K=e.useCallback(((e,t)=>{var n,o;if(!d)return null;const a=d(e);if(!a)return null;const l=(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row)||"";return u.default.createElement(na,{key:e.id,className:`${l} ${t?"hidden":""}`},g&&u.default.createElement(oa,null),a)}),[d,g]),J=e.useCallback((e=>{if(!l)return u.default.createElement(Ea,null);const t=l.map((t=>u.default.createElement(Ea,{key:`${e}-${t.id}`})));return g&&t.unshift(U(e)),t}),[l,U,g]),Q=()=>f?E&&!m||!E&&M?null:u.default.createElement(da,{fixedColumnsStyle:ka(P||[])},u.default.createElement(na,null,g&&!p&&u.default.createElement(oa,null),!E&&f(i),E&&m&&m())):null;let ee=I;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,o;const{data:a}=e,l=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==a?void 0:a.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(o=null===(n=null==a?void 0:a.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==o?o:"",f=l?`selected ${c}`:`${c}`;return u.default.createElement(ta,{key:e.id,className:d,fixedColumnsStyle:ka(P||[])},u.default.createElement(na,{key:e.id,className:f,accentColor:e.accentColor},g&&u.default.createElement(oa,null,Y(l,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>K(e,!i))))}))),[i,s,P,K,r,Y,g]);if(E){const e=[];for(let t=0;t<$;t+=1)e.push(u.default.createElement(ta,{key:`loading-row-${t}`,fixedColumnsStyle:ka(P||[])},u.default.createElement(na,null,c?u.default.createElement(u.default.Fragment,null,g&&U(),c()):J(t))));return u.default.createElement(F,{ref:D,scrollDisabled:!0,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&l&&u.default.createElement($a,{renderHeader:G,tableRef:B,wrapperRef:D,isFixedLayout:R,wrapperStyle:S}),u.default.createElement(ra,{ref:B,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:R},G(),e,Q()))}if(M||C){let e=Po;return N?e=N:C&&(e=Vo),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(ra,{ref:B,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:R},G(),Q()),u.default.createElement(ga,Object.assign({height:L},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:D,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:a},k&&l&&u.default.createElement($a,{renderHeader:G,tableRef:B,wrapperRef:D,isFixedLayout:R,wrapperStyle:S}),u.default.createElement(ra,{ref:B,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:R},G(),te,Q()))};Ma.Cell=oa,Ma.ClickableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(oa,Object.assign({},o),u.default.createElement(ba,{onClick:t},n))},Ma.EditableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(oa,Object.assign({},o),u.default.createElement(ha,{onClick:t},u.default.createElement(va,null,n)))},Ma.SkeletonCell=Ea,Ma.SkeletonContent=Ca;const Ra=f.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,ja="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Ba="Log in with Amazon",Da=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Ta=f.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${I.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Me.Footer} {\n box-shadow: 0px 10px 15px 0px ${I.colors.neutral.ink.dark};\n }\n `}`,Ha=e=>!!e.footerSlot,Oa={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Aa={[y.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[y.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[y.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Wa={xs:y.mobile,sm:y.mobile,base:y.tablet,lg:y.lgTablet},{breakpoints:Pa}=I,Va=f.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--hfuefb"})`padding:0;border:none;border-radius:${I.sizes.sm};box-shadow:${I.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Me.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Oa[e]};`} ${Ta}{padding-bottom:${I.sizes.md};}${Me.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Pa.mobile} + 1px))and (max-width: ${Pa.tablet}){max-width:${({variant:e})=>Aa[Pa.tablet][e]};}@media (min-width: ${Pa.tablet})and (max-width: ${Pa.lgTablet}){max-width:${({variant:e})=>Aa[Pa.lgTablet][e]};}@media (min-width: ${Pa.lgTablet})and (max-width: ${Pa.desktop}){max-width:${({variant:e})=>Aa[Pa.desktop][e]};}@media (min-width: ${Pa.desktop}){max-width:${({variant:e})=>Aa[Pa.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Wa[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Me.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${K(I.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Za=u.default.forwardRef(((e,t)=>{var n=Z(e,[]);return u.default.createElement(Va,Object.assign({ref:t},n))})),{sizes:qa,text:Xa,shadows:_a}=I,{grey:Ga}=I.colors.neutral,Ya=f.default.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${qa.base} ${qa.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&_a[e]};`,Ua=f.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${Xa.headingXL.fontFamily};font-size:${Xa.headingXL.fontSize};font-weight:${Xa.headingXL.fontWeight};margin:unset;line-height:1;`,Ka=f.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${Xa.subheadingLarge.fontFamily};font-weight:${Xa.subheadingLarge.fontWeight};font-size:${Xa.subheadingLarge.fontSize};line-height:${Xa.subheadingLarge.lineHeight};`,Ja=f.default.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${I.radius.base};border:${qa.line} solid ${Ga.base};object-fit:cover;`,Qa=f.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,el=f.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};color:${I.text.link.color};&:hover{text-decoration:${I.text.link.textDecoration};}& > * + *{margin-left:${I.sizes.xs};}`,tl=f.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--498dtg"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${qa.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,nl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),ol=f.default($t).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${I.sizes.lg};height:30px;background-color:${I.colors.neutral.grey.light};border:1px solid ${I.colors.neutral.grey.base};border-radius:${I.sizes.xs};`,al=f.default(be).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${I.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,ll=f.default(go).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,il=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(R,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(ol,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(R,{variant:"bodySmall"},e))),rl=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[a,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(a||l(`${t}`),a===`${t}`)return;const e=parseInt(a,10);i(e)&&o(e)};return{pageInputValue:a,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(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()}}},dl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),sl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),cl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ul=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,fl=f.default(Ge).withConfig({displayName:"vui--Dropdown",componentId:"vui--6y6o6p"})`&-container{width:100%;}`,ml=f.default.button.withConfig({displayName:"vui--Button",componentId:"vui--6l6anz"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${x.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,pl=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--33jbzi"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,gl=f.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${x.secondary.blue.base};background:${x.neutral.grey.lightest};}`,hl=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return u.default.createElement(pl,{onClick:o},u.default.createElement(gl,{variant:"bodySmall"},t.label))},bl=t=>{const{handleRangeListChange:n,paginationRange:o=cl}=t;return u.default.createElement(u.default.Fragment,null,o.map((t=>u.default.createElement(e.Fragment,{key:t.label},u.default.createElement(hl,{item:t,handleRangeListChange:n})))))};class vl 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=cl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=cl,reversedDropdown:n}=this.props,{shouldShowDropdown:o,dropdownValue:a}=this.state;return u.default.createElement(ul,{className:e},u.default.createElement(fl,{cta:u.default.createElement(ml,{onClick:this.toggleShouldShow},u.default.createElement(R,{variant:"bodySmall"},a.label),u.default.createElement(ge,{color:I.colors.neutral.ink.base})),shouldShowDropdown:o,onClickAway:this.toggleShouldShow,reversed:n},u.default.createElement(bl,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const xl=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,yl=f.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--1myicuk"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,wl=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>u.default.createElement(xl,{size:o},u.default.createElement(yl,{type:"button",onClick:e,disabled:n},u.default.createElement(P,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base})),u.default.createElement(yl,{type:"button",onClick:t,disabled:n},u.default.createElement(ye,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base}))),Cl=f.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${I.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${I.colors.neutral.ink.lightest};}`,El=f.default(h).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${I.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?I.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;}}`,$l=f.default(R).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,kl=f.default(no).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--1sahwox"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${I.colors.secondary.red.light};\n\n > * {\n border-top-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${I.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${I.colors.secondary.red.base};\n border-right-color: ${I.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${I.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}}`;const Sl=co((e=>{var{className:t="",hasError:n,currency:o,disabled:a=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=oo.base}=e,c=Z(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const f=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return u.default.createElement(kl,{className:t,hasError:n},u.default.createElement(El,{disabled:a,size:s},u.default.createElement($l,{variant:"hintText"},o)),u.default.createElement(Cl,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 o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&f(l),"ArrowDown"===t&&m(l)},disabled:a,size:s},c)),u.default.createElement(wl,{onIncrement:()=>f(),onDecrement:()=>m(),disabled:a,size:s}))}));Sl.displayName="PriceInput";const Nl=f.default(go).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ll=f.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,Il=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--g7dno3"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Nl} {\n ${t}\n }\n\n & ${Ll} {\n ${n}\n }\n `}}`,zl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),Fl=I.colors.neutral.grey.lightest,Ml=I.colors.neutral.grey.dark,Rl=I.colors.secondary.blue.dark,jl=f.default(h).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Fl};border-color:${Ml};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Rl};border-color:${Rl};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${I.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Bl=f.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1h93380"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,Dl=co(e.forwardRef(((t,n)=>{var{className:o,options:a,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,c=Z(t,["className","options","value","onChange","size","disabled","hasError"]);const f=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return u.default.createElement(Bl,Object.assign({className:o,sizeVariant:r,value:null!=l?l:void 0,onChange:f,disabled:d,hasError:s,ref:n},c),!!a&&a.map((e=>u.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Dl.displayName="Select";const{blue:Tl}=x.secondary,{grey:Hl}=x.neutral,Ol=f.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,Al=f.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${Tl.lightest};}`,Wl=f.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,Pl=f.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--1o4t01c"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${L.bodySmall.fontFamily};font-size:${L.bodySmall.fontSize};font-weight:${L.bodySmall.fontWeight};color:${L.bodySmall.color};line-height:${S.base};& > *{vertical-align:middle;}`,Vl=f.default(Pl).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${Hl.dark};font-family:${L.bodySmallBold.fontFamily};font-size:${L.bodySmallBold.fontSize};font-weight:${L.bodySmallBold.fontWeight};color:${L.bodySmallBold.color};`,Zl=f.default.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Al} tr:nth-child(even) td {\n background-color: ${Hl.lightest};\n }\n `}`,ql=({striped:e=!0,className:t,children:n})=>u.default.createElement(Zl,{striped:e,className:t},n);ql.Header=Ol,ql.Body=Al,ql.Row=Wl,ql.HeaderCell=Vl,ql.Cell=Pl;const Xl=f.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,_l=f.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${I.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Gl=f.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--19twtgm"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${I.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 ${I.colors.secondary.blue.light};}`,Yl=f.default(_l).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${I.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ul=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}),Kl=f.default(h).withConfig({displayName:"vui--Tag",componentId:"vui--qsag0v"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:x.neutral.ink.base};\n background-color: ${null!=e?e:x.neutral.grey.base};\n `}`,Jl=f.default($t).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Ql=f.default($t).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${I.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${I.shadows.lg};border-radius:${I.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;}`,ei=f.default(h).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${I.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${S.md};height:${S.md};}`,ti=f.default($t).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,ni=f.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,oi={info:{accentColor:x.brand.blue.base,icon:u.default.createElement(Pn,null)},success:{accentColor:x.secondary.green.base,icon:u.default.createElement(Gt,null)},error:{accentColor:x.secondary.red.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"}))),null)},merge:{accentColor:x.secondary.purple.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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)}},ai=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),li=({className:e,e2eClassName:t,type:n,iconSlot:o,text:a,last:l,minWidth:i,cta:r,onClose:d})=>{const s=ai(e),c=ai(t);return u.default.createElement(Ql,{className:Y([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},u.default.createElement(ei,{color:oi[n].accentColor,className:Y([s.icon,c.icon])},null!=o?o:oi[n].icon),u.default.createElement(ti,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(ni,{variant:"body"},a),r),u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,{color:"white"}),onClick:d,"aria-label":"Close"}))},ii=f.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--10ka3tn"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?I.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,ri=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${ii}{box-shadow:0 0 0 4px ${I.colors.brand.blue.light};}&:checked + ${ii}{background-color:#0079d1;}&:disabled + ${ii}{background-color:${I.colors.neutral.grey.base};}&:checked:disabled + ${ii}{background-color:${I.colors.secondary.blue.light};}`,di=f.default.label.withConfig({displayName:"vui--Switch",componentId:"vui--16c93z6"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${ii}: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"};}${ri}:checked + ${ii}{&: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"});}}`,si=f.default(h).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,ci=e.forwardRef((({id:e,className:t,name:n,switched:o,small:a,onClick:l=(()=>{}),disabled:i,ariaLabel:r},d)=>u.default.createElement(si,{className:t,disabled:i},u.default.createElement(di,{small:a,disabled:i,role:"switch"},u.default.createElement(ri,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:l,disabled:i,ref:d}),u.default.createElement(ii,{switched:o,disabled:i}))))),ui=f.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--xt3hiw"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${I.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",a="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",a="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: ${o};\n padding-right: ${a};\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;}`,fi=f.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--ljd9es"})`display:flex;align-items:center;justify-content:center;padding:${S.md};border-radius:${w.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${x.neutral.ink.lightest};background-color:${x.neutral.grey.lightest};:hover{border:2px dashed ${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};}:active{border:2px dashed ${x.secondary.blue.base};box-shadow:0 0 0 4px ${x.secondary.blue.light};background-color:${x.secondary.blue.lightest};}:focus-within{border:2px dashed ${x.secondary.blue.base};box-shadow:0 0 0 4px ${x.secondary.blue.light};background-color:${x.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${x.secondary.red.base};:hover{border:2px dashed ${x.secondary.red.base};background-color:${x.secondary.red.lightest};}:active{border:2px dashed ${x.secondary.red.base};box-shadow:0 0 0 4px ${x.secondary.red.light};background-color:${x.secondary.red.lightest};}:focus-within{border:2px dashed ${x.secondary.red.base};box-shadow:0 0 0 4px ${x.secondary.red.light};background-color:${x.secondary.red.lightest};}}`;var mi,pi,gi;exports.AcceptedFileTypes=void 0,(mi=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",mi.JPEG=".jpeg",mi.JPG=".jpg",mi.GIF=".gif",mi.PNG=".png",exports.FileSizeUnit=void 0,(pi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",pi.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"}(gi||(gi={}));const hi=()=>u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},u.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"}),u.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"})),bi=()=>u.default.createElement($t,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},u.default.createElement(hi,null),u.default.createElement(R,{variant:"subheadingSmall",style:{paddingTop:S.sm}},"Browse files or drag them here")),vi=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?u.default.createElement($t,{alignX:"start",spacing:"xs"},e&&u.default.createElement(R,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(R,{variant:"errorSmall"},"File is too big (",t,")")):null,xi=f.default(R).withConfig({displayName:"vui--SingleLineText",componentId:"vui--2zjkq9"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,yi=f.default($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--r41a54"})`border:1px solid ${x.neutral.ink.lightest};border-radius:${w.base};padding:${S.xs};${R}{padding-left:${S.xs};}`,wi=({file:e,resetSelection:t})=>e?u.default.createElement(yi,{alignX:"between",direction:"horizontal",alignY:"center"},u.default.createElement(xi,{variant:"body"},null==e?void 0:e.name),u.default.createElement(be,{size:"sm",variant:"flat",onClick:t,icon:u.default.createElement(we,null),"aria-label":"Remove file"})):null,Ci=e.forwardRef((({id:t,name:n,maxBytes:o=1e6,format:a=exports.FileSizeUnit.MB,fileTypes:l,label:i="Upload file"},r)=>{const d=e.useRef(null);e.useImperativeHandle(r,(()=>d.current),[]);const[s,c]=e.useState(),[f,m]=e.useState(gi.VALID),p=f===gi.INVALID_FORMAT||f===gi.INVALID_FORMAT_AND_SIZE,g=f===gi.INVALID_SIZE||f===gi.INVALID_FORMAT_AND_SIZE,h=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${o}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:o,format:a}),b=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const a=o.length>1,l=t===o.length-1&&a,i=t===o.length-2&&a;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&&o.length>2&&(n+=", ")})),n})({fileTypes:l}),v=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const a=o.length-1===n&&o.length>1;t+=a?`${e}`:`${e}, `})),t.trim()})({fileTypes:l}),x=()=>{var e;(null===(e=d.current)||void 0===e?void 0:e.value)&&(d.current.value="")},y=({overMaxSize:e,invalidFormat:t})=>{var n;let o=gi.VALID;t&&!e?o=gi.INVALID_FORMAT:!t&&e?o=gi.INVALID_SIZE:t&&e&&(o=gi.INVALID_FORMAT_AND_SIZE),null===(n=d.current)||void 0===n||n.setCustomValidity(o),m(o)},w=e.useCallback((e=>{if(!e.length)return void y({invalidFormat:!0});const[n]=e,a=n.size>o,[,i]=n.type.split("/"),r=!l.find((e=>e.substring(1)===i));a||r?x():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:t}),y({invalidFormat:r,overMaxSize:a}),c(n)}),[l,t,o]),C=e.useCallback((()=>{var e;const t=null===(e=null==d?void 0:d.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&w(t)}),[w]),E=e.useCallback((()=>{x(),c(void 0),y({invalidFormat:!1,overMaxSize:!1})}),[]),$=()=>{var e;null===(e=d.current)||void 0===e||e.reportValidity()};return e.useEffect((()=>{const e=null==d?void 0:d.current;return null==e||e.addEventListener("change",C),null==e||e.addEventListener("invalid",$),()=>{null==e||e.removeEventListener("change",C),null==e||e.removeEventListener("invalid",$)}}),[C]),u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement(ao,{htmlFor:t},i,u.default.createElement($t,{spacing:"xs",alignX:"stretch",style:{paddingTop:S.sm}},u.default.createElement(lo,null,u.default.createElement("div",null,b),u.default.createElement("div",null,h)),u.default.createElement(fi,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&w(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.blur()}},u.default.createElement(bi,null),u.default.createElement("input",{ref:d,id:t,type:"file",accept:v,name:n})))),u.default.createElement($t,{alignX:"stretch",spacing:"sm"},u.default.createElement(wi,{file:s,resetSelection:E}),u.default.createElement(vi,{acceptedTypesCopy:p?b:void 0,maxSizeCopy:g?h:void 0})))}));var Ei="right-scroll-bar-position",$i="width-before-scroll-bar";function ki(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Si=new WeakMap;function Ni(t,n){var o,a,l,i=(o=n||null,a=function(e){return t.forEach((function(t){return ki(t,e)}))},(l=e.useState((function(){return{value:o,callback:a,facade:{get current(){return l.value},set current(e){var t=l.value;t!==e&&(l.value=e,l.callback(e,t))}}}}))[0]).callback=a,l.facade);return u.useLayoutEffect((function(){var e=Si.get(i);if(e){var n=new Set(e),o=new Set(t),a=i.current;n.forEach((function(e){o.has(e)||ki(e,null)})),o.forEach((function(e){n.has(e)||ki(e,a)}))}Si.set(i,t)}),[t]),i}function Li(e){return e}var Ii=function(e){var t=e.sideCar,n=Z(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return u.createElement(o,V({},n))};Ii.isSideCarExport=!0;var zi=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Li);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,o);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var l=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(l)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=V({async:!0,ssr:!1},e),t}(),Fi=function(){},Mi=u.forwardRef((function(e,t){var n=u.useRef(null),o=u.useState({onScrollCapture:Fi,onWheelCapture:Fi,onTouchMoveCapture:Fi}),a=o[0],l=o[1],i=e.forwardProps,r=e.children,d=e.className,s=e.removeScrollBar,c=e.enabled,f=e.shards,m=e.sideCar,p=e.noIsolation,g=e.inert,h=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=e.gapMode,y=Z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=m,C=Ni([n,t]),E=V(V({},y),a);return u.createElement(u.Fragment,null,c&&u.createElement(w,{sideCar:zi,removeScrollBar:s,shards:f,noIsolation:p,inert:g,setCallbacks:l,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?u.cloneElement(u.Children.only(r),V(V({},E),{ref:C})):u.createElement(v,V({},E,{className:d,ref:C}),r))}));Mi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mi.classNames={fullWidth:$i,zeroRight:Ei};function Ri(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var ji=function(){var e=0,t=null;return{add:function(n){var o,a;0==e&&(t=Ri())&&(a=n,(o=t).styleSheet?o.styleSheet.cssText=a:o.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bi=function(){var e,t=(e=ji(),function(t,n){u.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,o=e.dynamic;return t(n,o),null}},Di={left:0,top:0,right:0,gap:0},Ti=function(e){return parseInt(e||"",10)||0},Hi=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Di;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[Ti(n),Ti(o),Ti(a)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Oi=Bi(),Ai="data-scroll-locked",Wi=function(e,t,n,o){var a=e.left,l=e.top,i=e.right,r=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(r,"px ").concat(o,";\n }\n body[").concat(Ai,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(r,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(r,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ei," {\n right: ").concat(r,"px ").concat(o,";\n }\n \n .").concat($i," {\n margin-right: ").concat(r,"px ").concat(o,";\n }\n \n .").concat(Ei," .").concat(Ei," {\n right: 0 ").concat(o,";\n }\n \n .").concat($i," .").concat($i," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(Ai,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(r,"px;\n }\n")},Pi=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o,l=u.useMemo((function(){return Hi(a)}),[a]);return u.useEffect((function(){return document.body.setAttribute(Ai,""),function(){document.body.removeAttribute(Ai)}}),[]),u.createElement(Oi,{styles:Wi(l,!t,a,n?"":"!important")})},Vi=!1;if("undefined"!=typeof window)try{var Zi=Object.defineProperty({},"passive",{get:function(){return Vi=!0,!0}});window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch(e){Vi=!1}var qi=!!Vi&&{passive:!1},Xi=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_i=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),Gi(e,o)){var a=Yi(e,o);if(a[1]>a[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Gi=function(e,t){return"v"===e?function(e){return Xi(e,"overflowY")}(t):function(e){return Xi(e,"overflowX")}(t)},Yi=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ui=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ki=function(e){return[e.deltaX,e.deltaY]},Ji=function(e){return e&&"current"in e?e.current:e},Qi=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},er=0,tr=[];function nr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var or,ar=(or=function(e){var t=u.useRef([]),n=u.useRef([0,0]),o=u.useRef(),a=u.useState(er++)[0],l=u.useState(Bi)[0],i=u.useRef(e);u.useEffect((function(){i.current=e}),[e]),u.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var o,a=0,l=t.length;a<l;a++)!o&&a in t||(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Ji),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var r=u.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var a,l=Ui(e),r=n.current,d="deltaX"in e?e.deltaX:r[0]-l[0],s="deltaY"in e?e.deltaY:r[1]-l[1],c=e.target,u=Math.abs(d)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===u&&"range"===c.type)return!1;var f=_i(u,c);if(!f)return!0;if(f?a=u:(a="v"===u?"h":"v",f=_i(u,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(d||s)&&(o.current=a),!a)return!0;var m=o.current||a;return function(e,t,n,o,a){var l=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=l*o,r=n.target,d=t.contains(r),s=!1,c=i>0,u=0,f=0;do{var m=Yi(e,r),p=m[0],g=m[1]-m[2]-l*p;(p||g)&&Gi(e,r)&&(u+=g,f+=p),r=r instanceof ShadowRoot?r.host:r.parentNode}while(!d&&r!==document.body||d&&(t.contains(r)||t===r));return(c&&(a&&Math.abs(u)<1||!a&&i>u)||!c&&(a&&Math.abs(f)<1||!a&&-i>f))&&(s=!0),s}(m,t,e,"h"===m?d:s,!0)}),[]),d=u.useCallback((function(e){var n=e;if(tr.length&&tr[tr.length-1]===l){var o="deltaY"in n?Ki(n):Ui(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=o,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var d=(i.current.shards||[]).map(Ji).filter(Boolean).filter((function(e){return e.contains(n.target)}));(d.length>0?r(n,d[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=u.useCallback((function(e,n,o,a){var l={name:e,delta:n,target:o,should:a,shadowParent:nr(o)};t.current.push(l),setTimeout((function(){t.current=t.current.filter((function(e){return e!==l}))}),1)}),[]),c=u.useCallback((function(e){n.current=Ui(e),o.current=void 0}),[]),f=u.useCallback((function(t){s(t.type,Ki(t),t.target,r(t,e.lockRef.current))}),[]),m=u.useCallback((function(t){s(t.type,Ui(t),t.target,r(t,e.lockRef.current))}),[]);u.useEffect((function(){return tr.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",d,qi),document.addEventListener("touchmove",d,qi),document.addEventListener("touchstart",c,qi),function(){tr=tr.filter((function(e){return e!==l})),document.removeEventListener("wheel",d,qi),document.removeEventListener("touchmove",d,qi),document.removeEventListener("touchstart",c,qi)}}),[]);var p=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(l,{styles:Qi(a)}):null,p?u.createElement(Pi,{gapMode:e.gapMode}):null)},zi.useMedium(or),Ii),lr=u.forwardRef((function(e,t){return u.createElement(Mi,V({},e,{ref:t,sideCar:ar}))}));lr.classNames=Mi.classNames;var ir=lr;const rr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",dr=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${rr} display:${e=>e.shouldShow?"initial":"none"};z-index:${I.layers.modal};`,sr=f.default(h).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${rr} background-color:rgba(55,66,77,0.5);`,cr=f.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,ur=({usePortal:e,children:t})=>u.default.createElement(u.default.Fragment,null,e?u.default.createElement(X,null,t):t),fr=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>u.default.createElement(ur,{usePortal:o},u.default.createElement(dr,{className:Y([`${e}-container`,e]),shouldShow:n},u.default.createElement(sr,null),u.default.createElement(ir,{enabled:n},u.default.createElement(cr,{className:Y([`${e}-wrap`,e])},t)))),mr=f.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,pr=f.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,gr=f.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`;var hr;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(hr||(hr={}));const br=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,vr=f.default(R).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,xr=f.default(h).withConfig({displayName:"vui--Contour",componentId:"vui--b8oq7f"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${R} {\n color: ${null!=t?t:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,yr=f.default(R).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1xuhw17"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${vr} {\n color: #fff;\n }\n `}`,wr={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},Cr=f.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,Er=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.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"})),$r=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 kr;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(kr||(kr={}));const Sr=f.default(R).withConfig({displayName:"vui--CounterText",componentId:"vui--3am01d"})`line-height:1;`,Nr=f.default((e=>u.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",role:"presentation"},e),u.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"})))).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--1uc98sf"})``,Lr=f.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--1te682y"})``,Ir=f.default(R).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1giom5i"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Sr} {\n color: ${x.neutral.grey.lightest};\n }\n `}`,zr=f.default(h).withConfig({displayName:"vui--Contour",componentId:"vui--jegwey"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:white;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${x.neutral.grey.base};\n & > ${Ir} {\n background-color: ${x.neutral.grey.base};\n & > ${Sr} {\n color: ${x.neutral.ink.base};\n }\n }\n & > ${R} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n & > ${Nr} {\n color: ${x.neutral.ink.dark};\n }\n & > ${Lr} {\n color: ${x.neutral.ink.dark};\n }\n }\n\n & > ${R} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Nr} {\n color: ${t.dark};\n }\n & > ${Lr} {\n color: ${t.dark};\n }\n\n & > ${R} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Fr=f.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--176jtjf"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${zr} {\n background-color: ${x.neutral.grey.base};\n & > ${Ir} {\n background-color: ${x.neutral.grey.base};\n & > ${Sr} {\n color: ${x.neutral.ink.base};\n }\n }\n & > ${R} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n & > ${Nr} {\n color: ${x.neutral.ink.dark};\n }\n & > ${Lr} {\n color: ${x.neutral.ink.dark};\n }\n }\n `}`,Mr={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},Rr=f.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1omb2tl"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,jr=f.default(h).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,Br=f.default(h).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,Dr=f.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,Tr=f.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${I.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${I.colors.secondary.red.base};\n `};`,Hr=co((e=>{var{size:t=oo.base,hasError:n,className:o}=e,a=Z(e,["size","hasError","className"]);return u.default.createElement(jr,{className:o},u.default.createElement(Br,null,"g"===a.weightUnit&&u.default.createElement(no,null,u.default.createElement(Dr,Object.assign({size:t,onChange:a.handleChangeGram,name:"gram",type:"number",value:a.gram,hasError:n},a)),u.default.createElement(Tr,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(a)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(no,null,u.default.createElement(Dr,Object.assign({size:t,onChange:a.handleChangePound,name:"ounce",type:"number",value:a.pound,hasError:n},a)),u.default.createElement(Tr,{hasError:n,size:t},"lb")),u.default.createElement(no,null,u.default.createElement(Dr,Object.assign({size:t,onChange:a.handleChangeOunce,name:"pound",type:"number",value:a.ounce,hasError:n},a)),u.default.createElement(Tr,{hasError:n,size:t},"oz")))))}));Hr.displayName="WeightInput",Hr.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:a,iconSlot:l,glyphColor:i=x.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[c,f]=e.useState(!!s);return u.default.createElement(W,{open:!!s,className:n},u.default.createElement(T,{onClick:()=>f(!c)},u.default.createElement(H,null,u.default.createElement(B,{glyphColor:i},l,u.default.createElement(R,{variant:"body"},a)),u.default.createElement(D,null,u.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},u.default.createElement(P,{name:c?"downArrow":"upArrow"})))),!!d&&u.default.createElement(O,{variant:"hintText"},d)),c&&u.default.createElement(A,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=We,exports.Anchor=({children:e,className:t,text:n,href:o,target:a})=>u.default.createElement(Pe,{href:o,target:a,className:t},e||n),exports.AnimatedDropdown=Ge,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=I.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const a=t.toUpperCase().match(/\b(\w)/g);return u.default.createElement(Ye,{width:e,bgColor:n,textColor:o,className:"avatar"},null==a?void 0:a.slice(0,2).map(((e,t)=>u.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:a,e2eClassName:l,children:i})=>{const r=rt[e];return u.default.createElement(lt,{text:o},u.default.createElement(r,{className:Y([a,l]),hideBorder:t},n&&n,i&&u.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:a,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=Z(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=gt[t];return u.default.createElement(dt,Object.assign({accentColor:c,className:l,backgroundColor:d},s),u.default.createElement(st,null,o&&u.default.createElement(ut,{style:{marginRight:S.md},accentColor:c},o),r?u.default.createElement(ft,null,r):u.default.createElement(u.default.Fragment,null,u.default.createElement(mt,null,i||u.default.createElement(pt,{variant:"headingSmall"},n)),u.default.createElement(ct,null,a&&u.default.createElement(be,{variant:"flat","aria-label":"Close",icon:u.default.createElement(we,null),onClick:a})))))},exports.BaseContainer=h,exports.Breadcrumbs=({items:e,Separator:t=u.default.createElement(yt,null),LinkComponent:n=wt})=>u.default.createElement(ht,{className:"breadcrumbs"},e.map(((o,a)=>u.default.createElement(xt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:a!==e.length-1?n:Ct},e.length!==a+1&&t)))),exports.Button=be,exports.Card=Me,exports.CardHeader=Ce,exports.Checkbox=Pt,exports.Choice=Tt,exports.ChoiceList=_t,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[a,l]=u.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),l(!0),setTimeout((()=>l(!1)),2500)}),[o,n]);return u.default.createElement(lt,{text:a?"Copied!":"Copy to clipboard"},u.default.createElement(Kt,{variant:"flat",size:"sm",className:t,"aria-label":`${a?"Copied":"Copy"} "${n}" to clipboard`,icon:a?u.default.createElement(Gt,Object.assign({color:x.secondary.green.base},Ut)):u.default.createElement(Yt,Object.assign({color:x.secondary.blue.base},Ut)),onClick:i}))},exports.DataTable=qn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>u.default.createElement(Kn,{key:e},e))):u.default.createElement(Kn,null,e);return u.default.createElement(Xn,null,e.map((e=>t?u.default.createElement(Gn,{key:e.term},u.default.createElement(Un,null,e.term),u.default.createElement(Yn,null,n(e.description))):u.default.createElement(_n,{key:e.term},u.default.createElement(Un,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,a]=e.useState(!0);return u.default.createElement("main",null,t((()=>a(!o)),o),u.default.createElement(to,null,u.default.createElement(eo,{showSidebar:o},n)))},exports.DimensionsInput=yo,exports.FilterTag=({className:t,e2eClassName:n,label:o,text:a,iconSlot:l,fill:i=x.secondary.blue.base,content:r,footer:d,onClickAway:s,onClick:c,shouldCloseOnClickAway:f=!0})=>{const m=Ro(t),p=Ro(n),{shouldShowDropdown:g,toggleShouldShowDropdown:h,closeDropdown:b}=Co(),v=e.useCallback((e=>{h(),s&&g&&s(e)}),[h,s,g]),y=e.useCallback((e=>{s&&s(e,b),f&&b()}),[b,s,f]);return!r?u.default.createElement(So,{className:Y([null==m?void 0:m.container,null==p?void 0:p.container]),onClick:c},o&&u.default.createElement(Lo,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(R,null,a),u.default.createElement(zo,{className:Y([null==m?void 0:m.cross,null==p?void 0:p.cross]),name:"cross",size:"base",color:x.neutral.ink.base})):u.default.createElement(Ge,{className:m.filterTagDropdown,shouldShowDropdown:g,onClickAway:y,cta:u.default.createElement(So,{className:m.container,onClick:v},o&&u.default.createElement(Lo,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(R,null,a),u.default.createElement(Io,{color:x.neutral.ink.base,name:"downArrow",shouldShow:g}))},u.default.createElement(Fo,null,u.default.createElement(Mo,{color:i},l,u.default.createElement(R,{variant:"bodyBold"},o)),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),a())}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 a(){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||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!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),a()}}),[o]),u.default.createElement(Eo.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=jo,exports.Image=({src:t,alt:n="",className:a,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:f="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Ao(a),x=Ao(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=u.default.useState(null),[S,N]=u.default.useState(null),{styles:L,attributes:I}=o.usePopper($,S,{placement:f,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),F=e.useCallback((()=>m?w(!1):{}),[m]),M=!C.isLoaded||C.isError;return u.default.createElement(Do,{className:Y([null==v?void 0:v.container,null==x?void 0:x.container,a])},u.default.createElement(To,{src:t,alt:n,className:Y([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:F,style:M?{display:"none"}:{},ref:k}),!b&&M&&(p||u.default.createElement(Bo,{className:Y([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(u.default.createElement(Ho,Object.assign({ref:N,style:L.popper},I.popper,{className:Y([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),u.default.createElement(Oo,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=no,exports.LegacyDataTable=Ma,exports.Loader=ae,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(ja);return u.default.createElement(Ra,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(ja)},"aria-label":Ba},t),u.default.createElement("img",{src:n,alt:Ba}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:a=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,f]=e.useState(null);e.useEffect((()=>{var e,t;o&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:m,onScroll:p}=ko(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return u.default.createElement(t.AnimatePresence,null,o&&u.default.createElement("div",{"data-testid":"dialog-wrapper"},u.default.createElement(Da,null),u.default.createElement(Za,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Me.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:u.default.createElement(Ce,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},a&&{onClickClose:g})),u.default.createElement(Ta,{onScroll:p,ref:f,isScrollable:m,fullBleed:l},d),Ha(n)&&n.footerSlot,!Ha(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(Me.Footer,null,u.default.createElement($t,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&u.default.createElement($t,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&u.default.createElement($t,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:a,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const f=o&&u.default.createElement(We,{buttonVariant:a?"default":"primary",title:"Actions",sections:o}),m=null==a?void 0:a.map((e=>u.default.createElement(be,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=l&&u.default.createElement(be,{onClick:l.onClick,icon:u.default.createElement(nl,null),variant:"link"},l.title),g=c&&u.default.createElement($t,{direction:"horizontal",alignX:"end"},u.default.createElement(el,{onClick:c},u.default.createElement("span",null,"Toggle sidebar"),u.default.createElement(vt,{width:S.md})));return u.default.createElement(Ya,{shadow:r},u.default.createElement($t,null,p,u.default.createElement(tl,null,u.default.createElement($t,{direction:"horizontal",spacing:"md"},n&&u.default.createElement(Ja,{src:n,alt:"",width:"72",height:"72"}),u.default.createElement("div",{style:{flex:1}},u.default.createElement($t,{alignX:"stretch"},u.default.createElement(Ua,null,e),i,t&&u.default.createElement(Ka,null,t)))),u.default.createElement(Qa,null,u.default.createElement($t,{direction:"horizontal",alignX:"end",spacing:"sm"},m,f,d&&u.default.createElement(be,{icon:u.default.createElement(nl,null),onClick:d}),s&&u.default.createElement(be,{icon:u.default.createElement(vt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:a})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=rl({currentPage:n,totalPagesCount:o,handleChangePage:a});return u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},u.default.createElement(al,{onClick:()=>{1!==n&&a(1)},icon:u.default.createElement(dl,null),size:"sm","aria-label":"go to first page"}),u.default.createElement(al,{onClick:r,icon:u.default.createElement(nl,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),u.default.createElement("form",{onSubmit:d},u.default.createElement(ll,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:oo.sm,type:"number",value:l,min:"1",max:`${o}`,onChange:s,onBlur:c})),u.default.createElement(il,{count:o}),u.default.createElement(al,{onClick:i,icon:u.default.createElement(vt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),u.default.createElement(al,{onClick:()=>{n!==o&&a(o)},icon:u.default.createElement(sl,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=vl,exports.Popover=ee,exports.Popup=fr,exports.Portal=X,exports.PriceInput=Sl,exports.Radio=Zt,exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:f="",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 u.default.createElement(Il,{className:m,iconPosition:b?"left":"right"},u.default.createElement(Nl,{size:x,type:e,value:s,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:f,name:p,disabled:t,error:c,autoComplete:v}),u.default.createElement(Ll,null,g?u.default.createElement(ae,{height:24,color:h||I.colors.secondary.blue.base}):y&&n?u.default.createElement(be,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text"},u.default.createElement(we,{color:h||I.colors.neutral.ink.dark})):u.default.createElement(be,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search"},u.default.createElement(zl,{color:h||I.colors.neutral.ink.dark,height:S.md,width:S.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>u.default.createElement(jl,{className:n?`${n}-container`:void 0},e.map((e=>u.default.createElement(be,{variant:e.value===t?"primary":"default",key:e.key,onClick:()=>o(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Dl,exports.SimpleTable=ql,exports.Slider=({id:t,value:n,min:o,max:a,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[f,m]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Ul(r),y=Ul(d),w=e.useCallback((e=>{var t;if(!f||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(a-o)+o;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>a&&(s=a),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;s=Number(s.toFixed(u)),m=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(m),Array.isArray(m)&&m[0]===m[1]&&(0===p&&g(1),1===p&&g(0))}),[p,f,a,o,i,l,n]),C=e.useCallback((()=>{m(!1),c()}),[c]),E=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>E(e,Array.isArray(n)?0:1),t=e=>E(e,1),o=b.current,a=v.current;return null==o||o.addEventListener("mousedown",e),null==a||a.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==a||a.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let l;return l=Y("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]),u.default.createElement(Gl,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(a-o),n=100*(e[1]>a?100:e[1]-o)/(a-o),l=n-t;return u.default.createElement(u.default.Fragment,null,u.default.createElement(Yl,{className:Y([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>a?100:n<o?0:100*(e-o)/(a-o),$(t,e)})(n),u.default.createElement(Xl,{className:Y([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},u.default.createElement(_l,null),S)},exports.Stack=$t,exports.Stepper=wl,exports.Tag=Kl,exports.Text=R,exports.TextField=go,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:a="50vw",max:r=3,onClose:d})=>(e.useEffect((()=>{r&&o.length>r&&d(o[0].key)}),[o,r,d]),l.createPortal(u.default.createElement(Jl,{direction:"vertical",alignX:"center",spacing:4},u.default.createElement(i.TransitionGroup,{component:null},[...o].reverse().map(((e,l)=>u.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},u.default.createElement(li,Object.assign({className:t,e2eClassName:n,minWidth:a,last:l===o.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=ci,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:a})=>u.default.createElement(ui,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>a(!t)},e),exports.Tooltip=lt,exports.UploadFile=Ci,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const a=wo(n,o);return u.default.createElement(fr,{shouldShow:n,className:`${e}-video`},u.default.createElement(mr,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},u.default.createElement(pr,{ref:a},u.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}),u.default.createElement(gr,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:u.default.createElement(we,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:a,className:l,colourPalette:i=x.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:f,onEdit:m,e2eClassName:p})=>{const g=$r(l),h=$r(p),[b,v,y]=$o(),w=e.useCallback((()=>c(t)),[t,c]),C=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=a===hr.draft,k=a===hr.saved,S=s?x.neutral.ink.dark:x.neutral.ink.base;return u.default.createElement(br,{className:`${Y([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},u.default.createElement(xr,{active:s,onMouseEnter:v,onMouseLeave:y,colourPalette:i,customTextColour:r},n&&u.default.createElement(Cr,null,n),u.default.createElement(R,{variant:"bodyBold"},o),d&&u.default.createElement(yr,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(vr,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&u.default.createElement(we,Object.assign({},wr,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&u.default.createElement(Er,Object.assign({},wr,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=({id:e,iconSlot:t,name:n,type:o,className:a,colourPalette:l=x.secondary.blue,customTextColour:i,count:r,active:d=!1,onClick:s,subAction:c,ariaContext:f})=>{const m={delete:(p=a)?`${p}-delete`:void 0,edit:p?`${p}-edit`:void 0,container:p?`${p}-view`:void 0,active:p?`${p}-active`:void 0,counter:p?`${p}-counter`:void 0};var p;const[g,h,b]=$o(),v=d&&c?c:s,y=o===kr.draft,w=o===kr.saved;return u.default.createElement(Fr,{className:`${Y([null==m?void 0:m.container])}\n }`,onClick:()=>v(e),role:"tab","aria-selected":d,"aria-label":`${d&&y?"Delete":d&&w?"Edit":""} ${n} view ${r?`with ${r} ${f}`:""}`,customTextColour:i},u.default.createElement(zr,{active:d,onMouseEnter:h,onMouseLeave:b,colourPalette:l,customTextColour:i},t&&u.default.createElement(Rr,null,t),u.default.createElement(R,{variant:"bodyBold"},n),r&&u.default.createElement(Ir,{active:d||g,colourPalette:l,customTextColour:i},u.default.createElement(Sr,{variant:"subheadingSmall"},r)),y&&u.default.createElement(Lr,Object.assign({},Mr,{"aria-label":"delete icon"})),w&&d&&u.default.createElement(Nr,Object.assign({},Mr,{"aria-label":"edit icon"}))))},exports.WeightInput=Hr,exports.buildClassnames=Y,exports.generateId=q,exports.getOpaqueHexColor=K,exports.hexToRgb=U,exports.theme=I,exports.useCellWidths=rn,exports.useClickOutside=wo,exports.useColumns=dn,exports.useDebounce=(t,n)=>{const[o,a]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>a(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=sn,exports.useDropdown=Co,exports.useFocusVisible=function(){const[e,t]=u.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=u.default.useContext(Eo),a=u.default.useCallback((()=>{e||t(!0)}),[e]),l=u.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,u.default.useMemo((()=>({focusVisible:i,onFocus:a,onBlur:l})),[i,l,a])},exports.useHover=$o,exports.useIsOverflowing=ko,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const a=[...t];a.splice(e,1),n(a)}}}}},exports.useScrollPosition=cn,exports.useSelection=bn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[a]=e.useState(t),[l,i]=e.useState(a[o]);return[l,e=>{const t=a.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),u.default.createElement(t,Object.assign({},n))),exports.withLabels=co;
2
2
  //# sourceMappingURL=index.js.map