@veeqo/ui 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/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--jtpszk"})`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:B,fontFamily:D}=z,M=m.default.span.attrs((({as:e,variant:t})=>({as:x(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${D};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?B.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 `}}`,R=m.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=m.default(R).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${N.base};width:${N.base};color:${({glyphColor:e})=>e};}`,H=m.default(R).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,T=m.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${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};}`,O=m.default(b).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,A=m.default(M).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,W=m.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,P=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`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--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,U=m.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`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.setAttribute("aria-expanded","true")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||t.setAttribute("aria-controls",n)}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||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--exbqdz"})`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--nvz516"})`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--1xzjfje"})`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--1ixaf03"})`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--16w0ufk"})`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--1w3lv3r"})`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--fqczse"})`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--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,fe=m.default(me).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`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--1qt232p"})`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--oa1a54"})`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--129vg5d"})`/*${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(M,{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(M,{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--livrdi"})`margin-top:${N.base};padding:${N.md};z-index:2;`,Ne=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`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--1lgjeo7"})`margin-left:-${N.md};margin-right:-${N.md};`,Le=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`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}},Be=({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)};Be.Surface=ze,Be.Section=Ne,Be.FullBleed=Ie,Be.Footer=Se;const{sizes:De,colors:Me,text:Re}=z,je=m.default(Be.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${De.base} 0;display:flex;flex-direction:column;`,He=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Me.neutral.grey.base};margin-top:${De.base};padding-top:${De.base};}`,Te=m.default(M).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${De.sm} ${De.base} ${De.sm};`,Oe=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${De.lg};padding:${De.xs} ${De.base};display:flex;align-items:center;white-space:nowrap;font-family:${Re.body.fontFamily};font-size:${Re.body.fontSize};font-weight:${Re.body.fontWeight};&:hover{background-color:${Me.neutral.grey.light};color:${Me.secondary.blue.base};}& > * + *{margin-left:${De[3]};}`,Ae={item:Oe,action:m.default(Oe).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Me.secondary.blue.base};`,link:m.default(Oe).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Me.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=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))},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(je,null,m)))},Pe=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`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--r1m0qe"})`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--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xe=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`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--u4w0zl"})`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--1gxc5tv"})`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};}`;var Ke,Ye;!function(e){e.end="end",e.start="start"}(Ke||(Ke={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(Ye||(Ye={}));const Je=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,Qe=m.default(Je).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,et=m.default(M).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${z.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,tt=m.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--rjghyf"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,nt=m.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--1v5pppn"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,ot=m.default(Je).withConfig({displayName:"vui--Wrap",componentId:"vui--1xs3k5t"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`,lt={duration:400,side:Ye.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},at=({children:t,text:n,content:l,config:a,reversed:i=!1,className:r,withTriangle:d,initialShouldShow:s=!1,useReactPortal:c=!0})=>{const m=!!n&&n.trim().length>0,f=Object.assign(Object.assign({},lt),a),{duration:g,side:h,triangleOffset:b,tipMinWidth:v,tipMaxWidth:x}=f,y={container:r&&`${r} ${r}-container`,tip:r&&`${r}-tip`,wrap:r&&`${r}-wrap`,triangle:r&&`${r}-triangle`,hoverable:r&&`${r}-hoverable`},[w,C]=e.useState(s),[E,$]=e.useState(null),[k,S]=e.useState(null),{styles:N,attributes:I}=o.usePopper(E,k,{placement:`${h}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),L=e.useCallback((()=>C(!0)),[C]),F=e.useCallback((()=>C(!1)),[C]),B=Object.assign(Object.assign({},N.popper),{zIndex:z.layers.tooltip}),D=w&&(l||m)&&u.default.createElement(nt,Object.assign({className:y.tip,ref:S,duration:g,triangleOffsetSize:b,style:B},I.popper,{role:"tooltip"}),u.default.createElement(ot,{className:y.wrap,tipMinWidth:v,tipMaxWidth:x},null!=l?l:u.default.createElement(et,null,n)),d&&u.default.createElement(tt,{id:"veeqo-components-triangle",className:y.triangle}));return u.default.createElement(Je,{className:y.container},c?p.default.createPortal(D,document.body):D,u.default.createElement(Qe,{ref:$,className:y.hoverable,onMouseEnter:L,onMouseLeave:F},t))},it=m.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${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--rwc6j0"})`background-color:inherit;border-color:${y.secondary.blue.base};color:${y.secondary.blue.base};`,primary:m.default(it).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`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--1r2egf1"})`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--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,st=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,ct=m.default(b).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ut=m.default(ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${N.md};height:${N.md};color:${({accentColor:e})=>e};}`,mt=m.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,ft=m.default(ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,pt=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`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--1kzms7s"})`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--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,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--1mxdupo"})`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--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${z.sizes.base};}`,Nt=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`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--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Lt=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${z.sizes.sm};}`,zt=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`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--nu56mb"})`font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,Bt=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`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};`,Dt=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Mt=m.default(Dt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`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};}`,Rt=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,jt=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(Rt,{text:o},u.default.createElement(jt,{name:"help",width:z.sizes.base,color:z.colors.neutral.ink.lightest}))),n&&u.default.createElement(Ft,null,n),l&&u.default.createElement(Bt,null,l),d):null);return a?u.default.createElement(Mt,{disabled:c,htmlFor:e},m):u.default.createElement(Dt,{disabled:c,htmlFor:e},m)},{colors:Tt,sizes:Ot,radius:At}=z,Wt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Tt.neutral.ink.lightest};border-radius:${At.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:${Ot[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:${Ot[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--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,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--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Xt=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`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--e6p1xr"})`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--12e6ib8"})`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--1oz46st"})`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--o7masx"})`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--vlccds"})`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--xbox8h"})`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--1mf4ayh"})`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--1feqxrw"})`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--dbz7t3"})`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--grzgy2"})`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};`,Bn=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${z.sizes.md};background-color:${z.colors.neutral.grey.light};border-radius:${z.radius.full};`,Dn=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Mn=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`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 `}`,Rn=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,jn=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`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--14fzkum"})`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;"},On=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${z.colors.neutral.grey.dark};${({borderMode:e="full"})=>Tn[e]} &,& *{box-sizing:border-box;}`;function An({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(jn,{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:B}=dn(I),{scrollPosition:D}=cn(v),R=en({pinnedLeft:F,pinnedRight:B,cellWidths:L,scrollPosition:D,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(Rn,{ref:v},u.default.createElement(jn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Mn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(Mn,{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(Rn,{ref:v},u.default.createElement(jn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Mn,{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(Bn,null,l.icon),u.default.createElement($t,{spacing:"sm",alignX:"center"},u.default.createElement(M,{variant:"headingMedium"},l.heading),l.subheading&&u.default.createElement(M,{variant:"subheadingMedium"},l.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Wn(e.id,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Mn,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(Mn,{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},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},O=u.default.createElement(Mn,{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(Rn,{ref:v},b&&u.default.createElement(An,{tableCss:R,intersectionTargetRef:y,containerRef:v,cellWidths:L},O),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(jn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},O),(()=>{const e=!!a;return e&&"nested"===h?s.map(T):e?u.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[j(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(j))})(),A&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(Mn,{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(Be,{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=Dn;const Xn=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${z.sizes.base};}`,Gn=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${z.sizes.xs};}`,Un=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${z.sizes.base};}`,_n=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${z.sizes.xs};}`,Kn=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`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--1915ejg"})`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--2wnu9m"})`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--nvukr5"})`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--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var oo;!function(e){e.base="base",e.sm="sm"}(oo||(oo={}));const lo=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`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--1p3i1v3"})`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--9vxkaw"})`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--10dmq2i"})`position:relative;`,so=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`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(jt,{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--3jt15a"})`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--1k04ik"})`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--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,bo=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,vo=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`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--1h9einl"})`padding:0 6px;border-color:${z.colors.neutral.ink.lightest};`;m.default(M).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`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--5lfadq"})`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--1tebbdi"})`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(M).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Io=m.default(No).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Lo=m.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=m.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Fo=m.default(b).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Bo=m.default(b).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${y.neutral.grey.base};svg{color:${({color:e})=>e};width:${N[5]};height:${N[5]};margin-right:10px;}`,Do=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Mo=m.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?N[e]:0};`,Ro=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"})),jo=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Ho=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,To=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Oo=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`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}=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--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Jo=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${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--wtdkab"})`border:1px solid ${Uo.dark};border-radius:4px;`,el=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,tl=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`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--qckqty"})`& 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--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,ol=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${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--10p2duv"})`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--13i0t50"})`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--1bp83gy"})`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--44p3gi"})`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--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,cl=m.default(rl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,ul=m.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,ml=m.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`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(M).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,pl=m.default(M).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`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--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${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--1b7t5il"})`color:${z.text.link.color};text-decoration:${z.text.link.textDecoration};`,vl=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:xl}=z.colors.neutral,yl=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,wl=m.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${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"}),Bl=({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,B=!!i&&0===i.length,D=Boolean(L||z),M=!L&&!z,R=e.useRef(null),j=e.useRef(null),[H,T]=e.useState(Zo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!j.current||M)return;const e=j.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 j.current&&(t=j.current,n(),null===(e=j.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[R,M]);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(!a||E)return null;const e=[],t=[];let n=0,o=0;if(L){g&&(e.push(A(1,n,"left")),n+=58);for(let t=0;t<L;t+=1){const o=O(a[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(a.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,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||B,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||B)?G(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,Z,a,B,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&&B?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:j,scrollDisabled:!0,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:R,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:D},U(),e,Q()))}if(B||C){let e=Po;return N?e=N:C&&(e=Vo),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},U(),Q()),u.default.createElement(gl,Object.assign({height:I},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:j,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:l},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:R,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},U(),te,Q()))};Bl.Cell=ol,Bl.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))},Bl.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)))},Bl.SkeletonCell=El,Bl.SkeletonContent=Cl;const Dl=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Ml="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Rl="Log in with Amazon",jl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Hl=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${z.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Be.Footer} {\n box-shadow: 0px 10px 15px 0px ${z.colors.neutral.ink.dark};\n }\n `}`,Tl=e=>!!e.footerSlot,Ol={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Al={[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--1ohvs0u"})`padding:0;border:none;border-radius:${z.sizes.sm};box-shadow:${z.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Be.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Ol[e]};`} ${Hl}{padding-bottom:${z.sizes.md};}${Be.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})=>Al[Pl.tablet][e]};}@media (min-width: ${Pl.tablet})and (max-width: ${Pl.lgTablet}){max-width:${({variant:e})=>Al[Pl.lgTablet][e]};}@media (min-width: ${Pl.lgTablet})and (max-width: ${Pl.desktop}){max-width:${({variant:e})=>Al[Pl.desktop][e]};}@media (min-width: ${Pl.desktop}){max-width:${({variant:e})=>Al[Pl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Wl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Be.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--1x6mrf4"})`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--1rcauam"})`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--1w1czl4"})`margin:0.75rem 0 0;font-family:${Xl.subheadingLarge.fontFamily};font-weight:${Xl.subheadingLarge.fontWeight};font-size:${Xl.subheadingLarge.fontSize};line-height:${Xl.subheadingLarge.lineHeight};`,Jl=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${z.radius.base};border:${ql.line} solid ${Ul.base};object-fit:cover;`,Ql=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,ea=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`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--1fmdpk3"})`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--11yg0z2"})`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--1xoa6c5"})`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--vpfeol"})`&[type='number']{width:5.5ch;}`,ia=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(M,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(oa,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(M,{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--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ma=m.default(Ue).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,fa=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`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--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ga=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`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(M,{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--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,ya=m.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,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--8gyz01"})`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--fsc9el"})`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(M).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ka=m.default(no).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${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--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ia=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,La=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${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,Ba=z.colors.neutral.grey.dark,Da=z.colors.secondary.blue.dark,Ma=m.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Fa};border-color:${Ba};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Da};border-color:${Da};}}> 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;}`,Ra=m.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,ja=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(Ra,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))))})));ja.displayName="Select";const{blue:Ha}=y.secondary,{grey:Ta}=y.neutral,Oa=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Aa=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Ha.lightest};}`,Wa=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Pa=m.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${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--2nps2x"})`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--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Aa} 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=Oa,qa.Body=Aa,qa.Row=Wa,qa.HeaderCell=Va,qa.Cell=Pa;const Xa=m.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ga=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${z.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Ua=m.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${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--t3v3py"})`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--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t: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--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Qa=m.default($t).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`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--1nmtetq"})`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--fvpujj"})`flex-grow:1;`,ni=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`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--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?z.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,ri=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&: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--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${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--69792q"})`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--x718nd"})`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--17v0v3c"})`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(M,{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(M,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(M,{variant:"errorSmall"},"File is too big (",t,")")):null,xi=m.default(M).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,yi=m.default($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${y.neutral.ink.lightest};border-radius:${C.base};padding:${N.xs};${M}{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--1xg3v52"})`${Ei} display:${e=>e.shouldShow?"initial":"none"};z-index:${z.layers.modal};`,ki=m.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Ei} background-color:rgba(55,66,77,0.5);`,Si=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`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--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,zi=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Fi=m.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Bi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Bi||(Bi={}));const Di=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Mi=m.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Ri=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${M} {\n color: ${null!=t?t:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ji=m.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Mi} {\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--yu7dwm"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Oi=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"})),Ai=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(M).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`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--lo8tpb"})``,Zi=m.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,qi=m.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Pi} {\n color: ${y.neutral.grey.lightest};\n }\n `}`,Xi=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`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 & > ${M} {\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 & > ${M} {\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 & > ${M} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Gi=m.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`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 & > ${M} {\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--1cuc9yu"})`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--18asccd"})`display:flex;flex-direction:column;position:relative;`,Yi=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Ji=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Qi=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`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(O,null,u.default.createElement(j,{glyphColor:i},a,u.default.createElement(M,{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(A,{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=Be,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=Do(t),p=Do(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(M,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(M,null,l),u.default.createElement(Lo,{color:y.neutral.ink.base,name:"downArrow",shouldShow:g}))},u.default.createElement(Fo,null,u.default.createElement(Bo,{color:i},a,u.default.createElement(M,{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=Mo,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=Ao(l),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: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]),B=!C.isLoaded||C.isError;return u.default.createElement(jo,{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:B?{display:"none"}:{},ref:k}),!b&&B&&(p||u.default.createElement(Ro,{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(Oo,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=no,exports.LegacyDataTable=Bl,exports.Loader=le,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Ml);return u.default.createElement(Dl,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Ml)},"aria-label":Rl},t),u.default.createElement("img",{src:n,alt:Rl}))},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(jl,null),u.default.createElement(Zl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Be.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(Be.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(Ma,{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=ja,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=M,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=Ai(a),h=Ai(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===Bi.draft,k=l===Bi.saved,S=s?y.neutral.ink.dark:y.neutral.ink.base;return u.default.createElement(Di,{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(Ri,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&u.default.createElement(Ti,null,n),u.default.createElement(M,{variant:"bodyBold"},o),d&&u.default.createElement(ji,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(Mi,{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(Oi,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(M,{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"),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),p=c(l),f=c(a),g=c(r),h=c(s);const b=m.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`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:B,fontFamily:D}=z,M=m.default.span.attrs((({as:e,variant:t})=>({as:x(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${D};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?B.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 `}}`,R=m.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=m.default(R).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${N.base};width:${N.base};color:${({glyphColor:e})=>e};}`,H=m.default(R).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,T=m.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${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--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,O=m.default(M).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,W=m.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,P=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`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--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,U=m.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`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,f=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 p.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,f),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--exbqdz"})`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--nvz516"})`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--1xzjfje"})`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--1ixaf03"})`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--16w0ufk"})`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--1w3lv3r"})`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--fqczse"})`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--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,pe=m.default(me).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`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;}`,fe=m.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,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:pe,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,p=!!l;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:p,hasDropdown:r},s),(m||p)&&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(fe,null,u.default.createElement(le,null)))})),ve=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`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--129vg5d"})`/*${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(M,{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(M,{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--livrdi"})`margin-top:${N.base};padding:${N.md};z-index:2;`,Ne=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`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--1lgjeo7"})`margin-left:-${N.md};margin-right:-${N.md};`,Le=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`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}},Be=({className:t,style:n,title:o,subtitle:l,HeaderActionSlot:a,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:m,renderFooter:p})=>{const[f,g]=e.useState(!1),h=o&&u.default.createElement(Ce,{title:o,subtitle:l,ActionSlot:a,action:i,onClickClose:m,isCollapsed:f,onClickCollapse:r?()=>{g(!f)}:void 0}),b=r&&!f||!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!==p&&u.default.createElement(Se,null,p());return u.default.createElement(ze,{className:t,style:n,elevation:d,accent:s},h,v,x)};Be.Surface=ze,Be.Section=Ne,Be.FullBleed=Ie,Be.Footer=Se;const{sizes:De,colors:Me,text:Re}=z,je=m.default(Be.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${De.base} 0;display:flex;flex-direction:column;`,He=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Me.neutral.grey.base};margin-top:${De.base};padding-top:${De.base};}`,Te=m.default(M).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${De.sm} ${De.base} ${De.sm};`,Ae=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${De.lg};padding:${De.xs} ${De.base};display:flex;align-items:center;white-space:nowrap;font-family:${Re.body.fontFamily};font-size:${Re.body.fontSize};font-weight:${Re.body.fontWeight};&:hover{background-color:${Me.neutral.grey.light};color:${Me.secondary.blue.base};}& > * + *{margin-left:${De[3]};}`,Oe={item:Ae,action:m.default(Ae).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Me.secondary.blue.base};`,link:m.default(Ae).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Me.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(je,null,m)))},Pe=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`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--r1m0qe"})`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--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xe=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`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--u4w0zl"})`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:p})=>{const f=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])})(f,(e=>{n&&r(e)})),u.default.createElement(qe,{className:`${l}-container ${l}`,onClick:c,onMouseEnter:m,onMouseLeave:p,ref:f},!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--1gxc5tv"})`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};}`;var Ke,Ye;!function(e){e.end="end",e.start="start"}(Ke||(Ke={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(Ye||(Ye={}));const Je=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,Qe=m.default(Je).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,et=m.default(M).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${z.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,tt=m.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--rjghyf"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,nt=m.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--1v5pppn"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,ot=m.default(Je).withConfig({displayName:"vui--Wrap",componentId:"vui--1xs3k5t"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`,lt={duration:400,side:Ye.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},at=({children:t,text:n,content:l,config:a,reversed:i=!1,className:r,withTriangle:d,initialShouldShow:s=!1,useReactPortal:c=!0})=>{const m=!!n&&n.trim().length>0,p=Object.assign(Object.assign({},lt),a),{duration:g,side:h,triangleOffset:b,tipMinWidth:v,tipMaxWidth:x}=p,y={container:r&&`${r} ${r}-container`,tip:r&&`${r}-tip`,wrap:r&&`${r}-wrap`,triangle:r&&`${r}-triangle`,hoverable:r&&`${r}-hoverable`},[w,C]=e.useState(s),[E,$]=e.useState(null),[k,S]=e.useState(null),{styles:N,attributes:I}=o.usePopper(E,k,{placement:`${h}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),L=e.useCallback((()=>C(!0)),[C]),F=e.useCallback((()=>C(!1)),[C]),B=Object.assign(Object.assign({},N.popper),{zIndex:z.layers.tooltip}),D=w&&(l||m)&&u.default.createElement(nt,Object.assign({className:y.tip,ref:S,duration:g,triangleOffsetSize:b,style:B},I.popper,{role:"tooltip"}),u.default.createElement(ot,{className:y.wrap,tipMinWidth:v,tipMaxWidth:x},null!=l?l:u.default.createElement(et,null,n)),d&&u.default.createElement(tt,{id:"veeqo-components-triangle",className:y.triangle}));return u.default.createElement(Je,{className:y.container},c?f.default.createPortal(D,document.body):D,u.default.createElement(Qe,{ref:$,className:y.hoverable,onMouseEnter:L,onMouseLeave:F},t))},it=m.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${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--rwc6j0"})`background-color:inherit;border-color:${y.secondary.blue.base};color:${y.secondary.blue.base};`,primary:m.default(it).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`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--1r2egf1"})`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--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,st=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,ct=m.default(b).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ut=m.default(ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${N.md};height:${N.md};color:${({accentColor:e})=>e};}`,mt=m.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,pt=m.default(ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,ft=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`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--1kzms7s"})`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--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,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--1mxdupo"})`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--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${z.sizes.base};}`,Nt=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`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--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Lt=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${z.sizes.sm};}`,zt=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`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--nu56mb"})`font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,Bt=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`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};`,Dt=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Mt=m.default(Dt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`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};}`,Rt=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,jt=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(Rt,{text:o},u.default.createElement(jt,{name:"help",width:z.sizes.base,color:z.colors.neutral.ink.lightest}))),n&&u.default.createElement(Ft,null,n),l&&u.default.createElement(Bt,null,l),d):null);return a?u.default.createElement(Mt,{disabled:c,htmlFor:e},m):u.default.createElement(Dt,{disabled:c,htmlFor:e},m)},{colors:Tt,sizes:At,radius:Ot}=z,Wt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`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")),[]),p=e.useRef(null),f=e.useCallback((e=>{s(e.currentTarget.checked,l)}),[s,l]);return e.useEffect((()=>{p.current&&(p.current.indeterminate=!0===o)}),[o]),u.default.createElement(Ht,Object.assign({id:m,disabled:i},c),u.default.createElement(Wt,{ref:p,id:m,type:"checkbox",checked:n,value:l,name:a,disabled:i,"aria-label":r,className:d,onChange:f}))},Vt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,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--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Xt=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`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--e6p1xr"})`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 `,p=`\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?p: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 p.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 p.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--12e6ib8"})`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 pn(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 fn=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`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(fn,Object.assign({},i),u.default.createElement(Zt,{value:n,checked:t,disabled:a,onChange:o})):u.default.createElement(fn,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(pn,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--o7masx"})`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--vlccds"})`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--xbox8h"})`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--1mf4ayh"})`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--1feqxrw"})`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--dbz7t3"})`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--grzgy2"})`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};`,Bn=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${z.sizes.md};background-color:${z.colors.neutral.grey.light};border-radius:${z.radius.full};`,Dn=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Mn=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`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 `}`,Rn=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,jn=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`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--14fzkum"})`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--5gfhdd"})`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)},f=()=>{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 p.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{f()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",f),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",f)}}),[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(jn,{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:p,setExpanded:f,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:p,enabledRowIds:w}),S={setSelected:k||Zn,setExpanded:f||Zn},N=[$,...o],I=C?N:o,L=rn(x,v),{visible:z,pinnedLeft:F,pinnedRight:B}=dn(I),{scrollPosition:D}=cn(v),R=en({pinnedLeft:F,pinnedRight:B,cellWidths:L,scrollPosition:D,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(Rn,{ref:v},u.default.createElement(jn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Mn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(Mn,{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(fn,Object.assign({},n),u.default.createElement($n,null))}(e,t))))))))))}if(0===s.length)return u.default.createElement(An,{borderMode:n},u.default.createElement(Rn,{ref:v},u.default.createElement(jn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Mn,{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(Bn,null,l.icon),u.default.createElement($t,{spacing:"sm",alignX:"center"},u.default.createElement(M,{variant:"headingMedium"},l.heading),l.subheading&&u.default.createElement(M,{variant:"subheadingMedium"},l.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Wn(e.id,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Mn,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(Mn,{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(fn,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},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},A=u.default.createElement(Mn,{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(Rn,{ref:v},b&&u.default.createElement(On,{tableCss:R,intersectionTargetRef:y,containerRef:v,cellWidths:L},A),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(jn,{css:R,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[j(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(j))})(),O&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(Mn,{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(fn,Object.assign({},t))}({column:e}))))))))};qn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},qn.Cell=fn,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(Be,{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=pn,qn.Header=mn,qn.Truncate=Hn,qn.NoWrap=Dn;const Xn=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${z.sizes.base};}`,Gn=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${z.sizes.xs};}`,Un=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${z.sizes.base};}`,_n=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${z.sizes.xs};}`,Kn=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`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--1915ejg"})`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--2wnu9m"})`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--nvukr5"})`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--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var oo;!function(e){e.base="base",e.sm="sm"}(oo||(oo={}));const lo=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`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--1p3i1v3"})`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--9vxkaw"})`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--10dmq2i"})`position:relative;`,so=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`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(jt,{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--3jt15a"})`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;}`,po=m.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${uo}`,fo=/^-?[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:p,placeholder:f,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(fo).test(t)&&m(t)}),[m,v]),E=null!=o?o:q("textfield");return"text"===v&&s?u.default.createElement(po,Object.assign({className:l,disabled:a,hasError:i,id:E,name:c,onChange:C,placeholder:f,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:f,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--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,bo=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,vo=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`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--1h9einl"})`padding:0 6px;border-color:${z.colors.neutral.ink.lightest};`;m.default(M).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`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--5lfadq"})`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--1tebbdi"})`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(M).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Io=m.default(No).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Lo=m.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=m.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Fo=m.default(b).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Bo=m.default(b).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${y.neutral.grey.base};svg{color:${({color:e})=>e};width:${N[5]};height:${N[5]};margin-right:10px;}`,Do=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Mo=m.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?N[e]:0};`,Ro=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"})),jo=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Ho=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,To=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Ao=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Oo=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),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--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Jo=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${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--wtdkab"})`border:1px solid ${Uo.dark};border-radius:4px;`,el=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,tl=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`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--qckqty"})`& 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--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,ol=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${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--10p2duv"})`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--13i0t50"})`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--1bp83gy"})`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--44p3gi"})`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--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,cl=m.default(rl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,ul=m.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,ml=m.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`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;}`,pl=m.default(M).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,fl=m.default(M).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`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(pl,{variant:"headingLarge"},n),o&&u.default.createElement(fl,{variant:"subheadingMedium"},o)),hl=m.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${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--1b7t5il"})`color:${z.text.link.color};text-decoration:${z.text.link.textDecoration};`,vl=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:xl}=z.colors.neutral,yl=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,wl=m.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${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 p=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 p(),c?u.default.createElement(sl,{ref:e=>{s(e),p(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"}),Bl=({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:p,omitFooterSelectionCell:f=!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,B=!!i&&0===i.length,D=Boolean(L||z),M=!L&&!z,R=e.useRef(null),j=e.useRef(null),[H,T]=e.useState(Zo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!j.current||M)return;const e=j.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 j.current&&(t=j.current,n(),null===(e=j.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[R,M]);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||B,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||B)?G(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,Z,a,B,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&&!p||!E&&B?null:u.default.createElement(dl,{fixedColumnsStyle:kl(P||[])},u.default.createElement(nl,null,g&&!f&&u.default.createElement(ol,null),!E&&m(i),E&&p&&p())):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:j,scrollDisabled:!0,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:R,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:D},U(),e,Q()))}if(B||C){let e=Po;return N?e=N:C&&(e=Vo),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},U(),Q()),u.default.createElement(gl,Object.assign({height:I},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:j,scrollPosition:H,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:l},k&&a&&u.default.createElement($l,{renderHeader:U,tableRef:R,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(rl,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},U(),te,Q()))};Bl.Cell=ol,Bl.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))},Bl.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)))},Bl.SkeletonCell=El,Bl.SkeletonContent=Cl;const Dl=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Ml="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Rl="Log in with Amazon",jl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Hl=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${z.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Be.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--1ohvs0u"})`padding:0;border:none;border-radius:${z.sizes.sm};box-shadow:${z.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Be.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Al[e]};`} ${Hl}{padding-bottom:${z.sizes.md};}${Be.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;&,& > ${Be.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--1x6mrf4"})`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--1rcauam"})`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--1w1czl4"})`margin:0.75rem 0 0;font-family:${Xl.subheadingLarge.fontFamily};font-weight:${Xl.subheadingLarge.fontWeight};font-size:${Xl.subheadingLarge.fontSize};line-height:${Xl.subheadingLarge.lineHeight};`,Jl=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${z.radius.base};border:${ql.line} solid ${Ul.base};object-fit:cover;`,Ql=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,ea=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`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--1fmdpk3"})`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--11yg0z2"})`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--1xoa6c5"})`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--vpfeol"})`&[type='number']{width:5.5ch;}`,ia=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(M,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(oa,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(M,{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--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ma=m.default(Ue).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,pa=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`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;}`,fa=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ga=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`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(fa,{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(pa,{onClick:this.toggleShouldShow},u.default.createElement(M,{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--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,ya=m.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,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--8gyz01"})`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--fsc9el"})`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(M).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ka=m.default(no).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${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))},p=(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&&p(a)},disabled:l,size:s},c)),u.default.createElement(wa,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:l,size:s}))}));Sa.displayName="PriceInput";const Na=m.default(go).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ia=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,La=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${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,Ba=z.colors.neutral.grey.dark,Da=z.colors.secondary.blue.dark,Ma=m.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Fa};border-color:${Ba};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Da};border-color:${Da};}}> 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;}`,Ra=m.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,ja=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(Ra,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))))})));ja.displayName="Select";const{blue:Ha}=y.secondary,{grey:Ta}=y.neutral,Aa=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Oa=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Ha.lightest};}`,Wa=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Pa=m.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${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--2nps2x"})`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--lcbl46"})`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--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ga=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${z.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Ua=m.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${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--t3v3py"})`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--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t: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--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Qa=m.default($t).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`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--1nmtetq"})`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--fvpujj"})`flex-grow:1;`,ni=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`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--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?z.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,ri=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&: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--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${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--69792q"})`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--x718nd"})`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--17v0v3c"})`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 pi,fi,gi;exports.AcceptedFileTypes=void 0,(pi=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",pi.JPEG=".jpeg",pi.JPG=".jpg",pi.GIF=".gif",pi.PNG=".png",exports.FileSizeUnit=void 0,(fi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",fi.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(M,{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(M,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(M,{variant:"errorSmall"},"File is too big (",t,")")):null,xi=m.default(M).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,yi=m.default($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${y.neutral.ink.lightest};border-radius:${C.base};padding:${N.xs};${M}{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,p]=e.useState(gi.VALID),f=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),p(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:f?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--1xg3v52"})`${Ei} display:${e=>e.shouldShow?"initial":"none"};z-index:${z.layers.modal};`,ki=m.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Ei} background-color:rgba(55,66,77,0.5);`,Si=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`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--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,zi=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Fi=m.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Bi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Bi||(Bi={}));const Di=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Mi=m.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Ri=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${M} {\n color: ${null!=t?t:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ji=m.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Mi} {\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--yu7dwm"})`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(M).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`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--lo8tpb"})``,Zi=m.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,qi=m.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Pi} {\n color: ${y.neutral.grey.lightest};\n }\n `}`,Xi=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`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 & > ${M} {\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 & > ${M} {\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 & > ${M} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Gi=m.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`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 & > ${M} {\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--1cuc9yu"})`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--18asccd"})`display:flex;flex-direction:column;position:relative;`,Yi=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Ji=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Qi=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`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(j,{glyphColor:i},a,u.default.createElement(M,{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(pt,null,i||u.default.createElement(ft,{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=Be,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 p=Do(t),f=Do(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==p?void 0:p.container,null==f?void 0:f.container]),onClick:c},o&&u.default.createElement(Io,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(M,null,l),u.default.createElement(zo,{className:_([null==p?void 0:p.cross,null==f?void 0:f.cross]),name:"cross",size:"base",color:y.neutral.ink.base})):u.default.createElement(Ue,{className:p.filterTagDropdown,shouldShowDropdown:g,onClickAway:x,cta:u.default.createElement(So,{className:p.container,onClick:v},o&&u.default.createElement(Io,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(M,null,l),u.default.createElement(Lo,{color:y.neutral.ink.base,name:"downArrow",shouldShow:g}))},u.default.createElement(Fo,null,u.default.createElement(Bo,{color:i},a,u.default.createElement(M,{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=Mo,exports.Image=({src:t,alt:n="",className:l,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:m="right",previewEnabled:p=!1,placeholder:f,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((()=>p?w(!0):{}),[p]),F=e.useCallback((()=>p?w(!1):{}),[p]),B=!C.isLoaded||C.isError;return u.default.createElement(jo,{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:p,onMouseEnter:z,onMouseLeave:F,style:B?{display:"none"}:{},ref:k}),!b&&B&&(f||u.default.createElement(Ro,{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=Bl,exports.Loader=le,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Ml);return u.default.createElement(Dl,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Ml)},"aria-label":Rl},t),u.default.createElement("img",{src:n,alt:Rl}))},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:p,onScroll:f}=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(jl,null),u.default.createElement(Zl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Be.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:f,ref:m,isScrollable:p,fullBleed:a},d),Tl(n)&&n.footerSlot,!Tl(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(Be.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}),p=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))),f=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,f,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"},p,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:p="",name:f,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:p,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:f,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(Ma,{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=ja,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,p]=e.useState(!1),[f,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=f>-1?n[f]: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===f&&s>n[1]&&([,s]=n),1===f&&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 p;s=Number(s.toFixed(u)),p=Array.isArray(n)?0===f?[s,n[1]]:[n[0],s]:s,i(p),Array.isArray(p)&&p[0]===p[1]&&(0===f&&g(1),1===f&&g(0))}),[f,m,l,o,i,a,n]),C=e.useCallback((()=>{p(!1),c()}),[c]),E=e.useCallback(((e,t)=>{p(!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=M,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:p,e2eClassName:f})=>{const g=Oi(a),h=Oi(f),[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(),p&&p(t)}),[p,t]),$=l===Bi.draft,k=l===Bi.saved,S=s?y.neutral.ink.dark:y.neutral.ink.base;return u.default.createElement(Di,{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(Ri,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&u.default.createElement(Ti,null,n),u.default.createElement(M,{variant:"bodyBold"},o),d&&u.default.createElement(ji,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(Mi,{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 p={delete:(f=l)?`${f}-delete`:void 0,edit:f?`${f}-edit`:void 0,container:f?`${f}-view`:void 0,active:f?`${f}-active`:void 0,counter:f?`${f}-counter`:void 0};var f;const[g,h,b]=$o(),v=d&&c?c:s,x=o===Wi.draft,w=o===Wi.saved;return u.default.createElement(Gi,{className:`${_([null==p?void 0:p.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(M,{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;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|