@veeqo/ui 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/components/{DataTableExp → DataTable}/DataTable.d.ts +1 -1
  2. package/dist/components/{DataTableExp → DataTable}/index.d.ts +1 -1
  3. package/dist/components/index.d.ts +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. /package/dist/components/{DataTableExp → DataTable}/DataTable.test.d.ts +0 -0
  10. /package/dist/components/{DataTableExp → DataTable}/components/ActionBar.d.ts +0 -0
  11. /package/dist/components/{DataTableExp → DataTable}/components/Cell.d.ts +0 -0
  12. /package/dist/components/{DataTableExp → DataTable}/components/ColumnHeader.d.ts +0 -0
  13. /package/dist/components/{DataTableExp → DataTable}/components/ColumnMenu.d.ts +0 -0
  14. /package/dist/components/{DataTableExp → DataTable}/components/EmptyBodyContent.d.ts +0 -0
  15. /package/dist/components/{DataTableExp → DataTable}/components/Header.d.ts +0 -0
  16. /package/dist/components/{DataTableExp → DataTable}/components/LoadingCellContent.d.ts +0 -0
  17. /package/dist/components/{DataTableExp → DataTable}/components/NoWrap.d.ts +0 -0
  18. /package/dist/components/{DataTableExp → DataTable}/components/Row.d.ts +0 -0
  19. /package/dist/components/{DataTableExp → DataTable}/components/ScrollContainer.d.ts +0 -0
  20. /package/dist/components/{DataTableExp → DataTable}/components/SelectionCell.d.ts +0 -0
  21. /package/dist/components/{DataTableExp → DataTable}/components/SelectionHeader.d.ts +0 -0
  22. /package/dist/components/{DataTableExp → DataTable}/components/StickyHead.d.ts +0 -0
  23. /package/dist/components/{DataTableExp → DataTable}/components/TableGrid.d.ts +0 -0
  24. /package/dist/components/{DataTableExp → DataTable}/components/Truncate.d.ts +0 -0
  25. /package/dist/components/{DataTableExp → DataTable}/components/Wrapper.d.ts +0 -0
  26. /package/dist/components/{DataTableExp → DataTable}/constants.d.ts +0 -0
  27. /package/dist/components/{DataTableExp → DataTable}/hooks/index.d.ts +0 -0
  28. /package/dist/components/{DataTableExp → DataTable}/hooks/useCellWidths.d.ts +0 -0
  29. /package/dist/components/{DataTableExp → DataTable}/hooks/useColumns.d.ts +0 -0
  30. /package/dist/components/{DataTableExp → DataTable}/hooks/useDragToScroll.d.ts +0 -0
  31. /package/dist/components/{DataTableExp → DataTable}/hooks/useNested.d.ts +0 -0
  32. /package/dist/components/{DataTableExp → DataTable}/hooks/useScrollPosition.d.ts +0 -0
  33. /package/dist/components/{DataTableExp → DataTable}/hooks/useSelection.d.ts +0 -0
  34. /package/dist/components/{DataTableExp → DataTable}/renderers/index.d.ts +0 -0
  35. /package/dist/components/{DataTableExp → DataTable}/renderers/renderCell.d.ts +0 -0
  36. /package/dist/components/{DataTableExp → DataTable}/renderers/renderFooter.d.ts +0 -0
  37. /package/dist/components/{DataTableExp → DataTable}/renderers/renderHeader.d.ts +0 -0
  38. /package/dist/components/{DataTableExp → DataTable}/renderers/renderLoadingCell.d.ts +0 -0
  39. /package/dist/components/{DataTableExp → DataTable}/renderers/renderNestedCell.d.ts +0 -0
  40. /package/dist/components/{DataTableExp → DataTable}/types.d.ts +0 -0
  41. /package/dist/components/{DataTableExp → DataTable}/utils/GetSortIcon.d.ts +0 -0
  42. /package/dist/components/{DataTableExp → DataTable}/utils/alignmentToFlex.d.ts +0 -0
  43. /package/dist/components/{DataTableExp → DataTable}/utils/generateTableCss.d.ts +0 -0
  44. /package/dist/components/{DataTableExp → DataTable}/utils/getNextSortState.d.ts +0 -0
  45. /package/dist/components/{DataTableExp → DataTable}/utils/getRowState.d.ts +0 -0
  46. /package/dist/components/{DataTableExp → DataTable}/utils/getRowState.test.d.ts +0 -0
  47. /package/dist/components/{DataTableExp → DataTable}/utils/index.d.ts +0 -0
  48. /package/dist/components/{DataTableExp → DataTable}/utils/parseWidth.d.ts +0 -0
  49. /package/dist/components/{DataTableExp → DataTable}/utils/sumAll.d.ts +0 -0
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"),a=require("resize-observer-polyfill"),l=require("react-dom"),i=require("react-transition-group"),r=require("lodash.throttle"),d=require("react-scrolllock-configurable");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(e),u=s(n),m=s(a),f=s(l),p=s(r),g=s(d);const h=u.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,b={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},v=(e,t)=>e||(t?b[t]:void 0),x={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},y={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},w={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var C,E;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(C||(C={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(E||(E={}));const $=function({increment:e,unit:t,count:n}){const o={};for(let a=0;a<=n;a++){const n=a*e;o[a]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),k={[E.none]:"0",[E.line]:"1px",[E.xs]:$[1],[E.sm]:$[2],[E.base]:$[4],[E.md]:$[6],[E.lg]:$[8],[E.xl]:$[12],[E.xxl]:$[16]},S=Object.assign(Object.assign({},k),$),N={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},z={headingXXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},I=Object.assign(Object.assign({},N),{breakpoints:y,colors:x,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:w,shadows:C,sizes:S,text:z}),{text:L,colors:F,fontFamily:B}=I,j=u.default.span.attrs((({as:e,variant:t})=>({as:v(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:${B};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?F.neutral.ink.lightest:L[e].color;return`\n font-family: ${L[e].fontFamily};\n font-style: ${L[e].fontStyle};\n font-weight: ${L[e].fontWeight};\n font-size: ${L[e].fontSize};\n line-height: ${L[e].lineHeight};\n color: ${n};\n text-decoration: ${L[e].textDecoration};\n letter-spacing: ${L[e].letterSpacing};\n `}}`,M=u.default(h).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,D=u.default(M).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${S.base};width:${S.base};color:${({glyphColor:e})=>e};}`,R=u.default(M).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,H=u.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 ${I.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}`,O=u.default(h).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,T=u.default(j).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,W=u.default(t.motion(h)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,A=u.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,P=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.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"})),V=e=>`${e}-${Math.floor(1e3*Math.random())}`;class Z extends e.PureComponent{constructor(e){super(e),this.id=V("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?l.createPortal(e,this.portalNode):null}}const q=u.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--d5k10p"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,X=u.default.div.withConfig({displayName:"vui--PopoverWrapper",componentId:"vui--13ndjce"})`z-index:${({zIndex:e})=>e+1};`,G=({children:t,className:n,anchorElement:a,rootElementRef:l,placement:i="bottom",onShouldClose:r,zIndex:d=I.layers.popup})=>{const[s,u]=e.useState(null),{styles:f,attributes:p,update:g}=o.usePopper(a,s,{placement:i});return e.useEffect((()=>{if(!g||!s)return;const e=new m.default(g);return e.observe(s),()=>{e.disconnect()}}),[g,s]),e.useEffect((()=>{if(g)return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}}),[g]),c.default.createElement(Z,{rootElementRef:l},r&&c.default.createElement(q,{onClick:r,zIndex:d}),c.default.createElement(X,Object.assign({ref:u,className:n,zIndex:d,style:Object.assign({},f.popper)},p.popper),t))};function Y(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const U=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":a},c.default.createElement("defs",null,c.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},c.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),c.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),c.default.createElement("stop",{stopColor:o,offset:"100%"}))),c.default.createElement("g",{fill:"none",fillRule:"evenodd"},c.default.createElement("g",{transform:"translate(1 1)"},c.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),c.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),K=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":a},c.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),_=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":a},c.default.createElement("circle",{cx:"15",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},c.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"105",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),J=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:a="TailSpin"})=>{switch(a){case"Grid":return c.default.createElement(K,{className:e,height:t,width:n,color:o});case"ThreeDots":return c.default.createElement(_,{className:e,height:t,width:n,color:o});default:return c.default.createElement(U,{className:e,height:t,width:n,color:o})}},Q=u.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})=>S[e]};height:${({size:e})=>S[e]};}`,ee=u.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:${I.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",a="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",a="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${a};\n font-size: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,te=u.default(ee).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${I.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?I.colors.neutral.ink.base:I.colors.secondary.blue.base};&:hover{background-color:${I.colors.neutral.grey.lightest};}&:active{background-color:${I.colors.neutral.grey.lightest};border-color:${I.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${I.colors.neutral.grey.base} !important;border-color:${I.colors.neutral.grey.base} !important;color:${I.colors.neutral.ink.light} !important;}`,ne=u.default(te).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${I.colors.secondary.red.base};&:hover{color:${I.colors.secondary.red.dark};}&:active{border-color:${I.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};color:${I.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,oe=u.default(te).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${I.colors.secondary.blue.base};border-color:${I.colors.secondary.blue.base};color:white;&:hover{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};}&:active{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}`,ae=u.default(oe).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${I.colors.secondary.red.base};border-color:${I.colors.secondary.red.base};color:white;&:hover{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};}&:active{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,le=u.default(ee).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${I.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,ie=u.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,re=u.default(ie).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};text-decoration:${I.text.link.textDecoration};color:${I.colors.secondary.blue.base};&:hover{color:${I.colors.secondary.blue.dark};}& > * + *{margin-left:${I.sizes.xs};}& > span{position:relative;top:-1px;}`,de=u.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;`,se=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ce={default:te,primary:oe,destructive:ne,primaryDestructive:ae,flat:le,link:re,unstyled:ie},ue=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:a,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Y(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return c.default.createElement(ie,Object.assign({ref:t,className:n},s),o);const u=ce[l],m=void 0!==o,f=!!a;return c.default.createElement(u,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:f,hasDropdown:r},s),(m||f)&&c.default.createElement(Q,{loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},a&&a,void 0!==o&&c.default.createElement("span",null,o),r&&c.default.createElement(se,null)),d&&c.default.createElement(de,null,c.default.createElement(J,null)))})),me=u.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${S.md};padding-right:${S.md};padding-left:${S.md};margin-bottom:${S.md};& > * + *{margin-top:${S.xs};}`,fe=u.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${S.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,pe=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.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"})),ge=e=>c.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),c.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"})),he=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:a,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>c.default.createElement(me,null,c.default.createElement(fe,null,c.default.createElement(j,{id:e,variant:o},t),a&&c.default.createElement(ue,{variant:"link",onClick:a.onClick},a.title),l,r&&c.default.createElement(ue,{variant:"flat",icon:i?c.default.createElement(pe,null):c.default.createElement(P,null),onClick:r}),d&&c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(ge,null),onClick:d,"aria-label":"Close"})),n&&c.default.createElement(j,{variant:"subheadingSmall"},n)),{grey:be}=x.neutral,ve={0:"none",1:C.sm,2:C.base,3:C.md,4:C.lg},xe={info:x.secondary.blue.base,success:x.secondary.green.base,error:x.secondary.red.base},ye=u.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${S.base};padding:${S.md};z-index:2;`,we=u.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${S.md};padding-left:${S.md};margin-top:${S.md};margin-bottom:${S.md};font-family:${z.body.fontFamily};font-size:${z.body.fontSize};font-weight:${z.body.fontWeight};line-height:${z.body.lineHeight};color:${z.body.color};& + &{border-top:${S.line} solid ${be.base};padding-top:${S.md};}`,Ce=u.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${S.md};margin-right:-${S.md};`,Ee=u.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${we}:first-child{margin-top:0;}`,$e=u.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${S.line} solid ${be.base};box-shadow:${e=>void 0!==e.elevation?ve[e.elevation]:C.sm};border-radius:${w.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${S.xs};\n background-color: ${xe[e]};\n }\n `}`,ke={expanded:{height:"auto"},collapsed:{height:0}},Se=({className:t,style:n,title:o,subtitle:a,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:u,onClose:m,renderFooter:f})=>{const[p,g]=e.useState(!1),h=o&&c.default.createElement(he,{title:o,subtitle:a,ActionSlot:l,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=c.default.createElement(Ee,{animate:b?"expanded":"collapsed",variants:ke,transition:{duration:.3,ease:"easeOut"}},c.default.createElement(we,null,u)),x=void 0!==f&&c.default.createElement(ye,null,f());return c.default.createElement($e,{className:t,style:n,elevation:d,accent:s},h,v,x)};Se.Surface=$e,Se.Section=we,Se.FullBleed=Ce,Se.Footer=ye;const{sizes:Ne,colors:ze,text:Ie}=I,Le=u.default(Se.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Ne.base} 0;display:flex;flex-direction:column;`,Fe=u.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${ze.neutral.grey.base};margin-top:${Ne.base};padding-top:${Ne.base};}`,Be=u.default(j).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Ne.sm} ${Ne.base} ${Ne.sm};`,je=u.default(ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Ne.lg};padding:${Ne.xs} ${Ne.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ie.body.fontFamily};font-size:${Ie.body.fontSize};font-weight:${Ie.body.fontWeight};&:hover{background-color:${ze.neutral.grey.light};color:${ze.secondary.blue.base};}& > * + *{margin-left:${Ne[3]};}`,Me={item:je,action:u.default(je).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${ze.secondary.blue.base};`,link:u.default(je).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${ze.secondary.blue.base};text-decoration:underline;`},De=({title:t,items:n=[],sections:o,buttonVariant:a,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),u=e=>{const t=Me[e.variant||"item"];return c.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,c.default.createElement("span",null,e.title))},m=o?o.map((e=>c.default.createElement(Fe,{key:e.title},e.title&&c.default.createElement(Be,null,e.title),e.items.map(u)))):n.map(u);return c.default.createElement(c.default.Fragment,null,c.default.createElement(ue,{dropdown:!0,variant:a,size:l,onClick:()=>r(!i),ref:s},t),i&&c.default.createElement(G,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},c.default.createElement(Le,null,m)))},Re=u.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${I.text.link.fontFamily};font-style:${I.text.link.fontStyle};font-weight:${I.text.link.fontWeight};font-size:${I.text.link.fontSize};line-height:${I.text.link.lineHeight};color:${I.colors.secondary.blue.base};text-decoration:${I.text.link.textDecoration};&:hover{color:${I.colors.secondary.blue.dark};}`,He=u.default(h).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;`,Oe=e.forwardRef(((e,t)=>{const{children:n,className:o}=e;return c.default.createElement(He,{className:o,ref:t},n)})),Te=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,We=u.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ae=u.default(Oe).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:3;${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,Pe=({cta:t,shouldShowDropdown:n,children:o,className:a="animated-dropdown",reversed:l=!1,onClickAway:r=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:u,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)})),c.default.createElement(Te,{className:`${a}-container ${a}`,onClick:u,onMouseEnter:m,onMouseLeave:f,ref:p},!l&&t,c.default.createElement(We,{className:`${a}-wrap ${a}`},c.default.createElement(i.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},c.default.createElement(Ae,{reversed:l,className:`${a}-basic-dropdown ${a}`},o))),l&&t)},Ve=u.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${I.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${I.text.bodySmallBold.fontFamily};font-weight:${I.text.bodySmallBold.fontWeight};font-size:${I.text.bodySmallBold.fontSize};line-height:${I.text.bodySmallBold.lineHeight};}`;var Ze,qe;!function(e){e.end="end",e.start="start"}(Ze||(Ze={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(qe||(qe={}));const Xe=u.default.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,Ge=u.default(Xe).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,Ye=u.default(j).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${I.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Ue=u.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--rjghyf"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Ke=u.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;}`,_e=u.default(Xe).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;`,Je={duration:400,side:qe.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Qe=({children:t,text:n,content:a,config:l,reversed:i=!1,className:r,withTriangle:d,initialShouldShow:s=!1,useReactPortal:u=!0})=>{const m=!!n&&n.trim().length>0,p=Object.assign(Object.assign({},Je),l),{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:z}=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:I.layers.tooltip}),j=w&&(a||m)&&c.default.createElement(Ke,Object.assign({className:y.tip,ref:S,duration:g,triangleOffsetSize:b,style:B},z.popper,{role:"tooltip"}),c.default.createElement(_e,{className:y.wrap,tipMinWidth:v,tipMaxWidth:x},null!=a?a:c.default.createElement(Ye,null,n)),d&&c.default.createElement(Ue,{id:"veeqo-components-triangle",className:y.triangle}));return c.default.createElement(Xe,{className:y.container},u?f.default.createPortal(j,document.body):j,c.default.createElement(Ge,{ref:$,className:y.hoverable,onMouseEnter:L,onMouseLeave:F},t))},et=u.default(h).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:${z.bodySmall.fontFamily};font-weight:${z.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${S.base};height:${S.base};}`,tt=u.default(et).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${x.secondary.blue.base};color:${x.secondary.blue.base};`,nt=u.default(et).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};color:${x.secondary.blue.base};`,ot=u.default(et).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${x.secondary.yellow.base};background-color:${x.secondary.yellow.lightest};color:${x.secondary.orange.dark};`,at=e=>e.filter(Boolean).join(" "),lt={default:tt,primary:nt,warning:ot},it=u.default(h).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"};`,rt=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,dt=u.default(h).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,st=u.default(dt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${S.md};height:${S.md};color:${({accentColor:e})=>e};}`,ct=u.default(h).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,ut=u.default(dt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,mt=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,ft={help:x.secondary.blue.base,info:x.neutral.ink.base,error:x.secondary.red.base,success:x.secondary.green.base},pt=u.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${z.body.fontFamily};font-weight:${z.body.fontWeight};font-size:${z.body.fontSize};line-height:${z.body.lineHeight};`,gt=u.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;}`,ht=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),bt=({children:e,title:t,LinkComponent:n,href:o})=>n?c.default.createElement(gt,{className:"breadcrumb"},c.default.createElement(n,{href:o},t),e):c.default.createElement(gt,{className:"breadcrumb"},t,e),vt=()=>c.default.createElement(ht,{className:"separator",width:S.base,height:S.base}),xt=({children:e,href:t})=>c.default.createElement("a",{href:t},e),yt=({children:e})=>c.default.createElement("span",null,e);var wt;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(wt||(wt={}));const Ct=u.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:a="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&wt[n],i=o&&wt[o],s=I.sizes[a],r="column"):(l=o&&wt[o],i=n&&wt[n],c=I.sizes[a],r="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;Ct.displayName="Stack";const Et={top:"flex-start",center:"center"},$t=u.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${I.sizes.base};}`,kt=u.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Et[e.align]};width:24px;height:24px;`,St=u.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Nt=u.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${I.sizes.sm};}`,zt=u.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.sizes.md};color:${I.text.body.color};`,It=u.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,Lt=u.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};`,Ft=u.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Bt=u.default(Ft).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${I.colors.neutral.grey.dark};border-radius:${I.radius.md};padding:${I.sizes.base} 0.75rem;&:hover{border-color:${I.colors.secondary.blue.base};}& ${zt}{font-weight:${I.text.bodyBold.fontWeight};}`,jt=u.default(Qe).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Mt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Dt=({id:e,label:t,hint:n,tooltip:o,error:a,bordered:l,Badge:i,Accessory:r,Footer:d,children:s,disabled:u=!1})=>{const m=c.default.createElement($t,null,c.default.createElement(kt,{align:r?"center":"top"},s),r&&c.default.createElement(St,null,r),t||n||a||i||d?c.default.createElement(Nt,null,c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&c.default.createElement(zt,null,t),o&&c.default.createElement(jt,{text:o},c.default.createElement(Mt,{name:"help",width:I.sizes.base,color:I.colors.neutral.ink.lightest}))),n&&c.default.createElement(It,null,n),a&&c.default.createElement(Lt,null,a),d):null);return l?c.default.createElement(Bt,{disabled:u,htmlFor:e},m):c.default.createElement(Ft,{disabled:u,htmlFor:e},m)},{colors:Rt,sizes:Ht,radius:Ot}=I,Tt=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Rt.neutral.ink.lightest};border-radius:${Ot.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Rt.secondary.blue.base};border-color:${Rt.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:${Ht[4]};background-position:center;}&:hover{border-color:${Rt.secondary.blue.base};}&:active{border-color:${Rt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Rt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Rt.secondary.blue.base};border-color:${Rt.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:${Ht[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Rt.neutral.grey.base};border-color:${Rt.neutral.grey.base};color:${Rt.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>");}`,Wt=t=>{var{checked:n,indeterminate:o,value:a,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,u=Y(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const m=e.useMemo((()=>V("checkbox")),[]),f=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,a)}),[s,a]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===o)}),[o]),c.default.createElement(Dt,Object.assign({id:m,disabled:i},u),c.default.createElement(Tt,{ref:f,id:m,type:"checkbox",checked:n,value:a,name:l,disabled:i,"aria-label":r,className:d,onChange:p}))},At=u.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;}`,Pt=e.forwardRef(((t,n)=>{var{checked:o,value:a,name:l,disabled:i,onChange:r,id:d}=t,s=Y(t,["checked","value","name","disabled","onChange","id"]);const u=e.useCallback((e=>{r(e.currentTarget.checked,a)}),[r,a]),m=null!=d?d:V("radio");return c.default.createElement(Dt,Object.assign({id:m,disabled:i},s),c.default.createElement(At,{id:m,type:"radio",checked:o,value:a,name:l,disabled:i,onChange:u,ref:n}))})),Vt=u.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Zt=u.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-style:${I.text.inputLabel.fontStyle};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};text-decoration:${I.text.inputLabel.textDecoration};color:${I.text.inputLabel.color};`;class qt extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let a=[];a=t?[...n,e]:n.filter((t=>t!==e)),o(a)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:a,bordered:l}=this.props,i=e?Wt:Pt;return c.default.createElement(Vt,{disabled:a},o&&c.default.createElement(Zt,null,o),t.map((e=>c.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Xt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Gt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Yt={width:S.base,height:S.base},Ut=u.default(ue).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${S.base};width:${S.base};top:unset;}`;function Kt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function _t(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${_t(e.min,"max-content")}, ${_t(e.max)})`;default:return t||"1fr"}}function Jt({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:a,stripingMode:l}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>_t(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?f:m}\n `}var Qt;!function(e){e.ascending="ascending",e.descending="descending"}(Qt||(Qt={}));const en=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),tn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),nn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),on=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===Qt.ascending?c.default.createElement(tn,{color:I.colors.neutral.ink.dark,size:n}):c.default.createElement(nn,{color:I.colors.neutral.ink.dark,size:n}):c.default.createElement(en,{size:n});function an(t,n){const[o,a]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));a(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=p.default(l,50),t=new m.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function ln(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),a=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...a,...o],pinnedLeft:n,pinnedRight:o}}function rn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},a=t=>{if(!n)return;const a=t.clientX-o.x;n.scrollLeft=o.left-a,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function dn(t){const[n,o]=e.useState("start"),a=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:a}=t.current;o(a<e?"none":0!==n?n+e>=a?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",a),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",a)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=p.default(a,50),n=new m.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const sn="56px",cn=u.default.th.withConfig({displayName:"vui--Header",componentId:"vui--1vat8up"})`height:${sn};display:flex;align-items:center;justify-content:${({align:e="left"})=>Kt(e)};background-color:white;padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};border-bottom:1px solid ${I.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function un(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:a}=e,l=Y(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===a?c.default.createElement(cn,Object.assign({},l)):c.default.createElement(cn,Object.assign({},l),c.default.createElement(Wt,{checked:t,indeterminate:n,onChange:o}))}const mn=u.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--737x0o"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Kt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};color:${I.text.bodySmall.color};font-family:${I.text.bodySmall.fontFamily};font-size:${I.text.bodySmall.fontSize};font-style:${I.text.bodySmall.fontStyle};font-weight:${I.text.bodySmall.fontWeight};line-height:${I.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${I.colors.secondary.blue.base};background-color:${I.colors.neutral.grey.lightest};}`;function fn(e){var{selected:t,rowId:n,onChange:o,selectionMode:a,disabled:l}=e,i=Y(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===a?c.default.createElement(mn,Object.assign({},i),c.default.createElement(Pt,{value:n,checked:t,disabled:l,onChange:o})):c.default.createElement(mn,Object.assign({},i),c.default.createElement(Wt,{value:n,checked:t,disabled:l,onChange:o}))}const pn=[[],()=>{}];function gn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[a,l]=t||pn,i=()=>{a.length!==n.length?l(n):l([])};return{selectionEnabled:o,selectedRowIds:a,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>c.default.createElement(un,Object.assign({},o,{selected:a.length===n.length,indeterminate:a.length>0&&a.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,a)=>c.default.createElement(fn,Object.assign({},n,{rowId:t.id,selected:a.selected,onChange:o.setSelected,selectionMode:e,disabled:a.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(a.includes(n))return;const e=[...a,n];l(e)}else{const e=a.findIndex((e=>e===n));if(e<0)return;const t=[...a];t.splice(e,1),l(t)}}}}const hn=u.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--i7g1t1"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${I.colors.neutral.ink.lightest};`,bn=u.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1mybdy1"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${I.text.headingTable.color};font-family:${I.text.headingTable.fontFamily};font-size:${I.text.headingTable.fontSize};font-style:${I.text.headingTable.fontStyle};font-weight:${I.text.headingTable.fontWeight};line-height:${I.text.headingTable.lineHeight};`,vn=u.default(bn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--ccxpgr"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${hn}{background-color:${I.colors.neutral.grey.light};color:${I.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${I.colors.secondary.blue.light};}`;function xn({column:e,sortState:t,onChangeSort:n}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const a=e.sortable?vn:bn,l=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===Qt.ascending;let a=Qt.ascending;return n&&o&&(a=Qt.descending),{columnId:t,direction:a}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return c.default.createElement(cn,Object.assign({},o),c.default.createElement(Qe,{text:e.tooltip},c.default.createElement(a,Object.assign({},l),e.icon&&e.icon,e.title&&c.default.createElement("span",null,e.title),e.sortable&&c.default.createElement(hn,null,c.default.createElement(on,{sortState:t,columnId:e.id,size:5})))))}const yn=I.colors.neutral.grey.base,wn=I.colors.neutral.grey.dark,Cn=u.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1vc6lzf"})`height:20px;width:75%;border-radius:${I.radius.base};background:${yn};background-image:linear-gradient(\n to right,\n ${yn} 0%,\n ${wn} 20%,\n ${yn} 40%,\n ${yn} 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 En=u.default.div.withConfig({displayName:"vui--Container",componentId:"vui--xy0vyq"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${sn};background-color:white;`,$n=u.default.div.withConfig({displayName:"vui--Content",componentId:"vui--vgmrdc"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${I.colors.neutral.grey.base};& > *{flex:1;}`;function kn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:a}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=o.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},u=i?s:{position:"absolute",top:0,left:0,right:0};return c.default.createElement(En,{style:u},xn({column:t}),c.default.createElement($n,null,a))}const Sn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Nn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const In=u.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--ejaprg"})`padding-top:${I.sizes.lg};padding-bottom:${I.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${I.sizes.md};`,Ln=u.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--ni4ybh"})`padding:${I.sizes.md};background-color:${I.colors.neutral.grey.light};border-radius:${I.radius.full};`,Fn=u.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--1r0ir4h"})`white-space:nowrap;`,Bn=u.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--1cif9m3"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${I.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,jn=u.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1ruib9d"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Mn=u.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--7usb8e"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${I.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Dn=u.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--1qn89sr"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Rn={full:`border-width: 1px; border-radius: ${I.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Hn=u.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1xqen7k"})`width:100%;position:relative;border-style:solid;border-color:${I.colors.neutral.grey.dark};${({borderMode:e="full"})=>Rn[e]} &,& *{box-sizing:border-box;}`;function On({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:a,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,u]=e.useState({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=o.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};u(n)},g=()=>{var e;if(!o.current)return;const t=o.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&o.current&&f()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=p.default(f,33),t=new m.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{g()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",g),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",g)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:sn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${I.colors.neutral.grey.base}`}),b=l+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return c.default.createElement("div",{style:h,ref:i},c.default.createElement(Mn,{css:b},c.default.createElement("thead",null,t)))}const Tn=(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}),Wn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"}),c.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),c.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),An={icon:c.default.createElement(Wn,{width:48,height:48}),heading:"No results"},Pn=()=>{},Vn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:a=An,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:u,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);rn(v);const w=s.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=gn({selectionMode:m,selectionState:f,enabledRowIds:w}),S={setSelected:k||Pn,setExpanded:p||Pn},N=[$,...o],z=C?N:o,I=an(x,v),{visible:L,pinnedLeft:F,pinnedRight:B}=ln(z),{scrollPosition:M}=dn(v),D=Jt({pinnedLeft:F,pinnedRight:B,cellWidths:I,scrollPosition:M,visible:L,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return c.default.createElement(Hn,{borderMode:n},c.default.createElement(jn,{ref:v},c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d}))))),c.default.createElement("tbody",{role:"rowgroup"},e.map((e=>c.default.createElement(Bn,{key:e.id},L.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 c.default.createElement(mn,Object.assign({},n),c.default.createElement(Cn,null))}(e,t))))))))))}if(0===s.length)return c.default.createElement(Hn,{borderMode:n},c.default.createElement(jn,{ref:v},c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d}))))),c.default.createElement("tbody",{role:"rowgroup"},c.default.createElement(In,{columnCount:L.length},c.default.createElement(Ln,null,a.icon),c.default.createElement(Ct,{spacing:"sm",alignX:"center"},c.default.createElement(j,{variant:"headingMedium"},a.heading),a.subheading&&c.default.createElement(j,{variant:"subheadingMedium"},a.subheading)))))));const R=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Tn(e.id,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:u});return c.default.createElement(Bn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),L.map((t=>function(e,t,n,o){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,a,n,o)}(e,t,S,o))))},H=(e,t)=>{var n,o;const a=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=Tn(t,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:u});return c.default.createElement(Bn,{role:"row",key:e.id,className:a},L.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):c.default.createElement(mn,Object.assign({},o))}(e,t,i))))},O=e=>{var t;const n=null==l?void 0:l.includes(e.id);return c.default.createElement("tbody",{role:"rowgroup",key:e.id},R(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},T=c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d})))),W=o.some((e=>!!e.renderFooter)),A=E.length>0&&!!t;return c.default.createElement(Hn,{borderMode:n},A&&c.default.createElement(kn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),c.default.createElement(jn,{ref:v},b&&c.default.createElement(On,{tableCss:D,intersectionTargetRef:y,containerRef:v,cellWidths:I},T),c.default.createElement("div",{ref:y,style:{height:0}}),c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},T),(()=>{const e=!!l;return e&&"nested"===h?s.map(O):e?c.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[R(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):c.default.createElement("tbody",{role:"rowgroup"},s.map(R))})(),W&&c.default.createElement("tfoot",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.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):c.default.createElement(mn,Object.assign({},t))}({column:e}))))))))};Vn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Vn.Cell=mn,Vn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[a,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),u=n.map((e=>e.map((e=>s[e])))),m=(e,n)=>{const a=u[e].map((e=>e.id)),l=[...t];a.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),o(l)};return c.default.createElement(c.default.Fragment,null,c.default.createElement(ue,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&c.default.createElement(G,{anchorElement:a,onShouldClose:()=>r(!1)},c.default.createElement(Se,{style:{width:600}},c.default.createElement(Ct,{alignX:"stretch",spacing:"sm"},u.map(((e,t)=>c.default.createElement(Ct,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(zn,null)}),c.default.createElement(Ct,{spacing:"sm",style:{flex:1}},e.map((e=>c.default.createElement("div",{key:e.id},e.title)))),c.default.createElement(Ct,{direction:"horizontal",spacing:"sm"},e[0].hidden?c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(Nn,null),onClick:()=>m(t,!1),style:{color:I.colors.neutral.ink.lightest}}):c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(Sn,null),onClick:()=>m(t,!0)})))))))))},Vn.SelectionCell=fn,Vn.SelectionHeader=un,Vn.Header=cn,Vn.Truncate=Dn,Vn.NoWrap=Fn;const Zn=u.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${I.sizes.base};}`,qn=u.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${I.sizes.xs};}`,Xn=u.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${I.sizes.base};}`,Gn=u.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${I.sizes.xs};}`,Yn=u.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${I.text.bodyBold.fontFamily};font-size:${I.text.bodyBold.fontSize};font-weight:${I.text.bodyBold.fontWeight};line-height:${I.text.bodyBold.lineHeight};color:${I.text.bodyBold.color};`,Un=u.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.text.body.lineHeight};color:${I.text.body.color};`,{sizes:Kn,colors:_n}=I,Jn=u.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Kn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Kn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Qn=u.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Kn.md};overflow-x:hidden;background-color:${_n.neutral.grey.lightest};`,eo=u.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 to;!function(e){e.base="base",e.sm="sm"}(to||(to={}));const no=u.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};color:${I.text.inputLabel.color};`,oo=u.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,ao=u.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,lo=u.default(Ct).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,io=u.default(Qe).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,ro=t=>n=>{var{label:o,hint:a,error:l,tooltip:i}=n,r=Y(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>V(t.name)),[]);return o?c.default.createElement(lo,{spacing:"sm",alignX:"stretch"},c.default.createElement("div",null,c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"sm"},c.default.createElement(no,{htmlFor:d},o),i&&c.default.createElement(io,{text:i},c.default.createElement(Mt,{width:I.sizes.base,height:I.sizes.base,color:I.colors.neutral.ink.light}))),a&&c.default.createElement(oo,null,a)),c.default.createElement(t,Object.assign({id:d,hasError:!!l},r)),l&&c.default.createElement(ao,null,l)):c.default.createElement(t,Object.assign({hasError:!!l},r))},so=({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 "}`,co=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${I.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${so} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,uo=u.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;${so}`,mo=/^-?[0-9]*\.?[0-9]+$/,fo=ro(e.forwardRef(((t,n)=>{var{id:o,className:a,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:u,onChange:m,pattern:f,placeholder:p,rows:g="3",size:h=to.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Y(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(mo).test(t)&&m(t)}),[m,v]),E=null!=o?o:V("textfield");return"text"===v&&s?c.default.createElement(uo,Object.assign({className:a,disabled:l,hasError:i,id:E,name:u,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):c.default.createElement(co,Object.assign({className:a,disabled:l,hasError:i,id:E,inputSize:h,max:r,min:d,name:u,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));fo.displayName="TextField";const po=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,go=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,ho=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${I.colors.neutral.ink.lightest};}`,bo=u.default(ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${I.colors.neutral.ink.lightest};`;u.default(j).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,u.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,u.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`;const vo=ro((e=>{var{size:t=to.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:a,className:l,height:i,width:r,length:d,unit:s}=e,u=Y(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return c.default.createElement(po,{className:l},c.default.createElement(go,null,c.default.createElement(ho,Object.assign({onChange:a,size:t,name:"length",type:"number",placeholder:"L",value:d},u)),c.default.createElement(ge,{height:I.sizes.base,width:I.sizes.base}),c.default.createElement(ho,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r},u)),c.default.createElement(ge,{height:I.sizes.base,width:I.sizes.base}),c.default.createElement(eo,null,c.default.createElement(ho,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i},u)),c.default.createElement(bo,{size:t},s))))}));vo.displayName="DimensionsInput";const xo=(t,n)=>{const o=e.useRef(null),a=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",a),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",a)}}),[l,a,t]),o};function yo(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),a=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:a}}const wo=c.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const Co=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},Eo=t=>{const[n,o]=e.useState(!1),[a,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!a,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:a}=e.target;l(o-n-a<=0)}}},$o=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${x.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${S.base};height:${S.base};}`,ko=u.default(j).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,So=u.default(ko).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,No=u.default(pe).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=u.default(ge).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Io=u.default(h).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Lo=u.default(h).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 ${x.neutral.grey.base};svg{color:${({color:e})=>e};width:${S[5]};height:${S[5]};margin-right:10px;}`,Fo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Bo=u.default(h).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?S[e]:0};`,jo=e=>c.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Mo=u.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Do=u.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Ro=u.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Ho=u.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}),To=u.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Wo="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Ao="Log in with Amazon",Po=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Vo=u.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${I.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Se.Footer} {\n box-shadow: 0px 10px 15px 0px ${I.colors.neutral.ink.dark};\n }\n `}`,Zo=e=>!!e.footerSlot,qo=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},Xo=(e,t)=>{const n=qo(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},Go={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Yo={[y.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[y.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[y.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Uo={xs:y.mobile,sm:y.mobile,base:y.tablet,lg:y.lgTablet},{breakpoints:Ko}=I,_o=u.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:${I.sizes.sm};box-shadow:${I.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Se.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Go[e]};`} ${Vo}{padding-bottom:${I.sizes.md};}${Se.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Ko.mobile} + 1px))and (max-width: ${Ko.tablet}){max-width:${({variant:e})=>Yo[Ko.tablet][e]};}@media (min-width: ${Ko.tablet})and (max-width: ${Ko.lgTablet}){max-width:${({variant:e})=>Yo[Ko.lgTablet][e]};}@media (min-width: ${Ko.lgTablet})and (max-width: ${Ko.desktop}){max-width:${({variant:e})=>Yo[Ko.desktop][e]};}@media (min-width: ${Ko.desktop}){max-width:${({variant:e})=>Yo[Ko.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Uo[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Se.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Xo(I.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Jo=c.default.forwardRef(((e,t)=>{var n=Y(e,[]);return c.default.createElement(_o,Object.assign({ref:t},n))})),{sizes:Qo,text:ea,shadows:ta}=I,{grey:na}=I.colors.neutral,oa=u.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Qo.base} ${Qo.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&ta[e]};`,aa=u.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${ea.headingXL.fontFamily};font-size:${ea.headingXL.fontSize};font-weight:${ea.headingXL.fontWeight};margin:unset;line-height:1;`,la=u.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${ea.subheadingLarge.fontFamily};font-weight:${ea.subheadingLarge.fontWeight};font-size:${ea.subheadingLarge.fontSize};line-height:${ea.subheadingLarge.lineHeight};`,ia=u.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${I.radius.base};border:${Qo.line} solid ${na.base};object-fit:cover;`,ra=u.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,da=u.default(ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};color:${I.text.link.color};&:hover{text-decoration:${I.text.link.textDecoration};}& > * + *{margin-left:${I.sizes.xs};}`,sa=u.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:${Qo.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ca=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),ua=u.default(Ct).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${I.sizes.lg};height:30px;background-color:${I.colors.neutral.grey.light};border:1px solid ${I.colors.neutral.grey.base};border-radius:${I.sizes.xs};`,ma=u.default(ue).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${I.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,fa=u.default(fo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,pa=({count:e})=>c.default.createElement(c.default.Fragment,null,c.default.createElement("div",null,c.default.createElement(j,{variant:"bodySmall","aria-hidden":!0},"/")),c.default.createElement(ua,{alignX:"center",alignY:"center","aria-hidden":!0},c.default.createElement(j,{variant:"bodySmall"},e))),ga=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[a,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(a||l(`${t}`),a===`${t}`)return;const e=parseInt(a,10);i(e)&&o(e)};return{pageInputValue:a,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},ha=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),ba=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),va=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],xa=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ya=u.default(Pe).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,wa=u.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${x.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Ca=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Ea=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${x.secondary.blue.base};background:${x.neutral.grey.lightest};}`,$a=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return c.default.createElement(Ca,{onClick:o},c.default.createElement(Ea,{variant:"bodySmall"},t.label))},ka=t=>{const{handleRangeListChange:n,paginationRange:o=va}=t;return c.default.createElement(c.default.Fragment,null,o.map((t=>c.default.createElement(e.Fragment,{key:t.label},c.default.createElement($a,{item:t,handleRangeListChange:n})))))};class Sa 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=va[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=va,reversedDropdown:n}=this.props,{shouldShowDropdown:o,dropdownValue:a}=this.state;return c.default.createElement(xa,{className:e},c.default.createElement(ya,{cta:c.default.createElement(wa,{onClick:this.toggleShouldShow},c.default.createElement(j,{variant:"bodySmall"},a.label),c.default.createElement(se,{color:I.colors.neutral.ink.base})),shouldShowDropdown:o,onClickAway:this.toggleShouldShow,reversed:n},c.default.createElement(ka,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const Na=u.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;}`,za=u.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;}`,Ia=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>c.default.createElement(Na,{size:o},c.default.createElement(za,{type:"button",onClick:e,disabled:n},c.default.createElement(P,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base})),c.default.createElement(za,{type:"button",onClick:t,disabled:n},c.default.createElement(pe,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base}))),La=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${I.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${I.colors.neutral.ink.lightest};}`,Fa=u.default(h).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${I.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?I.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Ba=u.default(j).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ja=u.default(eo).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 ${I.colors.secondary.red.light};\n\n > * {\n border-top-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${I.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${I.colors.secondary.red.base};\n border-right-color: ${I.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${I.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}}`;const Ma=ro((e=>{var{className:t="",hasError:n,currency:o,disabled:a=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=to.base}=e,u=Y(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 c.default.createElement(ja,{className:t,hasError:n},c.default.createElement(Fa,{disabled:a,size:s},c.default.createElement(Ba,{variant:"hintText"},o)),c.default.createElement(La,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(l),"ArrowDown"===t&&f(l)},disabled:a,size:s},u)),c.default.createElement(Ia,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:a,size:s}))}));Ma.displayName="PriceInput";const Da=u.default(fo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ra=u.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Ha=u.default(h).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 & ${Da} {\n ${t}\n }\n\n & ${Ra} {\n ${n}\n }\n `}}`,Oa=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Ta=I.colors.neutral.grey.lightest,Wa=I.colors.neutral.grey.dark,Aa=I.colors.secondary.blue.dark,Pa=u.default(h).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Ta};border-color:${Wa};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Aa};border-color:${Aa};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${I.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Va=u.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;}`,Za=ro(e.forwardRef(((t,n)=>{var{className:o,options:a,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,u=Y(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return c.default.createElement(Va,Object.assign({className:o,sizeVariant:r,value:null!=l?l:void 0,onChange:m,disabled:d,hasError:s,ref:n},u),!!a&&a.map((e=>c.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Za.displayName="Select";const{blue:qa}=x.secondary,{grey:Xa}=x.neutral,Ga=u.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Ya=u.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${qa.lightest};}`,Ua=u.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Ka=u.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:${z.bodySmall.fontFamily};font-size:${z.bodySmall.fontSize};font-weight:${z.bodySmall.fontWeight};color:${z.bodySmall.color};line-height:${S.base};& > *{vertical-align:middle;}`,_a=u.default(Ka).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Xa.dark};font-family:${z.bodySmallBold.fontFamily};font-size:${z.bodySmallBold.fontSize};font-weight:${z.bodySmallBold.fontWeight};color:${z.bodySmallBold.color};`,Ja=u.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Ya} tr:nth-child(even) td {\n background-color: ${Xa.lightest};\n }\n `}`,Qa=({striped:e=!0,className:t,children:n})=>c.default.createElement(Ja,{striped:e,className:t},n);Qa.Header=Ga,Qa.Body=Ya,Qa.Row=Ua,Qa.HeaderCell=_a,Qa.Cell=Ka;const el=u.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,tl=u.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${I.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,nl=u.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 ${I.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${I.colors.secondary.blue.light};}`,ol=u.default(tl).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${I.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,al=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}),ll=u.default(h).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:x.neutral.ink.base};\n background-color: ${null!=e?e:x.neutral.grey.base};\n `}`,il=u.default(Ct).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,rl=u.default(Ct).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${I.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${I.shadows.lg};border-radius:${I.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,dl=u.default(h).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${I.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${S.md};height:${S.md};}`,sl=u.default(Ct).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,cl=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,ul={info:{accentColor:x.brand.blue.base,icon:c.default.createElement(Wn,null)},success:{accentColor:x.secondary.green.base,icon:c.default.createElement(Xt,null)},error:{accentColor:x.secondary.red.base,icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:x.secondary.purple.base,icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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)}},ml=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),fl=({className:e,e2eClassName:t,type:n,iconSlot:o,text:a,last:l,minWidth:i,cta:r,onClose:d})=>{const s=ml(e),u=ml(t);return c.default.createElement(rl,{className:at([null==s?void 0:s.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},c.default.createElement(dl,{color:ul[n].accentColor,className:at([s.icon,u.icon])},null!=o?o:ul[n].icon),c.default.createElement(sl,{direction:"horizontal",alignY:"center",alignX:"between"},c.default.createElement(cl,{variant:"body"},a),r),c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(ge,{color:"white"}),onClick:d,"aria-label":"Close"}))},pl=u.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?I.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,gl=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${pl}{box-shadow:0 0 0 4px ${I.colors.brand.blue.light};}&:checked + ${pl}{background-color:#0079d1;}&:disabled + ${pl}{background-color:${I.colors.neutral.grey.base};}&:checked:disabled + ${pl}{background-color:${I.colors.secondary.blue.light};}`,hl=u.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;}${pl}: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"};}${gl}:checked + ${pl}{&: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"});}}`,bl=u.default(h).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,vl=e.forwardRef((({id:e,className:t,name:n,switched:o,small:a,onClick:l=(()=>{}),disabled:i,ariaLabel:r},d)=>c.default.createElement(bl,{className:t,disabled:i},c.default.createElement(hl,{small:a,disabled:i,role:"switch"},c.default.createElement(gl,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:l,disabled:i,ref:d}),c.default.createElement(pl,{switched:o,disabled:i}))))),xl=u.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:${I.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",a="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",a="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${a};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,yl="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",wl=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${yl} display:${e=>e.shouldShow?"initial":"none"};z-index:${I.layers.modal};`,Cl=u.default(h).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${yl} background-color:rgba(55,66,77,0.5);`,El=u.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,$l=({usePortal:e,children:t})=>c.default.createElement(c.default.Fragment,null,e?c.default.createElement(Z,null,t):t),kl=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>c.default.createElement($l,{usePortal:o},c.default.createElement(wl,{className:at([`${e}-container`,e]),shouldShow:n},c.default.createElement(Cl,null),c.default.createElement(g.default,{isActive:n},c.default.createElement(El,{className:at([`${e}-wrap`,e])},t)))),Sl=u.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Nl=u.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,zl=u.default(ue).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Il;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Il||(Il={}));const Ll=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Fl=u.default(j).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Bl=u.default(h).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 ${j} {\n color: ${null!=t?t:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,jl=u.default(j).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 & > ${Fl} {\n color: #fff;\n }\n `}`,Ml={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},Dl=u.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,Rl=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Hl=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}),Ol=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Tl=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Wl=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Al=u.default(ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${I.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${I.colors.secondary.red.base};\n `};`,Pl=ro((e=>{var{size:t=to.base,hasError:n,className:o}=e,a=Y(e,["size","hasError","className"]);return c.default.createElement(Ol,{className:o},c.default.createElement(Tl,null,"g"===a.weightUnit&&c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangeGram,name:"gram",type:"number",value:a.gram,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(a)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangePound,name:"ounce",type:"number",value:a.pound,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"lb")),c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangeOunce,name:"pound",type:"number",value:a.ounce,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"oz")))))}));Pl.displayName="WeightInput",Pl.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:a,iconSlot:l,glyphColor:i=x.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[u,m]=e.useState(!!s);return c.default.createElement(A,{open:!!s,className:n},c.default.createElement(H,{onClick:()=>m(!u)},c.default.createElement(O,null,c.default.createElement(D,{glyphColor:i},l,c.default.createElement(j,{variant:"body"},a)),c.default.createElement(R,null,c.default.createElement(t.motion.span,{animate:{rotate:u?180:0}},c.default.createElement(P,{name:u?"downArrow":"upArrow"})))),!!d&&c.default.createElement(T,{variant:"hintText"},d)),u&&c.default.createElement(W,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=De,exports.Anchor=({children:e,className:t,text:n,href:o,target:a})=>c.default.createElement(Re,{href:o,target:a,className:t},e||n),exports.AnimatedDropdown=Pe,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=I.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const a=t.toUpperCase().match(/\b(\w)/g);return c.default.createElement(Ve,{width:e,bgColor:n,textColor:o,className:"avatar"},null==a?void 0:a.slice(0,2).map(((e,t)=>c.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:a,e2eClassName:l,children:i})=>{const r=lt[e];return c.default.createElement(Qe,{text:o},c.default.createElement(r,{className:at([a,l]),hideBorder:t},n&&n,i&&c.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:a,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=Y(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=ft[t];return c.default.createElement(it,Object.assign({accentColor:u,className:l,backgroundColor:d},s),c.default.createElement(rt,null,o&&c.default.createElement(st,{style:{marginRight:S.md},accentColor:u},o),r?c.default.createElement(ct,null,r):c.default.createElement(c.default.Fragment,null,c.default.createElement(ut,null,i||c.default.createElement(mt,{variant:"headingSmall"},n)),c.default.createElement(dt,null,a&&c.default.createElement(ue,{variant:"flat","aria-label":"Close",icon:c.default.createElement(ge,null),onClick:a})))))},exports.BaseContainer=h,exports.Breadcrumbs=({items:e,Separator:t=c.default.createElement(vt,null),LinkComponent:n=xt})=>c.default.createElement(pt,{className:"breadcrumbs"},e.map(((o,a)=>c.default.createElement(bt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:a!==e.length-1?n:yt},e.length!==a+1&&t)))),exports.Button=ue,exports.Card=Se,exports.CardHeader=he,exports.Checkbox=Wt,exports.Choice=Dt,exports.ChoiceList=qt,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[a,l]=c.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),l(!0),setTimeout((()=>l(!1)),2500)}),[o,n]);return c.default.createElement(Qe,{text:a?"Copied!":"Copy to clipboard"},c.default.createElement(Ut,{variant:"flat",size:"sm",className:t,"aria-label":`${a?"Copied":"Copy"} "${n}" to clipboard`,icon:a?c.default.createElement(Xt,Object.assign({color:x.secondary.green.base},Yt)):c.default.createElement(Gt,Object.assign({color:x.secondary.blue.base},Yt)),onClick:i}))},exports.DataTableExp=Vn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>c.default.createElement(Un,{key:e},e))):c.default.createElement(Un,null,e);return c.default.createElement(Zn,null,e.map((e=>t?c.default.createElement(Xn,{key:e.term},c.default.createElement(Yn,null,e.term),c.default.createElement(Gn,null,n(e.description))):c.default.createElement(qn,{key:e.term},c.default.createElement(Yn,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,a]=e.useState(!0);return c.default.createElement("main",null,t((()=>a(!o)),o),c.default.createElement(Qn,null,c.default.createElement(Jn,{showSidebar:o},n)))},exports.DimensionsInput=vo,exports.FilterTag=({className:t,e2eClassName:n,label:o,text:a,iconSlot:l,fill:i=x.secondary.blue.base,content:r,footer:d,onClickAway:s,onClick:u,shouldCloseOnClickAway:m=!0})=>{const f=Fo(t),p=Fo(n),{shouldShowDropdown:g,toggleShouldShowDropdown:h,closeDropdown:b}=yo(),v=e.useCallback((e=>{h(),s&&g&&s(e)}),[h,s,g]),y=e.useCallback((e=>{s&&s(e,b),m&&b()}),[b,s,m]);return!r?c.default.createElement($o,{className:at([null==f?void 0:f.container,null==p?void 0:p.container]),onClick:u},o&&c.default.createElement(So,{variant:"subheadingSmallBold"},`${o}:`),c.default.createElement(j,null,a),c.default.createElement(zo,{className:at([null==f?void 0:f.cross,null==p?void 0:p.cross]),name:"cross",size:"base",color:x.neutral.ink.base})):c.default.createElement(Pe,{className:f.filterTagDropdown,shouldShowDropdown:g,onClickAway:y,cta:c.default.createElement($o,{className:f.container,onClick:v},o&&c.default.createElement(So,{variant:"subheadingSmallBold"},`${o}:`),c.default.createElement(j,null,a),c.default.createElement(No,{color:x.neutral.ink.base,name:"downArrow",shouldShow:g}))},c.default.createElement(Io,null,c.default.createElement(Lo,{color:i},l,c.default.createElement(j,{variant:"bodyBold"},o)),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),a())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function a(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function l(e){e.metaKey||e.altKey||e.ctrlKey||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),a()}}),[o]),c.default.createElement(wo.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Bo,exports.Image=({src:t,alt:n="",className:a,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:u,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Oo(a),x=Oo(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=c.default.useState(null),[S,N]=c.default.useState(null),{styles:z,attributes:I}=o.usePopper($,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),L=e.useCallback((()=>f?w(!0):{}),[f]),F=e.useCallback((()=>f?w(!1):{}),[f]),B=!C.isLoaded||C.isError;return c.default.createElement(Mo,{className:at([null==v?void 0:v.container,null==x?void 0:x.container,a])},c.default.createElement(Do,{src:t,alt:n,className:at([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:L,onMouseLeave:F,style:B?{display:"none"}:{},ref:k}),!b&&B&&(p||c.default.createElement(jo,{className:at([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(c.default.createElement(Ro,Object.assign({ref:N,style:z.popper},I.popper,{className:at([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),c.default.createElement(Ho,{src:t,alt:"",width:s,height:u})),document.body))},exports.InputGroup=eo,exports.Loader=J,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Wo);return c.default.createElement(To,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Wo)},"aria-label":Ao},t),c.default.createElement("img",{src:n,alt:Ao}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:a=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[u,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}=Eo(u),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return c.default.createElement(t.AnimatePresence,null,o&&c.default.createElement("div",{"data-testid":"dialog-wrapper"},c.default.createElement(Po,null),c.default.createElement(Jo,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},c.default.createElement(Se.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:c.default.createElement(he,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},a&&{onClickClose:g})),c.default.createElement(Vo,{onScroll:p,ref:m,isScrollable:f,fullBleed:l},d),Zo(n)&&n.footerSlot,!Zo(n)&&(n.leftActions||n.rightActions)&&c.default.createElement(Se.Footer,null,c.default.createElement(Ct,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&c.default.createElement(Ct,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return c.default.createElement(ue,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&c.default.createElement(Ct,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return c.default.createElement(ue,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:a,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:u})=>{const m=o&&c.default.createElement(De,{buttonVariant:a?"default":"primary",title:"Actions",sections:o}),f=null==a?void 0:a.map((e=>c.default.createElement(ue,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=l&&c.default.createElement(ue,{onClick:l.onClick,icon:c.default.createElement(ca,null),variant:"link"},l.title),g=u&&c.default.createElement(Ct,{direction:"horizontal",alignX:"end"},c.default.createElement(da,{onClick:u},c.default.createElement("span",null,"Toggle sidebar"),c.default.createElement(ht,{width:S.md})));return c.default.createElement(oa,{shadow:r},c.default.createElement(Ct,null,p,c.default.createElement(sa,null,c.default.createElement(Ct,{direction:"horizontal",spacing:"md"},n&&c.default.createElement(ia,{src:n,alt:"",width:"72",height:"72"}),c.default.createElement("div",{style:{flex:1}},c.default.createElement(Ct,{alignX:"stretch"},c.default.createElement(aa,null,e),i,t&&c.default.createElement(la,null,t)))),c.default.createElement(ra,null,c.default.createElement(Ct,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,d&&c.default.createElement(ue,{icon:c.default.createElement(ca,null),onClick:d}),s&&c.default.createElement(ue,{icon:c.default.createElement(ht,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:a})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:u}=ga({currentPage:n,totalPagesCount:o,handleChangePage:a});return c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},c.default.createElement(ma,{onClick:()=>{1!==n&&a(1)},icon:c.default.createElement(ha,null),size:"sm","aria-label":"go to first page"}),c.default.createElement(ma,{onClick:r,icon:c.default.createElement(ca,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),c.default.createElement("form",{onSubmit:d},c.default.createElement(fa,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:to.sm,type:"number",value:l,min:"1",max:`${o}`,onChange:s,onBlur:u})),c.default.createElement(pa,{count:o}),c.default.createElement(ma,{onClick:i,icon:c.default.createElement(ht,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),c.default.createElement(ma,{onClick:()=>{n!==o&&a(o)},icon:c.default.createElement(ba,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=Sa,exports.Popover=G,exports.Popup=kl,exports.Portal=Z,exports.PriceInput=Ma,exports.Radio=Pt,exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:u,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 c.default.createElement(Ha,{className:f,iconPosition:b?"left":"right"},c.default.createElement(Da,{size:x,type:e,value:s,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:m,name:p,disabled:t,error:u,autoComplete:v}),c.default.createElement(Ra,null,g?c.default.createElement(J,{height:24,color:h||I.colors.secondary.blue.base}):y&&n?c.default.createElement(ue,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text"},c.default.createElement(ge,{color:h||I.colors.neutral.ink.dark})):c.default.createElement(ue,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search"},c.default.createElement(Oa,{color:h||I.colors.neutral.ink.dark,height:S.md,width:S.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>c.default.createElement(Pa,{className:n?`${n}-container`:void 0},e.map((e=>c.default.createElement(ue,{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=Za,exports.SimpleTable=Qa,exports.Slider=({id:t,value:n,min:o,max:a,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:u=(()=>{})})=>{const[m,f]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=al(r),y=al(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*(a-o)+o;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>a&&(s=a),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let 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,a,o,i,l,n]),C=e.useCallback((()=>{f(!1),u()}),[u]),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,a=v.current;return null==o||o.addEventListener("mousedown",e),null==a||a.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==a||a.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let l;return l=at("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]),c.default.createElement(nl,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(a-o),n=100*(e[1]>a?100:e[1]-o)/(a-o),l=n-t;return c.default.createElement(c.default.Fragment,null,c.default.createElement(ol,{className:at([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>a?100:n<o?0:100*(e-o)/(a-o),$(t,e)})(n),c.default.createElement(el,{className:at([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},c.default.createElement(tl,null),S)},exports.Stack=Ct,exports.Stepper=Ia,exports.Tag=ll,exports.Text=j,exports.TextField=fo,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:a="50vw",max:r=3,onClose:d})=>(e.useEffect((()=>{r&&o.length>r&&d(o[0].key)}),[o,r,d]),l.createPortal(c.default.createElement(il,{direction:"vertical",alignX:"center",spacing:4},c.default.createElement(i.TransitionGroup,{component:null},[...o].reverse().map(((e,l)=>c.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},c.default.createElement(fl,Object.assign({className:t,e2eClassName:n,minWidth:a,last:l===o.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=vl,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:a})=>c.default.createElement(xl,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>a(!t)},e),exports.Tooltip=Qe,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const a=xo(n,o);return c.default.createElement(kl,{shouldShow:n,className:`${e}-video`},c.default.createElement(Sl,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},c.default.createElement(Nl,{ref:a},c.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}),c.default.createElement(zl,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:c.default.createElement(ge,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:a,className:l,colourPalette:i=x.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:u,onDelete:m,onEdit:f,e2eClassName:p})=>{const g=Hl(l),h=Hl(p),[b,v,y]=Co(),w=e.useCallback((()=>u(t)),[t,u]),C=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=a===Il.draft,k=a===Il.saved,S=s?x.neutral.ink.dark:x.neutral.ink.base;return c.default.createElement(Ll,{className:`${at([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},c.default.createElement(Bl,{active:s,onMouseEnter:v,onMouseLeave:y,colourPalette:i,customTextColour:r},n&&c.default.createElement(Dl,null,n),c.default.createElement(j,{variant:"bodyBold"},o),d&&c.default.createElement(jl,{active:s||b,colourPalette:i,customTextColour:r},c.default.createElement(Fl,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&c.default.createElement(ge,Object.assign({},Ml,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&c.default.createElement(Rl,Object.assign({},Ml,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.WeightInput=Pl,exports.buildClassnames=at,exports.generateId=V,exports.getOpaqueHexColor=Xo,exports.hexToRgb=qo,exports.theme=I,exports.useCellWidths=an,exports.useClickOutside=xo,exports.useColumns=ln,exports.useDebounce=(t,n)=>{const[o,a]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>a(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=rn,exports.useDropdown=yo,exports.useFocusVisible=function(){const[e,t]=c.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=c.default.useContext(wo),a=c.default.useCallback((()=>{e||t(!0)}),[e]),l=c.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,c.default.useMemo((()=>({focusVisible:i,onFocus:a,onBlur:l})),[i,l,a])},exports.useHover=Co,exports.useIsOverflowing=Eo,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const a=[...t];a.splice(e,1),n(a)}}}}},exports.useScrollPosition=dn,exports.useSelection=gn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[a]=e.useState(t),[l,i]=e.useState(a[o]);return[l,e=>{const t=a.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),c.default.createElement(t,Object.assign({},n))),exports.withLabels=ro;
1
+ "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),o=require("react-popper"),a=require("resize-observer-polyfill"),l=require("react-dom"),i=require("react-transition-group"),r=require("lodash.throttle"),d=require("react-scrolllock-configurable");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(e),u=s(n),m=s(a),f=s(l),p=s(r),g=s(d);const h=u.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,b={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},v=(e,t)=>e||(t?b[t]:void 0),x={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},y={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},w={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var C,E;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(C||(C={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(E||(E={}));const $=function({increment:e,unit:t,count:n}){const o={};for(let a=0;a<=n;a++){const n=a*e;o[a]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),k={[E.none]:"0",[E.line]:"1px",[E.xs]:$[1],[E.sm]:$[2],[E.base]:$[4],[E.md]:$[6],[E.lg]:$[8],[E.xl]:$[12],[E.xxl]:$[16]},S=Object.assign(Object.assign({},k),$),N={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},z={headingXXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:N.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},I=Object.assign(Object.assign({},N),{breakpoints:y,colors:x,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:w,shadows:C,sizes:S,text:z}),{text:L,colors:F,fontFamily:B}=I,j=u.default.span.attrs((({as:e,variant:t})=>({as:v(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:${B};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?F.neutral.ink.lightest:L[e].color;return`\n font-family: ${L[e].fontFamily};\n font-style: ${L[e].fontStyle};\n font-weight: ${L[e].fontWeight};\n font-size: ${L[e].fontSize};\n line-height: ${L[e].lineHeight};\n color: ${n};\n text-decoration: ${L[e].textDecoration};\n letter-spacing: ${L[e].letterSpacing};\n `}}`,M=u.default(h).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,D=u.default(M).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${S.base};width:${S.base};color:${({glyphColor:e})=>e};}`,R=u.default(M).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,H=u.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 ${I.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${I.colors.secondary.blue.light};}`,O=u.default(h).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,T=u.default(j).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,W=u.default(t.motion(h)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,A=u.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,P=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.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"})),V=e=>`${e}-${Math.floor(1e3*Math.random())}`;class Z extends e.PureComponent{constructor(e){super(e),this.id=V("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?l.createPortal(e,this.portalNode):null}}const q=u.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--d5k10p"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,X=u.default.div.withConfig({displayName:"vui--PopoverWrapper",componentId:"vui--13ndjce"})`z-index:${({zIndex:e})=>e+1};`,G=({children:t,className:n,anchorElement:a,rootElementRef:l,placement:i="bottom",onShouldClose:r,zIndex:d=I.layers.popup})=>{const[s,u]=e.useState(null),{styles:f,attributes:p,update:g}=o.usePopper(a,s,{placement:i});return e.useEffect((()=>{if(!g||!s)return;const e=new m.default(g);return e.observe(s),()=>{e.disconnect()}}),[g,s]),e.useEffect((()=>{if(g)return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}}),[g]),c.default.createElement(Z,{rootElementRef:l},r&&c.default.createElement(q,{onClick:r,zIndex:d}),c.default.createElement(X,Object.assign({ref:u,className:n,zIndex:d,style:Object.assign({},f.popper)},p.popper),t))};function Y(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const U=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":a},c.default.createElement("defs",null,c.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},c.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),c.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),c.default.createElement("stop",{stopColor:o,offset:"100%"}))),c.default.createElement("g",{fill:"none",fillRule:"evenodd"},c.default.createElement("g",{transform:"translate(1 1)"},c.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),c.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),K=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":a},c.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),_=({width:e,height:t,className:n,color:o,label:a})=>c.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":a},c.default.createElement("circle",{cx:"15",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},c.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"105",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),J=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:a="TailSpin"})=>{switch(a){case"Grid":return c.default.createElement(K,{className:e,height:t,width:n,color:o});case"ThreeDots":return c.default.createElement(_,{className:e,height:t,width:n,color:o});default:return c.default.createElement(U,{className:e,height:t,width:n,color:o})}},Q=u.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})=>S[e]};height:${({size:e})=>S[e]};}`,ee=u.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:${I.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",a="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",a="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${a};\n font-size: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,te=u.default(ee).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${I.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?I.colors.neutral.ink.base:I.colors.secondary.blue.base};&:hover{background-color:${I.colors.neutral.grey.lightest};}&:active{background-color:${I.colors.neutral.grey.lightest};border-color:${I.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${I.colors.neutral.grey.base} !important;border-color:${I.colors.neutral.grey.base} !important;color:${I.colors.neutral.ink.light} !important;}`,ne=u.default(te).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${I.colors.secondary.red.base};&:hover{color:${I.colors.secondary.red.dark};}&:active{border-color:${I.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};color:${I.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,oe=u.default(te).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${I.colors.secondary.blue.base};border-color:${I.colors.secondary.blue.base};color:white;&:hover{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};}&:active{background-color:${I.colors.secondary.blue.dark};border-color:${I.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};}`,ae=u.default(oe).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${I.colors.secondary.red.base};border-color:${I.colors.secondary.red.base};color:white;&:hover{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};}&:active{background-color:${I.colors.secondary.red.dark};border-color:${I.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.red.light};}`,le=u.default(ee).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${I.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${I.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,ie=u.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,re=u.default(ie).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};text-decoration:${I.text.link.textDecoration};color:${I.colors.secondary.blue.base};&:hover{color:${I.colors.secondary.blue.dark};}& > * + *{margin-left:${I.sizes.xs};}& > span{position:relative;top:-1px;}`,de=u.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;`,se=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ce={default:te,primary:oe,destructive:ne,primaryDestructive:ae,flat:le,link:re,unstyled:ie},ue=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:a,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Y(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return c.default.createElement(ie,Object.assign({ref:t,className:n},s),o);const u=ce[l],m=void 0!==o,f=!!a;return c.default.createElement(u,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:f,hasDropdown:r},s),(m||f)&&c.default.createElement(Q,{loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},a&&a,void 0!==o&&c.default.createElement("span",null,o),r&&c.default.createElement(se,null)),d&&c.default.createElement(de,null,c.default.createElement(J,null)))})),me=u.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${S.md};padding-right:${S.md};padding-left:${S.md};margin-bottom:${S.md};& > * + *{margin-top:${S.xs};}`,fe=u.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${S.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,pe=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.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"})),ge=e=>c.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),c.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"})),he=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:a,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>c.default.createElement(me,null,c.default.createElement(fe,null,c.default.createElement(j,{id:e,variant:o},t),a&&c.default.createElement(ue,{variant:"link",onClick:a.onClick},a.title),l,r&&c.default.createElement(ue,{variant:"flat",icon:i?c.default.createElement(pe,null):c.default.createElement(P,null),onClick:r}),d&&c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(ge,null),onClick:d,"aria-label":"Close"})),n&&c.default.createElement(j,{variant:"subheadingSmall"},n)),{grey:be}=x.neutral,ve={0:"none",1:C.sm,2:C.base,3:C.md,4:C.lg},xe={info:x.secondary.blue.base,success:x.secondary.green.base,error:x.secondary.red.base},ye=u.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${S.base};padding:${S.md};z-index:2;`,we=u.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${S.md};padding-left:${S.md};margin-top:${S.md};margin-bottom:${S.md};font-family:${z.body.fontFamily};font-size:${z.body.fontSize};font-weight:${z.body.fontWeight};line-height:${z.body.lineHeight};color:${z.body.color};& + &{border-top:${S.line} solid ${be.base};padding-top:${S.md};}`,Ce=u.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${S.md};margin-right:-${S.md};`,Ee=u.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${we}:first-child{margin-top:0;}`,$e=u.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${S.line} solid ${be.base};box-shadow:${e=>void 0!==e.elevation?ve[e.elevation]:C.sm};border-radius:${w.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${S.xs};\n background-color: ${xe[e]};\n }\n `}`,ke={expanded:{height:"auto"},collapsed:{height:0}},Se=({className:t,style:n,title:o,subtitle:a,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:u,onClose:m,renderFooter:f})=>{const[p,g]=e.useState(!1),h=o&&c.default.createElement(he,{title:o,subtitle:a,ActionSlot:l,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=c.default.createElement(Ee,{animate:b?"expanded":"collapsed",variants:ke,transition:{duration:.3,ease:"easeOut"}},c.default.createElement(we,null,u)),x=void 0!==f&&c.default.createElement(ye,null,f());return c.default.createElement($e,{className:t,style:n,elevation:d,accent:s},h,v,x)};Se.Surface=$e,Se.Section=we,Se.FullBleed=Ce,Se.Footer=ye;const{sizes:Ne,colors:ze,text:Ie}=I,Le=u.default(Se.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Ne.base} 0;display:flex;flex-direction:column;`,Fe=u.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${ze.neutral.grey.base};margin-top:${Ne.base};padding-top:${Ne.base};}`,Be=u.default(j).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Ne.sm} ${Ne.base} ${Ne.sm};`,je=u.default(ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Ne.lg};padding:${Ne.xs} ${Ne.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ie.body.fontFamily};font-size:${Ie.body.fontSize};font-weight:${Ie.body.fontWeight};&:hover{background-color:${ze.neutral.grey.light};color:${ze.secondary.blue.base};}& > * + *{margin-left:${Ne[3]};}`,Me={item:je,action:u.default(je).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${ze.secondary.blue.base};`,link:u.default(je).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${ze.secondary.blue.base};text-decoration:underline;`},De=({title:t,items:n=[],sections:o,buttonVariant:a,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),u=e=>{const t=Me[e.variant||"item"];return c.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,c.default.createElement("span",null,e.title))},m=o?o.map((e=>c.default.createElement(Fe,{key:e.title},e.title&&c.default.createElement(Be,null,e.title),e.items.map(u)))):n.map(u);return c.default.createElement(c.default.Fragment,null,c.default.createElement(ue,{dropdown:!0,variant:a,size:l,onClick:()=>r(!i),ref:s},t),i&&c.default.createElement(G,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},c.default.createElement(Le,null,m)))},Re=u.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${I.text.link.fontFamily};font-style:${I.text.link.fontStyle};font-weight:${I.text.link.fontWeight};font-size:${I.text.link.fontSize};line-height:${I.text.link.lineHeight};color:${I.colors.secondary.blue.base};text-decoration:${I.text.link.textDecoration};&:hover{color:${I.colors.secondary.blue.dark};}`,He=u.default(h).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;`,Oe=e.forwardRef(((e,t)=>{const{children:n,className:o}=e;return c.default.createElement(He,{className:o,ref:t},n)})),Te=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,We=u.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ae=u.default(Oe).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:3;${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,Pe=({cta:t,shouldShowDropdown:n,children:o,className:a="animated-dropdown",reversed:l=!1,onClickAway:r=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:u,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)})),c.default.createElement(Te,{className:`${a}-container ${a}`,onClick:u,onMouseEnter:m,onMouseLeave:f,ref:p},!l&&t,c.default.createElement(We,{className:`${a}-wrap ${a}`},c.default.createElement(i.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},c.default.createElement(Ae,{reversed:l,className:`${a}-basic-dropdown ${a}`},o))),l&&t)},Ve=u.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${I.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${I.text.bodySmallBold.fontFamily};font-weight:${I.text.bodySmallBold.fontWeight};font-size:${I.text.bodySmallBold.fontSize};line-height:${I.text.bodySmallBold.lineHeight};}`;var Ze,qe;!function(e){e.end="end",e.start="start"}(Ze||(Ze={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(qe||(qe={}));const Xe=u.default.div.withConfig({displayName:"vui--Container",componentId:"vui--12sulil"})`display:inline-block;`,Ge=u.default(Xe).withConfig({displayName:"vui--Hoverable",componentId:"vui--17ltyut"})``,Ye=u.default(j).withConfig({displayName:"vui--TooltipText",componentId:"vui--183a4l5"})`color:${I.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Ue=u.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--rjghyf"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Ke=u.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;}`,_e=u.default(Xe).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;`,Je={duration:400,side:qe.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Qe=({children:t,text:n,content:a,config:l,reversed:i=!1,className:r,withTriangle:d,initialShouldShow:s=!1,useReactPortal:u=!0})=>{const m=!!n&&n.trim().length>0,p=Object.assign(Object.assign({},Je),l),{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:z}=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:I.layers.tooltip}),j=w&&(a||m)&&c.default.createElement(Ke,Object.assign({className:y.tip,ref:S,duration:g,triangleOffsetSize:b,style:B},z.popper,{role:"tooltip"}),c.default.createElement(_e,{className:y.wrap,tipMinWidth:v,tipMaxWidth:x},null!=a?a:c.default.createElement(Ye,null,n)),d&&c.default.createElement(Ue,{id:"veeqo-components-triangle",className:y.triangle}));return c.default.createElement(Xe,{className:y.container},u?f.default.createPortal(j,document.body):j,c.default.createElement(Ge,{ref:$,className:y.hoverable,onMouseEnter:L,onMouseLeave:F},t))},et=u.default(h).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:${z.bodySmall.fontFamily};font-weight:${z.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${S.base};height:${S.base};}`,tt=u.default(et).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${x.secondary.blue.base};color:${x.secondary.blue.base};`,nt=u.default(et).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};color:${x.secondary.blue.base};`,ot=u.default(et).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${x.secondary.yellow.base};background-color:${x.secondary.yellow.lightest};color:${x.secondary.orange.dark};`,at=e=>e.filter(Boolean).join(" "),lt={default:tt,primary:nt,warning:ot},it=u.default(h).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"};`,rt=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,dt=u.default(h).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,st=u.default(dt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${S.md};height:${S.md};color:${({accentColor:e})=>e};}`,ct=u.default(h).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,ut=u.default(dt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,mt=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,ft={help:x.secondary.blue.base,info:x.neutral.ink.base,error:x.secondary.red.base,success:x.secondary.green.base},pt=u.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${z.body.fontFamily};font-weight:${z.body.fontWeight};font-size:${z.body.fontSize};line-height:${z.body.lineHeight};`,gt=u.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;}`,ht=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),bt=({children:e,title:t,LinkComponent:n,href:o})=>n?c.default.createElement(gt,{className:"breadcrumb"},c.default.createElement(n,{href:o},t),e):c.default.createElement(gt,{className:"breadcrumb"},t,e),vt=()=>c.default.createElement(ht,{className:"separator",width:S.base,height:S.base}),xt=({children:e,href:t})=>c.default.createElement("a",{href:t},e),yt=({children:e})=>c.default.createElement("span",null,e);var wt;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(wt||(wt={}));const Ct=u.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:a="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&wt[n],i=o&&wt[o],s=I.sizes[a],r="column"):(l=o&&wt[o],i=n&&wt[n],c=I.sizes[a],r="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;Ct.displayName="Stack";const Et={top:"flex-start",center:"center"},$t=u.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${I.sizes.base};}`,kt=u.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Et[e.align]};width:24px;height:24px;`,St=u.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Nt=u.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${I.sizes.sm};}`,zt=u.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.sizes.md};color:${I.text.body.color};`,It=u.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,Lt=u.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};`,Ft=u.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Bt=u.default(Ft).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${I.colors.neutral.grey.dark};border-radius:${I.radius.md};padding:${I.sizes.base} 0.75rem;&:hover{border-color:${I.colors.secondary.blue.base};}& ${zt}{font-weight:${I.text.bodyBold.fontWeight};}`,jt=u.default(Qe).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Mt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Dt=({id:e,label:t,hint:n,tooltip:o,error:a,bordered:l,Badge:i,Accessory:r,Footer:d,children:s,disabled:u=!1})=>{const m=c.default.createElement($t,null,c.default.createElement(kt,{align:r?"center":"top"},s),r&&c.default.createElement(St,null,r),t||n||a||i||d?c.default.createElement(Nt,null,c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&c.default.createElement(zt,null,t),o&&c.default.createElement(jt,{text:o},c.default.createElement(Mt,{name:"help",width:I.sizes.base,color:I.colors.neutral.ink.lightest}))),n&&c.default.createElement(It,null,n),a&&c.default.createElement(Lt,null,a),d):null);return l?c.default.createElement(Bt,{disabled:u,htmlFor:e},m):c.default.createElement(Ft,{disabled:u,htmlFor:e},m)},{colors:Rt,sizes:Ht,radius:Ot}=I,Tt=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Rt.neutral.ink.lightest};border-radius:${Ot.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Rt.secondary.blue.base};border-color:${Rt.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:${Ht[4]};background-position:center;}&:hover{border-color:${Rt.secondary.blue.base};}&:active{border-color:${Rt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Rt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Rt.secondary.blue.base};border-color:${Rt.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:${Ht[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Rt.neutral.grey.base};border-color:${Rt.neutral.grey.base};color:${Rt.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>");}`,Wt=t=>{var{checked:n,indeterminate:o,value:a,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,u=Y(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const m=e.useMemo((()=>V("checkbox")),[]),f=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,a)}),[s,a]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===o)}),[o]),c.default.createElement(Dt,Object.assign({id:m,disabled:i},u),c.default.createElement(Tt,{ref:f,id:m,type:"checkbox",checked:n,value:a,name:l,disabled:i,"aria-label":r,className:d,onChange:p}))},At=u.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;}`,Pt=e.forwardRef(((t,n)=>{var{checked:o,value:a,name:l,disabled:i,onChange:r,id:d}=t,s=Y(t,["checked","value","name","disabled","onChange","id"]);const u=e.useCallback((e=>{r(e.currentTarget.checked,a)}),[r,a]),m=null!=d?d:V("radio");return c.default.createElement(Dt,Object.assign({id:m,disabled:i},s),c.default.createElement(At,{id:m,type:"radio",checked:o,value:a,name:l,disabled:i,onChange:u,ref:n}))})),Vt=u.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Zt=u.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-style:${I.text.inputLabel.fontStyle};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};text-decoration:${I.text.inputLabel.textDecoration};color:${I.text.inputLabel.color};`;class qt extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let a=[];a=t?[...n,e]:n.filter((t=>t!==e)),o(a)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:a,bordered:l}=this.props,i=e?Wt:Pt;return c.default.createElement(Vt,{disabled:a},o&&c.default.createElement(Zt,null,o),t.map((e=>c.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Xt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Gt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Yt={width:S.base,height:S.base},Ut=u.default(ue).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${S.base};width:${S.base};top:unset;}`;function Kt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function _t(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${_t(e.min,"max-content")}, ${_t(e.max)})`;default:return t||"1fr"}}function Jt({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:a,stripingMode:l}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${I.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${I.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>_t(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?f:m}\n `}var Qt;!function(e){e.ascending="ascending",e.descending="descending"}(Qt||(Qt={}));const en=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),tn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),nn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),on=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===Qt.ascending?c.default.createElement(tn,{color:I.colors.neutral.ink.dark,size:n}):c.default.createElement(nn,{color:I.colors.neutral.ink.dark,size:n}):c.default.createElement(en,{size:n});function an(t,n){const[o,a]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));a(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=p.default(l,50),t=new m.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function ln(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),a=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...a,...o],pinnedLeft:n,pinnedRight:o}}function rn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},a=t=>{if(!n)return;const a=t.clientX-o.x;n.scrollLeft=o.left-a,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function dn(t){const[n,o]=e.useState("start"),a=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:a}=t.current;o(a<e?"none":0!==n?n+e>=a?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",a),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",a)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=p.default(a,50),n=new m.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const sn="56px",cn=u.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${sn};display:flex;align-items:center;justify-content:${({align:e="left"})=>Kt(e)};background-color:white;padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};border-bottom:1px solid ${I.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function un(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:a}=e,l=Y(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===a?c.default.createElement(cn,Object.assign({},l)):c.default.createElement(cn,Object.assign({},l),c.default.createElement(Wt,{checked:t,indeterminate:n,onChange:o}))}const mn=u.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Kt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>I.sizes[e]};padding-right:${({spacing:e=3})=>I.sizes[e]};color:${I.text.bodySmall.color};font-family:${I.text.bodySmall.fontFamily};font-size:${I.text.bodySmall.fontSize};font-style:${I.text.bodySmall.fontStyle};font-weight:${I.text.bodySmall.fontWeight};line-height:${I.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${I.colors.secondary.blue.base};background-color:${I.colors.neutral.grey.lightest};}`;function fn(e){var{selected:t,rowId:n,onChange:o,selectionMode:a,disabled:l}=e,i=Y(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===a?c.default.createElement(mn,Object.assign({},i),c.default.createElement(Pt,{value:n,checked:t,disabled:l,onChange:o})):c.default.createElement(mn,Object.assign({},i),c.default.createElement(Wt,{value:n,checked:t,disabled:l,onChange:o}))}const pn=[[],()=>{}];function gn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[a,l]=t||pn,i=()=>{a.length!==n.length?l(n):l([])};return{selectionEnabled:o,selectedRowIds:a,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>c.default.createElement(un,Object.assign({},o,{selected:a.length===n.length,indeterminate:a.length>0&&a.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,a)=>c.default.createElement(fn,Object.assign({},n,{rowId:t.id,selected:a.selected,onChange:o.setSelected,selectionMode:e,disabled:a.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(a.includes(n))return;const e=[...a,n];l(e)}else{const e=a.findIndex((e=>e===n));if(e<0)return;const t=[...a];t.splice(e,1),l(t)}}}}const hn=u.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:${I.colors.neutral.ink.lightest};`,bn=u.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${I.text.headingTable.color};font-family:${I.text.headingTable.fontFamily};font-size:${I.text.headingTable.fontSize};font-style:${I.text.headingTable.fontStyle};font-weight:${I.text.headingTable.fontWeight};line-height:${I.text.headingTable.lineHeight};`,vn=u.default(bn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${hn}{background-color:${I.colors.neutral.grey.light};color:${I.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${I.colors.secondary.blue.light};}`;function xn({column:e,sortState:t,onChangeSort:n}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const a=e.sortable?vn:bn,l=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===Qt.ascending;let a=Qt.ascending;return n&&o&&(a=Qt.descending),{columnId:t,direction:a}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return c.default.createElement(cn,Object.assign({},o),c.default.createElement(Qe,{text:e.tooltip},c.default.createElement(a,Object.assign({},l),e.icon&&e.icon,e.title&&c.default.createElement("span",null,e.title),e.sortable&&c.default.createElement(hn,null,c.default.createElement(on,{sortState:t,columnId:e.id,size:5})))))}const yn=I.colors.neutral.grey.base,wn=I.colors.neutral.grey.dark,Cn=u.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${I.radius.base};background:${yn};background-image:linear-gradient(\n to right,\n ${yn} 0%,\n ${wn} 20%,\n ${yn} 40%,\n ${yn} 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 En=u.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:${sn};background-color:white;`,$n=u.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 ${I.colors.neutral.grey.base};& > *{flex:1;}`;function kn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:a}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=o.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},u=i?s:{position:"absolute",top:0,left:0,right:0};return c.default.createElement(En,{style:u},xn({column:t}),c.default.createElement($n,null,a))}const Sn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Nn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const In=u.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${I.sizes.lg};padding-bottom:${I.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${I.sizes.md};`,Ln=u.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${I.sizes.md};background-color:${I.colors.neutral.grey.light};border-radius:${I.radius.full};`,Fn=u.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Bn=u.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${I.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,jn=u.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Mn=u.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${I.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Dn=u.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Rn={full:`border-width: 1px; border-radius: ${I.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Hn=u.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${I.colors.neutral.grey.dark};${({borderMode:e="full"})=>Rn[e]} &,& *{box-sizing:border-box;}`;function On({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:a,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,u]=e.useState({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=o.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};u(n)},g=()=>{var e;if(!o.current)return;const t=o.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&o.current&&f()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=p.default(f,33),t=new m.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{g()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",g),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",g)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:sn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${I.colors.neutral.grey.base}`}),b=l+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return c.default.createElement("div",{style:h,ref:i},c.default.createElement(Mn,{css:b},c.default.createElement("thead",null,t)))}const Tn=(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}),Wn=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"}),c.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),c.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),An={icon:c.default.createElement(Wn,{width:48,height:48}),heading:"No results"},Pn=()=>{},Vn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:a=An,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:u,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);rn(v);const w=s.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=gn({selectionMode:m,selectionState:f,enabledRowIds:w}),S={setSelected:k||Pn,setExpanded:p||Pn},N=[$,...o],z=C?N:o,I=an(x,v),{visible:L,pinnedLeft:F,pinnedRight:B}=ln(z),{scrollPosition:M}=dn(v),D=Jt({pinnedLeft:F,pinnedRight:B,cellWidths:I,scrollPosition:M,visible:L,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return c.default.createElement(Hn,{borderMode:n},c.default.createElement(jn,{ref:v},c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d}))))),c.default.createElement("tbody",{role:"rowgroup"},e.map((e=>c.default.createElement(Bn,{key:e.id},L.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 c.default.createElement(mn,Object.assign({},n),c.default.createElement(Cn,null))}(e,t))))))))))}if(0===s.length)return c.default.createElement(Hn,{borderMode:n},c.default.createElement(jn,{ref:v},c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d}))))),c.default.createElement("tbody",{role:"rowgroup"},c.default.createElement(In,{columnCount:L.length},c.default.createElement(Ln,null,a.icon),c.default.createElement(Ct,{spacing:"sm",alignX:"center"},c.default.createElement(j,{variant:"headingMedium"},a.heading),a.subheading&&c.default.createElement(j,{variant:"subheadingMedium"},a.subheading)))))));const R=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Tn(e.id,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:u});return c.default.createElement(Bn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),L.map((t=>function(e,t,n,o){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,a,n,o)}(e,t,S,o))))},H=(e,t)=>{var n,o;const a=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=Tn(t,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:u});return c.default.createElement(Bn,{role:"row",key:e.id,className:a},L.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):c.default.createElement(mn,Object.assign({},o))}(e,t,i))))},O=e=>{var t;const n=null==l?void 0:l.includes(e.id);return c.default.createElement("tbody",{role:"rowgroup",key:e.id},R(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},T=c.default.createElement(Bn,{role:"row"},L.map((e=>xn({column:e,sortState:g,onChangeSort:d})))),W=o.some((e=>!!e.renderFooter)),A=E.length>0&&!!t;return c.default.createElement(Hn,{borderMode:n},A&&c.default.createElement(kn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),c.default.createElement(jn,{ref:v},b&&c.default.createElement(On,{tableCss:D,intersectionTargetRef:y,containerRef:v,cellWidths:I},T),c.default.createElement("div",{ref:y,style:{height:0}}),c.default.createElement(Mn,{css:D,ref:x,role:"table"},c.default.createElement("thead",{role:"rowgroup"},T),(()=>{const e=!!l;return e&&"nested"===h?s.map(O):e?c.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[R(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):c.default.createElement("tbody",{role:"rowgroup"},s.map(R))})(),W&&c.default.createElement("tfoot",{role:"rowgroup"},c.default.createElement(Bn,{role:"row"},L.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):c.default.createElement(mn,Object.assign({},t))}({column:e}))))))))};Vn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Vn.Cell=mn,Vn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[a,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),u=n.map((e=>e.map((e=>s[e])))),m=(e,n)=>{const a=u[e].map((e=>e.id)),l=[...t];a.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),o(l)};return c.default.createElement(c.default.Fragment,null,c.default.createElement(ue,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&c.default.createElement(G,{anchorElement:a,onShouldClose:()=>r(!1)},c.default.createElement(Se,{style:{width:600}},c.default.createElement(Ct,{alignX:"stretch",spacing:"sm"},u.map(((e,t)=>c.default.createElement(Ct,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(zn,null)}),c.default.createElement(Ct,{spacing:"sm",style:{flex:1}},e.map((e=>c.default.createElement("div",{key:e.id},e.title)))),c.default.createElement(Ct,{direction:"horizontal",spacing:"sm"},e[0].hidden?c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(Nn,null),onClick:()=>m(t,!1),style:{color:I.colors.neutral.ink.lightest}}):c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(Sn,null),onClick:()=>m(t,!0)})))))))))},Vn.SelectionCell=fn,Vn.SelectionHeader=un,Vn.Header=cn,Vn.Truncate=Dn,Vn.NoWrap=Fn;const Zn=u.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${I.sizes.base};}`,qn=u.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${I.sizes.xs};}`,Xn=u.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${I.sizes.base};}`,Gn=u.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${I.sizes.xs};}`,Yn=u.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${I.text.bodyBold.fontFamily};font-size:${I.text.bodyBold.fontSize};font-weight:${I.text.bodyBold.fontWeight};line-height:${I.text.bodyBold.lineHeight};color:${I.text.bodyBold.color};`,Un=u.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${I.text.body.fontFamily};font-size:${I.text.body.fontSize};font-weight:${I.text.body.fontWeight};line-height:${I.text.body.lineHeight};color:${I.text.body.color};`,{sizes:Kn,colors:_n}=I,Jn=u.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Kn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Kn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Qn=u.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Kn.md};overflow-x:hidden;background-color:${_n.neutral.grey.lightest};`,eo=u.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 to;!function(e){e.base="base",e.sm="sm"}(to||(to={}));const no=u.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${I.text.inputLabel.fontFamily};font-size:${I.text.inputLabel.fontSize};font-weight:${I.text.inputLabel.fontWeight};line-height:${I.text.inputLabel.lineHeight};color:${I.text.inputLabel.color};`,oo=u.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`,ao=u.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,lo=u.default(Ct).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,io=u.default(Qe).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,ro=t=>n=>{var{label:o,hint:a,error:l,tooltip:i}=n,r=Y(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>V(t.name)),[]);return o?c.default.createElement(lo,{spacing:"sm",alignX:"stretch"},c.default.createElement("div",null,c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"sm"},c.default.createElement(no,{htmlFor:d},o),i&&c.default.createElement(io,{text:i},c.default.createElement(Mt,{width:I.sizes.base,height:I.sizes.base,color:I.colors.neutral.ink.light}))),a&&c.default.createElement(oo,null,a)),c.default.createElement(t,Object.assign({id:d,hasError:!!l},r)),l&&c.default.createElement(ao,null,l)):c.default.createElement(t,Object.assign({hasError:!!l},r))},so=({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 "}`,co=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${I.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${so} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,uo=u.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;${so}`,mo=/^-?[0-9]*\.?[0-9]+$/,fo=ro(e.forwardRef(((t,n)=>{var{id:o,className:a,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:u,onChange:m,pattern:f,placeholder:p,rows:g="3",size:h=to.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Y(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(mo).test(t)&&m(t)}),[m,v]),E=null!=o?o:V("textfield");return"text"===v&&s?c.default.createElement(uo,Object.assign({className:a,disabled:l,hasError:i,id:E,name:u,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):c.default.createElement(co,Object.assign({className:a,disabled:l,hasError:i,id:E,inputSize:h,max:r,min:d,name:u,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));fo.displayName="TextField";const po=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,go=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,ho=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${I.colors.neutral.ink.lightest};}`,bo=u.default(ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${I.colors.neutral.ink.lightest};`;u.default(j).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,u.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${I.text.error.fontFamily};font-size:${I.text.error.fontSize};font-weight:${I.text.error.fontWeight};line-height:${I.text.error.lineHeight};color:${I.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${I.sizes[2]} * -1);width:2px;background-color:${I.colors.secondary.red.base};}`,u.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${I.fontFamily};font-size:${I.sizes[3]};line-height:${I.sizes[4]};color:${I.colors.neutral.ink.light};`;const vo=ro((e=>{var{size:t=to.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:a,className:l,height:i,width:r,length:d,unit:s}=e,u=Y(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return c.default.createElement(po,{className:l},c.default.createElement(go,null,c.default.createElement(ho,Object.assign({onChange:a,size:t,name:"length",type:"number",placeholder:"L",value:d},u)),c.default.createElement(ge,{height:I.sizes.base,width:I.sizes.base}),c.default.createElement(ho,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r},u)),c.default.createElement(ge,{height:I.sizes.base,width:I.sizes.base}),c.default.createElement(eo,null,c.default.createElement(ho,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i},u)),c.default.createElement(bo,{size:t},s))))}));vo.displayName="DimensionsInput";const xo=(t,n)=>{const o=e.useRef(null),a=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",a),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",a)}}),[l,a,t]),o};function yo(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),a=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:a}}const wo=c.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const Co=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},Eo=t=>{const[n,o]=e.useState(!1),[a,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!a,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:a}=e.target;l(o-n-a<=0)}}},$o=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${x.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${S.base};height:${S.base};}`,ko=u.default(j).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,So=u.default(ko).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,No=u.default(pe).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,zo=u.default(ge).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Io=u.default(h).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Lo=u.default(h).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 ${x.neutral.grey.base};svg{color:${({color:e})=>e};width:${S[5]};height:${S[5]};margin-right:10px;}`,Fo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Bo=u.default(h).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?S[e]:0};`,jo=e=>c.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Mo=u.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Do=u.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Ro=u.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Ho=u.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}),To=u.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Wo="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Ao="Log in with Amazon",Po=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Vo=u.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${I.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Se.Footer} {\n box-shadow: 0px 10px 15px 0px ${I.colors.neutral.ink.dark};\n }\n `}`,Zo=e=>!!e.footerSlot,qo=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},Xo=(e,t)=>{const n=qo(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},Go={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Yo={[y.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[y.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[y.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[y.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Uo={xs:y.mobile,sm:y.mobile,base:y.tablet,lg:y.lgTablet},{breakpoints:Ko}=I,_o=u.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:${I.sizes.sm};box-shadow:${I.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Se.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Go[e]};`} ${Vo}{padding-bottom:${I.sizes.md};}${Se.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Ko.mobile} + 1px))and (max-width: ${Ko.tablet}){max-width:${({variant:e})=>Yo[Ko.tablet][e]};}@media (min-width: ${Ko.tablet})and (max-width: ${Ko.lgTablet}){max-width:${({variant:e})=>Yo[Ko.lgTablet][e]};}@media (min-width: ${Ko.lgTablet})and (max-width: ${Ko.desktop}){max-width:${({variant:e})=>Yo[Ko.desktop][e]};}@media (min-width: ${Ko.desktop}){max-width:${({variant:e})=>Yo[Ko.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Uo[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Se.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Xo(I.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Jo=c.default.forwardRef(((e,t)=>{var n=Y(e,[]);return c.default.createElement(_o,Object.assign({ref:t},n))})),{sizes:Qo,text:ea,shadows:ta}=I,{grey:na}=I.colors.neutral,oa=u.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Qo.base} ${Qo.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&ta[e]};`,aa=u.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${ea.headingXL.fontFamily};font-size:${ea.headingXL.fontSize};font-weight:${ea.headingXL.fontWeight};margin:unset;line-height:1;`,la=u.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${ea.subheadingLarge.fontFamily};font-weight:${ea.subheadingLarge.fontWeight};font-size:${ea.subheadingLarge.fontSize};line-height:${ea.subheadingLarge.lineHeight};`,ia=u.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${I.radius.base};border:${Qo.line} solid ${na.base};object-fit:cover;`,ra=u.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,da=u.default(ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${I.text.link.fontFamily};font-size:${I.text.link.fontSize};font-weight:${I.text.link.fontWeight};line-height:${I.text.link.lineHeight};color:${I.text.link.color};&:hover{text-decoration:${I.text.link.textDecoration};}& > * + *{margin-left:${I.sizes.xs};}`,sa=u.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:${Qo.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ca=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),ua=u.default(Ct).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${I.sizes.lg};height:30px;background-color:${I.colors.neutral.grey.light};border:1px solid ${I.colors.neutral.grey.base};border-radius:${I.sizes.xs};`,ma=u.default(ue).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${I.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,fa=u.default(fo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,pa=({count:e})=>c.default.createElement(c.default.Fragment,null,c.default.createElement("div",null,c.default.createElement(j,{variant:"bodySmall","aria-hidden":!0},"/")),c.default.createElement(ua,{alignX:"center",alignY:"center","aria-hidden":!0},c.default.createElement(j,{variant:"bodySmall"},e))),ga=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[a,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(a||l(`${t}`),a===`${t}`)return;const e=parseInt(a,10);i(e)&&o(e)};return{pageInputValue:a,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},ha=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),ba=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),va=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],xa=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ya=u.default(Pe).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,wa=u.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${x.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Ca=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Ea=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${x.secondary.blue.base};background:${x.neutral.grey.lightest};}`,$a=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return c.default.createElement(Ca,{onClick:o},c.default.createElement(Ea,{variant:"bodySmall"},t.label))},ka=t=>{const{handleRangeListChange:n,paginationRange:o=va}=t;return c.default.createElement(c.default.Fragment,null,o.map((t=>c.default.createElement(e.Fragment,{key:t.label},c.default.createElement($a,{item:t,handleRangeListChange:n})))))};class Sa 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=va[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=va,reversedDropdown:n}=this.props,{shouldShowDropdown:o,dropdownValue:a}=this.state;return c.default.createElement(xa,{className:e},c.default.createElement(ya,{cta:c.default.createElement(wa,{onClick:this.toggleShouldShow},c.default.createElement(j,{variant:"bodySmall"},a.label),c.default.createElement(se,{color:I.colors.neutral.ink.base})),shouldShowDropdown:o,onClickAway:this.toggleShouldShow,reversed:n},c.default.createElement(ka,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const Na=u.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;}`,za=u.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;}`,Ia=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>c.default.createElement(Na,{size:o},c.default.createElement(za,{type:"button",onClick:e,disabled:n},c.default.createElement(P,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base})),c.default.createElement(za,{type:"button",onClick:t,disabled:n},c.default.createElement(pe,{height:I.sizes.base,width:I.sizes.base,color:I.colors.neutral.ink.base}))),La=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${I.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${I.colors.neutral.ink.lightest};}`,Fa=u.default(h).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${I.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?I.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Ba=u.default(j).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ja=u.default(eo).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 ${I.colors.secondary.red.light};\n\n > * {\n border-top-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${I.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${I.colors.secondary.red.base};\n border-right-color: ${I.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${I.colors.secondary.red.base};\n border-bottom-color: ${I.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${I.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?I.colors.secondary.red.base:I.colors.secondary.blue.base};}}`;const Ma=ro((e=>{var{className:t="",hasError:n,currency:o,disabled:a=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=to.base}=e,u=Y(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 c.default.createElement(ja,{className:t,hasError:n},c.default.createElement(Fa,{disabled:a,size:s},c.default.createElement(Ba,{variant:"hintText"},o)),c.default.createElement(La,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(l),"ArrowDown"===t&&f(l)},disabled:a,size:s},u)),c.default.createElement(Ia,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:a,size:s}))}));Ma.displayName="PriceInput";const Da=u.default(fo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ra=u.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Ha=u.default(h).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 & ${Da} {\n ${t}\n }\n\n & ${Ra} {\n ${n}\n }\n `}}`,Oa=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Ta=I.colors.neutral.grey.lightest,Wa=I.colors.neutral.grey.dark,Aa=I.colors.secondary.blue.dark,Pa=u.default(h).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Ta};border-color:${Wa};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Aa};border-color:${Aa};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${I.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Va=u.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;}`,Za=ro(e.forwardRef(((t,n)=>{var{className:o,options:a,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,u=Y(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return c.default.createElement(Va,Object.assign({className:o,sizeVariant:r,value:null!=l?l:void 0,onChange:m,disabled:d,hasError:s,ref:n},u),!!a&&a.map((e=>c.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Za.displayName="Select";const{blue:qa}=x.secondary,{grey:Xa}=x.neutral,Ga=u.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Ya=u.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${qa.lightest};}`,Ua=u.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Ka=u.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:${z.bodySmall.fontFamily};font-size:${z.bodySmall.fontSize};font-weight:${z.bodySmall.fontWeight};color:${z.bodySmall.color};line-height:${S.base};& > *{vertical-align:middle;}`,_a=u.default(Ka).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Xa.dark};font-family:${z.bodySmallBold.fontFamily};font-size:${z.bodySmallBold.fontSize};font-weight:${z.bodySmallBold.fontWeight};color:${z.bodySmallBold.color};`,Ja=u.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Ya} tr:nth-child(even) td {\n background-color: ${Xa.lightest};\n }\n `}`,Qa=({striped:e=!0,className:t,children:n})=>c.default.createElement(Ja,{striped:e,className:t},n);Qa.Header=Ga,Qa.Body=Ya,Qa.Row=Ua,Qa.HeaderCell=_a,Qa.Cell=Ka;const el=u.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,tl=u.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${I.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,nl=u.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 ${I.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${I.colors.secondary.blue.light};}`,ol=u.default(tl).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${I.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,al=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}),ll=u.default(h).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:x.neutral.ink.base};\n background-color: ${null!=e?e:x.neutral.grey.base};\n `}`,il=u.default(Ct).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,rl=u.default(Ct).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${I.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${I.shadows.lg};border-radius:${I.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,dl=u.default(h).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${I.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${S.md};height:${S.md};}`,sl=u.default(Ct).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,cl=u.default(j).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,ul={info:{accentColor:x.brand.blue.base,icon:c.default.createElement(Wn,null)},success:{accentColor:x.secondary.green.base,icon:c.default.createElement(Xt,null)},error:{accentColor:x.secondary.red.base,icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:x.secondary.purple.base,icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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)}},ml=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),fl=({className:e,e2eClassName:t,type:n,iconSlot:o,text:a,last:l,minWidth:i,cta:r,onClose:d})=>{const s=ml(e),u=ml(t);return c.default.createElement(rl,{className:at([null==s?void 0:s.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},c.default.createElement(dl,{color:ul[n].accentColor,className:at([s.icon,u.icon])},null!=o?o:ul[n].icon),c.default.createElement(sl,{direction:"horizontal",alignY:"center",alignX:"between"},c.default.createElement(cl,{variant:"body"},a),r),c.default.createElement(ue,{variant:"flat",icon:c.default.createElement(ge,{color:"white"}),onClick:d,"aria-label":"Close"}))},pl=u.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?I.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,gl=u.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${pl}{box-shadow:0 0 0 4px ${I.colors.brand.blue.light};}&:checked + ${pl}{background-color:#0079d1;}&:disabled + ${pl}{background-color:${I.colors.neutral.grey.base};}&:checked:disabled + ${pl}{background-color:${I.colors.secondary.blue.light};}`,hl=u.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;}${pl}: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"};}${gl}:checked + ${pl}{&: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"});}}`,bl=u.default(h).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,vl=e.forwardRef((({id:e,className:t,name:n,switched:o,small:a,onClick:l=(()=>{}),disabled:i,ariaLabel:r},d)=>c.default.createElement(bl,{className:t,disabled:i},c.default.createElement(hl,{small:a,disabled:i,role:"switch"},c.default.createElement(gl,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:l,disabled:i,ref:d}),c.default.createElement(pl,{switched:o,disabled:i}))))),xl=u.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:${I.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",a="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",a="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${a};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,yl="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",wl=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${yl} display:${e=>e.shouldShow?"initial":"none"};z-index:${I.layers.modal};`,Cl=u.default(h).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${yl} background-color:rgba(55,66,77,0.5);`,El=u.default(h).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,$l=({usePortal:e,children:t})=>c.default.createElement(c.default.Fragment,null,e?c.default.createElement(Z,null,t):t),kl=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>c.default.createElement($l,{usePortal:o},c.default.createElement(wl,{className:at([`${e}-container`,e]),shouldShow:n},c.default.createElement(Cl,null),c.default.createElement(g.default,{isActive:n},c.default.createElement(El,{className:at([`${e}-wrap`,e])},t)))),Sl=u.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Nl=u.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,zl=u.default(ue).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Il;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Il||(Il={}));const Ll=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Fl=u.default(j).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Bl=u.default(h).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 ${j} {\n color: ${null!=t?t:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,jl=u.default(j).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 & > ${Fl} {\n color: #fff;\n }\n `}`,Ml={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},Dl=u.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,Rl=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.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"})),Hl=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}),Ol=u.default(h).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Tl=u.default(h).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Wl=u.default(fo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Al=u.default(ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${I.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${I.colors.secondary.red.base};\n `};`,Pl=ro((e=>{var{size:t=to.base,hasError:n,className:o}=e,a=Y(e,["size","hasError","className"]);return c.default.createElement(Ol,{className:o},c.default.createElement(Tl,null,"g"===a.weightUnit&&c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangeGram,name:"gram",type:"number",value:a.gram,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(a)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangePound,name:"ounce",type:"number",value:a.pound,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"lb")),c.default.createElement(eo,null,c.default.createElement(Wl,Object.assign({size:t,onChange:a.handleChangeOunce,name:"pound",type:"number",value:a.ounce,hasError:n},a)),c.default.createElement(Al,{hasError:n,size:t},"oz")))))}));Pl.displayName="WeightInput",Pl.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:a,iconSlot:l,glyphColor:i=x.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[u,m]=e.useState(!!s);return c.default.createElement(A,{open:!!s,className:n},c.default.createElement(H,{onClick:()=>m(!u)},c.default.createElement(O,null,c.default.createElement(D,{glyphColor:i},l,c.default.createElement(j,{variant:"body"},a)),c.default.createElement(R,null,c.default.createElement(t.motion.span,{animate:{rotate:u?180:0}},c.default.createElement(P,{name:u?"downArrow":"upArrow"})))),!!d&&c.default.createElement(T,{variant:"hintText"},d)),u&&c.default.createElement(W,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=De,exports.Anchor=({children:e,className:t,text:n,href:o,target:a})=>c.default.createElement(Re,{href:o,target:a,className:t},e||n),exports.AnimatedDropdown=Pe,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=I.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const a=t.toUpperCase().match(/\b(\w)/g);return c.default.createElement(Ve,{width:e,bgColor:n,textColor:o,className:"avatar"},null==a?void 0:a.slice(0,2).map(((e,t)=>c.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:a,e2eClassName:l,children:i})=>{const r=lt[e];return c.default.createElement(Qe,{text:o},c.default.createElement(r,{className:at([a,l]),hideBorder:t},n&&n,i&&c.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:a,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=Y(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=ft[t];return c.default.createElement(it,Object.assign({accentColor:u,className:l,backgroundColor:d},s),c.default.createElement(rt,null,o&&c.default.createElement(st,{style:{marginRight:S.md},accentColor:u},o),r?c.default.createElement(ct,null,r):c.default.createElement(c.default.Fragment,null,c.default.createElement(ut,null,i||c.default.createElement(mt,{variant:"headingSmall"},n)),c.default.createElement(dt,null,a&&c.default.createElement(ue,{variant:"flat","aria-label":"Close",icon:c.default.createElement(ge,null),onClick:a})))))},exports.BaseContainer=h,exports.Breadcrumbs=({items:e,Separator:t=c.default.createElement(vt,null),LinkComponent:n=xt})=>c.default.createElement(pt,{className:"breadcrumbs"},e.map(((o,a)=>c.default.createElement(bt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:a!==e.length-1?n:yt},e.length!==a+1&&t)))),exports.Button=ue,exports.Card=Se,exports.CardHeader=he,exports.Checkbox=Wt,exports.Choice=Dt,exports.ChoiceList=qt,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[a,l]=c.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),l(!0),setTimeout((()=>l(!1)),2500)}),[o,n]);return c.default.createElement(Qe,{text:a?"Copied!":"Copy to clipboard"},c.default.createElement(Ut,{variant:"flat",size:"sm",className:t,"aria-label":`${a?"Copied":"Copy"} "${n}" to clipboard`,icon:a?c.default.createElement(Xt,Object.assign({color:x.secondary.green.base},Yt)):c.default.createElement(Gt,Object.assign({color:x.secondary.blue.base},Yt)),onClick:i}))},exports.DataTable=Vn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>c.default.createElement(Un,{key:e},e))):c.default.createElement(Un,null,e);return c.default.createElement(Zn,null,e.map((e=>t?c.default.createElement(Xn,{key:e.term},c.default.createElement(Yn,null,e.term),c.default.createElement(Gn,null,n(e.description))):c.default.createElement(qn,{key:e.term},c.default.createElement(Yn,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,a]=e.useState(!0);return c.default.createElement("main",null,t((()=>a(!o)),o),c.default.createElement(Qn,null,c.default.createElement(Jn,{showSidebar:o},n)))},exports.DimensionsInput=vo,exports.FilterTag=({className:t,e2eClassName:n,label:o,text:a,iconSlot:l,fill:i=x.secondary.blue.base,content:r,footer:d,onClickAway:s,onClick:u,shouldCloseOnClickAway:m=!0})=>{const f=Fo(t),p=Fo(n),{shouldShowDropdown:g,toggleShouldShowDropdown:h,closeDropdown:b}=yo(),v=e.useCallback((e=>{h(),s&&g&&s(e)}),[h,s,g]),y=e.useCallback((e=>{s&&s(e,b),m&&b()}),[b,s,m]);return!r?c.default.createElement($o,{className:at([null==f?void 0:f.container,null==p?void 0:p.container]),onClick:u},o&&c.default.createElement(So,{variant:"subheadingSmallBold"},`${o}:`),c.default.createElement(j,null,a),c.default.createElement(zo,{className:at([null==f?void 0:f.cross,null==p?void 0:p.cross]),name:"cross",size:"base",color:x.neutral.ink.base})):c.default.createElement(Pe,{className:f.filterTagDropdown,shouldShowDropdown:g,onClickAway:y,cta:c.default.createElement($o,{className:f.container,onClick:v},o&&c.default.createElement(So,{variant:"subheadingSmallBold"},`${o}:`),c.default.createElement(j,null,a),c.default.createElement(No,{color:x.neutral.ink.base,name:"downArrow",shouldShow:g}))},c.default.createElement(Io,null,c.default.createElement(Lo,{color:i},l,c.default.createElement(j,{variant:"bodyBold"},o)),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),a())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function a(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function l(e){e.metaKey||e.altKey||e.ctrlKey||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),a()}}),[o]),c.default.createElement(wo.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Bo,exports.Image=({src:t,alt:n="",className:a,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:u,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Oo(a),x=Oo(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=c.default.useState(null),[S,N]=c.default.useState(null),{styles:z,attributes:I}=o.usePopper($,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),L=e.useCallback((()=>f?w(!0):{}),[f]),F=e.useCallback((()=>f?w(!1):{}),[f]),B=!C.isLoaded||C.isError;return c.default.createElement(Mo,{className:at([null==v?void 0:v.container,null==x?void 0:x.container,a])},c.default.createElement(Do,{src:t,alt:n,className:at([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:L,onMouseLeave:F,style:B?{display:"none"}:{},ref:k}),!b&&B&&(p||c.default.createElement(jo,{className:at([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(c.default.createElement(Ro,Object.assign({ref:N,style:z.popper},I.popper,{className:at([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),c.default.createElement(Ho,{src:t,alt:"",width:s,height:u})),document.body))},exports.InputGroup=eo,exports.Loader=J,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Wo);return c.default.createElement(To,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Wo)},"aria-label":Ao},t),c.default.createElement("img",{src:n,alt:Ao}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:a=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[u,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}=Eo(u),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return c.default.createElement(t.AnimatePresence,null,o&&c.default.createElement("div",{"data-testid":"dialog-wrapper"},c.default.createElement(Po,null),c.default.createElement(Jo,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},c.default.createElement(Se.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:c.default.createElement(he,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},a&&{onClickClose:g})),c.default.createElement(Vo,{onScroll:p,ref:m,isScrollable:f,fullBleed:l},d),Zo(n)&&n.footerSlot,!Zo(n)&&(n.leftActions||n.rightActions)&&c.default.createElement(Se.Footer,null,c.default.createElement(Ct,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&c.default.createElement(Ct,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return c.default.createElement(ue,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&c.default.createElement(Ct,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return c.default.createElement(ue,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:a,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:u})=>{const m=o&&c.default.createElement(De,{buttonVariant:a?"default":"primary",title:"Actions",sections:o}),f=null==a?void 0:a.map((e=>c.default.createElement(ue,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=l&&c.default.createElement(ue,{onClick:l.onClick,icon:c.default.createElement(ca,null),variant:"link"},l.title),g=u&&c.default.createElement(Ct,{direction:"horizontal",alignX:"end"},c.default.createElement(da,{onClick:u},c.default.createElement("span",null,"Toggle sidebar"),c.default.createElement(ht,{width:S.md})));return c.default.createElement(oa,{shadow:r},c.default.createElement(Ct,null,p,c.default.createElement(sa,null,c.default.createElement(Ct,{direction:"horizontal",spacing:"md"},n&&c.default.createElement(ia,{src:n,alt:"",width:"72",height:"72"}),c.default.createElement("div",{style:{flex:1}},c.default.createElement(Ct,{alignX:"stretch"},c.default.createElement(aa,null,e),i,t&&c.default.createElement(la,null,t)))),c.default.createElement(ra,null,c.default.createElement(Ct,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,d&&c.default.createElement(ue,{icon:c.default.createElement(ca,null),onClick:d}),s&&c.default.createElement(ue,{icon:c.default.createElement(ht,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:a})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:u}=ga({currentPage:n,totalPagesCount:o,handleChangePage:a});return c.default.createElement(Ct,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},c.default.createElement(ma,{onClick:()=>{1!==n&&a(1)},icon:c.default.createElement(ha,null),size:"sm","aria-label":"go to first page"}),c.default.createElement(ma,{onClick:r,icon:c.default.createElement(ca,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),c.default.createElement("form",{onSubmit:d},c.default.createElement(fa,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:to.sm,type:"number",value:l,min:"1",max:`${o}`,onChange:s,onBlur:u})),c.default.createElement(pa,{count:o}),c.default.createElement(ma,{onClick:i,icon:c.default.createElement(ht,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),c.default.createElement(ma,{onClick:()=>{n!==o&&a(o)},icon:c.default.createElement(ba,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=Sa,exports.Popover=G,exports.Popup=kl,exports.Portal=Z,exports.PriceInput=Ma,exports.Radio=Pt,exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:u,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 c.default.createElement(Ha,{className:f,iconPosition:b?"left":"right"},c.default.createElement(Da,{size:x,type:e,value:s,onChange:o,onBlur:a,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:m,name:p,disabled:t,error:u,autoComplete:v}),c.default.createElement(Ra,null,g?c.default.createElement(J,{height:24,color:h||I.colors.secondary.blue.base}):y&&n?c.default.createElement(ue,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text"},c.default.createElement(ge,{color:h||I.colors.neutral.ink.dark})):c.default.createElement(ue,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search"},c.default.createElement(Oa,{color:h||I.colors.neutral.ink.dark,height:S.md,width:S.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>c.default.createElement(Pa,{className:n?`${n}-container`:void 0},e.map((e=>c.default.createElement(ue,{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=Za,exports.SimpleTable=Qa,exports.Slider=({id:t,value:n,min:o,max:a,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:u=(()=>{})})=>{const[m,f]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=al(r),y=al(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*(a-o)+o;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>a&&(s=a),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let 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,a,o,i,l,n]),C=e.useCallback((()=>{f(!1),u()}),[u]),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,a=v.current;return null==o||o.addEventListener("mousedown",e),null==a||a.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==a||a.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let l;return l=at("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]),c.default.createElement(nl,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(a-o),n=100*(e[1]>a?100:e[1]-o)/(a-o),l=n-t;return c.default.createElement(c.default.Fragment,null,c.default.createElement(ol,{className:at([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>a?100:n<o?0:100*(e-o)/(a-o),$(t,e)})(n),c.default.createElement(el,{className:at([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},c.default.createElement(tl,null),S)},exports.Stack=Ct,exports.Stepper=Ia,exports.Tag=ll,exports.Text=j,exports.TextField=fo,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:a="50vw",max:r=3,onClose:d})=>(e.useEffect((()=>{r&&o.length>r&&d(o[0].key)}),[o,r,d]),l.createPortal(c.default.createElement(il,{direction:"vertical",alignX:"center",spacing:4},c.default.createElement(i.TransitionGroup,{component:null},[...o].reverse().map(((e,l)=>c.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},c.default.createElement(fl,Object.assign({className:t,e2eClassName:n,minWidth:a,last:l===o.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=vl,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:a})=>c.default.createElement(xl,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>a(!t)},e),exports.Tooltip=Qe,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const a=xo(n,o);return c.default.createElement(kl,{shouldShow:n,className:`${e}-video`},c.default.createElement(Sl,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},c.default.createElement(Nl,{ref:a},c.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}),c.default.createElement(zl,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:c.default.createElement(ge,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:a,className:l,colourPalette:i=x.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:u,onDelete:m,onEdit:f,e2eClassName:p})=>{const g=Hl(l),h=Hl(p),[b,v,y]=Co(),w=e.useCallback((()=>u(t)),[t,u]),C=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=a===Il.draft,k=a===Il.saved,S=s?x.neutral.ink.dark:x.neutral.ink.base;return c.default.createElement(Ll,{className:`${at([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},c.default.createElement(Bl,{active:s,onMouseEnter:v,onMouseLeave:y,colourPalette:i,customTextColour:r},n&&c.default.createElement(Dl,null,n),c.default.createElement(j,{variant:"bodyBold"},o),d&&c.default.createElement(jl,{active:s||b,colourPalette:i,customTextColour:r},c.default.createElement(Fl,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&c.default.createElement(ge,Object.assign({},Ml,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&c.default.createElement(Rl,Object.assign({},Ml,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.WeightInput=Pl,exports.buildClassnames=at,exports.generateId=V,exports.getOpaqueHexColor=Xo,exports.hexToRgb=qo,exports.theme=I,exports.useCellWidths=an,exports.useClickOutside=xo,exports.useColumns=ln,exports.useDebounce=(t,n)=>{const[o,a]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>a(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=rn,exports.useDropdown=yo,exports.useFocusVisible=function(){const[e,t]=c.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=c.default.useContext(wo),a=c.default.useCallback((()=>{e||t(!0)}),[e]),l=c.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,c.default.useMemo((()=>({focusVisible:i,onFocus:a,onBlur:l})),[i,l,a])},exports.useHover=Co,exports.useIsOverflowing=Eo,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const a=[...t];a.splice(e,1),n(a)}}}}},exports.useScrollPosition=dn,exports.useSelection=gn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[a]=e.useState(t),[l,i]=e.useState(a[o]);return[l,e=>{const t=a.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),c.default.createElement(t,Object.assign({},n))),exports.withLabels=ro;
2
2
  //# sourceMappingURL=index.js.map