@veeqo/ui 6.0.0-beta.7 → 6.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 (131) hide show
  1. package/README.md +4 -3
  2. package/dist/components/Accordion/Accordion.d.ts +2 -11
  3. package/dist/components/Accordion/styled.d.ts +12 -1
  4. package/dist/components/Accordion/types.d.ts +15 -0
  5. package/dist/components/ActionMenu/ActionMenu.d.ts +16 -0
  6. package/dist/components/ActionMenu/index.d.ts +1 -0
  7. package/dist/components/ActionMenu/styled.d.ts +3 -0
  8. package/dist/components/Alert/Alert.d.ts +3 -0
  9. package/dist/components/Alert/constants.d.ts +6 -0
  10. package/dist/components/Alert/index.d.ts +1 -0
  11. package/dist/components/Alert/styled.d.ts +4 -0
  12. package/dist/components/Alert/types.d.ts +20 -0
  13. package/dist/components/Anchor/Anchor.d.ts +6 -7
  14. package/dist/components/AnimatedDropdown/AnimatedDropdown.d.ts +1 -1
  15. package/dist/components/AnimatedDropdown/components/BasicDropdown.d.ts +6 -0
  16. package/dist/components/AnimatedDropdown/components/styled.d.ts +1 -14
  17. package/dist/components/AnimatedDropdown/styled.d.ts +9 -1
  18. package/dist/components/AnimatedDropdown/types.d.ts +6 -8
  19. package/dist/components/Choice/Choice.d.ts +5 -1
  20. package/dist/components/Choice/components/styled.d.ts +0 -1
  21. package/dist/components/DataTable/DataTable.d.ts +1 -1
  22. package/dist/components/DataTable/components/ColumnDivider.d.ts +11 -0
  23. package/dist/components/DataTable/hooks/useColumnWidths.d.ts +10 -0
  24. package/dist/components/DataTable/hooks/useColumns.d.ts +54 -4
  25. package/dist/components/DataTable/renderers/renderHeader.d.ts +6 -2
  26. package/dist/components/DataTable/types.d.ts +12 -0
  27. package/dist/components/DataTable/utils/customEventEmitter.d.ts +1 -0
  28. package/dist/components/DateRangeInput/DateRangeInput.d.ts +21 -0
  29. package/dist/components/DateRangeInput/index.d.ts +2 -0
  30. package/dist/components/DateRangeInput/styled.d.ts +4 -0
  31. package/dist/components/DateRangePicker/DateRangePicker.d.ts +3 -0
  32. package/dist/components/DateRangePicker/DateRangePicker.test.d.ts +1 -0
  33. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.d.ts +8 -0
  34. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.test.d.ts +1 -0
  35. package/dist/components/DateRangePicker/components/Divider.d.ts +1 -0
  36. package/dist/components/DateRangePicker/components/constants.d.ts +4 -0
  37. package/dist/components/DateRangePicker/constants.d.ts +25 -0
  38. package/dist/components/DateRangePicker/index.d.ts +3 -0
  39. package/dist/components/DateRangePicker/types.d.ts +37 -0
  40. package/dist/components/DateRangePicker/utils.d.ts +6 -0
  41. package/dist/components/DateRangePicker/utils.test.d.ts +1 -0
  42. package/dist/components/DimensionsInput/styled.d.ts +1 -1
  43. package/dist/components/Dropdown/Dropdown.d.ts +3 -0
  44. package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
  45. package/dist/components/Dropdown/DropdownPopover.d.ts +3 -0
  46. package/dist/components/Dropdown/index.d.ts +1 -0
  47. package/dist/components/Dropdown/styled.d.ts +11 -0
  48. package/dist/components/Dropdown/types.d.ts +16 -0
  49. package/dist/components/FilterTag/FilterTag.d.ts +1 -1
  50. package/dist/components/FilterTag/styled.d.ts +4 -2
  51. package/dist/components/FilterTag/types.d.ts +3 -0
  52. package/dist/components/Modal/types.d.ts +3 -3
  53. package/dist/components/Pagination/styled.d.ts +1 -1
  54. package/dist/components/Popover/Popover.d.ts +1 -1
  55. package/dist/components/Popover/hooks/useHandleFocus.d.ts +2 -2
  56. package/dist/components/Popover/hooks/useUpdateAriaAnchor.d.ts +1 -2
  57. package/dist/components/Popover/types.d.ts +6 -6
  58. package/dist/components/PriceInput/styled.d.ts +1 -1
  59. package/dist/components/Radio/Radio.d.ts +3 -1
  60. package/dist/components/RangeCalendar/RangeCalendar.d.ts +10 -0
  61. package/dist/components/RangeCalendar/RangeCalendar.test.d.ts +1 -0
  62. package/dist/components/RangeCalendar/components/CalendarGrid.d.ts +3 -0
  63. package/dist/components/RangeCalendar/components/StyledRangeCalendar/StyledRangeCalendar.d.ts +2 -0
  64. package/dist/components/RangeCalendar/components/StyledRangeCalendar/buttonStyles.d.ts +1 -0
  65. package/dist/components/RangeCalendar/components/StyledRangeCalendar/calendarCellStyles.d.ts +1 -0
  66. package/dist/components/RangeCalendar/components/StyledRangeCalendar/headerStyles.d.ts +1 -0
  67. package/dist/components/RangeCalendar/components/StyledRangeCalendar/index.d.ts +1 -0
  68. package/dist/components/RangeCalendar/components/utils.d.ts +2 -0
  69. package/dist/components/RangeCalendar/index.d.ts +1 -0
  70. package/dist/components/ScreenReaderOnly/ScreenReaderOnly.d.ts +20 -0
  71. package/dist/components/ScreenReaderOnly/ScreenReaderOnly.test.d.ts +2 -0
  72. package/dist/components/ScreenReaderOnly/index.d.ts +1 -0
  73. package/dist/components/Search/Search.d.ts +2 -27
  74. package/dist/components/Search/styled.d.ts +1 -1
  75. package/dist/components/Select/Select.d.ts +3 -3
  76. package/dist/components/Skeleton/Skeleton.d.ts +7 -0
  77. package/dist/components/Skeleton/Skeleton.test.d.ts +1 -0
  78. package/dist/components/Skeleton/index.d.ts +1 -0
  79. package/dist/components/TextField/TextField.d.ts +1 -1
  80. package/dist/components/TextField/index.d.ts +1 -1
  81. package/dist/components/TextField/types.d.ts +1 -1
  82. package/dist/components/Toggle/Toggle.d.ts +1 -1
  83. package/dist/components/Toggle/styled.d.ts +1 -1
  84. package/dist/components/Toggle/types.d.ts +2 -1
  85. package/dist/components/UploadFile/components/UploadedFile/UploadedFile.d.ts +2 -1
  86. package/dist/components/ViewTab/ViewTab.d.ts +13 -2
  87. package/dist/components/ViewTab/types.d.ts +3 -5
  88. package/dist/components/WeightInput/styled.d.ts +1 -1
  89. package/dist/components/index.d.ts +8 -3
  90. package/dist/hoc/withLabels/withLabels.d.ts +1 -0
  91. package/dist/hooks/index.d.ts +1 -0
  92. package/dist/hooks/useDropdown.d.ts +5 -1
  93. package/dist/hooks/useId.d.ts +4 -0
  94. package/dist/hooks/useId.test.d.ts +1 -0
  95. package/dist/index.esm.js +1 -1
  96. package/dist/index.esm.js.map +1 -1
  97. package/dist/index.js +1 -1
  98. package/dist/index.js.map +1 -1
  99. package/dist/tempIcons/RecommendIcon.d.ts +2 -0
  100. package/dist/tempIcons/WarningIcon.d.ts +2 -0
  101. package/dist/theme/index.d.ts +1 -312
  102. package/dist/theme/modules/text.d.ts +10 -311
  103. package/dist/utils/blockInvalidCharacters.d.ts +1 -0
  104. package/dist/utils/generateId.d.ts +1 -1
  105. package/dist/utils/index.d.ts +1 -0
  106. package/dist/utils/invalidCharactersNumeric.d.ts +1 -0
  107. package/dist/utils/isExternalLink.d.ts +9 -0
  108. package/dist/utils/isExternalLink.test.d.ts +1 -0
  109. package/package.json +16 -14
  110. package/dist/components/ActionList/ActionList.d.ts +0 -3
  111. package/dist/components/ActionList/index.d.ts +0 -1
  112. package/dist/components/ActionList/styled.d.ts +0 -36
  113. package/dist/components/ActionList/types.d.ts +0 -19
  114. package/dist/components/AnimatedDropdown/components/Dropdown.d.ts +0 -3
  115. package/dist/components/PageHeader/PageHeader.d.ts +0 -29
  116. package/dist/components/PageHeader/index.d.ts +0 -1
  117. package/dist/components/PageHeader/styled.d.ts +0 -23
  118. package/dist/components/PaginationRange/Items/Item/Item.d.ts +0 -3
  119. package/dist/components/PaginationRange/Items/Item/index.d.ts +0 -1
  120. package/dist/components/PaginationRange/Items/Item/styled.d.ts +0 -5
  121. package/dist/components/PaginationRange/Items/Item/types.d.ts +0 -5
  122. package/dist/components/PaginationRange/Items/Items.d.ts +0 -7
  123. package/dist/components/PaginationRange/Items/index.d.ts +0 -1
  124. package/dist/components/PaginationRange/PaginationRange.d.ts +0 -3
  125. package/dist/components/PaginationRange/index.d.ts +0 -1
  126. package/dist/components/PaginationRange/styled.d.ts +0 -2
  127. package/dist/components/PaginationRange/types.d.ts +0 -15
  128. /package/dist/components/{ActionList/ActionList.test.d.ts → ActionMenu/ActionMenu.test.d.ts} +0 -0
  129. /package/dist/components/{AnimatedDropdown/components/Dropdown.test.d.ts → Alert/Alert.test.d.ts} +0 -0
  130. /package/dist/components/{PageHeader/PageHeader.test.d.ts → AnimatedDropdown/components/BasicDropdown.test.d.ts} +0 -0
  131. /package/dist/components/{PaginationRange/PaginationRange.test.d.ts → DateRangeInput/DateRangeInput.test.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"),l=require("resize-observer-polyfill"),a=require("react-dom"),i=require("lodash.throttle"),r=require("react-use"),d=require("react-transition-group"),s=require("react-scrolllock-configurable");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),f=c(n),m=c(l),p=c(a),g=c(i),h=c(s);const b=f.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,v={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},x=(e,t)=>e||(t?v[t]:void 0),y={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},w={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},C={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var E,$;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(E||(E={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}($||($={}));const k=function({increment:e,unit:t,count:n}){const o={};for(let l=0;l<=n;l++){const n=l*e;o[l]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),S={[$.none]:"0",[$.line]:"1px",[$.xs]:k[1],[$.sm]:k[2],[$.base]:k[4],[$.md]:k[6],[$.lg]:k[8],[$.xl]:k[12],[$.xxl]:k[16]},N=Object.assign(Object.assign({},S),k),I={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},L={headingXXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},z=Object.assign(Object.assign({},I),{breakpoints:w,colors:y,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:C,shadows:E,sizes:N,text:L}),{text:F,colors:B,fontFamily:j}=z,M=f.default.span.attrs((({as:e,variant:t})=>({as:x(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--m0sc57"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${j};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?B.neutral.ink.lightest:F[e].color;return`\n font-family: ${F[e].fontFamily};\n font-style: ${F[e].fontStyle};\n font-weight: ${F[e].fontWeight};\n font-size: ${F[e].fontSize};\n line-height: ${F[e].lineHeight};\n color: ${n};\n text-decoration: ${F[e].textDecoration};\n letter-spacing: ${F[e].letterSpacing};\n `}}`,R=f.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,D=f.default(R).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${N.base};width:${N.base};color:${({glyphColor:e})=>e};}`,T=f.default(R).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,H=f.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1lgp9cv"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${z.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}`,A=f.default(b).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,O=f.default(M).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,W=f.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,P=f.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,V=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"}));function q(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n}"function"==typeof SuppressedError&&SuppressedError;const Z=e=>`${e}-${Math.floor(1e3*Math.random())}`;class X extends e.PureComponent{constructor(e){super(e),this.id=Z("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?a.createPortal(e,this.portalNode):null}}const G=f.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,K=f.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,U=e=>e.filter(Boolean).join(" "),_=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},Y=(e,t)=>{const n=_(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},J='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',Q=({popperElement:t,anchorElement:n,onClose:o,disableFocusLock:l=!1})=>{e.useEffect((()=>{if(!t||l)return;const e=t.querySelectorAll(J);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,l]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(J);if(n.length<1)return void o();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,o]);return{handleKeyDown:e=>{t&&("Escape"===e.key?o():l||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(J),o=n[0],l=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),l.focus()):e.shiftKey||document.activeElement!==l||(e.preventDefault(),o.focus())})(e))}}},ee=t=>{var{id:n,children:l,zIndex:a=z.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:f,useAnchorWidth:p,supressWarnings:g}=t,h=q(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","useAnchorWidth","supressWarnings"]);const[b,v]=e.useState(null),{styles:x,attributes:y,update:w}=o.usePopper(r,b,{placement:i}),C=e.useMemo((()=>n||Z("popover")),[n]);(({anchorElement:t,popoverId:n,supressWarnings:o=!1})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(o||console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(o||console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(o||console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n,o])})({anchorElement:r,popoverId:C,supressWarnings:g});const E=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:$}=Q({popperElement:b,anchorElement:r,onClose:E,disableFocusLock:f});return e.useEffect((()=>{if(!w||!b)return;const e=new m.default(w);return e.observe(b),()=>e.disconnect()}),[w,b]),e.useEffect((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),u.default.createElement(X,{rootElementRef:d},u.default.createElement(K,{onClick:E,zIndex:a,"data-testid":"popover-backdrop"}),u.default.createElement(G,Object.assign({open:!0,id:C,zIndex:a,ref:v,style:Object.assign(Object.assign(Object.assign({},x.popper),c),p?{width:null==r?void 0:r.clientWidth}:{}),onKeyDown:$},y.popper,h),l))},te=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":l},u.default.createElement("defs",null,u.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},u.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),u.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),u.default.createElement("stop",{stopColor:o,offset:"100%"}))),u.default.createElement("g",{fill:"none",fillRule:"evenodd"},u.default.createElement("g",{transform:"translate(1 1)"},u.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),u.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ne=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),oe=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"15",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},u.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"105",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),le=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:l="TailSpin"})=>{switch(l){case"Grid":return u.default.createElement(ne,{className:e,height:t,width:n,color:o});case"ThreeDots":return u.default.createElement(oe,{className:e,height:t,width:n,color:o});default:return u.default.createElement(te,{className:e,height:t,width:n,color:o})}},ae=f.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>N[e]};height:${({size:e})=>N[e]};}`,ie=f.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--1xsghtl"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",l="8px",a="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",l="4px",a="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${a};\n line-height: ${a};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,re=f.default(ie).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${z.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?z.colors.neutral.ink.base:z.colors.secondary.blue.base};&:hover{background-color:${z.colors.neutral.grey.lightest};}&:active{background-color:${z.colors.neutral.grey.lightest};border-color:${z.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${z.colors.neutral.grey.base} !important;border-color:${z.colors.neutral.grey.base} !important;color:${z.colors.neutral.ink.light} !important;}`,de=f.default(re).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${z.colors.secondary.red.base};&:hover{color:${z.colors.secondary.red.dark};}&:active{border-color:${z.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};color:${z.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,se=f.default(re).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${z.colors.secondary.blue.base};border-color:${z.colors.secondary.blue.base};color:white;&:hover{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};}&:active{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}`,ce=f.default(se).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${z.colors.secondary.red.base};border-color:${z.colors.secondary.red.base};color:white;&:hover{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};}&:active{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,ue=f.default(ie).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${z.colors.neutral.ink.base};&:hover{background-color:${z.colors.neutral.grey.light};}&:active{background-color:${z.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,fe=f.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,me=f.default(fe).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};line-height:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};text-decoration:${z.text.link.textDecoration};color:${z.colors.secondary.blue.base};&:hover{color:${z.colors.secondary.blue.dark};}& > * + *{margin-left:${z.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${z.colors.secondary.blue.light};border-radius:4px;}`,pe=f.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--cvu4hf"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ge=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),he={default:re,primary:se,destructive:de,primaryDestructive:ce,flat:ue,link:me,unstyled:fe},be=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:l,variant:a="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=q(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return u.default.createElement(fe,Object.assign({ref:t,className:n},s),o);const c=he[a],f=void 0!==o,m=!!l;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:f,hasIcon:m,hasDropdown:r},s),(f||m)&&u.default.createElement(ae,{$loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},l&&l,void 0!==o&&o,r&&u.default.createElement(ge,null)),d&&u.default.createElement(pe,null,u.default.createElement(le,null)))})),ve=f.default.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${N.md};padding-right:${N.md};padding-left:${N.md};margin-bottom:${N.md};& > * + *{margin-top:${N.xs};}`,xe=f.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${N.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ye=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),we=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Ce=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:l,ActionSlot:a,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>u.default.createElement(ve,null,u.default.createElement(xe,null,u.default.createElement(M,{id:e,variant:o},t),l&&u.default.createElement(be,{variant:"link",onClick:l.onClick},l.title),a,r&&u.default.createElement(be,{variant:"flat",icon:i?u.default.createElement(ye,null):u.default.createElement(V,null),onClick:r}),d&&u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,null),onClick:d,"aria-label":"Close"})),n&&u.default.createElement(M,{variant:"subheadingSmall"},n)),{grey:Ee}=y.neutral,$e={0:"none",1:E.sm,2:E.base,3:E.md,4:E.lg},ke={info:y.secondary.blue.base,success:y.secondary.green.base,error:y.secondary.red.base},Se=f.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${N.base};padding:${N.md};z-index:2;`,Ne=f.default.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${N.md};padding-left:${N.md};margin-top:${N.md};margin-bottom:${N.md};font-family:${L.body.fontFamily};font-size:${L.body.fontSize};font-weight:${L.body.fontWeight};line-height:${L.body.lineHeight};color:${L.body.color};& + &{border-top:${N.line} solid ${Ee.base};padding-top:${N.md};}`,Ie=f.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${N.md};margin-right:-${N.md};`,Le=f.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=f.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${N.line} solid ${Ee.base};box-shadow:${e=>void 0!==e.elevation?$e[e.elevation]:E.sm};border-radius:${C.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${N.xs};\n background-color: ${ke[e]};\n }\n `}`,Fe={expanded:{height:"auto"},collapsed:{height:0}},Be=({className:t,style:n,title:o,subtitle:l,HeaderActionSlot:a,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:f,renderFooter:m})=>{const[p,g]=e.useState(!1),h=o&&u.default.createElement(Ce,{title:o,subtitle:l,ActionSlot:a,action:i,onClickClose:f,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=u.default.createElement(Le,{animate:b?"expanded":"collapsed",variants:Fe,transition:{duration:.3,ease:"easeOut"}},u.default.createElement(Ne,null,c)),x=void 0!==m&&u.default.createElement(Se,null,m());return u.default.createElement(ze,{className:t,style:n,elevation:d,accent:s},h,v,x)};Be.Surface=ze,Be.Section=Ne,Be.FullBleed=Ie,Be.Footer=Se;const{sizes:je,colors:Me,text:Re}=z,De=f.default(Be.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${je.base} 0;display:flex;flex-direction:column;`,Te=f.default.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Me.neutral.grey.base};margin-top:${je.base};padding-top:${je.base};}`,He=f.default(M).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${je.sm} ${je.base} ${je.sm};`,Ae=f.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${je.lg};padding:${je.xs} ${je.base};display:flex;align-items:center;white-space:nowrap;font-family:${Re.body.fontFamily};font-size:${Re.body.fontSize};font-weight:${Re.body.fontWeight};&:hover{background-color:${Me.neutral.grey.light};color:${Me.secondary.blue.base};}& > * + *{margin-left:${je[3]};}`,Oe={item:Ae,action:f.default(Ae).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${Me.secondary.blue.base};`,link:f.default(Ae).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${Me.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:n=[],sections:o,buttonVariant:l,buttonSize:a})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Oe[e.variant||"item"];return u.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,u.default.createElement("span",null,e.title))},f=o?o.map((e=>u.default.createElement(Te,{key:e.title},e.title&&u.default.createElement(He,null,e.title),e.items.map(c)))):n.map(c);return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{dropdown:!0,variant:l,size:a,onClick:()=>r(!i),ref:s},t),i&&u.default.createElement(ee,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},u.default.createElement(De,null,f)))},Pe=f.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${z.text.link.fontFamily};font-style:${z.text.link.fontStyle};font-weight:${z.text.link.fontWeight};font-size:${z.text.link.fontSize};line-height:${z.text.link.lineHeight};color:${z.colors.secondary.blue.base};text-decoration:${z.text.link.textDecoration};&:hover{color:${z.colors.secondary.blue.dark};}`,Ve=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,qe=f.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ze=f.default(t.motion(b)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1b87uvb"})`display:inline-flex;position:absolute;flex-direction:column;overflow:hidden;${({useAnchorWidth:e})=>e?"width: 100%;":""} background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;${({reversed:e})=>e?"bottom: 8px;":"top: 6px;"}`,Xe=t=>{var{id:n,children:o,className:l,reversed:a,anchorElement:i,useAnchorWidth:r,onShouldClose:d}=t,s=q(t,["id","children","className","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==i?void 0:i.focus()),[i]),u.default.createElement(ee,Object.assign({id:n,"data-testid":n,anchorElement:i,onShouldClose:d,useAnchorWidth:r},s),u.default.createElement(Ze,{className:l,useAnchorWidth:r,reversed:a,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o))},Ge=n=>{var{id:o,cta:l,shouldShowDropdown:a,children:i,className:r="animated-dropdown",reversed:d=!1,placement:s="bottom-start",onClick:c,onMouseEnter:f,onMouseLeave:m,useAnchorWidth:p}=n,g=q(n,["id","cta","shouldShowDropdown","children","className","reversed","placement","onClick","onMouseEnter","onMouseLeave","useAnchorWidth"]);const[h,b]=e.useState(null),v=e.useMemo((()=>l?u.default.cloneElement(l,{ref:b}):null),[l]);return u.default.createElement(Ve,{className:`${r}-container ${r}`,onClick:c,onMouseEnter:f,onMouseLeave:m},!d&&v,u.default.createElement(qe,{className:`${r}-wrap ${r}`},u.default.createElement(t.AnimatePresence,null,a&&u.default.createElement(Xe,Object.assign({id:o,useAnchorWidth:p,className:`${r}-basic-dropdown ${r}`,anchorElement:h,placement:s},g),i))),d&&v)},Ke=f.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${z.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${z.text.bodySmallBold.fontFamily};font-weight:${z.text.bodySmallBold.fontWeight};font-size:${z.text.bodySmallBold.fontSize};line-height:${z.text.bodySmallBold.lineHeight};}`,Ue=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--t7r6of"})`display:inline-block;`,_e=f.default(Ue).withConfig({displayName:"vui--Hoverable",componentId:"vui--1yesgsr"})``,Ye=f.default(M).withConfig({displayName:"vui--TooltipText",componentId:"vui--14vro0x"})`color:${z.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Je=f.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--yf0fwi"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Qe=f.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--ll0nnf"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,et=f.default(Ue).withConfig({displayName:"vui--Wrap",componentId:"vui--1u8lm59"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var tt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(tt||(tt={}));const nt={duration:400,side:tt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},ot=({content:t,text:n,hoverableElement:l,config:a,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),f=Object.assign(Object.assign({},nt),a),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=f,{styles:v,attributes:x}=o.usePopper(l,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:z.layers.tooltip});return u.default.createElement(Qe,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),u.default.createElement(et,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:u.default.createElement(Ye,null,n)),r&&u.default.createElement(Je,{id:"veeqo-components-triangle",className:d.triangle}))},lt=({children:t,text:n,content:o,config:l,reversed:a=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,f]=e.useState(d),[m,g]=e.useState(null),h=!!n&&n.trim().length>0,b={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!o&&!h);if(!v)return t;const x=c&&v&&u.default.createElement(ot,{classNames:b,hoverableElement:m,config:l,reversed:a,withTriangle:r,text:n,content:o});return u.default.createElement(Ue,{className:b.container},s?p.default.createPortal(x,document.body):x,u.default.createElement(_e,{ref:g,className:b.hoverable,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)},t))},at=f.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--idt2e7"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${L.bodySmall.fontFamily};font-weight:${L.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${N.base};height:${N.base};}`,it={default:f.default(at).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${y.secondary.blue.base};color:${y.secondary.blue.base};`,primary:f.default(at).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};color:${y.secondary.blue.base};`,warning:f.default(at).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${y.secondary.yellow.base};background-color:${y.secondary.yellow.lightest};color:${y.secondary.orange.dark};`},rt=f.default(b).withConfig({displayName:"vui--BannerLayout",componentId:"vui--5tzoxx"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,dt=f.default(b).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,st=f.default(b).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ct=f.default(st).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${N.md};height:${N.md};color:${({accentColor:e})=>e};}`,ut=f.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,ft=f.default(st).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,mt=f.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,pt={help:y.secondary.blue.base,info:y.neutral.ink.base,error:y.secondary.red.base,success:y.secondary.green.base},gt=f.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${L.body.fontFamily};font-weight:${L.body.fontWeight};font-size:${L.body.fontSize};line-height:${L.body.lineHeight};`,ht=f.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--19n9row"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,bt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),vt=({children:e,title:t,LinkComponent:n,href:o})=>n?u.default.createElement(ht,{className:"breadcrumb"},u.default.createElement(n,{href:o},t),e):u.default.createElement(ht,{className:"breadcrumb"},t,e),xt=()=>u.default.createElement(bt,{className:"separator",width:N.base,height:N.base}),yt=({children:e,href:t})=>u.default.createElement("a",{href:t},e),wt=({children:e})=>u.default.createElement("span",null,e);var Ct;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ct||(Ct={}));const Et=f.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:l="base"}=e;let a,i,r,d,s="",c="";return"vertical"===t?(a=n&&Ct[n],i=o&&Ct[o],s=z.sizes[l],r="column"):(a=o&&Ct[o],i=n&&Ct[n],c=z.sizes[l],r="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${a};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;Et.displayName="Stack";const $t={top:"flex-start",center:"center"},kt=f.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${z.sizes.base};}`,St=f.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>$t[e.align]};width:24px;height:24px;`,Nt=f.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,It=f.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${z.sizes.sm};}`,Lt=f.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.sizes.md};color:${z.text.body.color};`,zt=f.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,Ft=f.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};`,Bt=f.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,jt=f.default(Bt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${z.colors.neutral.grey.dark};border-radius:${z.radius.md};padding:${z.sizes.base} 0.75rem;&:hover{border-color:${z.colors.secondary.blue.base};}& ${Lt}{font-weight:${z.text.bodyBold.fontWeight};}`,Mt=f.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Rt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Dt=({id:e,label:t,hint:n,tooltip:o,error:l,bordered:a,Badge:i,Accessory:r,Footer:d,children:s,disabled:c=!1})=>{const f=u.default.createElement(kt,null,u.default.createElement(St,{align:r?"center":"top"},s),r&&u.default.createElement(Nt,null,r),t||n||l||i||d?u.default.createElement(It,null,u.default.createElement(Et,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&u.default.createElement(Lt,null,t),o&&u.default.createElement(Mt,{text:o},u.default.createElement(Rt,{name:"help",width:z.sizes.base,color:z.colors.neutral.ink.lightest}))),n&&u.default.createElement(zt,null,n),l&&u.default.createElement(Ft,null,l),d):null);return a?u.default.createElement(jt,{disabled:c,htmlFor:e},f):u.default.createElement(Bt,{disabled:c,htmlFor:e},f)},{colors:Tt,sizes:Ht,radius:At}=z,Ot=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Tt.neutral.ink.lightest};border-radius:${At.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Tt.secondary.blue.base};border-color:${Tt.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${Ht[4]};background-position:center;}&:hover{border-color:${Tt.secondary.blue.base};}&:active{border-color:${Tt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Tt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Tt.secondary.blue.base};border-color:${Tt.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${Ht[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Tt.neutral.grey.base};border-color:${Tt.neutral.grey.base};color:${Tt.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,Wt=t=>{var{checked:n,indeterminate:o,value:l,name:a,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=q(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const f=e.useMemo((()=>Z("checkbox")),[]),m=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,l)}),[s,l]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===o)}),[o]),u.default.createElement(Dt,Object.assign({id:f,disabled:i},c),u.default.createElement(Ot,{ref:m,id:f,type:"checkbox",checked:n,value:l,name:a,disabled:i,"aria-label":r,className:d,onChange:p}))},Pt=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--14lc9u"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Vt=e.forwardRef(((t,n)=>{var{checked:o,value:l,name:a,disabled:i,onChange:r,id:d}=t,s=q(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{r(e.currentTarget.checked,l)}),[r,l]),f=null!=d?d:Z("radio");return u.default.createElement(Dt,Object.assign({id:f,disabled:i},s),u.default.createElement(Pt,{id:f,type:"radio",checked:o,value:l,name:a,disabled:i,onChange:c,ref:n}))})),qt=f.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Zt=f.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-style:${z.text.inputLabel.fontStyle};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};text-decoration:${z.text.inputLabel.textDecoration};color:${z.text.inputLabel.color};`;class Xt extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let l=[];l=t?[...n,e]:n.filter((t=>t!==e)),o(l)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:l,bordered:a}=this.props,i=e?Wt:Vt;return u.default.createElement(qt,{disabled:l},o&&u.default.createElement(Zt,null,o),t.map((e=>u.default.createElement(i,Object.assign({key:e.value,bordered:a,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Gt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Kt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),Ut={width:N.base,height:N.base},_t=f.default(be).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${N.base};width:${N.base};top:unset;}`;function Yt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Jt(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Jt(e.min,"max-content")}, ${Jt(e.max)})`;default:return t||"1fr"}}function Qt({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:l,stripingMode:a}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,f=`\n tr:nth-child(odd) > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `,m=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${l.map((e=>Jt(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===a?m:f}\n `}var en;!function(e){e.ascending="ascending",e.descending="descending"}(en||(en={}));const tn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),nn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),on=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),ln=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===en.ascending?u.default.createElement(nn,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(on,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(tn,{size:n});function an(t,n){const[o,l]=e.useState([]),a=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));l(n)};return e.useEffect((()=>{a()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=g.default(a,50),t=new m.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function rn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),l=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...l,...o],pinnedLeft:n,pinnedRight:o}}function dn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},l=t=>{if(!n)return;const l=t.clientX-o.x;n.scrollLeft=o.left-l,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},a=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",l),document.addEventListener("mouseup",a))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function sn(t){const[n,o]=e.useState("start"),l=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:l}=t.current;o(l<e?"none":0!==n?n+e>=l?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",l),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",l)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=g.default(l,50),n=new m.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const cn="56px",un=f.default.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${cn};display:flex;align-items:center;justify-content:${({align:e="left"})=>Yt(e)};background-color:white;padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};border-bottom:1px solid ${z.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function fn(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:l}=e,a=q(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===l?u.default.createElement(un,Object.assign({},a)):u.default.createElement(un,Object.assign({},a),u.default.createElement(Wt,{checked:t,indeterminate:n,onChange:o}))}const mn=f.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Yt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};color:${z.text.bodySmall.color};font-family:${z.text.bodySmall.fontFamily};font-size:${z.text.bodySmall.fontSize};font-style:${z.text.bodySmall.fontStyle};font-weight:${z.text.bodySmall.fontWeight};line-height:${z.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${z.colors.secondary.blue.base};background-color:${z.colors.neutral.grey.lightest};}`;function pn(e){var{selected:t,rowId:n,onChange:o,selectionMode:l,disabled:a}=e,i=q(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===l?u.default.createElement(mn,Object.assign({},i),u.default.createElement(Vt,{value:n,checked:t,disabled:a,onChange:o})):u.default.createElement(mn,Object.assign({},i),u.default.createElement(Wt,{value:n,checked:t,disabled:a,onChange:o}))}const gn=[[],()=>{}];function hn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[l,a]=t||gn,i=()=>{l.length!==n.length?a(n):a([])};return{selectionEnabled:o,selectedRowIds:l,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>u.default.createElement(fn,Object.assign({},o,{selected:l.length===n.length,indeterminate:l.length>0&&l.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,l)=>u.default.createElement(pn,Object.assign({},n,{rowId:t.id,selected:l.selected,onChange:o.setSelected,selectionMode:e,disabled:l.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)a([n]);else if(t){if(l.includes(n))return;const e=[...l,n];a(e)}else{const e=l.findIndex((e=>e===n));if(e<0)return;const t=[...l];t.splice(e,1),a(t)}}}}const bn=f.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${z.colors.neutral.ink.lightest};`,vn=f.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${z.text.headingTable.color};font-family:${z.text.headingTable.fontFamily};font-size:${z.text.headingTable.fontSize};font-style:${z.text.headingTable.fontStyle};font-weight:${z.text.headingTable.fontWeight};line-height:${z.text.headingTable.lineHeight};`,xn=f.default(vn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--p1ald0"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${bn}{background-color:${z.colors.neutral.grey.light};color:${z.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${z.colors.secondary.blue.light};}`;function yn({column:e,sortState:t,onChangeSort:n}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const l=e.sortable?xn:vn,a=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===en.ascending;let l=en.ascending;return n&&o&&(l=en.descending),{columnId:t,direction:l}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return u.default.createElement(un,Object.assign({},o),u.default.createElement(lt,{text:e.tooltip},u.default.createElement(l,Object.assign({},a),e.icon&&e.icon,e.title&&u.default.createElement("span",null,e.title),e.sortable&&u.default.createElement(bn,null,u.default.createElement(ln,{sortState:t,columnId:e.id,size:5})))))}const wn=z.colors.neutral.grey.base,Cn=z.colors.neutral.grey.dark,En=f.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${z.radius.base};background:${wn};background-image:linear-gradient(\n to right,\n ${wn} 0%,\n ${Cn} 20%,\n ${wn} 40%,\n ${wn} 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 $n=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--uoc40o"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${cn};background-color:white;`,kn=f.default.div.withConfig({displayName:"vui--Content",componentId:"vui--x1996k"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${z.colors.neutral.grey.base};& > *{flex:1;}`;function Sn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:l}){var a;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(a=o.current)||void 0===a?void 0:a.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return u.default.createElement($n,{style:c},yn({column:t}),u.default.createElement(kn,null,l))}const Nn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),In=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const zn=f.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${z.sizes.lg};padding-bottom:${z.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${z.sizes.md};`,Fn=f.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${z.sizes.md};background-color:${z.colors.neutral.grey.light};border-radius:${z.radius.full};`,Bn=f.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,jn=f.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${z.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Mn=f.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Rn=f.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${z.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Dn=f.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Tn={full:`border-width: 1px; border-radius: ${z.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Hn=f.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${z.colors.neutral.grey.dark};${({borderMode:e="full"})=>Tn[e]} &,& *{box-sizing:border-box;}`;function An({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:l,tableCss:a}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=o.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};c(n)},p=()=>{var e;if(!o.current)return;const t=o.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&o.current&&f()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=g.default(f,33),t=new m.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{p()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",p)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:cn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${z.colors.neutral.grey.base}`}),b=a+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return u.default.createElement("div",{style:h,ref:i},u.default.createElement(Rn,{css:b},u.default.createElement("thead",null,t)))}const On=(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=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),u.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),u.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Pn={icon:u.default.createElement(Wn,{width:48,height:48}),heading:"No results"},Vn=()=>{},qn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:l=Pn,expandedRowIds:a,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:f,selectionState:m,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),x=e.useRef(null),y=e.useRef(null);dn(v);const w=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=hn({selectionMode:f,selectionState:m,enabledRowIds:w}),S={setSelected:k||Vn,setExpanded:p||Vn},N=[$,...o],I=C?N:o,L=an(x,v),{visible:z,pinnedLeft:F,pinnedRight:B}=rn(I),{scrollPosition:j}=sn(v),R=Qt({pinnedLeft:F,pinnedRight:B,cellWidths:L,scrollPosition:j,visible:z,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return u.default.createElement(Hn,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(Rn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.map((e=>yn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(jn,{key:e.id},z.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return u.default.createElement(mn,Object.assign({},n),u.default.createElement(En,null))}(e,t))))))))))}if(0===s.length)return u.default.createElement(Hn,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(Rn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.map((e=>yn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},u.default.createElement(zn,{columnCount:z.length},u.default.createElement(Fn,null,l.icon),u.default.createElement(Et,{spacing:"sm",alignX:"center"},u.default.createElement(M,{variant:"headingMedium"},l.heading),l.subheading&&u.default.createElement(M,{variant:"subheadingMedium"},l.subheading)))))));const D=e=>{const{e2eClassName:t="",accentColor:n}=e,o=On(e.id,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(jn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const l={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,l,n,o)}(e,t,S,o))))},T=(e,t)=>{var n,o;const l=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=On(t,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(jn,{role:"row",key:e.id,className:l},z.map((t=>function(e,t,n){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,o,n):u.default.createElement(mn,Object.assign({},o))}(e,t,i))))},H=e=>{var t;const n=null==a?void 0:a.includes(e.id);return u.default.createElement("tbody",{role:"rowgroup",key:e.id},D(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id)))))},A=u.default.createElement(jn,{role:"row"},z.map((e=>yn({column:e,sortState:g,onChangeSort:d})))),O=o.some((e=>!!e.renderFooter)),W=E.length>0&&!!t;return u.default.createElement(Hn,{borderMode:n},W&&u.default.createElement(Sn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),u.default.createElement(Mn,{ref:v},b&&u.default.createElement(An,{tableCss:R,intersectionTargetRef:y,containerRef:v,cellWidths:L},A),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(Rn,{css:R,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},A),(()=>{const e=!!a;return e&&"nested"===h?s.map(H):e?u.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[D(e),...(null==a?void 0:a.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id))))||[]]}))):u.default.createElement("tbody",{role:"rowgroup"},s.map(D))})(),O&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(jn,{role:"row"},z.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):u.default.createElement(mn,Object.assign({},t))}({column:e}))))))))};qn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},qn.Cell=mn,qn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[l,a]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),f=(e,n)=>{const l=c[e].map((e=>e.id)),a=[...t];l.forEach((e=>{const t=a.findIndex((t=>t.id===e));t<0||(a[t]=Object.assign(Object.assign({},a[t]),{hidden:n}))})),o(a)};return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{ref:a,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&u.default.createElement(ee,{anchorElement:l,onShouldClose:()=>r(!1)},u.default.createElement(Be,{style:{width:600}},u.default.createElement(Et,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>u.default.createElement(Et,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},u.default.createElement(be,{variant:"flat",icon:u.default.createElement(Ln,null)}),u.default.createElement(Et,{spacing:"sm",style:{flex:1}},e.map((e=>u.default.createElement("div",{key:e.id},e.title)))),u.default.createElement(Et,{direction:"horizontal",spacing:"sm"},e[0].hidden?u.default.createElement(be,{variant:"flat",icon:u.default.createElement(In,null),onClick:()=>f(t,!1),style:{color:z.colors.neutral.ink.lightest}}):u.default.createElement(be,{variant:"flat",icon:u.default.createElement(Nn,null),onClick:()=>f(t,!0)})))))))))},qn.SelectionCell=pn,qn.SelectionHeader=fn,qn.Header=un,qn.Truncate=Dn,qn.NoWrap=Bn;const Zn=f.default.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${z.sizes.base};}`,Xn=f.default.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${z.sizes.xs};}`,Gn=f.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${z.sizes.base};}`,Kn=f.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${z.sizes.xs};}`,Un=f.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${z.text.bodyBold.fontFamily};font-size:${z.text.bodyBold.fontSize};font-weight:${z.text.bodyBold.fontWeight};line-height:${z.text.bodyBold.lineHeight};color:${z.text.bodyBold.color};`,_n=f.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.text.body.lineHeight};color:${z.text.body.color};`,{sizes:Yn,colors:Jn}=z,Qn=f.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Yn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Yn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,eo=f.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${Yn.md};overflow-x:hidden;background-color:${Jn.neutral.grey.lightest};`,to=f.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--2b6aqg"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var no;!function(e){e.base="base",e.sm="sm"}(no||(no={}));const oo=f.default.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};color:${z.text.inputLabel.color};`,lo=f.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,ao=f.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,io=f.default(Et).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,ro=f.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,so=t=>n=>{var{label:o,hint:l,error:a,tooltip:i}=n,r=q(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>Z(t.name)),[]);return o?u.default.createElement(io,{spacing:"sm",alignX:"stretch"},u.default.createElement("div",null,u.default.createElement(Et,{direction:"horizontal",alignY:"center",spacing:"sm"},u.default.createElement(oo,{htmlFor:d},o),i&&u.default.createElement(ro,{text:i},u.default.createElement(Rt,{width:z.sizes.base,height:z.sizes.base,color:z.colors.neutral.ink.light}))),l&&u.default.createElement(lo,null,l)),u.default.createElement(t,Object.assign({id:d,hasError:!!a},r)),a&&u.default.createElement(ao,null,a)):u.default.createElement(t,Object.assign({hasError:!!a},r))},co=({hasError:e,inputSize:t})=>n.css`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,uo=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${z.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${co} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,fo=f.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1jp908v"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${co}`,mo=/^-?[0-9]*\.?[0-9]+$/,po=so(e.forwardRef(((t,n)=>{var{id:o,className:l,disabled:a=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:f,pattern:m,placeholder:p,rows:g="3",size:h=no.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=q(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=e.useCallback((e=>{if(!f)return;const t=e.currentTarget.value;if(""===t)return void f(t);if("number"!==v)return void f(t);new RegExp(mo).test(t)&&f(t)}),[f,v]),E=null!=o?o:Z("textfield");return"text"===v&&s?u.default.createElement(fo,Object.assign({className:l,disabled:a,hasError:i,id:E,name:c,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):u.default.createElement(uo,Object.assign({className:l,disabled:a,hasError:i,id:E,inputSize:h,max:r,min:d,name:c,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));po.displayName="TextField";const go=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,ho=f.default(b).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,bo=f.default(po).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${z.colors.neutral.ink.lightest};}`,vo=f.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${z.colors.neutral.ink.lightest};`;f.default(M).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,f.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,f.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`;const xo=so((e=>{var{size:t=no.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:l,className:a,height:i,width:r,length:d,unit:s}=e,c=q(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return u.default.createElement(go,{className:a},u.default.createElement(ho,null,u.default.createElement(bo,Object.assign({onChange:l,size:t,name:"length",type:"number",placeholder:"L",value:d},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(bo,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(to,null,u.default.createElement(bo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i},c)),u.default.createElement(vo,{size:t},s))))}));xo.displayName="DimensionsInput";const yo=(t,n)=>{const o=e.useRef(null),l=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),a=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",a),document.addEventListener("keyup",l),()=>{document.removeEventListener("click",a),document.removeEventListener("keyup",l)}}),[a,l,t]),o};function wo(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),l=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:l}}const Co=u.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const Eo=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},$o=t=>{const[n,o]=e.useState(!1),[l,a]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!l,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:l}=e.target;a(o-n-l<=0)}}},ko=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${y.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${N.base};height:${N.base};}`,So=f.default(M).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,No=f.default(So).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Io=f.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,Lo=f.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,zo=f.default(b).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Fo=f.default(b).withConfig({displayName:"vui--Header",componentId:"vui--188pxr2"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${y.neutral.grey.base};svg{color:${({color:e})=>e};width:${N[5]};height:${N[5]};margin-right:10px;}`,Bo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),jo=f.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?N[e]:0};`,Mo=e=>u.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Ro=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,Do=f.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,To=f.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,Ho=f.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Ao=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),Oo={width:64,height:64},Wo={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},Oo)),title:"No data found"},Po={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},Oo)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var Vo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Vo||(Vo={}));const{text:qo,sizes:Zo}=z,{blue:Xo}=z.colors.secondary,{grey:Go}=z.colors.neutral,{scrollbar:Ko}=z.colors.system,Uo='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',_o=f.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,Yo=f.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--8prdgq"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Go.dark};border-bottom:1px solid ${Go.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${Ko.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Ko.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Uo};\n\n ${o===Vo.middle||o===Vo.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${Uo};\n\n ${o===Vo.start||o===Vo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Jo=f.default(Yo).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${Go.dark};border-radius:4px;`,Qo=f.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,el=f.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Go.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;f.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${Go.lightest};padding:1.5rem 1rem;border-top:1px solid ${Xo.base};}`;const tl=f.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ostkmy"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,nl=f.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--9fl65z"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${qo.bodySmall.fontFamily};font-size:${qo.bodySmall.fontSize};font-weight:${qo.bodySmall.fontWeight};color:${qo.bodySmall.color};line-height:${Zo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,ol=f.default(nl).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${Go.dark};font-family:${qo.bodySmallBold.fontFamily};font-size:${qo.bodySmallBold.fontSize};font-weight:${qo.bodySmallBold.fontWeight};color:${qo.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Go.light};}`,ll={left:"flex-start",center:"center",right:"flex-end"},al=f.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?ll[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,il=f.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${el}:nth-child(even) td {\n background-color: ${Go.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${ol}, & ${ol} span {\n white-space: nowrap;\n }\n `}`,rl=f.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${nl}{border-top:1px solid ${Go.dark};background-color:${Go.lightest};padding-top:${Zo.base};padding-bottom:${Zo.base};line-height:2rem;}`,dl=f.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,sl=f.default(il).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,cl=f.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--120wsfh"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,ul=f.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${z.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,fl=f.default(M).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,ml=f.default(M).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,pl=({height:e,icon:t,title:n,subTitle:o})=>u.default.createElement(cl,{height:e},u.default.createElement(ul,null,t),u.default.createElement(fl,{variant:"headingLarge"},n),o&&u.default.createElement(ml,{variant:"subheadingMedium"},o)),gl=f.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--14e2rl4"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${z.sizes.base};border-radius:${z.radius.base};&:hover{cursor:pointer;background-color:${z.colors.secondary.blue.lightest};}`,hl=f.default(gl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${z.text.link.color};text-decoration:${z.text.link.textDecoration};`,bl=f.default.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:vl}=z.colors.neutral,xl=f.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,yl=f.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--yfc89o"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${vl.base} 8%, ${vl.dark} 15%, ${vl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,wl=({isLoading:e,style:t})=>u.default.createElement(xl,{style:t},u.default.createElement(yl,{isLoading:e})),Cl=e=>{var{style:t}=e,n=q(e,["style"]);return u.default.createElement(nl,Object.assign({},n),u.default.createElement(wl,{style:t}))};Cl.defaultProps={style:{}};const El=({renderHeader:t,tableRef:n,wrapperRef:o,isFixedLayout:l,wrapperStyle:a})=>{var i;const[d,s]=e.useState(null),{isSticky:c}=((t,n)=>{const[o,l]=e.useState(!1),a=e.useCallback((({top:e,bottom:t})=>{let a=o;a=e<=(n||0)&&t>0?!o||a:!o&&a,a!==o&&l(a)}),[o,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&a(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[a,t]),{isSticky:o}})(n,parseInt("string"==typeof(null==a?void 0:a.top)?null==a?void 0:a.top:`${null==a?void 0:a.top}`,10)),f=((null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;r.useScroll(o);const m=e=>{var t;const n=(null===(t=o.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:d&&(d.scrollLeft=n)};return m(),c?u.default.createElement(dl,{ref:e=>{s(e),m(e)},style:Object.assign({width:f},a)},u.default.createElement(sl,{style:{tableLayout:l?"fixed":"auto"}},t())):null},$l=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},kl=e=>{var{style:t,width:n,isLoading:o}=e,l=q(e,["style","width","isLoading"]);return u.default.createElement(ol,Object.assign({},l,{style:{width:n}}),u.default.createElement(wl,{style:t,isLoading:o}))},Sl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Nl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Il=()=>u.default.createElement(tn,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Ll=()=>u.default.createElement(Sl,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),zl=()=>u.default.createElement(Nl,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Fl=({borderless:t=!1,striped:n=!0,noWrap:o=!1,showScrollbar:l=!1,headers:a,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:f,renderFooterLoadingRow:m,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:C=!1,isLoading:E=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:I=375,startFixedColumnsNumber:L,endFixedColumnsNumber:z})=>{const F=t?Yo:Jo,B=!!i&&0===i.length,j=Boolean(L||z),M=!L&&!z,R=e.useRef(null),D=e.useRef(null),[T,H]=e.useState(Vo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!D.current||M)return;const e=D.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),l=n+o;t===o?H(Vo.none):0===n?H(Vo.start):n>0&&l<t?H(Vo.middle):l===t&&H(Vo.end)};return D.current&&(t=D.current,n(),null===(e=D.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[R,M]);const A=e.useCallback((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),O=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!a||E)return null;const e=[],t=[];let n=0,o=0;if(L){g&&(e.push(O(1,n,"left")),n+=58);for(let t=0;t<L;t+=1){const o=A(a[t].width);o&&(e.push(O(g?t+2:t+1,n,"left")),n+=o)}}if(z)for(let e=0;e<z;e+=1){const n=A(a.slice(-e-1)[0].width);n&&(t.push(O(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[E,A,z,O,a,L,g]),P=e.useMemo((()=>W()),[W]),V=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],o=n.findIndex((e=>e===t.id));n.splice(o,1),v(n)}),[v,g,b]),q=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),Z=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),X=e.useCallback(((e,t)=>{let n="",o=()=>{},l=u.default.createElement(Il,null);const{tooltip:a,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",o=()=>Z(c),x===c&&(l="ascending"===y?u.default.createElement(Ll,null):u.default.createElement(zl,null)));const f=u.default.createElement(al,{align:i},r&&r,d&&u.default.createElement("span",null,d),s&&l);return u.default.createElement(ol,{key:c,id:`data-table-header-${c}`,className:n,onClick:o,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},a?u.default.createElement(lt,{text:a},u.default.createElement(_o,null,f)):f)}),[Z,x,y]),G=e.useCallback(((e,t)=>u.default.createElement(kl,{key:e.id,width:e.width||"auto",style:t,isLoading:E})),[E]),K=e.useCallback((()=>{if(!a)return null;const e=W(),t=e?e[0].style:{};return u.default.createElement(Qo,null,u.default.createElement(tl,null,g&&u.default.createElement(ol,{style:Object.assign({width:58},t)},"multiple"===b&&u.default.createElement(Wt,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:q,disabled:h&&h.length>0||E||B,ariaLabel:"Select all"})),a.map(((t,n)=>{const o=g?n+2:n+1,l=n-a.length,i=null==e?void 0:e.find((e=>e.index===o||e.index===l));return t.skeleton&&(E||C||B)?G(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,q,a,B,C,E,G,X,i.length,g,b,h]),U=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>V(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?u.default.createElement(Vt,Object.assign({},n)):u.default.createElement(Wt,Object.assign({},n))}),[V,b,h]),_=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?u.default.createElement(Cl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):u.default.createElement(Cl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),Y=e.useCallback(((e,t)=>{var n,o;if(!d)return null;const l=d(e);if(!l)return null;const a=(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row)||"";return u.default.createElement(tl,{key:e.id,className:`${a} ${t?"hidden":""}`},g&&u.default.createElement(nl,null),l)}),[d,g]),J=e.useCallback((e=>{if(!a)return u.default.createElement(Cl,null);const t=a.map((t=>u.default.createElement(Cl,{key:`${e}-${t.id}`})));return g&&t.unshift(_(e)),t}),[a,_,g]),Q=()=>f?E&&!m||!E&&B?null:u.default.createElement(rl,{fixedColumnsStyle:$l(P||[])},u.default.createElement(tl,null,g&&!p&&u.default.createElement(nl,null),!E&&f(i),E&&m&&m())):null;let ee=L;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,o;const{data:l}=e,a=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==l?void 0:l.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(o=null===(n=null==l?void 0:l.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==o?o:"",f=a?`selected ${c}`:`${c}`;return u.default.createElement(el,{key:e.id,className:d,fixedColumnsStyle:$l(P||[])},u.default.createElement(tl,{key:e.id,className:f,accentColor:e.accentColor},g&&u.default.createElement(nl,null,U(a,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>Y(e,!i))))}))),[i,s,P,Y,r,U,g]);if(E){const e=[];for(let t=0;t<$;t+=1)e.push(u.default.createElement(el,{key:`loading-row-${t}`,fixedColumnsStyle:$l(P||[])},u.default.createElement(tl,null,c?u.default.createElement(u.default.Fragment,null,g&&_(),c()):J(t))));return u.default.createElement(F,{ref:D,scrollDisabled:!0,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&a&&u.default.createElement(El,{renderHeader:K,tableRef:R,wrapperRef:D,isFixedLayout:j,wrapperStyle:S}),u.default.createElement(il,{ref:R,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:j},K(),e,Q()))}if(B||C){let e=Wo;return N?e=N:C&&(e=Po),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(il,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:j},K(),Q()),u.default.createElement(pl,Object.assign({height:I},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:D,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:l},k&&a&&u.default.createElement(El,{renderHeader:K,tableRef:R,wrapperRef:D,isFixedLayout:j,wrapperStyle:S}),u.default.createElement(il,{ref:R,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:j},K(),te,Q()))};Fl.Cell=nl,Fl.ClickableCell=e=>{var{onClick:t,children:n}=e,o=q(e,["onClick","children"]);return u.default.createElement(nl,Object.assign({},o),u.default.createElement(hl,{onClick:t},n))},Fl.EditableCell=e=>{var{onClick:t,children:n}=e,o=q(e,["onClick","children"]);return u.default.createElement(nl,Object.assign({},o),u.default.createElement(gl,{onClick:t},u.default.createElement(bl,null,n)))},Fl.SkeletonCell=Cl,Fl.SkeletonContent=wl;const Bl=f.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,jl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Ml="Log in with Amazon",Rl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Dl=f.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${z.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Be.Footer} {\n box-shadow: 0px 10px 15px 0px ${z.colors.neutral.ink.dark};\n }\n `}`,Tl=e=>!!e.footerSlot,Hl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Al={[w.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[w.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[w.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Ol={xs:w.mobile,sm:w.mobile,base:w.tablet,lg:w.lgTablet},{breakpoints:Wl}=z,Pl=f.default(t.motion.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--hfuefb"})`padding:0;border:none;border-radius:${z.sizes.sm};box-shadow:${z.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Be.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Hl[e]};`} ${Dl}{padding-bottom:${z.sizes.md};}${Be.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Wl.mobile} + 1px))and (max-width: ${Wl.tablet}){max-width:${({variant:e})=>Al[Wl.tablet][e]};}@media (min-width: ${Wl.tablet})and (max-width: ${Wl.lgTablet}){max-width:${({variant:e})=>Al[Wl.lgTablet][e]};}@media (min-width: ${Wl.lgTablet})and (max-width: ${Wl.desktop}){max-width:${({variant:e})=>Al[Wl.desktop][e]};}@media (min-width: ${Wl.desktop}){max-width:${({variant:e})=>Al[Wl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Ol[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Be.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Y(z.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Vl=u.default.forwardRef(((e,t)=>{var n=q(e,[]);return u.default.createElement(Pl,Object.assign({ref:t},n))})),{sizes:ql,text:Zl,shadows:Xl}=z,{grey:Gl}=z.colors.neutral,Kl=f.default.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${ql.base} ${ql.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&Xl[e]};`,Ul=f.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${Zl.headingXL.fontFamily};font-size:${Zl.headingXL.fontSize};font-weight:${Zl.headingXL.fontWeight};margin:unset;line-height:1;`,_l=f.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${Zl.subheadingLarge.fontFamily};font-weight:${Zl.subheadingLarge.fontWeight};font-size:${Zl.subheadingLarge.fontSize};line-height:${Zl.subheadingLarge.lineHeight};`,Yl=f.default.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${z.radius.base};border:${ql.line} solid ${Gl.base};object-fit:cover;`,Jl=f.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Ql=f.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};color:${z.text.link.color};&:hover{text-decoration:${z.text.link.textDecoration};}& > * + *{margin-left:${z.sizes.xs};}`,ea=f.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--498dtg"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${ql.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ta=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),na=f.default(Et).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${z.sizes.lg};height:30px;background-color:${z.colors.neutral.grey.light};border:1px solid ${z.colors.neutral.grey.base};border-radius:${z.sizes.xs};`,oa=f.default(be).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${z.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,la=f.default(po).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,aa=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(M,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(na,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(M,{variant:"bodySmall"},e))),ia=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[l,a]=e.useState(`${t}`);e.useEffect((()=>{a(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(l||a(`${t}`),l===`${t}`)return;const e=parseInt(l,10);i(e)&&o(e)};return{pageInputValue:l,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(t-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;i(n=t)&&a(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},ra=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),da=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),sa=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ca=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ua=f.default(b).attrs({as:"button"}).withConfig({displayName:"vui--ItemButton",componentId:"vui--1ibay0g"})`&:first-of-type{margin-top:2px;}border-radius:${z.radius.sm};overflow:hidden;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:0 2px 2px;border-radius:${z.radius.sm};overflow:hidden;background:none;border:none;&:active,&:focus-visible{box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};outline:none;}`,fa=f.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${y.secondary.blue.base};background:${y.neutral.grey.lightest};}`,ma=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return u.default.createElement(ua,{onClick:o},u.default.createElement(fa,{variant:"body"},t.label.replace(/ /g," ")))},pa=t=>{const{handleRangeListChange:n,paginationRange:o=sa}=t;return u.default.createElement(u.default.Fragment,null,o.map((t=>u.default.createElement(e.Fragment,{key:t.label},u.default.createElement(ma,{item:t,handleRangeListChange:n})))))},ga="pagination-range-dropdown",ha=f.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,ba=f.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--1myicuk"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,va=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>u.default.createElement(ha,{size:o},u.default.createElement(ba,{type:"button",onClick:e,disabled:n},u.default.createElement(V,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base})),u.default.createElement(ba,{type:"button",onClick:t,disabled:n},u.default.createElement(ye,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base}))),xa=f.default(po).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${z.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${z.colors.neutral.ink.lightest};}`,ya=f.default(b).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${z.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?z.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,wa=f.default(M).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,Ca=f.default(to).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--1sahwox"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${z.colors.secondary.red.light};\n\n > * {\n border-top-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${z.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${z.colors.secondary.red.base};\n border-right-color: ${z.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${z.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}}`;const Ea=so((e=>{var{className:t="",hasError:n,currency:o,disabled:l=!1,onChange:a,onPriceChange:i,priceValue:r,step:d="0.1",size:s=no.base}=e,c=q(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const f=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return u.default.createElement(Ca,{className:t,hasError:n},u.default.createElement(ya,{disabled:l,size:s},u.default.createElement(wa,{variant:"hintText"},o)),u.default.createElement(xa,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&f(a),"ArrowDown"===t&&m(a)},disabled:l,size:s},c)),u.default.createElement(va,{onIncrement:()=>f(),onDecrement:()=>m(),disabled:l,size:s}))}));Ea.displayName="PriceInput";const $a=f.default(po).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,ka=f.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,Sa=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--g7dno3"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${$a} {\n ${t}\n }\n\n & ${ka} {\n ${n}\n }\n `}}`,Na=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),Ia=u.default.forwardRef((({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:f="",className:m="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base",style:y},w)=>{const C=s&&s.length>0;return u.default.createElement(Sa,{className:m,iconPosition:b?"left":"right"},u.default.createElement($a,{ref:w,size:x,type:e,value:s,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:f,name:p,disabled:t,error:c,autoComplete:v,style:y}),u.default.createElement(ka,null,g?u.default.createElement(le,{height:24,color:h||z.colors.secondary.blue.base}):C&&n?u.default.createElement(be,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},u.default.createElement(we,{color:h||z.colors.neutral.ink.dark})):u.default.createElement(be,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search",type:"button"},u.default.createElement(Na,{color:h||z.colors.neutral.ink.dark,height:N.md,width:N.md}))))})),La=z.colors.neutral.grey.lightest,za=z.colors.neutral.grey.dark,Fa=z.colors.secondary.blue.dark,Ba=f.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${La};border-color:${za};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Fa};border-color:${Fa};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${z.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,ja=f.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1h93380"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,Ma=so(e.forwardRef(((t,n)=>{var{className:o,options:l,value:a,onChange:i,size:r,disabled:d,hasError:s}=t,c=q(t,["className","options","value","onChange","size","disabled","hasError"]);const f=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return u.default.createElement(ja,Object.assign({className:o,sizeVariant:r,value:null!=a?a:void 0,onChange:f,disabled:d,hasError:s,ref:n},c),!!l&&l.map((e=>u.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Ma.displayName="Select";const Ra=f.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--jhvnbb"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${z.colors.neutral.ink.base});font-family:${z.text.bodySmall.fontFamily};font-style:${z.text.bodySmall.fontStyle};font-size:${z.text.bodySmall.fontSize};line-height:${z.text.bodySmall.lineHeight};font-weight:${z.text.bodySmall.fontWeight};text-decoration:${z.text.bodySmall.textDecoration};letter-spacing:${z.text.bodySmall.letterSpacing};`,Da=f.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--y1tr49"})`box-sizing:border-box;color:var(--kbdTextColor, ${z.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${z.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${z.text.bodySmall.fontFamily};font-style:${z.text.bodySmall.fontStyle};`,Ta={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Ha={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:Aa}=y.secondary,{grey:Oa}=y.neutral,Wa=f.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,Pa=f.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${Aa.lightest};}`,Va=f.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,qa=f.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--1o4t01c"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${L.bodySmall.fontFamily};font-size:${L.bodySmall.fontSize};font-weight:${L.bodySmall.fontWeight};color:${L.bodySmall.color};line-height:${N.base};& > *{vertical-align:middle;}`,Za=f.default(qa).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${Oa.dark};font-family:${L.bodySmallBold.fontFamily};font-size:${L.bodySmallBold.fontSize};font-weight:${L.bodySmallBold.fontWeight};color:${L.bodySmallBold.color};`,Xa=f.default.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Pa} tr:nth-child(even) td {\n background-color: ${Oa.lightest};\n }\n `}`,Ga=({striped:e=!0,className:t,children:n})=>u.default.createElement(Xa,{striped:e,className:t},n);Ga.Header=Wa,Ga.Body=Pa,Ga.Row=Va,Ga.HeaderCell=Za,Ga.Cell=qa;const Ka=f.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ua=f.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${z.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,_a=f.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--19twtgm"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${z.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${z.colors.secondary.blue.light};}`,Ya=f.default(Ua).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${z.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ja=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}),Qa=f.default(b).withConfig({displayName:"vui--Tag",componentId:"vui--qsag0v"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:y.neutral.ink.base};\n background-color: ${null!=e?e:y.neutral.grey.base};\n `}`,ei=f.default(Et).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,ti=f.default(Et).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${z.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${z.shadows.lg};border-radius:${z.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,ni=f.default(b).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${z.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${N.md};height:${N.md};}`,oi=f.default(Et).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,li=f.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,ai={info:{accentColor:y.brand.blue.base,icon:u.default.createElement(Wn,null)},success:{accentColor:y.secondary.green.base,icon:u.default.createElement(Gt,null)},error:{accentColor:y.secondary.red.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:y.secondary.purple.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},ii=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),ri=({className:e,e2eClassName:t,type:n,iconSlot:o,text:l,last:a,minWidth:i,cta:r,onClose:d})=>{const s=ii(e),c=ii(t);return u.default.createElement(ti,{className:U([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:a},u.default.createElement(ni,{color:ai[n].accentColor,className:U([s.icon,c.icon])},null!=o?o:ai[n].icon),u.default.createElement(oi,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(li,{variant:"body"},l),r),u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,{color:"white"}),onClick:d,"aria-label":"Close"}))},di=f.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--10ka3tn"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?z.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,si=f.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${di}{box-shadow:0 0 0 4px ${z.colors.brand.blue.light};}&:checked + ${di}{background-color:#0079d1;}&:disabled + ${di}{background-color:${z.colors.neutral.grey.base};}&:checked:disabled + ${di}{background-color:${z.colors.secondary.blue.light};}`,ci=f.default.label.withConfig({displayName:"vui--Switch",componentId:"vui--16c93z6"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${di}: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"};}${si}:checked + ${di}{&: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"});}}`,ui=f.default(b).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,fi=e.forwardRef((({id:e,className:t,name:n,switched:o,small:l,onClick:a=(()=>{}),disabled:i,ariaLabel:r},d)=>u.default.createElement(ui,{className:t,disabled:i},u.default.createElement(ci,{small:l,disabled:i,role:"switch"},u.default.createElement(si,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:a,disabled:i,ref:d}),u.default.createElement(di,{switched:o,disabled:i}))))),mi=f.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--xt3hiw"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",l="24px",a="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",l="16px",a="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${l};\n border-radius: ${a};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,pi=f.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--ljd9es"})`display:flex;align-items:center;justify-content:center;padding:${N.md};border-radius:${C.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${y.neutral.ink.lightest};background-color:${y.neutral.grey.lightest};:hover{border:2px dashed ${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};}:active{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}:focus-within{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${y.secondary.red.base};:hover{border:2px dashed ${y.secondary.red.base};background-color:${y.secondary.red.lightest};}:active{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}:focus-within{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}}`;var gi,hi,bi;exports.AcceptedFileTypes=void 0,(gi=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",gi.JPEG=".jpeg",gi.JPG=".jpg",gi.GIF=".gif",gi.PNG=".png",exports.FileSizeUnit=void 0,(hi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",hi.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(bi||(bi={}));const vi=()=>u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},u.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),u.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),xi=()=>u.default.createElement(Et,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},u.default.createElement(vi,null),u.default.createElement(M,{variant:"subheadingSmall",style:{paddingTop:N.sm}},"Browse files or drag them here")),yi=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?u.default.createElement(Et,{alignX:"start",spacing:"xs"},e&&u.default.createElement(M,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(M,{variant:"errorSmall"},"File is too big (",t,")")):null,wi=f.default(M).withConfig({displayName:"vui--SingleLineText",componentId:"vui--2zjkq9"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Ci=f.default(Et).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--r41a54"})`border:1px solid ${y.neutral.ink.lightest};border-radius:${C.base};padding:${N.xs};${M}{padding-left:${N.xs};}`,Ei=({file:e,resetSelection:t})=>e?u.default.createElement(Ci,{alignX:"between",direction:"horizontal",alignY:"center"},u.default.createElement(wi,{variant:"body"},null==e?void 0:e.name),u.default.createElement(be,{size:"sm",variant:"flat",onClick:t,icon:u.default.createElement(we,null),"aria-label":"Remove file"})):null,$i=e.forwardRef((({id:t,name:n,maxBytes:o=1e6,format:l=exports.FileSizeUnit.MB,fileTypes:a,label:i="Upload file",required:r},d)=>{const s=e.useRef(null);e.useImperativeHandle(d,(()=>s.current),[]);const[c,f]=e.useState(),[m,p]=e.useState(bi.VALID),g=m===bi.INVALID_FORMAT||m===bi.INVALID_FORMAT_AND_SIZE,h=m===bi.INVALID_SIZE||m===bi.INVALID_FORMAT_AND_SIZE,b=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${o}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:o,format:l}),v=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const l=o.length>1,a=t===o.length-1&&l,i=t===o.length-2&&l;switch(a&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!a&&o.length>2&&(n+=", ")})),n})({fileTypes:a}),x=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const l=o.length-1===n&&o.length>1;t+=l?`${e}`:`${e}, `})),t.trim()})({fileTypes:a}),y=()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.value)&&(s.current.value="")},w=({overMaxSize:e,invalidFormat:t})=>{var n;let o=bi.VALID;t&&!e?o=bi.INVALID_FORMAT:!t&&e?o=bi.INVALID_SIZE:t&&e&&(o=bi.INVALID_FORMAT_AND_SIZE),null===(n=s.current)||void 0===n||n.setCustomValidity(o),p(o)},C=e.useCallback((e=>{if(!e.length)return void w({invalidFormat:!0});const[n]=e,l=n.size>o,[,i]=n.type.split("/"),r=!a.find((e=>e.substring(1)===i));l||r?y():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:t}),w({invalidFormat:r,overMaxSize:l}),f(n)}),[a,t,o]),E=e.useCallback((()=>{var e;const t=null===(e=null==s?void 0:s.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&C(t)}),[C]),$=e.useCallback((()=>{y(),f(void 0),w({invalidFormat:!1,overMaxSize:!1})}),[]);return e.useEffect((()=>{const e=null==s?void 0:s.current;return null==e||e.addEventListener("change",E),()=>{null==e||e.removeEventListener("change",E)}}),[E]),u.default.createElement(io,{spacing:"sm",alignX:"stretch"},u.default.createElement(oo,{htmlFor:t},i,u.default.createElement(Et,{spacing:3,alignX:"stretch",style:{paddingTop:N.sm}},u.default.createElement(lo,null,u.default.createElement("div",null,v),u.default.createElement("div",null,b)),u.default.createElement(pi,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&C(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.blur()}},u.default.createElement(xi,null),u.default.createElement("input",{ref:s,id:t,type:"file",accept:x,name:n,required:r})))),u.default.createElement(Et,{alignX:"stretch",spacing:"sm"},u.default.createElement(Ei,{file:c,resetSelection:$}),u.default.createElement(yi,{acceptedTypesCopy:g?v:void 0,maxSizeCopy:h?b:void 0})))})),ki="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Si=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${ki} display:${e=>e.shouldShow?"initial":"none"};z-index:${z.layers.modal};`,Ni=f.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${ki} background-color:rgba(55,66,77,0.5);`,Ii=f.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,Li=({usePortal:e,children:t})=>u.default.createElement(u.default.Fragment,null,e?u.default.createElement(X,null,t):t),zi=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>u.default.createElement(Li,{usePortal:o},u.default.createElement(Si,{className:U([`${e}-container`,e]),shouldShow:n},u.default.createElement(Ni,null),u.default.createElement(h.default,{isActive:n},u.default.createElement(Ii,{className:U([`${e}-wrap`,e])},t)))),Fi=f.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,Bi=f.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,ji=f.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`;var Mi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Mi||(Mi={}));const Ri=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,Di=f.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,Ti=f.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--b8oq7f"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${M} {\n color: ${null!=t?t:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Hi=f.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1xuhw17"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Di} {\n color: #fff;\n }\n `}`,Ai={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},Oi=f.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Wi=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Pi=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0});var Vi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Vi||(Vi={}));const qi=e=>u.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),u.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Zi=f.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--3am01d"})`line-height:1;`,Xi=f.default(qi).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--1uc98sf"})``,Gi=f.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--1te682y"})``,Ki=f.default(M).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1giom5i"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Zi} {\n color: ${y.neutral.grey.lightest};\n }\n `}`,Ui=f.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--jegwey"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${y.neutral.grey.base};\n & > ${Ki} {\n background-color: ${y.neutral.grey.base};\n & > ${Zi} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${M} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Xi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${Gi} {\n color: ${y.neutral.ink.dark};\n }\n }\n\n & > ${M} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Xi} {\n color: ${t.dark};\n }\n & > ${Gi} {\n color: ${t.dark};\n }\n\n & > ${M} {\n color: ${null!=n?n:t.dark};\n }\n `}`,_i=f.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--176jtjf"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Ui} {\n background-color: ${y.neutral.grey.base};\n & > ${Ki} {\n background-color: ${y.neutral.grey.base};\n & > ${Zi} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${M} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Xi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${Gi} {\n color: ${y.neutral.ink.dark};\n }\n }\n `}`,Yi={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},Ji=f.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1omb2tl"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Qi=u.default.forwardRef((({id:e,iconSlot:t,name:n,type:o,className:l,colourPalette:a=y.secondary.blue,customTextColour:i,count:r,active:d=!1,onClick:s,subAction:c,ariaContext:f},m)=>{const p={delete:(g=l)?`${g}-delete`:void 0,edit:g?`${g}-edit`:void 0,container:g?`${g}-view`:void 0,active:g?`${g}-active`:void 0,counter:g?`${g}-counter`:void 0};var g;const[h,b,v]=Eo(),x=d&&c?c:s,w=o===Vi.draft,C=o===Vi.saved;return u.default.createElement(_i,{className:U([null==p?void 0:p.container]),onClick:()=>x(e),role:"tab","aria-selected":d,"aria-label":`${d&&w?"Delete":d&&C?"Edit":""} ${n} view ${r?`with ${r} ${f}`:""}`,customTextColour:i,ref:m},u.default.createElement(Ui,{active:d,onMouseEnter:b,onMouseLeave:v,colourPalette:a,customTextColour:i},t&&u.default.createElement(Ji,null,t),u.default.createElement(M,{variant:"bodyBold"},n),r&&u.default.createElement(Ki,{active:d||h,colourPalette:a,customTextColour:i},u.default.createElement(Zi,{variant:"subheadingSmall"},r)),w&&u.default.createElement(Gi,Object.assign({},Yi,{"aria-label":"delete icon"})),C&&d&&u.default.createElement(Xi,Object.assign({},Yi,{"aria-label":"edit icon"}))))})),er=f.default(Et).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--1p01q6"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,tr=f.default(Et).withConfig({displayName:"vui--Container",componentId:"vui--jg3tdl"})`background-color:${y.neutral.grey.lightest};`,nr=f.default(ta).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--gdu1c8"})`color:${y.neutral.ink.base};`,or=f.default(bt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--tvozdf"})`color:${y.neutral.ink.base};`,lr=f.default(qi).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--1vjvhoa"})`color:${y.neutral.ink.base};`,ar=f.default(be).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--q5etoj"})`background-color:white;&:hover{background-color:${y.neutral.grey.lightest};}`,ir=f.default(be).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--jo62ep"})`background-color:white;&:disabled{background-color:white;${nr}{color:${y.neutral.ink.lightest};}}&:hover{background-color:${y.neutral.grey.lightest};}`,rr=f.default(be).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1yb1huw"})`background-color:white;&:disabled{background-color:white;${or}{color:${y.neutral.ink.lightest};}}&:hover{background-color:${y.neutral.grey.lightest};}`,dr=f.default(to).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--1voa90"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,sr=(t,n)=>{const[o,l]=e.useState(!0),[a,i]=e.useState(!1),[r,d]=e.useState([]),s=e.useCallback((()=>{var e,n;t.current.scrollLeft>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(e=document.getElementById("right-arrow"))||void 0===e||e.focus()),l(!0));const o=t.current.scrollWidth-t.current.clientWidth;t.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),i(!0)):i(!1)}),[t]),c=e.useCallback((()=>{t.current.scrollWidth-t.current.getBoundingClientRect().width<5?i(!0):i(!1)}),[t]),u=e.useCallback((()=>{const e=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(r,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,r]),f=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(r,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,r]);return e.useEffect((()=>{if(t)return n.length>r.length&&r.length>0&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),d([...r,r[r.length-1]+t.current.children[r.length].getBoundingClientRect().x-20])),0===r.length&&d((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c(),window.addEventListener("resize",(()=>c())),t.current.addEventListener("scroll",(()=>s())),()=>{window.removeEventListener("resize",(()=>c()))}}),[t,n,c,s,r]),{rightDisabled:a,leftDisabled:o,toNextScrollPosition:u,toPrevScrollPosition:f}},cr=u.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:l},a)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=sr(i,t);return u.default.createElement(tr,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(er,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),u.default.createElement(dr,null,(!d||!r)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(ir,{id:"left-arrow",icon:u.default.createElement(nr,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),u.default.createElement(rr,{id:"right-arrow",icon:u.default.createElement(or,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),u.default.createElement(ar,{icon:u.default.createElement(lr,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":l,"aria-haspopup":o?"dialog":void 0,ref:a})))})),ur=f.default(b).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,fr=f.default(b).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,mr=f.default(po).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,pr=f.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${z.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${z.colors.secondary.red.base};\n `};`,gr=so((e=>{var{size:t=no.base,hasError:n,className:o}=e,l=q(e,["size","hasError","className"]);return u.default.createElement(ur,{className:o},u.default.createElement(fr,null,"g"===l.weightUnit&&u.default.createElement(to,null,u.default.createElement(mr,Object.assign({size:t,onChange:l.handleChangeGram,name:"gram",type:"number",value:l.gram,hasError:n},l)),u.default.createElement(pr,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(l)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(to,null,u.default.createElement(mr,Object.assign({size:t,onChange:l.handleChangePound,name:"ounce",type:"number",value:l.pound,hasError:n},l)),u.default.createElement(pr,{hasError:n,size:t},"lb")),u.default.createElement(to,null,u.default.createElement(mr,Object.assign({size:t,onChange:l.handleChangeOunce,name:"pound",type:"number",value:l.ounce,hasError:n},l)),u.default.createElement(pr,{hasError:n,size:t},"oz")))))}));gr.displayName="WeightInput",gr.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:l,iconSlot:a,glyphColor:i=y.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[c,f]=e.useState(!!s);return u.default.createElement(P,{open:!!s,className:n},u.default.createElement(H,{onClick:()=>f(!c)},u.default.createElement(A,null,u.default.createElement(D,{glyphColor:i},a,u.default.createElement(M,{variant:"body"},l)),u.default.createElement(T,null,u.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},u.default.createElement(V,{name:c?"downArrow":"upArrow"})))),!!d&&u.default.createElement(O,{variant:"hintText"},d)),c&&u.default.createElement(W,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=We,exports.Anchor=({children:e,className:t,text:n,href:o,target:l})=>u.default.createElement(Pe,{href:o,target:l,className:t},e||n),exports.AnimatedDropdown=Ge,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=z.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const l=t.toUpperCase().match(/\b(\w)/g);return u.default.createElement(Ke,{width:e,bgColor:n,textColor:o,className:"avatar"},null==l?void 0:l.slice(0,2).map(((e,t)=>u.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:l,e2eClassName:a,children:i})=>{const r=it[e];return u.default.createElement(lt,{text:o},u.default.createElement(r,{className:U([l,a]),hideBorder:t},n&&n,i&&u.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:l,className:a,header:i,children:r,backgroundColor:d="white"}=e,s=q(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=pt[t];return u.default.createElement(rt,Object.assign({accentColor:c,className:a,backgroundColor:d},s),u.default.createElement(dt,null,o&&u.default.createElement(ct,{style:{marginRight:N.md},accentColor:c},o),r?u.default.createElement(ut,null,r):u.default.createElement(u.default.Fragment,null,u.default.createElement(ft,null,i||u.default.createElement(mt,{variant:"headingSmall"},n)),u.default.createElement(st,null,l&&u.default.createElement(be,{variant:"flat","aria-label":"Close",icon:u.default.createElement(we,null),onClick:l})))))},exports.BaseContainer=b,exports.Breadcrumbs=({items:e,Separator:t=u.default.createElement(xt,null),LinkComponent:n=yt})=>u.default.createElement(gt,{className:"breadcrumbs"},e.map(((o,l)=>u.default.createElement(vt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:l!==e.length-1?n:wt},e.length!==l+1&&t)))),exports.Button=be,exports.Card=Be,exports.CardHeader=Ce,exports.Checkbox=Wt,exports.Choice=Dt,exports.ChoiceList=Xt,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[l,a]=u.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),a(!0),setTimeout((()=>a(!1)),2500)}),[o,n]);return u.default.createElement(lt,{text:l?"Copied!":"Copy to clipboard"},u.default.createElement(_t,{variant:"flat",size:"sm",className:t,"aria-label":`${l?"Copied":"Copy"} "${n}" to clipboard`,icon:l?u.default.createElement(Gt,Object.assign({color:y.secondary.green.base},Ut)):u.default.createElement(Kt,Object.assign({color:y.secondary.blue.base},Ut)),onClick:i}))},exports.DataTable=qn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>u.default.createElement(_n,{key:e},e))):u.default.createElement(_n,null,e);return u.default.createElement(Zn,null,e.map((e=>t?u.default.createElement(Gn,{key:e.term},u.default.createElement(Un,null,e.term),u.default.createElement(Kn,null,n(e.description))):u.default.createElement(Xn,{key:e.term},u.default.createElement(Un,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,l]=e.useState(!0);return u.default.createElement("main",null,t((()=>l(!o)),o),u.default.createElement(eo,null,u.default.createElement(Qn,{showSidebar:o},n)))},exports.DimensionsInput=xo,exports.FilterTag=({className:e,e2eClassName:t,label:n,text:o,iconSlot:l,fill:a=y.secondary.blue.base,content:i,footer:r,onClick:d})=>{const s=Bo(e),c=Bo(t),{shouldShowDropdown:f,toggleShouldShowDropdown:m,closeDropdown:p}=wo();return!i?u.default.createElement(ko,{className:U([null==s?void 0:s.container,null==c?void 0:c.container]),onClick:d},n&&u.default.createElement(No,{variant:"subheadingSmallBold"},`${n}:`),u.default.createElement(M,null,o),u.default.createElement(Lo,{className:U([null==s?void 0:s.cross,null==c?void 0:c.cross]),name:"cross",size:"base",color:y.neutral.ink.base})):u.default.createElement(Ge,{className:s.filterTagDropdown,shouldShowDropdown:f,onShouldClose:p,cta:u.default.createElement(ko,{className:s.container,onClick:m},n&&u.default.createElement(No,{variant:"subheadingSmallBold"},`${n}:`),u.default.createElement(M,null,o),u.default.createElement(Io,{color:y.neutral.ink.base,name:"downArrow",shouldShow:f}))},u.default.createElement(zo,null,u.default.createElement(Fo,{color:a},l,u.default.createElement(M,{variant:"bodyBold"},n)),i,r))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),l())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function l(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function a(e){e.metaKey||e.altKey||e.ctrlKey||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!0),n())}return document.addEventListener("keydown",a,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),l()}}),[o]),u.default.createElement(Co.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=jo,exports.Image=({src:t,alt:n="",className:l,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:f="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Ao(l),x=Ao(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=u.default.useState(null),[S,N]=u.default.useState(null),{styles:I,attributes:L}=o.usePopper($,S,{placement:f,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),F=e.useCallback((()=>m?w(!1):{}),[m]),B=!C.isLoaded||C.isError;return u.default.createElement(Ro,{className:U([null==v?void 0:v.container,null==x?void 0:x.container,l])},u.default.createElement(Do,{src:t,alt:n,className:U([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:F,style:B?{display:"none"}:{},ref:k}),!b&&B&&(p||u.default.createElement(Mo,{className:U([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&a.createPortal(u.default.createElement(To,Object.assign({ref:N,style:I.popper},L.popper,{className:U([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),u.default.createElement(Ho,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=to,exports.LegacyDataTable=Fl,exports.Loader=le,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(jl);return u.default.createElement(Bl,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(jl)},"aria-label":Ml},t),u.default.createElement("img",{src:n,alt:Ml}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:l=!0,fullBleed:a=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,f]=e.useState(null);e.useEffect((()=>{var e,t;o&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:m,onScroll:p}=$o(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return u.default.createElement(t.AnimatePresence,null,o&&u.default.createElement("div",{"data-testid":"dialog-wrapper"},u.default.createElement(Rl,null),u.default.createElement(Vl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Be.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:u.default.createElement(Ce,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},l&&{onClickClose:g})),u.default.createElement(Dl,{onScroll:p,ref:f,isScrollable:m,fullBleed:a},d),Tl(n)&&n.footerSlot,!Tl(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(Be.Footer,null,u.default.createElement(Et,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&u.default.createElement(Et,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=q(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&u.default.createElement(Et,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=q(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:l,backAction:a,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const f=o&&u.default.createElement(We,{buttonVariant:l?"default":"primary",title:"Actions",sections:o}),m=null==l?void 0:l.map((e=>u.default.createElement(be,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=a&&u.default.createElement(be,{onClick:a.onClick,icon:u.default.createElement(ta,null),variant:"link"},a.title),g=c&&u.default.createElement(Et,{direction:"horizontal",alignX:"end"},u.default.createElement(Ql,{onClick:c},u.default.createElement("span",null,"Toggle sidebar"),u.default.createElement(bt,{width:N.md})));return u.default.createElement(Kl,{shadow:r},u.default.createElement(Et,null,p,u.default.createElement(ea,null,u.default.createElement(Et,{direction:"horizontal",spacing:"md"},n&&u.default.createElement(Yl,{src:n,alt:"",width:"72",height:"72"}),u.default.createElement("div",{style:{flex:1}},u.default.createElement(Et,{alignX:"stretch"},u.default.createElement(Ul,null,e),i,t&&u.default.createElement(_l,null,t)))),u.default.createElement(Jl,null,u.default.createElement(Et,{direction:"horizontal",alignX:"end",spacing:"sm"},m,f,d&&u.default.createElement(be,{icon:u.default.createElement(ta,null),onClick:d}),s&&u.default.createElement(be,{icon:u.default.createElement(bt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:l})=>{const{pageInputValue:a,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=ia({currentPage:n,totalPagesCount:o,handleChangePage:l});return u.default.createElement(Et,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},u.default.createElement(oa,{onClick:()=>{1!==n&&l(1)},icon:u.default.createElement(ra,null),size:"sm","aria-label":"go to first page"}),u.default.createElement(oa,{onClick:r,icon:u.default.createElement(ta,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),u.default.createElement("form",{onSubmit:d},u.default.createElement(la,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:no.sm,type:"number",value:a,min:"1",max:`${o}`,onChange:s,onBlur:c})),u.default.createElement(aa,{count:o}),u.default.createElement(oa,{onClick:i,icon:u.default.createElement(bt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),u.default.createElement(oa,{onClick:()=>{n!==o&&l(o)},icon:u.default.createElement(da,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=({className:t,paginationRange:n=sa,reversedDropdown:o,onPaginationRangeChange:l,dropdownValue:a=sa[1]})=>{const[i,r]=e.useState(a),[d,s]=e.useState(!1),c=()=>s((e=>!e));return e.useEffect((()=>{a!==i&&r(a)}),[a]),u.default.createElement(ca,{className:t},u.default.createElement(Ge,{useAnchorWidth:!0,id:ga,cta:u.default.createElement(be,{"data-testid":"pagination-range",onClick:c,dropdown:!0,size:"sm","aria-haspopup":!0,"aria-controls":ga,"aria-expanded":d},i.label),shouldShowDropdown:d,onShouldClose:c,reversed:o,placement:"bottom-start"},u.default.createElement(pa,{paginationRange:n,handleRangeListChange:e=>{s(!1),r(e),l(e)}})))},exports.Popover=ee,exports.Popup=zi,exports.Portal=X,exports.PriceInput=Ea,exports.Radio=Vt,exports.Search=Ia,exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>u.default.createElement(Ba,{className:n?`${n}-container`:void 0},e.map((e=>u.default.createElement(be,{variant:e.value===t?"primary":"default",key:e.key,onClick:()=>o(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Ma,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:o=!1,displayLabel:l=!1}=e,a=q(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Ta[e]?u.default.createElement(Da,{key:`Key: ${e}`,"aria-label":Ha[e]},Ta[e]):u.default.createElement(Da,{key:`Key: ${e}`},e))).reduce(((e,t)=>u.default.createElement(u.default.Fragment,null,e,"+",t)));return u.default.createElement(Ra,Object.assign({"aria-label":n,$inverse:o},a),i," ",l?u.default.createElement("span",null,n):null)},exports.SimpleTable=Ga,exports.Slider=({id:t,value:n,min:o,max:l,step:a=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[f,m]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Ja(r),y=Ja(d),w=e.useCallback((e=>{var t;if(!f||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(l-o)+o;const c=r-s;if(c>0&&(s=r+Math.ceil(s/a-r/a)*a),c<0&&(s=r+Math.floor(s/a-r/a)*a),r===s)return;s>l&&(s=l),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=a.toString().includes(".")?null===(t=a.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;s=Number(s.toFixed(u)),m=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(m),Array.isArray(m)&&m[0]===m[1]&&(0===p&&g(1),1===p&&g(0))}),[p,f,l,o,i,a,n]),C=e.useCallback((()=>{m(!1),c()}),[c]),E=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>E(e,Array.isArray(n)?0:1),t=e=>E(e,1),o=b.current,l=v.current;return null==o||o.addEventListener("mousedown",e),null==l||l.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==l||l.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let a;return a=U("number"==typeof n?0===n?[null==x?void 0:x.startSlider,null==y?void 0:y.startSlider]:[null==x?void 0:x.endSlider,null==y?void 0:y.endSlider]:[null==x?void 0:x.slider,null==y?void 0:y.slider]),u.default.createElement(_a,{role:"slider",ref:1===n?v:b,className:a,left:e,"aria-valuemin":o,"aria-valuemax":l,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(l-o),n=100*(e[1]>l?100:e[1]-o)/(l-o),a=n-t;return u.default.createElement(u.default.Fragment,null,u.default.createElement(Ya,{className:U([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:a}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>l?100:n<o?0:100*(e-o)/(l-o),$(t,e)})(n),u.default.createElement(Ka,{className:U([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},u.default.createElement(Ua,null),S)},exports.Stack=Et,exports.Stepper=va,exports.Tag=Qa,exports.Text=M,exports.TextField=po,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:l="50vw",max:i=3,onClose:r})=>(e.useEffect((()=>{i&&o.length>i&&r(o[0].key)}),[o,i,r]),a.createPortal(u.default.createElement(ei,{direction:"vertical",alignX:"center",spacing:4},u.default.createElement(d.TransitionGroup,{component:null},[...o].reverse().map(((e,a)=>u.default.createElement(d.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},u.default.createElement(ri,Object.assign({className:t,e2eClassName:n,minWidth:l,last:a===o.length-1,onClose:()=>r(e.key)},e))))))),document.body)),exports.Toggle=fi,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:l})=>u.default.createElement(mi,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>l(!t)},e),exports.Tooltip=lt,exports.UploadFile=$i,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const l=yo(n,o);return u.default.createElement(zi,{shouldShow:n,className:`${e}-video`},u.default.createElement(Fi,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},u.default.createElement(Bi,{ref:l},u.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),u.default.createElement(ji,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:u.default.createElement(we,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:l,className:a,colourPalette:i=y.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:f,onEdit:m,e2eClassName:p})=>{const g=Pi(a),h=Pi(p),[b,v,x]=Eo(),w=e.useCallback((()=>c(t)),[t,c]),C=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=l===Mi.draft,k=l===Mi.saved,S=s?y.neutral.ink.dark:y.neutral.ink.base;return u.default.createElement(Ri,{className:`${U([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},u.default.createElement(Ti,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&u.default.createElement(Oi,null,n),u.default.createElement(M,{variant:"bodyBold"},o),d&&u.default.createElement(Hi,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(Di,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&u.default.createElement(we,Object.assign({},Ai,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&u.default.createElement(Wi,Object.assign({},Ai,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=Qi,exports.ViewsContainer=cr,exports.WeightInput=gr,exports.buildClassnames=U,exports.generateId=Z,exports.getOpaqueHexColor=Y,exports.hexToRgb=_,exports.theme=z,exports.useCellWidths=an,exports.useClickOutside=yo,exports.useColumns=rn,exports.useDebounce=(t,n)=>{const[o,l]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>l(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=dn,exports.useDropdown=wo,exports.useFocusVisible=function(){const[e,t]=u.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=u.default.useContext(Co),l=u.default.useCallback((()=>{e||t(!0)}),[e]),a=u.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,u.default.useMemo((()=>({focusVisible:i,onFocus:l,onBlur:a})),[i,a,l])},exports.useHover=Eo,exports.useIsOverflowing=$o,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const l=[...t];l.splice(e,1),n(l)}}}}},exports.useScrollPosition=sn,exports.useSelection=hn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[l]=e.useState(t),[a,i]=e.useState(l[o]);return[a,e=>{const t=l.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),u.default.createElement(t,Object.assign({},n))),exports.withLabels=so;
1
+ "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),a=require("react-aria-components"),o=require("react-popper"),l=require("resize-observer-polyfill"),i=require("react-dom"),r=require("uid/secure"),d=require("react-transition-group"),s=require("@internationalized/date"),c=require("lodash.throttle"),u=require("react-use"),m=require("react-scrolllock-configurable");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=p(e),g=p(n),h=p(l),b=p(i),v=p(c),x=p(m);const y=g.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,w={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},E=(e,t)=>e||(t?w[t]:void 0),C={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},$={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},k={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var S,N;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(S||(S={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(N||(N={}));const L=function({increment:e,unit:t,count:n}){const a={};for(let o=0;o<=n;o++){const n=o*e;a[o]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),I={[N.none]:"0",[N.line]:"1px",[N.xs]:L[1],[N.sm]:L[2],[N.base]:L[4],[N.md]:L[6],[N.lg]:L[8],[N.xl]:L[12],[N.xxl]:L[16]},z=Object.assign(Object.assign({},I),L),D={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},F={headingXXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:C.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:C.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},R=Object.assign(Object.assign({},D),{breakpoints:$,colors:C,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:k,shadows:S,sizes:z,text:F}),{text:T,colors:M,fontFamily:O}=R,A=g.default.span.attrs((({as:e,variant:t})=>({as:E(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${O};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?M.neutral.ink.lightest:T[e].color;return`\n font-family: ${T[e].fontFamily};\n font-style: ${T[e].fontStyle};\n font-weight: ${T[e].fontWeight};\n font-size: ${T[e].fontSize};\n line-height: ${T[e].lineHeight};\n color: ${n};\n text-decoration: ${T[e].textDecoration};\n letter-spacing: ${T[e].letterSpacing};\n `}}`,B=g.default(y).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=g.default(B).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${z.base};width:${z.base};color:${({glyphColor:e})=>e};}`,H=g.default(B).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,W=g.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${R.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,P=g.default(y).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,_=g.default(A).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,V=g.default(t.motion(y)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Z=g.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,q=g.default(t.motion(y)).withConfig({displayName:"vui--UnstyledAccordionContent",componentId:"vui--59wczx"})``,Y=g.default.summary.withConfig({displayName:"vui--UnstyledAccordionSummary",componentId:"vui--fyolu6"})`&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,X=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"}));function K(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;const U=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":o},f.default.createElement("defs",null,f.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},f.default.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),f.default.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),f.default.createElement("stop",{stopColor:a,offset:"100%"}))),f.default.createElement("g",{fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(1 1)"},f.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),f.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},f.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),G=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},f.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),J=({width:e,height:t,className:n,color:a,label:o})=>f.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":o},f.default.createElement("circle",{cx:"15",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},f.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),f.default.createElement("circle",{cx:"105",cy:"15",r:"15"},f.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),f.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),Q=({className:e,height:t=24,width:n=24,color:a="#588CB0",type:o="TailSpin"})=>{switch(o){case"Grid":return f.default.createElement(G,{className:e,height:t,width:n,color:a});case"ThreeDots":return f.default.createElement(J,{className:e,height:t,width:n,color:a});default:return f.default.createElement(U,{className:e,height:t,width:n,color:a})}},ee=g.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>z[e]};height:${({size:e})=>z[e]};}`,te=g.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${R.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",o="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",o="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${o};\n font-size: ${l};\n line-height: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,ne=g.default(te).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${R.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?R.colors.neutral.ink.base:R.colors.secondary.blue.base};&:hover{background-color:${R.colors.neutral.grey.lightest};}&:active{background-color:${R.colors.neutral.grey.lightest};border-color:${R.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${R.colors.neutral.grey.base} !important;border-color:${R.colors.neutral.grey.base} !important;color:${R.colors.neutral.ink.light} !important;}`,ae=g.default(ne).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${R.colors.secondary.red.base};&:hover{color:${R.colors.secondary.red.dark};}&:active{border-color:${R.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};color:${R.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,oe=g.default(ne).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${R.colors.secondary.blue.base};border-color:${R.colors.secondary.blue.base};color:white;&:hover{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};}&:active{background-color:${R.colors.secondary.blue.dark};border-color:${R.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}`,le=g.default(oe).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${R.colors.secondary.red.base};border-color:${R.colors.secondary.red.base};color:white;&:hover{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};}&:active{background-color:${R.colors.secondary.red.dark};border-color:${R.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.red.light};}`,ie=g.default(te).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${R.colors.neutral.ink.base};&:hover{background-color:${R.colors.neutral.grey.light};}&:active{background-color:${R.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,re=g.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,de=g.default(re).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${R.text.link.fontFamily};font-size:${R.text.link.fontSize};line-height:${R.text.link.fontSize};font-weight:${R.text.link.fontWeight};line-height:${R.text.link.lineHeight};text-decoration:${R.text.link.textDecoration};color:${R.colors.secondary.blue.base};&:hover{color:${R.colors.secondary.blue.dark};}& > * + *{margin-left:${R.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${R.colors.secondary.blue.light};border-radius:4px;}`,se=g.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ce=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ue={default:ne,primary:oe,destructive:ae,primaryDestructive:le,flat:ie,link:de,unstyled:re},me=e.forwardRef(((e,t)=>{var{className:n,children:a,icon:o,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=K(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return f.default.createElement(re,Object.assign({ref:t,className:n},s),a);const c=ue[l],u=void 0!==a,m=!!o;return f.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:u,hasIcon:m,hasDropdown:r},s),(u||m)&&f.default.createElement(ee,{$loading:d,hasText:!!a,size:a||"sm"===i?"base":"md"},o&&o,void 0!==a&&a,r&&f.default.createElement(ce,null)),d&&f.default.createElement(se,null,f.default.createElement(Q,null)))})),pe=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${z.md};padding-right:${z.md};padding-left:${z.md};margin-bottom:${z.md};& > * + *{margin-top:${z.xs};}`,fe=g.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${z.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ge=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),he=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),be=({id:e,title:t,subtitle:n,headerVariant:a="headingSmall",action:o,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>f.default.createElement(pe,null,f.default.createElement(fe,null,f.default.createElement(A,{id:e,variant:a},t),o&&f.default.createElement(me,{variant:"link",onClick:o.onClick},o.title),l,r&&f.default.createElement(me,{variant:"flat",icon:i?f.default.createElement(ge,null):f.default.createElement(X,null),onClick:r}),d&&f.default.createElement(me,{variant:"flat",icon:f.default.createElement(he,null),onClick:d,"aria-label":"Close"})),n&&f.default.createElement(A,{variant:"subheadingSmall"},n)),{grey:ve}=C.neutral,xe={0:"none",1:S.sm,2:S.base,3:S.md,4:S.lg},ye={info:C.secondary.blue.base,success:C.secondary.green.base,error:C.secondary.red.base},we=g.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${z.base};padding:${z.md};z-index:2;`,Ee=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${z.md};padding-left:${z.md};margin-top:${z.md};margin-bottom:${z.md};font-family:${F.body.fontFamily};font-size:${F.body.fontSize};font-weight:${F.body.fontWeight};line-height:${F.body.lineHeight};color:${F.body.color};& + &{border-top:${z.line} solid ${ve.base};padding-top:${z.md};}`,Ce=g.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${z.md};margin-right:-${z.md};`,$e=g.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ee}:first-child{margin-top:0;}`,ke=g.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${z.line} solid ${ve.base};box-shadow:${e=>void 0!==e.elevation?xe[e.elevation]:S.sm};border-radius:${k.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${z.xs};\n background-color: ${ye[e]};\n }\n `}`,Se={expanded:{height:"auto"},collapsed:{height:0}},Ne=({className:t,style:n,title:a,subtitle:o,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:u,renderFooter:m})=>{const[p,g]=e.useState(!1),h=a&&f.default.createElement(be,{title:a,subtitle:o,ActionSlot:l,action:i,onClickClose:u,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=f.default.createElement($e,{animate:b?"expanded":"collapsed",variants:Se,transition:{duration:.3,ease:"easeOut"}},f.default.createElement(Ee,null,c)),x=void 0!==m&&f.default.createElement(we,null,m());return f.default.createElement(ke,{className:t,style:n,elevation:d,accent:s},h,v,x)};Ne.Surface=ke,Ne.Section=Ee,Ne.FullBleed=Ce,Ne.Footer=we;const Le=g.default(t.motion(Ne.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${R.colors.neutral.grey.base};border-radius:${R.radius.base};padding:${R.sizes.base};`,Ie=e=>{const t=r.uid();return e?`${e}-${t}`:t};class ze extends e.PureComponent{constructor(e){super(e),this.id=Ie("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?i.createPortal(e,this.portalNode):null}}const De=g.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Fe=g.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,Re=e=>e.filter(Boolean).join(" "),Te=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},Me=(e,t)=>{const n=Te(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},Oe=["app.veeqo.com"];function Ae(e,t=Oe){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const Be='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',je=({popperElement:t,anchorElement:n,onClose:a,disableFocusLock:o=!1})=>{e.useEffect((()=>{if(!t||o)return;const e=t.querySelectorAll(Be);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,o]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(Be);if(n.length<1)return void a();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,a]);return{handleKeyDown:e=>{t&&("Escape"===e.key?a():o||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(Be),a=n[0],o=n[n.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),a.focus())})(e))}}},He=t=>{var{id:n,children:a,zIndex:l=R.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:u,removeBackdrop:m=!1,useAnchorWidth:p}=t,g=K(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[b,v]=e.useState(null),{styles:x,attributes:y,update:w}=o.usePopper(r,b,{placement:i}),E=e.useMemo((()=>n||Ie("popover")),[n]);(({anchorElement:t,popoverId:n})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n])})({anchorElement:r,popoverId:E});const C=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:$}=je({popperElement:b,anchorElement:r,onClose:C,disableFocusLock:u});return e.useEffect((()=>{if(!w||!b)return;const e=new h.default(w);return e.observe(b),()=>e.disconnect()}),[w,b]),e.useEffect((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),f.default.createElement(ze,{rootElementRef:d},!m&&f.default.createElement(Fe,{onClick:C,zIndex:l,"data-testid":"popover-backdrop"}),f.default.createElement(De,Object.assign({open:!0,id:E,zIndex:l,ref:v,style:Object.assign(Object.assign(Object.assign({},x.popper),c),p?{minWidth:null==r?void 0:r.clientWidth}:{}),onKeyDown:$},y.popper,g),a))},We=n=>{var{id:a,children:o,className:l,style:i,reversed:r,anchorElement:d,useAnchorWidth:s,onShouldClose:c}=n,u=K(n,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==d?void 0:d.focus()),[d]),f.default.createElement(He,Object.assign({id:a,"data-testid":a,anchorElement:d,onShouldClose:c,useAnchorWidth:s,placement:"bottom-start"},u),f.default.createElement(t.AnimatePresence,null,f.default.createElement(Le,{className:l,style:i,useAnchorWidth:s,reversed:r,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},Pe=t=>{var{id:n,shouldShow:a,setShouldShow:o,ctaIconSlot:l,ctaProps:i}=t,r=K(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=e.useRef(null);return f.default.createElement(f.default.Fragment,null,f.default.createElement(me,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":n,onClick:()=>null==o?void 0:o(!a),icon:l,dropdown:!0},i)),a&&f.default.createElement(We,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==o?void 0:o(!1)},r)))},_e=(t,n)=>{const a=e.useRef(null),o=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{a.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",o)}}),[l,o,t]),a},Ve=({anchorElement:t}={})=>{const[n,a]=e.useState(!1),o=e.useCallback((()=>a(!n)),[n,a]),l=e.useCallback((()=>{a(!1),setTimeout((()=>{null==t||t.focus()}),0)}),[a,t]);return{shouldShowDropdown:n,toggleShouldShowDropdown:o,setShouldShowDropdown:a,closeDropdown:l}},Ze=f.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const qe=(t=!1)=>{const[n,a]=e.useState(t);return[n,e.useCallback((()=>a(!0)),[a]),e.useCallback((()=>a(!1)),[a])]},Ye=t=>{const[n,a]=e.useState(!1),[o,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;a(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!o,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:a,clientHeight:o}=e.target;l(a-n-o<=0)}}},Xe=({id:t,prefix:n})=>e.useMemo((()=>t||Ie(n)),[t,n]),Ke=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,Ue=g.default(a.MenuItem).withConfig({displayName:"vui--MenuItem",componentId:"vui--1vhrzmz"})`display:grid;grid-template-areas:'label''description';cursor:pointer;margin:${R.sizes.xs};padding:${R.sizes.sm};border-radius:${R.radius.base};outline:0;&:is(a){${Ke(R.text.link)}}&:is(div){${Ke(R.text.body)}}white-space:nowrap;&[data-focused]{color:${R.colors.secondary.blue.base};box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&[data-hovered]{background-color:${R.colors.neutral.grey.light};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.lightest};color:${R.colors.neutral.ink.light};}[slot='label']{grid-area:label;}[slot='description']{grid-area:description;color:${R.colors.neutral.ink.light};font-size:12px;}`,Ge=g.default(a.Section).withConfig({displayName:"vui--Section",componentId:"vui--1lpesff"})`&:not(:first-child){margin-top:0.5rem;border-top:1px solid ${R.colors.neutral.grey.base};padding-top:0.5rem;}`,Je=({id:t,menuLabel:n,ctaProps:o,actions:l,children:i})=>{var r;const[d,s]=e.useState(!1),c=Xe({id:t,prefix:"action-menu"});return f.default.createElement(Pe,{id:c,style:{padding:"0"},shouldShow:d,setShouldShow:s,ctaProps:Object.assign({size:"sm"},o),useAnchorWidth:!0,onKeyDown:e=>{"Escape"!==e.code&&"Tab"!==e.code||s(!1),e.preventDefault()}},f.default.createElement(a.Menu,{onClose:()=>s(!1),"aria-label":n||(null===(r=o.children)||void 0===r?void 0:r.toString())},null==l?void 0:l.map((e=>{var t;return f.default.createElement(Ue,Object.assign({},e,{key:e.id||(null===(t=e.children)||void 0===t?void 0:t.toString())}))})),i))};var Qe;Je.Item=Ue,Je.Section=Ge,Je.Text=a.Text,function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Qe||(Qe={}));const et=g.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:o="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&Qe[n],i=a&&Qe[a],s=R.sizes[o],r="column"):(l=a&&Qe[a],i=n&&Qe[n],c=R.sizes[o],r="row"),("vertical"===t&&"stretch"===a||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;et.displayName="Stack";const tt=g.default(et).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${R.radius.base};background-color:${({colours:{background:e}})=>e};`,nt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})),at=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),ot=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),f.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),f.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),lt=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),it={base:R.sizes.base,sm:R.sizes[3],xs:R.sizes.sm},rt={base:R.sizes.md,sm:R.sizes[5],xs:R.sizes[5]},dt={default:ot,error:nt,success:lt,info:at,warning:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),f.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),f.default.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),f.default.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},st={default:{primary:R.colors.neutral.ink.base,background:R.colors.neutral.grey.lightest},error:{primary:R.colors.secondary.red.base,background:R.colors.secondary.red.lightest},success:{primary:R.colors.secondary.green.base,background:R.colors.secondary.green.lightest},info:{primary:R.colors.secondary.blue.base,background:R.colors.secondary.blue.lightest},warning:{primary:R.colors.secondary.orange.base,background:R.colors.secondary.orange.lightest},recommend:{primary:R.colors.secondary.purple.dark,background:R.colors.secondary.purple.lightest}},ct=g.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${R.text.link.fontFamily};font-style:${R.text.link.fontStyle};font-weight:${R.text.link.fontWeight};font-size:${R.text.link.fontSize};line-height:${R.text.link.lineHeight};color:${R.colors.secondary.blue.base};text-decoration:${R.text.link.textDecoration};&:hover{color:${R.colors.secondary.blue.dark};}`,ut=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,mt=e.forwardRef(((e,t)=>{const{children:n,className:a,role:o}=e;return f.default.createElement(ut,{className:a,ref:t,role:o},n)})),pt=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,ft=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,gt=g.default(mt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${R.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,ht=({cta:t,shouldShowDropdown:n,children:a,className:o="animated-dropdown",reversed:l=!1,onClickAway:i=(()=>{}),timeout:r=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:u,onMouseLeave:m})=>{const p=e.useRef(null);return((t,n)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,n])})(p,(e=>{n&&i(e)})),f.default.createElement(pt,{className:`${o}-container ${o}`,onClick:c,onMouseEnter:u,onMouseLeave:m,ref:p},!l&&t,f.default.createElement(ft,{className:`${o}-wrap ${o}`},f.default.createElement(d.CSSTransition,{in:n,timeout:r,classNames:s,unmountOnExit:!0},f.default.createElement(gt,{role:"dialog",reversed:l,className:`${o}-basic-dropdown ${o}`},a))),l&&t)},bt=g.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${R.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${R.text.bodySmallBold.fontFamily};font-weight:${R.text.bodySmallBold.fontWeight};font-size:${R.text.bodySmallBold.fontSize};line-height:${R.text.bodySmallBold.lineHeight};}`,vt=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,xt=g.default(vt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,yt=g.default(A).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${R.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,wt=g.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Et=g.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,Ct=g.default(vt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var $t;!function(e){e.BOTTOM="bottom",e.TOP="top"}($t||($t={}));const kt={duration:400,side:$t.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},St=({content:t,text:n,hoverableElement:a,config:l,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),u=Object.assign(Object.assign({},kt),l),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:v,attributes:x}=o.usePopper(a,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:R.layers.tooltip});return f.default.createElement(Et,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),f.default.createElement(Ct,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:f.default.createElement(yt,null,n)),r&&f.default.createElement(wt,{id:"veeqo-components-triangle",className:d.triangle}))},Nt=({children:t,text:n,content:a,config:o,reversed:l=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,u]=e.useState(d),[m,p]=e.useState(null),g=!!n&&n.trim().length>0,h={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!a&&!g);if(!v)return t;const x=c&&v&&f.default.createElement(St,{classNames:h,hoverableElement:m,config:o,reversed:l,withTriangle:r,text:n,content:a});return f.default.createElement(vt,{className:h.container},s?b.default.createPortal(x,document.body):x,f.default.createElement(xt,{ref:p,className:h.hoverable,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},t))},Lt=g.default(y).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${F.bodySmall.fontFamily};font-weight:${F.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${z.base};height:${z.base};}`,It={default:g.default(Lt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${C.secondary.blue.base};color:${C.secondary.blue.base};`,primary:g.default(Lt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};color:${C.secondary.blue.base};`,warning:g.default(Lt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${C.secondary.yellow.base};background-color:${C.secondary.yellow.lightest};color:${C.secondary.orange.dark};`},zt=g.default(y).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,Dt=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Ft=g.default(y).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Rt=g.default(Ft).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${z.md};height:${z.md};color:${({accentColor:e})=>e};}`,Tt=g.default(y).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Mt=g.default(Ft).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Ot=g.default(A).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,At={help:C.secondary.blue.base,info:C.neutral.ink.base,error:C.secondary.red.base,success:C.secondary.green.base},Bt=g.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${F.body.fontFamily};font-weight:${F.body.fontWeight};font-size:${F.body.fontSize};line-height:${F.body.lineHeight};`,jt=g.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Ht=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),Wt=({children:e,title:t,LinkComponent:n,href:a})=>n?f.default.createElement(jt,{className:"breadcrumb"},f.default.createElement(n,{href:a},t),e):f.default.createElement(jt,{className:"breadcrumb"},t,e),Pt=()=>f.default.createElement(Ht,{className:"separator",width:z.base,height:z.base}),_t=({children:e,href:t})=>f.default.createElement("a",{href:t},e),Vt=({children:e})=>f.default.createElement("span",null,e),Zt=e=>f.default.createElement(a.CalendarGrid,Object.assign({weekdayStyle:"short"},e),f.default.createElement(a.CalendarGridHeader,null,(e=>f.default.createElement(a.CalendarHeaderCell,null,e.slice(0,2)))),f.default.createElement(a.CalendarGridBody,null,(e=>f.default.createElement(a.CalendarCell,{date:e})))),qt=n.css`.react-aria-Button{color:${R.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${R.sizes.base};height:${R.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${R.colors.secondary.blue.light};}&:active,&:hover{background-color:${R.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${R.colors.neutral.grey.base};cursor:default;}}`,Yt=n.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${R.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${R.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${R.colors.secondary.blue.light};}&[data-selected]{background:${R.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${R.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${R.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${R.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${R.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${R.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,Xt=n.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Ke(R.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${R.sizes.sm};}`,Kt=g.default(a.RangeCalendar).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${R.colors.neutral.ink.base};font-size:14px;font-family:${R.fontFamily};${Xt} ${qt} ${Yt} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Ut=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Gt=t=>{var n,{disabledRanges:o=[],disallowWeekends:l=!1,isMultiMonth:i=!1}=t,r=K(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=f.default.useState(null===(n=r.value)||void 0===n?void 0:n.start),{locale:u}=a.useLocale(),m=e.useCallback((e=>!!l&&s.isWeekend(e,u)||o.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[o,l,u]);return e.useEffect((()=>{var e;c(null===(e=r.value)||void 0===e?void 0:e.start)}),[r.value]),f.default.createElement(Kt,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:i?{months:2}:void 0},r),f.default.createElement("header",null,f.default.createElement(a.Button,{slot:"previous"},f.default.createElement(Ut,null)),f.default.createElement(a.Heading,null),f.default.createElement(a.Button,{slot:"next"},f.default.createElement(Ht,null))),i?f.default.createElement("div",{style:{display:"flex",gap:R.sizes.sm,overflow:"auto"}},f.default.createElement(Zt,null),f.default.createElement(Zt,{offset:{months:1}})):f.default.createElement(Zt,null))},Jt={top:"flex-start",center:"center"},Qt=g.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${R.sizes.base};}`,en=g.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Jt[e.align]};`,tn=g.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,nn=g.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${R.sizes.sm};}`,an=g.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--lz8nl"})`font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,on=g.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--piugtf"})`font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};`,ln=g.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--2wdtq1"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,rn=g.default(ln).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1an42ms"})`border:2px solid ${R.colors.neutral.grey.dark};border-radius:${R.radius.md};padding:${R.sizes.base} 0.75rem;&:hover{border-color:${R.colors.secondary.blue.base};}`,dn=g.default(Nt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ifrill"})`display:block;&-hoverable{display:block;}`,sn=({id:e,className:t,label:n,hint:a,tooltip:o,error:l,bordered:i,Badge:r,Accessory:d,Footer:s,children:c,disabled:u=!1,labelVariant:m="body",inputPosition:p="left"})=>{const g={hint:(h=t)?"choice__hint":void 0,label:h?"choice__label":void 0,tooltip:h?"choice__tooltip":void 0,error:h?"choice__error":void 0};var h;const b=f.default.createElement(Qt,null,"left"===p&&f.default.createElement(en,{align:d?"center":"top"},c),d&&f.default.createElement(tn,null,d),n||a||l||r||s?f.default.createElement(nn,null,f.default.createElement(et,{direction:"horizontal",alignY:"center",spacing:"sm"},r,n&&f.default.createElement(A,{variant:m,className:g.label},n),o&&f.default.createElement(dn,{text:o,className:g.tooltip},f.default.createElement(at,{name:"help",width:R.sizes.base,color:R.colors.neutral.ink.lightest}))),a&&f.default.createElement(an,{className:g.hint},a),l&&f.default.createElement(on,{className:g.error},l),s):null,"right"===p&&f.default.createElement(en,{align:d?"center":"top"},c));return i?f.default.createElement(rn,{disabled:u,htmlFor:e,className:t},b):f.default.createElement(ln,{disabled:u,htmlFor:e,className:t},b)},{colors:cn,sizes:un,radius:mn}=R,pn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${cn.neutral.ink.lightest};border-radius:${mn.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${cn.secondary.blue.base};border-color:${cn.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:${un[4]};background-position:center;}&:hover{border-color:${cn.secondary.blue.base};}&:active{border-color:${cn.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${cn.secondary.blue.light};outline:0;}&:indeterminate{background-color:${cn.secondary.blue.base};border-color:${cn.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:${un[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${cn.neutral.grey.base};border-color:${cn.neutral.grey.base};color:${cn.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>");}`,fn=t=>{var{checked:n,indeterminate:a,value:o,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=K(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const u=e.useMemo((()=>Ie("checkbox")),[]),m=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,o)}),[s,o]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===a)}),[a]),f.default.createElement(sn,Object.assign({id:u,disabled:i,className:d},c),f.default.createElement(pn,{ref:m,id:u,type:"checkbox",checked:n,value:o,name:l,disabled:i,"aria-label":r,onChange:p}))},gn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,hn=e.forwardRef(((t,n)=>{var{checked:a,value:o,name:l,disabled:i,onChange:r,id:d,children:s}=t,c=K(t,["checked","value","name","disabled","onChange","id","children"]);const u=e.useCallback((e=>{r(e.currentTarget.checked,o)}),[r,o]),m=null!=d?d:Ie("radio");return f.default.createElement(sn,Object.assign({id:m,disabled:i},c),f.default.createElement(gn,{id:m,type:"radio",checked:a,value:o,name:l,disabled:i,onChange:u,ref:n}),s)})),bn=g.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,vn=g.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-style:${R.text.inputLabel.fontStyle};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};text-decoration:${R.text.inputLabel.textDecoration};color:${R.text.inputLabel.color};`;class xn extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:a}=this.props;let o=[];o=t?[...n,e]:n.filter((t=>t!==e)),a(o)}}render(){const{allowMultiple:e,options:t,selected:n,title:a,disabled:o,bordered:l}=this.props,i=e?fn:hn;return f.default.createElement(bn,{disabled:o},a&&f.default.createElement(vn,null,a),t.map((e=>f.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const yn=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),wn={width:z.base,height:z.base},En=g.default(me).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${z.base};width:${z.base};top:unset;}`,Cn=g.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${R.text.inputLabel.fontFamily};font-size:${R.text.inputLabel.fontSize};font-weight:${R.text.inputLabel.fontWeight};line-height:${R.text.inputLabel.lineHeight};color:${R.text.inputLabel.color};`,$n=g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`,kn=g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,Sn=g.default(et).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Nn=g.default(Nt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,Ln=e=>t=>{var{label:n,hint:a,error:o,tooltip:l}=t,i=K(t,["label","hint","error","tooltip"]);const r=Xe({id:null==i?void 0:i.id,prefix:e.name});return n?f.default.createElement(Sn,{spacing:"sm",alignX:"stretch"},f.default.createElement("div",{style:{marginBottom:R.sizes.xs}},f.default.createElement(et,{direction:"horizontal",alignY:"center",spacing:"sm"},f.default.createElement(Cn,{id:`${r}-label`,htmlFor:r},n),l&&f.default.createElement(Nn,{text:l},f.default.createElement(at,{width:R.sizes.base,height:R.sizes.base,color:R.colors.neutral.ink.light}))),a&&f.default.createElement($n,null,a)),f.default.createElement(e,Object.assign({id:r,hasError:!!o},i)),o&&f.default.createElement(kn,null,o)):f.default.createElement(e,Object.assign({hasError:!!o},i))},In=g.default(a.Group).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${Ke(R.text.body)} display:flex;align-items:center;border:1px solid ${R.colors.neutral.ink.lightest};border-radius:${R.radius.base};gap:${R.sizes.xs};padding:${R.sizes.sm};margin-top:${R.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${R.colors.secondary.red.light};border:1px solid ${R.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${R.colors.secondary.red.light};\n border: 1px solid ${R.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${R.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${R.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${R.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${R.radius.base};&[data-invalid]{color:${R.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${R.colors.secondary.blue.dark};&[data-invalid]{background-color:${R.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${R.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,zn=Ln((({id:e,className:t,style:n,shouldForceLeadingZeros:o=!0,hasError:l,minValue:i,maxvalue:r,startValue:d,endValue:s,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>f.default.createElement(In,{style:n,className:t,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,$hasError:l,isDisabled:c},f.default.createElement(a.DateField,{shouldForceLeadingZeros:o,onChange:h,value:d,minValue:i,maxValue:r,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},f.default.createElement(a.DateInput,{slot:"start"},(e=>f.default.createElement(a.DateSegment,{segment:e})))),f.default.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),f.default.createElement(a.DateField,{shouldForceLeadingZeros:o,onChange:b,value:s,minValue:i,maxValue:r,"aria-describedby":p,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},f.default.createElement(a.DateInput,{slot:"end"},(e=>f.default.createElement(a.DateSegment,{segment:e}))))))),Dn=g.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Fn=Ln(e.forwardRef(((t,n)=>{var{className:a,options:o,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,c=K(t,["className","options","value","onChange","size","disabled","hasError"]);const u=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return f.default.createElement(Dn,Object.assign({className:a,sizeVariant:r,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:s,ref:n},c),!!o&&o.map((e=>f.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label))))})));Fn.displayName="Select";const Rn=g.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?R.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Tn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`width:100%;height:100%;border-radius:${R.radius.base};z-index:2;margin:0;cursor:${({disabled:e})=>e?"not-allowed":"pointer"};&:focus-visible + ${Rn}{box-shadow:0 0 0 4px ${R.colors.brand.blue.light};}&:checked + ${Rn}{background-color:#0079d1;}&:disabled + ${Rn}{background-color:${R.colors.neutral.grey.base};}&:checked:disabled + ${Rn}{background-color:${R.colors.secondary.blue.light};}`,Mn=g.default.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;position:relative;height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};z-index:1;input{position:absolute;opacity:0;}${Rn}: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"};}${Tn}:checked + ${Rn}{&: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"});}}`,On=g.default(y).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`display:inline-block;user-select:none;`,An=e.forwardRef(((e,t)=>{var{id:n="testid",className:a,name:o,switched:l,small:i,onClick:r=(()=>{}),disabled:d,ariaLabel:s,inputPosition:c="right"}=e,u=K(e,["id","className","name","switched","small","onClick","disabled","ariaLabel","inputPosition"]);return f.default.createElement(sn,Object.assign({id:n,inputPosition:c},u),f.default.createElement(On,{className:a,disabled:d},f.default.createElement(Mn,{small:i,disabled:d,className:a},f.default.createElement(Tn,{id:n,role:"switch",type:"checkbox",name:o,"aria-label":s,checked:!!l,onChange:e=>d?void 0:r(e),disabled:d,ref:t}),f.default.createElement(Rn,{switched:l,disabled:d}))))})),Bn=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],jn=({options:t=Bn,selectedPreviousPeriod:n,setSelectedPreviousPeriod:a})=>{const[o,l]=e.useState(!!n);return e.useEffect((()=>{n||null==a||a(t[0])}),[n,a,t]),f.default.createElement(f.default.Fragment,null,f.default.createElement(A,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:R.sizes.sm,whiteSpace:"nowrap"}},f.default.createElement(An,{small:!0,switched:o,onClick:()=>{o&&(null==a||a(null)),l(!o)}}),"Compare previous period"),o&&f.default.createElement(Fn,{"aria-label":"Period to compare against",options:t,value:(null==n?void 0:n.value)||t[0].value,onChange:e=>{const n=t.find((({value:t})=>t===e));n&&(null==a||a(n))}}))};var Hn;exports.DateRanges=void 0,(Hn=exports.DateRanges||(exports.DateRanges={})).TODAY="TODAY",Hn.YESTERDAY="YESTERDAY",Hn.LAST_7_DAYS="LAST_7_DAYS",Hn.LAST_30_DAYS="LAST_30_DAYS",Hn.LAST_90_DAYS="LAST_90_DAYS",Hn.LAST_MONTH="LAST_MONTH",Hn.LAST_12_MONTHS="LAST_12_MONTHS",Hn.WEEK_TO_DATE="WEEK_TO_DATE",Hn.MONTH_TO_DATE="MONTH_TO_DATE",Hn.YEAR_TO_DATE="YEAR_TO_DATE";const Wn=e=>{const t=s.now(s.getLocalTimeZone());let n;switch(e){case exports.DateRanges.TODAY:n={start:t,end:t};break;case exports.DateRanges.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case exports.DateRanges.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case exports.DateRanges.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case exports.DateRanges.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case exports.DateRanges.LAST_MONTH:{const e=s.startOfMonth(t.subtract({months:1}));n={start:e,end:s.endOfMonth(e)};break}case exports.DateRanges.LAST_12_MONTHS:{const e=s.startOfMonth(t.subtract({months:1}));n={start:s.startOfMonth(e).subtract({months:12}),end:s.endOfMonth(e)};break}case exports.DateRanges.WEEK_TO_DATE:n={start:s.startOfWeek(t,navigator.language),end:t};break;case exports.DateRanges.MONTH_TO_DATE:n={start:s.startOfMonth(t),end:t};break;case exports.DateRanges.YEAR_TO_DATE:n={start:s.startOfYear(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new s.CalendarDate(t.year,t.month,t.day),end:new s.CalendarDate(n.year,n.month,n.day)}})(n)},Pn=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:exports.DateRanges.TODAY},{label:"Yesterday",value:exports.DateRanges.YESTERDAY},{label:"Last 7 Days",value:exports.DateRanges.LAST_7_DAYS},{label:"Last 30 Days",value:exports.DateRanges.LAST_30_DAYS},{label:"Last 90 Days",value:exports.DateRanges.LAST_90_DAYS},{label:"Last Month",value:exports.DateRanges.LAST_MONTH},{label:"Last 12 Months",value:exports.DateRanges.LAST_12_MONTHS},{label:"Week to Date",value:exports.DateRanges.WEEK_TO_DATE},{label:"Month to Date",value:exports.DateRanges.MONTH_TO_DATE},{label:"Year to Date",value:exports.DateRanges.YEAR_TO_DATE}],_n=exports.DateRanges.LAST_30_DAYS,Vn=Wn(_n),Zn=Pn.find((({value:e})=>e===_n)),qn=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:a}=t,[o,l]=[n,a].sort();return e.some((([e,t])=>o>=e&&o<=t||l>=e&&l<=t||o<=e&&l>=t))},Yn=g.default.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${R.sizes.base};border-top:1px solid ${R.colors.neutral.grey.base};`;function Xn(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Kn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Kn(e.min,"max-content")}, ${Kn(e.max)})`;default:return t||"1fr"}}function Un({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:o,stripingMode:l}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==a&&"none"!==a,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${R.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${R.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${o.map((e=>Kn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?p:m}\n `}var Gn;!function(e){e.ascending="ascending",e.descending="descending"}(Gn||(Gn={}));const Jn=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),Qn=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),ea=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),ta=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===Gn.ascending?f.default.createElement(Qn,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(ea,{color:R.colors.neutral.ink.dark,size:n}):f.default.createElement(Jn,{size:n});function na(t,n){const[a,o]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));o(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=v.default(l,50),t=new h.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}class aa extends Event{constructor(e,t){super(e,{bubbles:!0,cancelable:!0}),this.data=t}}const oa=({tableRef:t,columns:n,columnIds:a})=>{const o=e=>e.reduce(((e,t)=>(e[t.id]=t.width,e)),{}),[l,i]=e.useState(o(n));return e.useEffect((()=>{const e=o(n),t=Object.assign({},l);Object.keys(e).forEach((n=>{void 0===typeof l[n]&&(t[n]=e[n])})),i(t)}),[JSON.stringify(a)]),{setColumnWidth:({columnId:e,width:a})=>{const o=Object.assign({},l);n.forEach(((i,r)=>{const d=r===n.length-1,s=i.id===e?a:((e,n)=>{var a,o,i;return n?l[e.id]||e.width:l[e.id]||e.width||(null===(i=null===(o=null===(a=t.current)||void 0===a?void 0:a.querySelector(`th[data-columnid="${e.id}"]`))||void 0===o?void 0:o.getBoundingClientRect())||void 0===i?void 0:i.width)||void 0})(i,d);o[i.id]=s})),i(o),((e,t)=>{const n=new aa(e,t);document.dispatchEvent(n)})("columnWidthUpdated",{tableRef:t,columnWidths:o})},columnWidths:l}};function la(e,t){const{columnWidths:n,setColumnWidth:a}=oa({tableRef:t,columns:e,columnIds:e.map((({id:e})=>e))}),o=e.map((e=>Object.assign(Object.assign({},e),{width:n[e.id]||e.width}))).filter((e=>!0!==e.hidden)),l=o.filter((e=>"left"===e.pinned)),i=o.filter((e=>"right"===e.pinned)),r=o.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...l,...r,...i],pinnedLeft:l,pinnedRight:i,setColumnWidth:a}}function ia(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,a={left:0,x:0},o=t=>{if(!n)return;const o=t.clientX-a.x;n.scrollLeft=a.left-o,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function ra(t){const[n,a]=e.useState("start"),o=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=t.current;a(o<e?"none":0!==n?n+e>=o?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",o)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=v.default(o,50),n=new h.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const da="56px",sa=g.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${da};position:relative;display:flex;align-items:center;justify-content:${({align:e="left"})=>Xn(e)};z-index:${({zIndex:e=0})=>e};background-color:white;padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};border-bottom:1px solid ${R.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function ca(e){var{selected:t,indeterminate:n,onChange:a,selectionMode:o}=e,l=K(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===o?f.default.createElement(sa,Object.assign({},l)):f.default.createElement(sa,Object.assign({},l),f.default.createElement(fn,{checked:t,indeterminate:n,onChange:a}))}const ua=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Xn(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>R.sizes[e]};padding-right:${({spacing:e=3})=>R.sizes[e]};color:${R.text.bodySmall.color};font-family:${R.text.bodySmall.fontFamily};font-size:${R.text.bodySmall.fontSize};font-style:${R.text.bodySmall.fontStyle};font-weight:${R.text.bodySmall.fontWeight};line-height:${R.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${R.colors.secondary.blue.base};background-color:${R.colors.neutral.grey.lightest};}`;function ma(e){var{selected:t,rowId:n,onChange:a,selectionMode:o,disabled:l}=e,i=K(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===o?f.default.createElement(ua,Object.assign({},i),f.default.createElement(hn,{value:n,checked:t,disabled:l,onChange:a})):f.default.createElement(ua,Object.assign({},i),f.default.createElement(fn,{value:n,checked:t,disabled:l,onChange:a}))}const pa=[[],()=>{}];function fa({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const a=!!t,[o,l]=t||pa,i=()=>{o.length!==n.length?l(n):l([])};return{selectionEnabled:a,selectedRowIds:o,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,a)=>f.default.createElement(ca,Object.assign({},a,{selected:o.length===n.length,indeterminate:o.length>0&&o.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,a,o)=>f.default.createElement(ma,Object.assign({},n,{rowId:t.id,selected:o.selected,onChange:a.setSelected,selectionMode:e,disabled:o.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(o.includes(n))return;const e=[...o,n];l(e)}else{const e=o.findIndex((e=>e===n));if(e<0)return;const t=[...o];t.splice(e,1),l(t)}}}}const ga=g.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${R.colors.neutral.ink.lightest};`,ha=g.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${R.text.headingTable.color};font-family:${R.text.headingTable.fontFamily};font-size:${R.text.headingTable.fontSize};font-style:${R.text.headingTable.fontStyle};font-weight:${R.text.headingTable.fontWeight};line-height:${R.text.headingTable.lineHeight};`,ba=g.default(ha).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 ${ga}{background-color:${R.colors.neutral.grey.light};color:${R.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${R.colors.secondary.blue.light};}`,va=g.default.div.withConfig({displayName:"vui--ResizerBar",componentId:"vui--115ilx"})`position:absolute;right:0;top:37.5%;width:1px;background:${R.colors.neutral.grey.dark};min-height:25%;cursor:col-resize;&::before{content:'';position:absolute;top:-150%;left:0;width:12px;min-height:400%;z-index:1;transform:translateX(-6px);}`,xa=({columnId:t,setColumnWidth:n})=>{const a=e.createRef(),o=e=>{const{minTranslate:t,dragDivider:n,dragInitX:a}=window.tableHeaders,o=Math.max(e.clientX-(a||0),t||0);n.parentElement.parentElement.classList.add("hideHeaderDetails"),n.style.transform=`translateX(${o}px)`},l=({event:e})=>{const{dragInitX:t,dragDivider:n}=window.tableHeaders,{parentElement:a}=n,o=null==a?void 0:a.getBoundingClientRect().width,l=a.querySelector(".headerContent").getBoundingClientRect().width,i=(e.clientX||0)-(t||0);return Math.max((o||0)+i,l+24)},i=e=>{window.removeEventListener("mouseup",i),window.removeEventListener("dragend",i),window.removeEventListener("mousemove",o),window.removeEventListener("drag",o),null==n||n({columnId:t,width:l({event:e})}),window.tableHeaders&&(window.tableHeaders.dragDivider.style.transform="translateX(0)",window.tableHeaders.dragDivider.parentElement.style.justifyContent="",window.tableHeaders.dragInitX=void 0,window.tableHeaders.minTranslate=void 0,window.tableHeaders.dragDivider.parentElement.parentElement.classList.remove("hideHeaderDetails"))},r=e=>{0!==e.button&&"dragstart"!==e.type||(window.tableHeaders={dragInitX:e.clientX,dragDivider:a.current},window.tableHeaders.minTranslate=(()=>{const{parentElement:e}=window.tableHeaders.dragDivider;return e.querySelector(".headerContent").getBoundingClientRect().width-e.getBoundingClientRect().width+24})(),window.addEventListener("mouseup",i),window.addEventListener("dragend",i),window.addEventListener("mousemove",o),window.addEventListener("drag",o))};return f.default.createElement(va,{ref:a,className:"th-divider",onMouseDown:r,onDragStart:r})};function ya({column:e,sortState:t,onChangeSort:n,resizeableColumns:a,setColumnWidth:o,columnCount:l=1,columnI:i=0}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const r={key:e.id.toString(),id:`datatable-header-${e.id}`,"data-columnid":String(e.id),role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,r);const d=e.sortable?ba:ha,s=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const a=function({sortState:e,columnId:t}){const n=e.columnId===t,a=e.direction===Gn.ascending;let o=Gn.ascending;return n&&a&&(o=Gn.descending),{columnId:t,direction:o}}({sortState:t,columnId:e.id});n?n(a):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return f.default.createElement(sa,Object.assign({},r,{zIndex:3}),f.default.createElement(Nt,{text:e.tooltip},f.default.createElement(d,Object.assign({},s,{className:"headerContent"}),e.icon&&e.icon,e.title&&f.default.createElement("span",null,e.title),e.sortable&&f.default.createElement(ga,null,f.default.createElement(ta,{sortState:t,columnId:e.id,size:5})))),a&&i<l-1&&f.default.createElement(xa,{columnId:e.id,setColumnWidth:o}))}const wa=R.colors.neutral.grey.base,Ea=R.colors.neutral.grey.dark,Ca=g.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${R.radius.base};background:${wa};background-image:linear-gradient(\n to right,\n ${wa} 0%,\n ${Ea} 20%,\n ${wa} 40%,\n ${wa} 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 $a=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${da};background-color:white;`,ka=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${R.colors.neutral.grey.base};& > *{flex:1;}`;function Sa({selectionColumn:t,intersectionTargetRef:n,containerRef:a,children:o}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=a.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return f.default.createElement($a,{style:c},ya({column:t}),f.default.createElement(ka,null,o))}const Na=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),La=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Ia=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const za=g.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${R.sizes.lg};padding-bottom:${R.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${R.sizes.md};`,Da=g.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${R.sizes.md};background-color:${R.colors.neutral.grey.light};border-radius:${R.radius.full};`,Fa=g.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ra=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${R.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Ta=g.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Ma=g.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${R.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Oa=g.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Aa={full:`border-width: 1px; border-radius: ${R.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Ba=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${R.colors.neutral.grey.dark};${({borderMode:e="full"})=>Aa[e]} &,& *{box-sizing:border-box;}.hideHeaderDetails th{> *{opacity:0.1;}.th-divider{opacity:1;}}`;function ja({children:t,intersectionTargetRef:n,containerRef:a,cellWidths:o,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),u=()=>{var e;const t=null===(e=a.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};c(n)},m=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&a.current&&u()}),[a.current,r]),e.useEffect((()=>{if(!r)return;if(!a.current)return;const e=v.default(u,33),t=new h.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,r]),e.useEffect((()=>{m()}),[r]),e.useEffect((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",m),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",m)}}),[a.current]),!r)return null;const p=Object.assign(Object.assign({},s),{height:da,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${R.colors.neutral.grey.base}`}),g=l+o.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return f.default.createElement("div",{style:p,ref:i},f.default.createElement(Ma,{css:g},f.default.createElement("thead",null,t)))}const Ha=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:a})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==a?void 0:a.includes(e))||!1}),Wa={icon:f.default.createElement(ot,{width:48,height:48}),heading:"No results"},Pa=()=>{},_a=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:o=Wa,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:u,selectionState:m,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b,resizeableColumns:v})=>{const x=e.useRef(null),y=e.useRef(null),w=e.useRef(null);ia(x);const E=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:k,setSelected:S}=fa({selectionMode:u,selectionState:m,enabledRowIds:E}),N={setSelected:S||Pa,setExpanded:p||Pa},L=[k,...a],I=C?L:a,z=na(y,x),{visible:D,pinnedLeft:F,pinnedRight:R,setColumnWidth:T}=la(I,y),M=z.length===D.length?D.map(((e,t)=>Number.isNaN(e.width||"")?z[t]:e.width)):z,{scrollPosition:O}=ra(x),B=Un({pinnedLeft:F,pinnedRight:R,cellWidths:M,scrollPosition:O,visible:D,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return f.default.createElement(Ba,{borderMode:n},f.default.createElement(Ta,{ref:x},f.default.createElement(Ma,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Ra,{role:"row"},D.map(((e,t)=>ya({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},e.map((e=>f.default.createElement(Ra,{key:e.id},D.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return f.default.createElement(ua,Object.assign({},n),f.default.createElement(Ca,null))}(e,t))))))))))}if(0===s.length)return f.default.createElement(Ba,{borderMode:n},f.default.createElement(Ta,{ref:x},f.default.createElement(Ma,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},f.default.createElement(Ra,{role:"row"},D.map(((e,t)=>ya({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t}))))),f.default.createElement("tbody",{role:"rowgroup"},f.default.createElement(za,{columnCount:D.length},f.default.createElement(Da,null,o.icon),f.default.createElement(et,{spacing:"sm",alignX:"center"},f.default.createElement(A,{variant:"headingMedium"},o.heading),o.subheading&&f.default.createElement(A,{variant:"subheadingMedium"},o.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,a=Ha(e.id,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Ra,Object.assign({role:"row",key:e.id,accentColor:n,className:t},a),D.map((t=>function(e,t,n,a){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,o,n,a)}(e,t,N,a))))},H=(e,t)=>{var n,a;const o=null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row,i=Ha(t,{selectedRowIds:$,expandedRowIds:l,disabledRowIds:c});return f.default.createElement(Ra,{role:"row",key:e.id,className:o},D.map((t=>function(e,t,n){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,a,n):f.default.createElement(ua,Object.assign({},a))}(e,t,i))))},W=e=>{var t;const n=null==l?void 0:l.includes(e.id);return f.default.createElement("tbody",{role:"rowgroup",key:e.id},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id)))))},P=f.default.createElement(Ra,{role:"row"},D.map(((e,t)=>ya({column:e,sortState:g,onChangeSort:d,resizeableColumns:v,setColumnWidth:T,columnCount:D.length,columnI:t})))),_=a.some((e=>!!e.renderFooter)),V=$.length>0&&!!t;return f.default.createElement(Ba,{borderMode:n},V&&f.default.createElement(Sa,{selectionColumn:k,intersectionTargetRef:w,containerRef:x},t),f.default.createElement(Ta,{ref:x},b&&f.default.createElement(ja,{tableCss:B,intersectionTargetRef:w,containerRef:x,cellWidths:M},P),f.default.createElement("div",{ref:w,style:{height:0}}),f.default.createElement(Ma,{css:B,ref:y,role:"table"},f.default.createElement("thead",{role:"rowgroup"},P),(()=>{const e=!!l;return e&&"nested"===h?s.map(W):e?f.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[j(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>H(t,e.id))))||[]]}))):f.default.createElement("tbody",{role:"rowgroup"},s.map(j))})(),_&&f.default.createElement("tfoot",{role:"rowgroup"},f.default.createElement(Ra,{role:"row"},D.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):f.default.createElement(ua,Object.assign({},t))}({column:e}))))))))};_a.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},_a.Cell=ua,_a.ColumnMenu=function({columns:t,columnGroups:n,setColumns:a}){const[o,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),u=(e,n)=>{const o=c[e].map((e=>e.id)),l=[...t];o.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),a(l)};return f.default.createElement(f.default.Fragment,null,f.default.createElement(me,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&f.default.createElement(He,{anchorElement:o,onShouldClose:()=>r(!1)},f.default.createElement(Ne,{style:{width:600}},f.default.createElement(et,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>f.default.createElement(et,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},f.default.createElement(me,{variant:"flat",icon:f.default.createElement(Ia,null)}),f.default.createElement(et,{spacing:"sm",style:{flex:1}},e.map((e=>f.default.createElement("div",{key:e.id},e.title)))),f.default.createElement(et,{direction:"horizontal",spacing:"sm"},e[0].hidden?f.default.createElement(me,{variant:"flat",icon:f.default.createElement(La,null),onClick:()=>u(t,!1),style:{color:R.colors.neutral.ink.lightest}}):f.default.createElement(me,{variant:"flat",icon:f.default.createElement(Na,null),onClick:()=>u(t,!0)})))))))))},_a.SelectionCell=ma,_a.SelectionHeader=ca,_a.Header=sa,_a.Truncate=Oa,_a.NoWrap=Fa;const Va=g.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${R.sizes.base};}`,Za=g.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${R.sizes.xs};}`,qa=g.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${R.sizes.base};}`,Ya=g.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${R.sizes.xs};}`,Xa=g.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${R.text.bodyBold.fontFamily};font-size:${R.text.bodyBold.fontSize};font-weight:${R.text.bodyBold.fontWeight};line-height:${R.text.bodyBold.lineHeight};color:${R.text.bodyBold.color};`,Ka=g.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${R.text.body.fontFamily};font-size:${R.text.body.fontSize};font-weight:${R.text.body.fontWeight};line-height:${R.text.body.lineHeight};color:${R.text.body.color};`,{sizes:Ua,colors:Ga}=R,Ja=g.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Ua.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Ua.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Qa=g.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Ua.md};overflow-x:hidden;background-color:${Ga.neutral.grey.lightest};`,eo=g.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var to;!function(e){e.base="base",e.sm="sm"}(to||(to={}));const no=({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 "}`,ao=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${R.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${no} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,oo=g.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${no}`,lo=/^-?[0-9]*\.?[0-9]+$/,io=Ln(e.forwardRef(((t,n)=>{var{id:a,className:o,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:u,pattern:m,placeholder:p,rows:g="3",size:h=to.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=K(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=e.useCallback((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(lo).test(t)&&u(t)}),[u,v]),C=null!=a?a:Ie("textfield");return"text"===v&&s?f.default.createElement(oo,Object.assign({className:o,disabled:l,hasError:i,id:C,name:c,onChange:E,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):f.default.createElement(ao,Object.assign({className:o,disabled:l,hasError:i,id:C,inputSize:h,max:r,min:d,name:c,"aria-label":c,onChange:E,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));io.displayName="TextField";const ro=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,so=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,co=g.default(io).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${R.colors.neutral.ink.lightest};}`,uo=g.default(me).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${R.colors.neutral.ink.lightest};`;g.default(A).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${R.text.error.fontFamily};font-size:${R.text.error.fontSize};font-weight:${R.text.error.fontWeight};line-height:${R.text.error.lineHeight};color:${R.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${R.sizes[2]} * -1);width:2px;background-color:${R.colors.secondary.red.base};}`,g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${R.fontFamily};font-size:${R.sizes[3]};line-height:${R.sizes[4]};color:${R.colors.neutral.ink.light};`;const mo=(e,t)=>{t.includes(e.key)&&e.preventDefault()},po=["-","+","E","e"],fo=e=>mo(e,po),go=Ln((e=>{var{size:t=to.base,handleChangeHeight:n,handleChangeWidth:a,handleChangeLength:o,className:l,height:i,width:r,length:d,unit:s}=e,c=K(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return f.default.createElement(ro,{className:l},f.default.createElement(so,null,f.default.createElement(co,Object.assign({onChange:o,size:t,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:fo},c)),f.default.createElement(he,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(co,Object.assign({onChange:a,size:t,name:"width",type:"number",placeholder:"W",value:r,min:"0",step:"any",onKeyDown:fo},c)),f.default.createElement(he,{height:R.sizes.base,width:R.sizes.base}),f.default.createElement(eo,null,f.default.createElement(co,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:fo},c)),f.default.createElement(uo,{size:t},s))))}));go.displayName="DimensionsInput";const ho=g.default(y).attrs({as:"button"}).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${C.neutral.grey.base};padding:4px 8px;cursor:pointer;border:1px solid ${C.neutral.grey.dark};border-radius:4px;svg{width:${z.base};height:${z.base};}&:focus{outline:none;box-shadow:0 0 0 2px ${R.colors.secondary.blue.light};}`,bo=g.default(A).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,vo=g.default(bo).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,xo=g.default(ge).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,yo=g.default(he).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,wo=g.default(y).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Eo=g.default(y).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${C.neutral.grey.base};svg{color:${({color:e})=>e};width:${z[5]};height:${z[5]};margin-right:10px;}`,Co=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),$o=g.default(y).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?z[e]:0};`,ko=e=>f.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),So=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,No=g.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Lo=g.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Io=g.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,zo=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}),Do={width:64,height:64},Fo={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},Do)),title:"No data found"},Ro={icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},Do)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var To;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(To||(To={}));const{text:Mo,sizes:Oo}=R,{blue:Ao}=R.colors.secondary,{grey:Bo}=R.colors.neutral,{scrollbar:jo}=R.colors.system,Ho='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',Wo=g.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Po=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Bo.dark};border-bottom:1px solid ${Bo.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${jo.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${jo.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:a})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Ho};\n\n ${a===To.middle||a===To.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${Ho};\n\n ${a===To.start||a===To.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,_o=g.default(Po).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Bo.dark};border-radius:4px;`,Vo=g.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Zo=g.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Bo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;g.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Bo.lightest};padding:1.5rem 1rem;border-top:1px solid ${Ao.base};}`;const qo=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Yo=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${Mo.bodySmall.fontFamily};font-size:${Mo.bodySmall.fontSize};font-weight:${Mo.bodySmall.fontWeight};color:${Mo.bodySmall.color};line-height:${Oo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Xo=g.default(Yo).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Bo.dark};font-family:${Mo.bodySmallBold.fontFamily};font-size:${Mo.bodySmallBold.fontSize};font-weight:${Mo.bodySmallBold.fontWeight};color:${Mo.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Bo.light};}`,Ko={left:"flex-start",center:"center",right:"flex-end"},Uo=g.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Ko[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Go=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Zo}:nth-child(even) td {\n background-color: ${Bo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Xo}, & ${Xo} span {\n white-space: nowrap;\n }\n `}`,Jo=g.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Yo}{border-top:1px solid ${Bo.dark};background-color:${Bo.lightest};padding-top:${Oo.base};padding-bottom:${Oo.base};line-height:2rem;}`,Qo=g.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,el=g.default(Go).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,tl=g.default(y).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,nl=g.default(y).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${R.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,al=g.default(A).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,ol=g.default(A).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,ll=({height:e,icon:t,title:n,subTitle:a})=>f.default.createElement(tl,{height:e},f.default.createElement(nl,null,t),f.default.createElement(al,{variant:"headingLarge"},n),a&&f.default.createElement(ol,{variant:"subheadingMedium"},a)),il=g.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${R.sizes.base};border-radius:${R.radius.base};&:hover{cursor:pointer;background-color:${R.colors.secondary.blue.lightest};}`,rl=g.default(il).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${R.text.link.color};text-decoration:${R.text.link.textDecoration};`,dl=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:sl}=R.colors.neutral,cl=g.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,ul=g.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${sl.base} 8%, ${sl.dark} 15%, ${sl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,ml=({isLoading:e,style:t})=>f.default.createElement(cl,{style:t},f.default.createElement(ul,{isLoading:e})),pl=e=>{var{style:t}=e,n=K(e,["style"]);return f.default.createElement(Yo,Object.assign({},n),f.default.createElement(ml,{style:t}))};pl.defaultProps={style:{}};const fl=({renderHeader:t,tableRef:n,wrapperRef:a,isFixedLayout:o,wrapperStyle:l})=>{var i;const[r,d]=e.useState(null),{isSticky:s}=((t,n)=>{const[a,o]=e.useState(!1),l=e.useCallback((({top:e,bottom:t})=>{let l=a;l=e<=(n||0)&&t>0?!a||l:!a&&l,l!==a&&o(l)}),[a,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&l(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[l,t]),{isSticky:a}})(n,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),c=((null===(i=a.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;u.useScroll(a);const m=e=>{var t;const n=(null===(t=a.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return m(),s?f.default.createElement(Qo,{ref:e=>{d(e),m(e)},style:Object.assign({width:c},l)},f.default.createElement(el,{style:{tableLayout:o?"fixed":"auto"}},t())):null},gl=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},hl=e=>{var{style:t,width:n,isLoading:a}=e,o=K(e,["style","width","isLoading"]);return f.default.createElement(Xo,Object.assign({},o,{style:{width:n}}),f.default.createElement(ml,{style:t,isLoading:a}))},bl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),vl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),xl=()=>f.default.createElement(Jn,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),yl=()=>f.default.createElement(bl,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),wl=()=>f.default.createElement(vl,{width:R.sizes.base,height:R.sizes.base,color:"lightgrey"}),El=({borderless:t=!1,striped:n=!0,noWrap:a=!1,showScrollbar:o=!1,headers:l,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:u,renderFooterLoadingRow:m,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:E=!1,isLoading:C=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:L=375,startFixedColumnsNumber:I,endFixedColumnsNumber:z})=>{const D=t?Po:_o,F=!!i&&0===i.length,R=Boolean(I||z),T=!I&&!z,M=e.useRef(null),O=e.useRef(null),[A,B]=e.useState(To.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!O.current||T)return;const e=O.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),o=n+a;t===a?B(To.none):0===n?B(To.start):n>0&&o<t?B(To.middle):o===t&&B(To.end)};return O.current&&(t=O.current,n(),null===(e=O.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[M,T]);const j=e.useCallback((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),H=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!l||C)return null;const e=[],t=[];let n=0,a=0;if(I){g&&(e.push(H(1,n,"left")),n+=58);for(let t=0;t<I;t+=1){const a=j(l[t].width);a&&(e.push(H(g?t+2:t+1,n,"left")),n+=a)}}if(z)for(let e=0;e<z;e+=1){const n=j(l.slice(-e-1)[0].width);n&&(t.push(H(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[C,j,z,H,l,I,g]),P=e.useMemo((()=>W()),[W]),_=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],a=n.findIndex((e=>e===t.id));n.splice(a,1),v(n)}),[v,g,b]),V=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),Z=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),q=e.useCallback(((e,t)=>{let n="",a=()=>{},o=f.default.createElement(xl,null);const{tooltip:l,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",a=()=>Z(c),x===c&&(o="ascending"===y?f.default.createElement(yl,null):f.default.createElement(wl,null)));const u=f.default.createElement(Uo,{align:i},r&&r,d&&f.default.createElement("span",null,d),s&&o);return f.default.createElement(Xo,{key:c,id:`data-table-header-${c}`,className:n,onClick:a,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},l?f.default.createElement(Nt,{text:l},f.default.createElement(Wo,null,u)):u)}),[Z,x,y]),Y=e.useCallback(((e,t)=>f.default.createElement(hl,{key:e.id,width:e.width||"auto",style:t,isLoading:C})),[C]),X=e.useCallback((()=>{if(!l)return null;const e=W(),t=e?e[0].style:{};return f.default.createElement(Vo,null,f.default.createElement(qo,null,g&&f.default.createElement(Xo,{style:Object.assign({width:58},t)},"multiple"===b&&f.default.createElement(fn,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:V,disabled:h&&h.length>0||C||F,ariaLabel:"Select all"})),l.map(((t,n)=>{const a=g?n+2:n+1,o=n-l.length,i=null==e?void 0:e.find((e=>e.index===a||e.index===o));return t.skeleton&&(C||E||F)?Y(t,t.skeletonStyle||{}):q(t,(null==i?void 0:i.style)||{})}))))}),[W,V,l,F,E,C,Y,q,i.length,g,b,h]),K=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>_(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?f.default.createElement(hn,Object.assign({},n)):f.default.createElement(fn,Object.assign({},n))}),[_,b,h]),U=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?f.default.createElement(pl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):f.default.createElement(pl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),G=e.useCallback(((e,t)=>{var n,a;if(!d)return null;const o=d(e);if(!o)return null;const l=(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row)||"";return f.default.createElement(qo,{key:e.id,className:`${l} ${t?"hidden":""}`},g&&f.default.createElement(Yo,null),o)}),[d,g]),J=e.useCallback((e=>{if(!l)return f.default.createElement(pl,null);const t=l.map((t=>f.default.createElement(pl,{key:`${e}-${t.id}`})));return g&&t.unshift(U(e)),t}),[l,U,g]),Q=()=>u?C&&!m||!C&&F?null:f.default.createElement(Jo,{fixedColumnsStyle:gl(P||[])},f.default.createElement(qo,null,g&&!p&&f.default.createElement(Yo,null),!C&&u(i),C&&m&&m())):null;let ee=I;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,a;const{data:o}=e,l=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==o?void 0:o.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(a=null===(n=null==o?void 0:o.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==a?a:"",u=l?`selected ${c}`:`${c}`;return f.default.createElement(Zo,{key:e.id,className:d,fixedColumnsStyle:gl(P||[])},f.default.createElement(qo,{key:e.id,className:u,accentColor:e.accentColor},g&&f.default.createElement(Yo,null,K(l,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>G(e,!i))))}))),[i,s,P,G,r,K,g]);if(C){const e=[];for(let t=0;t<$;t+=1)e.push(f.default.createElement(Zo,{key:`loading-row-${t}`,fixedColumnsStyle:gl(P||[])},f.default.createElement(qo,null,c?f.default.createElement(f.default.Fragment,null,g&&U(),c()):J(t))));return f.default.createElement(D,{ref:O,scrollDisabled:!0,scrollPosition:A,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&l&&f.default.createElement(fl,{renderHeader:X,tableRef:M,wrapperRef:O,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(Go,{ref:M,striped:n,noWrap:a,tableLoading:!0,isFixedLayout:R},X(),e,Q()))}if(F||E){let e=Fo;return N?e=N:E&&(e=Ro),f.default.createElement(D,{scrollDisabled:!0},f.default.createElement(Go,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),Q()),f.default.createElement(ll,Object.assign({height:L},e)))}return f.default.createElement(D,{scrollDisabled:!1,ref:O,scrollPosition:A,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:o},k&&l&&f.default.createElement(fl,{renderHeader:X,tableRef:M,wrapperRef:O,isFixedLayout:R,wrapperStyle:S}),f.default.createElement(Go,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:R},X(),te,Q()))};El.Cell=Yo,El.ClickableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(Yo,Object.assign({},a),f.default.createElement(rl,{onClick:t},n))},El.EditableCell=e=>{var{onClick:t,children:n}=e,a=K(e,["onClick","children"]);return f.default.createElement(Yo,Object.assign({},a),f.default.createElement(il,{onClick:t},f.default.createElement(dl,null,n)))},El.SkeletonCell=pl,El.SkeletonContent=ml;const Cl=g.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,$l="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",kl="Log in with Amazon",Sl=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Nl=g.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${R.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Ne.Footer} {\n box-shadow: 0px 10px 15px 0px ${R.colors.neutral.ink.dark};\n }\n `}`,Ll=e=>!!e.footerSlot,Il={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},zl={[$.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[$.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[$.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Dl={xs:$.mobile,sm:$.mobile,base:$.tablet,lg:$.lgTablet},{breakpoints:Fl}=R,Rl=g.default(t.motion.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${R.sizes.sm};box-shadow:${R.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Ne.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Il[e]};`} ${Nl}{padding-bottom:${R.sizes.md};}${Ne.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Fl.mobile} + 1px))and (max-width: ${Fl.tablet}){max-width:${({variant:e})=>zl[Fl.tablet][e]};}@media (min-width: ${Fl.tablet})and (max-width: ${Fl.lgTablet}){max-width:${({variant:e})=>zl[Fl.lgTablet][e]};}@media (min-width: ${Fl.lgTablet})and (max-width: ${Fl.desktop}){max-width:${({variant:e})=>zl[Fl.desktop][e]};}@media (min-width: ${Fl.desktop}){max-width:${({variant:e})=>zl[Fl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Dl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Ne.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Me(R.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Tl=f.default.forwardRef(((e,t)=>{var n=K(e,[]);return f.default.createElement(Rl,Object.assign({ref:t},n))})),Ml=g.default(et).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${R.sizes.lg};height:30px;background-color:${R.colors.neutral.grey.light};border:1px solid ${R.colors.neutral.grey.base};border-radius:${R.sizes.xs};`,Ol=g.default(me).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${R.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Al=g.default(io).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Bl=({count:e})=>f.default.createElement(f.default.Fragment,null,f.default.createElement("div",null,f.default.createElement(A,{variant:"bodySmall","aria-hidden":!0},"/")),f.default.createElement(Ml,{alignX:"center",alignY:"center","aria-hidden":!0},f.default.createElement(A,{variant:"bodySmall"},e))),jl=({currentPage:t,totalPagesCount:n,handleChangePage:a})=>{const[o,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(o||l(`${t}`),o===`${t}`)return;const e=parseInt(o,10);i(e)&&a(e)};return{pageInputValue:o,handleIncrement:()=>{i(t+1)&&a(t+1)},handleDecrement:()=>{i(t-1)&&a(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},Hl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Wl=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Pl=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,_l=g.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Vl=({onIncrement:e,onDecrement:t,disabled:n=!1,size:a})=>f.default.createElement(Pl,{size:a},f.default.createElement(_l,{type:"button",onClick:e,disabled:n},f.default.createElement(X,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base})),f.default.createElement(_l,{type:"button",onClick:t,disabled:n},f.default.createElement(ge,{height:R.sizes.base,width:R.sizes.base,color:R.colors.neutral.ink.base}))),Zl=g.default(io).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${R.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${R.colors.neutral.ink.lightest};}`,ql=g.default(y).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${R.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?R.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Yl=g.default(A).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Xl=g.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 ${R.colors.secondary.red.light};\n\n > * {\n border-top-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${R.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${R.colors.secondary.red.base};\n border-right-color: ${R.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${R.colors.secondary.red.base};\n border-bottom-color: ${R.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${R.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?R.colors.secondary.red.base:R.colors.secondary.blue.base};}}`;const Kl=Ln((e=>{var{className:t="",hasError:n,currency:a,disabled:o=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=to.base}=e,c=K(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return f.default.createElement(Xl,{className:t,hasError:n},f.default.createElement(ql,{disabled:o,size:s},f.default.createElement(Yl,{variant:"hintText"},a)),f.default.createElement(Zl,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const a=parseFloat(n.replace(",",".")).toFixed(2);i(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(l),"ArrowDown"===t&&m(l)},disabled:o,size:s},c)),f.default.createElement(Vl,{onIncrement:()=>u(),onDecrement:()=>m(),disabled:o,size:s}))}));Kl.displayName="PriceInput";const Ul=g.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Gl=g.default(io).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Jl=g.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Ql=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Gl} {\n ${t}\n }\n\n & ${Jl} {\n ${n}\n }\n `}}`,ei=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),ti=R.colors.neutral.grey.lightest,ni=R.colors.neutral.grey.dark,ai=R.colors.secondary.blue.dark,oi=g.default(y).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${ti};border-color:${ni};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${ai};border-color:${ai};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${R.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,li=g.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};font-size:${R.text.bodySmall.fontSize};line-height:${R.text.bodySmall.lineHeight};font-weight:${R.text.bodySmall.fontWeight};text-decoration:${R.text.bodySmall.textDecoration};letter-spacing:${R.text.bodySmall.letterSpacing};`,ii=g.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${R.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${R.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${R.text.bodySmall.fontFamily};font-style:${R.text.bodySmall.fontStyle};`,ri={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},di={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:si}=C.secondary,{grey:ci}=C.neutral,ui=g.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,mi=g.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${si.lightest};}`,pi=g.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,fi=g.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${F.bodySmall.fontFamily};font-size:${F.bodySmall.fontSize};font-weight:${F.bodySmall.fontWeight};color:${F.bodySmall.color};line-height:${z.base};& > *{vertical-align:middle;}`,gi=g.default(fi).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${ci.dark};font-family:${F.bodySmallBold.fontFamily};font-size:${F.bodySmallBold.fontSize};font-weight:${F.bodySmallBold.fontWeight};color:${F.bodySmallBold.color};`,hi=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${mi} tr:nth-child(even) td {\n background-color: ${ci.lightest};\n }\n `}`,bi=({striped:e=!0,className:t,children:n})=>f.default.createElement(hi,{striped:e,className:t},n);bi.Header=ui,bi.Body=mi,bi.Row=pi,bi.HeaderCell=gi,bi.Cell=fi;const vi=g.default(y).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;vi.displayName="Skeleton";const xi=g.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,yi=g.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${R.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,wi=g.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${R.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${R.colors.secondary.blue.light};}`,Ei=g.default(yi).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${R.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ci=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}),$i=g.default(y).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:C.neutral.ink.base};\n background-color: ${null!=e?e:C.neutral.grey.base};\n `}`,ki=g.default(et).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${R.layers.tooltip};`,Si=g.default(et).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${R.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${R.shadows.lg};border-radius:${R.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,Ni=g.default(y).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${R.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${z.md};height:${z.md};}`,Li=g.default(et).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Ii=g.default(A).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,zi={info:{accentColor:C.brand.blue.base,icon:f.default.createElement(ot,null)},success:{accentColor:C.secondary.green.base,icon:f.default.createElement(lt,null)},error:{accentColor:C.secondary.red.base,icon:f.default.createElement(nt,null)},merge:{accentColor:C.secondary.purple.base,icon:f.default.createElement((e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},Di=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Fi=({className:e,e2eClassName:t,type:n,iconSlot:a,text:o,last:l,minWidth:i,cta:r,onClose:d})=>{const s=Di(e),c=Di(t);return f.default.createElement(Si,{className:Re([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},f.default.createElement(Ni,{color:zi[n].accentColor,className:Re([s.icon,c.icon])},null!=a?a:zi[n].icon),f.default.createElement(Li,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(Ii,{variant:"body"},o),r),f.default.createElement(me,{variant:"flat",icon:f.default.createElement(he,{color:"white"}),onClick:d,"aria-label":"Close"}))},Ri=g.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${R.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",a="24px",o="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",o="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${a};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Ti=g.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${z.md};border-radius:${k.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${C.neutral.ink.lightest};background-color:${C.neutral.grey.lightest};:hover{border:2px dashed ${C.secondary.blue.base};background-color:${C.secondary.blue.lightest};}:active{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}:focus-within{border:2px dashed ${C.secondary.blue.base};box-shadow:0 0 0 4px ${C.secondary.blue.light};background-color:${C.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${C.secondary.red.base};:hover{border:2px dashed ${C.secondary.red.base};background-color:${C.secondary.red.lightest};}:active{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}:focus-within{border:2px dashed ${C.secondary.red.base};box-shadow:0 0 0 4px ${C.secondary.red.light};background-color:${C.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${C.neutral.grey.light};border-color:${C.neutral.ink.lightest};color:${C.neutral.ink.light};}`;var Mi,Oi,Ai;exports.AcceptedFileTypes=void 0,(Mi=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",Mi.JPEG=".jpeg",Mi.JPG=".jpg",Mi.GIF=".gif",Mi.PNG=".png",exports.FileSizeUnit=void 0,(Oi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",Oi.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(Ai||(Ai={}));const Bi=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},f.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),f.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),ji=()=>f.default.createElement(et,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},f.default.createElement(Bi,null),f.default.createElement(A,{variant:"subheadingSmall",style:{paddingTop:z.sm}},"Browse files or drag them here")),Hi=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?f.default.createElement(et,{alignX:"start",spacing:"xs"},e&&f.default.createElement(A,{variant:"errorSmall"},"Invalid format (",e,")"),t&&f.default.createElement(A,{variant:"errorSmall"},"File is too big (",t,")")):null,Wi=g.default(A).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Pi=g.default(et).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${C.neutral.ink.lightest};border-radius:${k.base};padding:${z.xs};${A}{padding-left:${z.xs};}`,_i=({file:e,resetSelection:t,disabled:n})=>e?f.default.createElement(Pi,{alignX:"between",direction:"horizontal",alignY:"center"},f.default.createElement(Wi,{variant:"body"},null==e?void 0:e.name),f.default.createElement(me,{size:"sm",variant:"flat",onClick:t,icon:f.default.createElement(he,null),"aria-label":"Remove file",disabled:n})):null,Vi=e.forwardRef(((t,n)=>{var{id:a,name:o,maxBytes:l=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:r,label:d="Upload file",required:s,disabled:c}=t,u=K(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const m=e.useRef(null);e.useImperativeHandle(n,(()=>m.current),[]);const[p,g]=e.useState(),[h,b]=e.useState(Ai.VALID),v=h===Ai.INVALID_FORMAT||h===Ai.INVALID_FORMAT_AND_SIZE,x=h===Ai.INVALID_SIZE||h===Ai.INVALID_FORMAT_AND_SIZE,y=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${a}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:l,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const o=a.length>1,l=t===a.length-1&&o,i=t===a.length-2&&o;switch(l&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!l&&a.length>2&&(n+=", ")})),n})({fileTypes:r}),E=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const o=a.length-1===n&&a.length>1;t+=o?`${e}`:`${e}, `})),t.trim()})({fileTypes:r}),C=()=>{var e;(null===(e=m.current)||void 0===e?void 0:e.value)&&(m.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let a=Ai.VALID;t&&!e?a=Ai.INVALID_FORMAT:!t&&e?a=Ai.INVALID_SIZE:t&&e&&(a=Ai.INVALID_FORMAT_AND_SIZE),null===(n=m.current)||void 0===n||n.setCustomValidity(a),b(a)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>l,[,o]=t.type.split("/"),i=!r.find((e=>e.substring(1)===o));n||i?C():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:a}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[r,a,l]),S=e.useCallback((()=>{C(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),N=e.useCallback((()=>{var e;const t=null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==m?void 0:m.current;return null==e||e.addEventListener("change",N),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",N),null==e||e.removeEventListener("cancel",S)}}),[N,S]),f.default.createElement(Sn,{spacing:"sm",alignX:"stretch"},f.default.createElement(Cn,{htmlFor:a},d,f.default.createElement(et,{spacing:3,alignX:"stretch",style:{paddingTop:z.sm}},f.default.createElement($n,null,f.default.createElement("div",null,w),f.default.createElement("div",null,y)),f.default.createElement(Ti,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.blur()}},f.default.createElement(ji,null),f.default.createElement("input",Object.assign({ref:m,id:a,type:"file",accept:E,name:o,required:s,disabled:c},u))))),f.default.createElement(et,{alignX:"stretch",spacing:"sm"},f.default.createElement(_i,{file:p,resetSelection:S,disabled:c}),f.default.createElement(Hi,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:x?y:void 0})))})),Zi="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",qi=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Zi} display:${e=>e.shouldShow?"initial":"none"};z-index:${R.layers.modal};`,Yi=g.default(y).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Zi} background-color:rgba(55,66,77,0.5);`,Xi=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Ki=({usePortal:e,children:t})=>f.default.createElement(f.default.Fragment,null,e?f.default.createElement(ze,null,t):t),Ui=({className:e,children:t=null,shouldShow:n=!1,usePortal:a=!0})=>f.default.createElement(Ki,{usePortal:a},f.default.createElement(qi,{className:Re([`${e}-container`,e]),shouldShow:n},f.default.createElement(Yi,null),f.default.createElement(x.default,{isActive:n},f.default.createElement(Xi,{className:Re([`${e}-wrap`,e])},t)))),Gi=g.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Ji=g.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Qi=g.default(me).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var er;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(er||(er={}));const tr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,nr=g.default(A).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,ar=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${A} {\n color: ${null!=t?t:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,or=g.default(A).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${nr} {\n color: #fff;\n }\n `}`,lr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},ir=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,rr=e=>f.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),dr=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0});var sr;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(sr||(sr={}));const cr=e=>f.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),f.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),ur=g.default(A).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,mr=g.default(cr).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,pr=g.default(he).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,fr=g.default(A).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${ur} {\n color: ${C.neutral.grey.lightest};\n }\n `}`,gr=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${R.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${C.neutral.grey.base};\n & > ${fr} {\n background-color: ${C.neutral.grey.base};\n & > ${ur} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${A} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${mr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${pr} {\n color: ${C.neutral.ink.dark};\n }\n }\n\n & > ${A} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${mr} {\n color: ${t.dark};\n }\n & > ${pr} {\n color: ${t.dark};\n }\n\n & > ${A} {\n color: ${null!=n?n:t.dark};\n }\n `}`,hr=g.default(ie).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${R.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${gr} {\n background-color: ${C.neutral.grey.base};\n & > ${fr} {\n background-color: ${C.neutral.grey.base};\n & > ${ur} {\n color: ${C.neutral.ink.base};\n }\n }\n & > ${A} {\n color: ${null!=e?e:C.neutral.ink.dark};\n }\n & > ${mr} {\n color: ${C.neutral.ink.dark};\n }\n & > ${pr} {\n color: ${C.neutral.ink.dark};\n }\n }\n `}`,br={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},vr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,xr=f.default.forwardRef(((e,t)=>{var{id:n,iconSlot:a,name:o,type:l,className:i,colourPalette:r=C.secondary.blue,customTextColour:d,count:s,active:c=!1,onClick:u,subAction:m,ariaContext:p}=e,g=K(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,x,y]=qe(),w=c&&m?m:u,E=l===sr.draft,$=l===sr.saved;return f.default.createElement(hr,Object.assign({className:Re([null==h?void 0:h.container]),onClick:()=>w(n),role:"tab","aria-selected":c,"aria-label":`${c&&E?"Delete":c&&$?"Edit":""} ${o} view ${s?`with ${s} ${p}`:""}`,customTextColour:d,ref:t},g),f.default.createElement(gr,{active:c,onMouseEnter:x,onMouseLeave:y,colourPalette:r,customTextColour:d},a&&f.default.createElement(vr,null,a),f.default.createElement(A,{variant:"bodyBold"},o),null!=s&&f.default.createElement(fr,{"data-testid":"countContainer",active:c||v,colourPalette:r,customTextColour:d},f.default.createElement(ur,{variant:"subheadingSmall"},s)),E&&f.default.createElement(pr,Object.assign({},br,{"aria-label":"delete icon"})),$&&c&&f.default.createElement(mr,Object.assign({},br,{"aria-label":"edit icon"}))))})),yr=g.default(et).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,wr=g.default(et).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${C.neutral.grey.lightest};`,Er=g.default(Ut).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${C.neutral.ink.base};`,Cr=g.default(Ht).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${C.neutral.ink.base};`,$r=g.default(cr).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${C.neutral.ink.base};`,kr=g.default(me).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${C.neutral.grey.lightest};}`,Sr=g.default(me).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Er}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,Nr=g.default(me).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Cr}{color:${C.neutral.ink.lightest};}}&:hover{background-color:${C.neutral.grey.lightest};}`,Lr=g.default(eo).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Ir=(t,n)=>{var a;const[o,l]=e.useState(!0),[i,r]=e.useState(!1),[d,s]=e.useState([]),c=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.querySelector("[aria-selected = true]"),m=u.usePrevious(c),p=e.useCallback((()=>{var e,n,a,o,i,d,s,c;(null===(e=t.current)||void 0===e?void 0:e.scrollLeft)>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(n=document.getElementById("right-arrow"))||void 0===n||n.focus()),l(!0));const u=(null!==(o=null===(a=t.current)||void 0===a?void 0:a.scrollWidth)&&void 0!==o?o:0)-(null!==(d=null===(i=t.current)||void 0===i?void 0:i.clientWidth)&&void 0!==d?d:0);(null===(s=t.current)||void 0===s?void 0:s.scrollLeft)>=u-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(c=document.getElementById("left-arrow"))||void 0===c||c.focus()),r(!0)):r(!1)}),[t]),f=e.useCallback((()=>{t.current&&(t.current.scrollWidth-t.current.getBoundingClientRect().width<5?r(!0):r(!1))}),[t]),g=e.useCallback((()=>{const e=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(d,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]),h=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(d,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]);return e.useEffect((()=>{var e,a,o,l,i,r,u;if(null==t?void 0:t.current){if((null===(e=t.current.children)||void 0===e?void 0:e.length)&&(null===(a=t.current.children)||void 0===a?void 0:a.length)!==d.length&&d.length>0&&d.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),s([...d,d[d.length-1]+(null!==(l=null===(o=t.current.children[d.length-1])||void 0===o?void 0:o.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(i=t.current.children)||void 0===i?void 0:i.length)&&0===d.length&&s((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c!==m&&null!==c&&(null===(r=t.current.children)||void 0===r?void 0:r.length)===d.length){const e=Array.from(t.current.children).indexOf(c);t.current.scrollTo({left:d[e],top:0,behavior:"smooth"})}return f(),window.addEventListener("resize",f),null===(u=t.current)||void 0===u||u.addEventListener("scroll",p),()=>{window.removeEventListener("resize",f)}}}),[t,n,f,p,d,c,m]),{rightDisabled:i,leftDisabled:o,toNextScrollPosition:g,toPrevScrollPosition:h}},zr=f.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:o},l)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=Ir(i,t);return f.default.createElement(wr,{direction:"horizontal",alignY:"center",alignX:"between"},f.default.createElement(yr,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),f.default.createElement(Lr,null,(!d||!r)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(Sr,{id:"left-arrow",icon:f.default.createElement(Er,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),f.default.createElement(Nr,{id:"right-arrow",icon:f.default.createElement(Cr,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),f.default.createElement(kr,{icon:f.default.createElement($r,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":o,"aria-haspopup":a?"dialog":void 0,ref:l})))})),Dr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Fr=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Rr=g.default(io).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Tr=g.default(me).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${R.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${R.colors.secondary.red.base};\n `};`,Mr=e=>mo(e,po),Or=Ln((e=>{var{size:t=to.base,hasError:n,className:a}=e,o=K(e,["size","hasError","className"]);return f.default.createElement(Dr,{className:a},f.default.createElement(Fr,null,"g"===o.weightUnit&&f.default.createElement(eo,null,f.default.createElement(Rr,Object.assign({size:t,onChange:o.handleChangeGram,name:"gram",type:"number",value:o.gram,hasError:n,min:"0",step:"any",onKeyDown:Mr},o)),f.default.createElement(Tr,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(o)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(eo,null,f.default.createElement(Rr,Object.assign({size:t,onChange:o.handleChangePound,name:"pound",type:"number",value:o.pound,hasError:n,step:"any",min:"0",onKeyDown:Mr},o)),f.default.createElement(Tr,{hasError:n,size:t},"lb")),f.default.createElement(eo,null,f.default.createElement(Rr,Object.assign({size:t,onChange:o.handleChangeOunce,name:"ounce",type:"number",value:o.ounce,hasError:n,min:"0",step:"any",onKeyDown:Mr},o)),f.default.createElement(Tr,{hasError:n,size:t},"oz")))))}));Or.displayName="WeightInput",Or.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:a,label:o,iconSlot:l,glyphColor:i=C.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s,variant:c="default",summaryTextVariant:u="body"})=>{const[m,p]=e.useState(!!s),g=()=>p(!m),h={initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}};return"unstyled"===c?f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(Y,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(A,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(_,{variant:"hintText"},d)),m&&f.default.createElement(q,Object.assign({},h),a)):f.default.createElement(Z,{open:!!s,className:n},f.default.createElement(W,{onClick:g},f.default.createElement(P,null,f.default.createElement(j,{glyphColor:i},l,f.default.createElement(A,{variant:u},o)),f.default.createElement(H,null,f.default.createElement(t.motion.span,{animate:{rotate:m?180:0}},f.default.createElement(X,{name:m?"downArrow":"upArrow"})))),!!d&&f.default.createElement(_,{variant:"hintText"},d)),m&&f.default.createElement(V,Object.assign({},h),a))},exports.ActionMenu=Je,exports.Alert=e=>{var{size:t="base",variant:n="default",colours:a,rightActions:o,title:l,titleSlot:i,message:r,children:d,iconSlot:s,onClickClose:c}=e,u=K(e,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const m=null!=a?a:st[n],p=s||dt[n],g="xs"===t;return f.default.createElement(tt,Object.assign({colours:m,direction:"horizontal",alignX:"between",spacing:"0"},u),f.default.createElement(et,{direction:"horizontal",alignY:g?"center":"start",style:{margin:it[t],gap:it[t]},spacing:0},f.default.createElement(p,{"aria-hidden":!0,style:{minWidth:rt[t],minHeight:rt[t],width:rt[t],height:rt[t]},color:m.primary}),f.default.createElement(et,{direction:"vertical",spacing:g?0:"xs"},i||f.default.createElement(A,{variant:g?"bodySmallBold":"bodyBold",style:"base"===t?{lineHeight:"24px"}:{}},l),d||f.default.createElement(A,{variant:g?"bodySmall":"body"},r))),f.default.createElement(et,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:g?void 0:R.sizes[3],gap:g?void 0:it[t],alignItems:"center"}},o&&f.default.createElement(et,{alignY:"center",spacing:0,style:{gap:it[t]}},o.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement(me,Object.assign({key:t,type:"button",size:"sm"},n),t)}))),c&&f.default.createElement(et,{alignY:g?"center":"start",style:{height:"100%",padding:g?R.sizes.xs:void 0}},f.default.createElement(me,{variant:"flat",icon:f.default.createElement(he,null),onClick:c,"aria-label":"Close",size:"sm"}))))},exports.Anchor=e=>{var{children:t,href:n,rel:a,allowedHostnames:o=Oe}=e,l=K(e,["children","href","rel","allowedHostnames"]);const i=Ae(n,o),r=a||(i?"noopener noreferrer":void 0);return f.default.createElement(ct,Object.assign({href:n,rel:r},l),t)},exports.AnimatedDropdown=ht,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=R.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const o=t.toUpperCase().match(/\b(\w)/g);return f.default.createElement(bt,{width:e,bgColor:n,textColor:a,className:"avatar"},null==o?void 0:o.slice(0,2).map(((e,t)=>f.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:a,className:o,e2eClassName:l,children:i})=>{const r=It[e];return f.default.createElement(Nt,{text:a},f.default.createElement(r,{className:Re([o,l]),hideBorder:t},n&&n,i&&f.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:a,onClose:o,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=K(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=At[t];return f.default.createElement(zt,Object.assign({accentColor:c,className:l,backgroundColor:d},s),f.default.createElement(Dt,null,a&&f.default.createElement(Rt,{style:{marginRight:z.md},accentColor:c},a),r?f.default.createElement(Tt,null,r):f.default.createElement(f.default.Fragment,null,f.default.createElement(Mt,null,i||f.default.createElement(Ot,{variant:"headingSmall"},n)),f.default.createElement(Ft,null,o&&f.default.createElement(me,{variant:"flat","aria-label":"Close",icon:f.default.createElement(he,null),onClick:o})))))},exports.BaseContainer=y,exports.Breadcrumbs=({items:e,Separator:t=f.default.createElement(Pt,null),LinkComponent:n=_t})=>f.default.createElement(Bt,{className:"breadcrumbs"},e.map(((a,o)=>f.default.createElement(Wt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:o!==e.length-1?n:Vt},e.length!==o+1&&t)))),exports.Button=me,exports.Card=Ne,exports.CardHeader=be,exports.Checkbox=fn,exports.Choice=sn,exports.ChoiceList=xn,exports.CopyToClipboard=({className:t,text:n,onCopy:a})=>{const[o,l]=f.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),a&&a(),l(!0),setTimeout((()=>l(!1)),2500)}),[a,n]);return f.default.createElement(Nt,{text:o?"Copied!":"Copy to clipboard"},f.default.createElement(En,{variant:"flat",size:"sm",className:t,"aria-label":`${o?"Copied":"Copy"} "${n}" to clipboard`,icon:o?f.default.createElement(lt,Object.assign({color:C.secondary.green.base},wn)):f.default.createElement(yn,Object.assign({color:C.secondary.blue.base},wn)),onClick:i}))},exports.DATE_RANGE_OPTIONS=Pn,exports.DEFAULT_PRESET=Zn,exports.DEFAULT_RANGE=Vn,exports.DataTable=_a,exports.DateRangeInput=zn,exports.DateRangePicker=t=>{var{className:n,style:a,isDisabled:o,isMultiMonth:l=!1,showDatePresets:i=!0,onReset:r,disabledRanges:d,selectedPreset:s,setSelectedPreset:c,selectedRange:u,setSelectedRange:m,"aria-describedby":p,"aria-label":g}=t,h=K(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const b=e.useCallback((e=>t=>{const n={start:"start"===e?t:null==u?void 0:u.start,end:"end"===e?t:null==u?void 0:u.end};m(n)}),[null==u?void 0:u.end,null==u?void 0:u.start,m]),v=e.useMemo((()=>qn({disabledRanges:d,selectedRange:u})),[d,u]),x=e.useMemo((()=>u?(e=>Pn.reduce(((t,n)=>{if(n.hidden||t)return t;const a=Wn(n.value);if(!a)return t;const{start:o,end:l}=a;return 0===e.start.compare(o)&&0===e.end.compare(l)?n:t}),void 0))(u):null),[u]);return e.useEffect((()=>{c(x||Pn[0])}),[x,c]),f.default.createElement(et,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:R.sizes.base},a),className:n,"aria-describedby":p,"aria-label":g},i&&f.default.createElement(Fn,{disabled:o,label:"Date Range",options:Pn,value:null==s?void 0:s.value,onChange:e=>{m(Wn(exports.DateRanges[e])),c(Pn.find((({value:t})=>t===e))||Pn[0])}}),f.default.createElement(zn,{isDisabled:o,label:"Start date - End date",onChangeStartDate:b("start"),onChangeEndDate:b("end"),startValue:u&&u.start,endValue:u&&u.end,error:v?"Range contains invalid dates":void 0}),h.showPreviousPeriod&&f.default.createElement(jn,Object.assign({},h)),f.default.createElement(Yn,null),f.default.createElement(et,{alignX:"center"},f.default.createElement(Gt,{"aria-label":"Selected Date Range",isDisabled:o,isMultiMonth:l,value:u,onChange:m,disabledRanges:d})),!!r&&f.default.createElement(f.default.Fragment,null,f.default.createElement(Yn,null),f.default.createElement(Ne.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},f.default.createElement(me,{variant:"default",size:"sm",onClick:r,disabled:o},"Reset"))))},exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>f.default.createElement(Ka,{key:e},e))):f.default.createElement(Ka,null,e);return f.default.createElement(Va,null,e.map((e=>t?f.default.createElement(qa,{key:e.term},f.default.createElement(Xa,null,e.term),f.default.createElement(Ya,null,n(e.description))):f.default.createElement(Za,{key:e.term},f.default.createElement(Xa,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[a,o]=e.useState(!0);return f.default.createElement("main",null,t((()=>o(!a)),a),f.default.createElement(Qa,null,f.default.createElement(Ja,{showSidebar:a},n)))},exports.DimensionsInput=go,exports.Dropdown=Pe,exports.FilterTag=({className:t,e2eClassName:n,label:a,text:o,iconSlot:l,fill:i=C.secondary.blue.base,content:r,footer:d,header:s,onClickAway:c,onClick:u,shouldCloseOnClickAway:m=!0})=>{const p=Co(t),g=Co(n),[h,b]=e.useState(null),[v,x]=e.useState(null),{shouldShowDropdown:y,toggleShouldShowDropdown:w,closeDropdown:E}=Ve({anchorElement:h}),{handleKeyDown:$}=je({popperElement:v,anchorElement:h,onClose:E}),k=e.useCallback((e=>{y?E():w(),c&&y&&c(e)}),[y,E,w,c]),S=e.useCallback((e=>{c&&c(e,E),m&&E()}),[c,E,m]);return!r?f.default.createElement(ho,{className:Re([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:u},a&&f.default.createElement(vo,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(A,null,o),f.default.createElement(yo,{className:Re([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:C.neutral.ink.base})):f.default.createElement(ht,{className:p.filterTagDropdown,shouldShowDropdown:y,onClickAway:S,cta:f.default.createElement(ho,{className:p.container,onClick:k,ref:b},a&&f.default.createElement(vo,{variant:"subheadingSmallBold"},`${a}:`),f.default.createElement(A,null,o),f.default.createElement(xo,{color:C.neutral.ink.base,name:"downArrow",$shouldShow:y}))},f.default.createElement(wo,{ref:x,onKeyDown:$},f.default.createElement(Eo,{color:i},s||f.default.createElement(f.default.Fragment,null,l,f.default.createElement(A,{variant:"bodyBold"},a))),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,a]=e.useState(!0);return e.useEffect((()=>{function e(){a(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(a(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function l(e){e.metaKey||e.altKey||e.ctrlKey||a(!0)}function i(){"hidden"===document.visibilityState&&(a(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[a]),f.default.createElement(Ze.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=$o,exports.Image=({src:t,alt:n="",className:a,e2eClassName:l,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=zo(a),x=zo(l),[y,w]=e.useState(!1),[E,C]=e.useState({isLoaded:!1,isError:!1}),[$,k]=f.default.useState(null),[S,N]=f.default.useState(null),{styles:L,attributes:I}=o.usePopper($,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),D=e.useCallback((()=>m?w(!1):{}),[m]),F=!E.isLoaded||E.isError;return f.default.createElement(So,{className:Re([null==v?void 0:v.container,null==x?void 0:x.container,a])},f.default.createElement(No,{src:t,alt:n,className:Re([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:D,style:F?{display:"none"}:{},ref:k}),!b&&F&&(p||f.default.createElement(ko,{className:Re([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&i.createPortal(f.default.createElement(Lo,Object.assign({ref:N,style:L.popper},I.popper,{className:Re([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),f.default.createElement(Io,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=eo,exports.LegacyDataTable=El,exports.Loader=Q,exports.LoginWithAmazonButton=t=>{const[n,a]=e.useState($l);return f.default.createElement(Cl,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a($l)},"aria-label":kl},t),f.default.createElement("img",{src:n,alt:kl}))},exports.Modal=n=>{const{shouldShow:a,showHeaderCloseButton:o=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,u]=e.useState(null);e.useEffect((()=>{var e,t;a&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:m,onScroll:p}=Ye(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return f.default.createElement(t.AnimatePresence,null,a&&f.default.createElement("div",{"data-testid":"dialog-wrapper"},f.default.createElement(Sl,null),f.default.createElement(Tl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},f.default.createElement(Ne.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:f.default.createElement(be,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},o&&{onClickClose:g})),f.default.createElement(Nl,{onScroll:p,ref:u,isScrollable:m,fullBleed:l},d),Ll(n)&&n.footerSlot,!Ll(n)&&(n.leftActions||n.rightActions)&&f.default.createElement(Ne.Footer,null,f.default.createElement(et,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&f.default.createElement(et,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement(me,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&f.default.createElement(et,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=K(e,["label"]);return f.default.createElement(me,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:a,handleChangePage:o})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=jl({currentPage:n,totalPagesCount:a,handleChangePage:o});return f.default.createElement(et,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},f.default.createElement(Ol,{onClick:()=>{1!==n&&o(1)},icon:f.default.createElement(Hl,null),size:"sm","aria-label":"go to first page"}),f.default.createElement(Ol,{onClick:r,icon:f.default.createElement(Ut,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),f.default.createElement("form",{onSubmit:d},f.default.createElement(Al,{"aria-live":"polite","aria-label":`page ${n} of ${a}`,size:to.sm,type:"number",value:l,min:"1",max:`${a}`,onChange:s,onBlur:c})),f.default.createElement(Bl,{count:a}),f.default.createElement(Ol,{onClick:i,icon:f.default.createElement(Ht,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=a}),f.default.createElement(Ol,{onClick:()=>{n!==a&&o(a)},icon:f.default.createElement(Wl,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=a}))},exports.Popover=He,exports.Popup=Ui,exports.Portal=ze,exports.PriceInput=Kl,exports.Radio=hn,exports.RangeCalendar=Gt,exports.ScreenReaderOnly=({children:e})=>f.default.createElement(Ul,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:u="",className:m="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return f.default.createElement(Ql,{className:m,iconPosition:b?"left":"right"},f.default.createElement(Gl,{size:x,type:e,value:s,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:u,name:p,disabled:t,error:c,autoComplete:v}),f.default.createElement(Jl,null,g?f.default.createElement(Q,{height:24,color:h||R.colors.secondary.blue.base}):y&&n?f.default.createElement(me,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},f.default.createElement(he,{color:h||R.colors.neutral.ink.dark})):f.default.createElement(me,{variant:"unstyled",onClick:()=>a(s),style:{display:"flex"},"aria-label":"Search",type:"button"},f.default.createElement(ei,{color:h||R.colors.neutral.ink.dark,height:z.md,width:z.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:a})=>f.default.createElement(oi,{className:n?`${n}-container`:void 0},e.map((e=>f.default.createElement(me,{type:"button","aria-pressed":e.value===t,variant:e.value===t?"primary":"default",key:e.key,onClick:()=>a(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Fn,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:a=!1,displayLabel:o=!1}=e,l=K(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>ri[e]?f.default.createElement(ii,{key:`Key: ${e}`,"aria-label":di[e]},ri[e]):f.default.createElement(ii,{key:`Key: ${e}`},e))).reduce(((e,t)=>f.default.createElement(f.default.Fragment,null,e,"+",t)));return f.default.createElement(li,Object.assign({"aria-label":n,$inverse:a},l),i," ",o?f.default.createElement("span",null,n):null)},exports.SimpleTable=bi,exports.Skeleton=vi,exports.Slider=({id:t,value:n,min:a,max:o,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[u,m]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Ci(r),y=Ci(d),w=e.useCallback((e=>{var t;if(!u||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(o-a)+a;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>o&&(s=o),s<a&&(s=a),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const m=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;s=Number(s.toFixed(m)),f=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&g(1),1===p&&g(0))}),[p,u,o,a,i,l,n]),E=e.useCallback((()=>{m(!1),c()}),[c]),C=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>C(e,Array.isArray(n)?0:1),t=e=>C(e,1),a=b.current,o=v.current;return null==a||a.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),()=>{null==a||a.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)}}),[C,w,E,n]);const $=(e,t,n)=>{let l;return l=Re("number"==typeof n?0===n?[null==x?void 0:x.startSlider,null==y?void 0:y.startSlider]:[null==x?void 0:x.endSlider,null==y?void 0:y.endSlider]:[null==x?void 0:x.slider,null==y?void 0:y.slider]),f.default.createElement(wi,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<a?0:e[0]-a)/(o-a),n=100*(e[1]>o?100:e[1]-a)/(o-a),l=n-t;return f.default.createElement(f.default.Fragment,null,f.default.createElement(Ei,{className:Re([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>o?100:n<a?0:100*(e-a)/(o-a),$(t,e)})(n),f.default.createElement(xi,{className:Re([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},f.default.createElement(yi,null),S)},exports.Stack=et,exports.Stepper=Vl,exports.Tag=$i,exports.Text=A,exports.TextField=io,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:a,minWidth:o="50vw",max:l=3,onClose:r})=>(e.useEffect((()=>{l&&a.length>l&&r(a[0].key)}),[a,l,r]),i.createPortal(f.default.createElement(ki,{direction:"vertical",alignX:"center",spacing:4},f.default.createElement(d.TransitionGroup,{component:null},[...a].reverse().map(((e,l)=>f.default.createElement(d.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},f.default.createElement(Fi,Object.assign({className:t,e2eClassName:n,minWidth:o,last:l===a.length-1,onClose:()=>r(e.key)},e))))))),document.body)),exports.Toggle=An,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:a=!1,onChange:o})=>f.default.createElement(Ri,{type:"button",checked:t,size:n,disabled:a,"aria-pressed":t,tabIndex:"0",onClick:()=>o(!t)},e),exports.Tooltip=Nt,exports.UploadFile=Vi,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:a})=>{const o=_e(n,a);return f.default.createElement(Ui,{shouldShow:n,className:`${e}-video`},f.default.createElement(Gi,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},f.default.createElement(Ji,{ref:o},f.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),f.default.createElement(Qi,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:f.default.createElement(he,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:a,type:o,className:l,colourPalette:i=C.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:u,onEdit:m,e2eClassName:p})=>{const g=dr(l),h=dr(p),[b,v,x]=qe(),y=e.useCallback((()=>c(t)),[t,c]),w=e.useCallback((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=o===er.draft,k=o===er.saved,S=s?C.neutral.ink.dark:C.neutral.ink.base;return f.default.createElement(tr,{className:`${Re([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:y},f.default.createElement(ar,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&f.default.createElement(ir,null,n),f.default.createElement(A,{variant:"bodyBold"},a),d&&f.default.createElement(or,{active:s||b,colourPalette:i,customTextColour:r},f.default.createElement(nr,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&f.default.createElement(he,Object.assign({},lr,{color:S,className:null==h?void 0:h.delete,onClick:w})),k&&s&&f.default.createElement(rr,Object.assign({},lr,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=xr,exports.ViewsContainer=zr,exports.WeightInput=Or,exports.buildClassnames=Re,exports.checkIfDateRangeInvalid=qn,exports.generateId=Ie,exports.getDateRange=Wn,exports.getOpaqueHexColor=Me,exports.hexToRgb=Te,exports.isExternalLink=Ae,exports.theme=R,exports.useCellWidths=na,exports.useClickOutside=_e,exports.useColumns=la,exports.useDebounce=(t,n)=>{const[a,o]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>o(t)),n);return()=>clearTimeout(e)}),[t,n]),a},exports.useDragToScroll=ia,exports.useDropdown=Ve,exports.useFocusVisible=function(){const[e,t]=f.default.useState(!1),{hadKeyboardEvent:n,isInitialized:a}=f.default.useContext(Ze),o=f.default.useCallback((()=>{e||t(!0)}),[e]),l=f.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=a?n&&e:e,f.default.useMemo((()=>({focusVisible:i,onFocus:o,onBlur:l})),[i,l,o])},exports.useHover=qe,exports.useId=Xe,exports.useIsOverflowing=Ye,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,a)=>{if(a)if(e){if(t.includes(a))return;const e=[...t,a];n(e)}else{const e=t.findIndex((e=>e===a));if(e<0)return;const o=[...t];o.splice(e,1),n(o)}}}}},exports.useScrollPosition=ra,exports.useSelection=fa,exports.useTabs=(t,n)=>{const{defaultActiveIndex:a=0}=n||{},[o]=e.useState(t),[l,i]=e.useState(o[a]);return[l,e=>{const t=o.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),f.default.createElement(t,Object.assign({},n))),exports.withLabels=Ln;
2
2
  //# sourceMappingURL=index.js.map