@veeqo/ui 4.0.2-beta.4 → 4.0.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/hooks/useHandleFocus.d.ts +4 -0
- package/dist/components/Popover/types.d.ts +0 -5
- package/dist/index.esm.js +1 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import t,{useState as n,useEffect as o,PureComponent as i,useMemo as r,forwardRef as a,useRef as l,useCallback as s,Component as c,Fragment as d}from"react";import{motion as u,AnimatePresence as p}from"framer-motion";import m,{css as f,createGlobalStyle as h}from"styled-components";import{usePopper as g}from"react-popper";import b from"resize-observer-polyfill";import v,{createPortal as y}from"react-dom";import{CSSTransition as x,TransitionGroup as w}from"react-transition-group";import E from"lodash.throttle";import{useScroll as C}from"react-use";import $ from"react-scrolllock-configurable";const k=m.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,S={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},N=(e,t)=>e||(t?S[t]:void 0),I={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"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},z={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var F,O;!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)"}(F||(F={})),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"}(O||(O={}));const j=function({increment:e,unit:t,count:n}){const o={};for(let i=0;i<=n;i++){const n=i*e;o[i]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),M={[O.none]:"0",[O.line]:"1px",[O.xs]:j[1],[O.sm]:j[2],[O.base]:j[4],[O.md]:j[6],[O.lg]:j[8],[O.xl]:j[12],[O.xxl]:j[16]},R=Object.assign(Object.assign({},M),j),D={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},B={headingXXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:D.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},T=Object.assign(Object.assign({},D),{breakpoints:L,colors:I,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:F,sizes:R,text:B}),{text:H,colors:A,fontFamily:P}=T,W=m.span.attrs((({as:e,variant:t})=>({as:N(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:${P};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?A.neutral.ink.lightest:H[e].color;return`\n font-family: ${H[e].fontFamily};\n font-style: ${H[e].fontStyle};\n font-weight: ${H[e].fontWeight};\n font-size: ${H[e].fontSize};\n line-height: ${H[e].lineHeight};\n color: ${n};\n text-decoration: ${H[e].textDecoration};\n letter-spacing: ${H[e].letterSpacing};\n `}}`,V=m(k).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,q=m(V).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${R.base};width:${R.base};color:${({glyphColor:e})=>e};}`,Z=m(V).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,_=m.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 ${T.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${T.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${T.colors.secondary.blue.light};}`,X=m(k).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,U=m(W).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,G=m(u(k)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Y=m.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,K=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:R.md},e),t.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"})),J=({className:e,children:o,label:i,iconSlot:r,glyphColor:a=I.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:c})=>{const[d,p]=n(!!c);return t.createElement(Y,{open:!!c,className:e},t.createElement(_,{onClick:()=>p(!d)},t.createElement(X,null,t.createElement(q,{glyphColor:a},r,t.createElement(W,{variant:"body"},i)),t.createElement(Z,null,t.createElement(u.span,{animate:{rotate:d?180:0}},t.createElement(K,{name:d?"downArrow":"upArrow"})))),!!s&&t.createElement(U,{variant:"hintText"},s)),d&&t.createElement(G,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},o))};var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function ee(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 i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},te.apply(this,arguments)}function ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var oe,ie={exports:{}},re={exports:{}},ae={};var le,se,ce,de,ue,pe,me,fe,he,ge,be,ve,ye,xe,we={};
|
|
2
|
-
/** @license React v16.13.1
|
|
3
|
-
* react-is.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function Ee(){return se||(se=1,"production"===process.env.NODE_ENV?re.exports=function(){if(oe)return ae;oe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case o:case r:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case m:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return ae.AsyncMode=s,ae.ConcurrentMode=c,ae.ContextConsumer=l,ae.ContextProvider=a,ae.Element=t,ae.ForwardRef=d,ae.Fragment=o,ae.Lazy=f,ae.Memo=m,ae.Portal=n,ae.Profiler=r,ae.StrictMode=i,ae.Suspense=u,ae.isAsyncMode=function(e){return x(e)||y(e)===s},ae.isConcurrentMode=x,ae.isContextConsumer=function(e){return y(e)===l},ae.isContextProvider=function(e){return y(e)===a},ae.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ae.isForwardRef=function(e){return y(e)===d},ae.isFragment=function(e){return y(e)===o},ae.isLazy=function(e){return y(e)===f},ae.isMemo=function(e){return y(e)===m},ae.isPortal=function(e){return y(e)===n},ae.isProfiler=function(e){return y(e)===r},ae.isStrictMode=function(e){return y(e)===i},ae.isSuspense=function(e){return y(e)===u},ae.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===r||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},ae.typeOf=y,ae}():re.exports=(le||(le=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var h=e.type;switch(h){case s:case c:case o:case r:case i:case u:return h;default:var g=h&&h.$$typeof;switch(g){case l:case d:case f:case m:case a:return g;default:return p}}case n:return p}}}var x=s,w=c,E=l,C=a,$=t,k=d,S=o,N=f,I=m,L=n,z=r,F=i,O=u,j=!1;function M(e){return y(e)===c}we.AsyncMode=x,we.ConcurrentMode=w,we.ContextConsumer=E,we.ContextProvider=C,we.Element=$,we.ForwardRef=k,we.Fragment=S,we.Lazy=N,we.Memo=I,we.Portal=L,we.Profiler=z,we.StrictMode=F,we.Suspense=O,we.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||y(e)===s},we.isConcurrentMode=M,we.isContextConsumer=function(e){return y(e)===l},we.isContextProvider=function(e){return y(e)===a},we.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},we.isForwardRef=function(e){return y(e)===d},we.isFragment=function(e){return y(e)===o},we.isLazy=function(e){return y(e)===f},we.isMemo=function(e){return y(e)===m},we.isPortal=function(e){return y(e)===n},we.isProfiler=function(e){return y(e)===r},we.isStrictMode=function(e){return y(e)===i},we.isSuspense=function(e){return y(e)===u},we.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===r||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},we.typeOf=y}()),we)),re.exports}
|
|
10
|
-
/*
|
|
11
|
-
object-assign
|
|
12
|
-
(c) Sindre Sorhus
|
|
13
|
-
@license MIT
|
|
14
|
-
*/function Ce(){if(de)return ce;de=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ce=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,i){for(var r,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),s=1;s<arguments.length;s++){for(var c in r=Object(arguments[s]))t.call(r,c)&&(l[c]=r[c]);if(e){a=e(r);for(var d=0;d<a.length;d++)n.call(r,a[d])&&(l[a[d]]=r[a[d]])}}return l},ce}function $e(){if(pe)return ue;pe=1;return ue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ke(){return fe?me:(fe=1,me=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Se=Ee();ie.exports=function(){if(ve)return be;ve=1;var e=Ee(),t=Ce(),n=$e(),o=ke(),i=function(){if(ge)return he;ge=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=$e(),n={},o=ke();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,r,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(o(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](r,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},he=i}(),r=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),be=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(a),arrayOf:function(e){return h((function(t,o,i,r,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[o];if(!Array.isArray(l))return new f("Invalid "+r+" `"+a+"` of type `"+y(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,r,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,o,i){var r=e[t];return l(r)?null:new f("Invalid "+o+" `"+i+"` of type `"+y(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,o,i,r){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+i+" `"+r+"` of type `"+y(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,o,i,r){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+i+" `"+r+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,o,i){return v(e[t])?null:new f("Invalid "+o+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,i,r,a,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[i],c=y(s);if("object"!==c)return new f("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var d in s)if(o(s,d)){var u=e(s,d,r,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,o,i,r){for(var a=t[n],l=0;l<e.length;l++)if(m(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new f("Invalid "+i+" `"+r+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(i)+" at index "+t+"."),a}return h((function(t,i,r,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,r,a,l,n);if(null==d)return null;d.data&&o(d.data,"expectedType")&&s.push(d.data.expectedType)}return new f("Invalid "+a+" `"+l+"` supplied to `"+r+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,o,i,r,a){var l=t[o],s=y(l);if("object"!==s)return new f("Invalid "+r+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return b(i,r,a,c,x(d));var u=d(l,c,i,r,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return h((function(i,r,a,l,s){var c=i[r],d=y(c);if("object"!==d)return new f("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[r],e);for(var p in u){var m=e[p];if(o(e,p)&&"function"!=typeof m)return b(a,l,s,p,x(m));if(!m)return new f("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,p,a,l,s+"."+p,n);if(h)return h}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function i(i,a,l,c,d,p,m){if(c=c||u,p=p||l,m!==n){if(s){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+l;!t[g]&&o<3&&(r("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,o++)}}return null==a[l]?i?null===a[l]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,d,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return h((function(t,n,o,i,r,a){var l=t[n];return y(l)!==e?new f("Invalid "+i+" `"+r+"` of type `"+x(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,o,i){return new f((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!v(n.value))return!1}else for(;!(n=o.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},be}()(Se.isElement,!0)}else ie.exports=function(){if(xe)return ye;xe=1;var e=$e();function t(){}function n(){}return n.resetWarningCache=t,ye=function(){function o(t,n,o,i,r,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var Ne=ie.exports,Ie=ne(Ne),Le="data-focus-lock",ze="data-focus-lock-disabled";function Fe(e,t){return o=t||null,i=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(r=n((function(){return{value:o,callback:i,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0]).callback=i,r.facade;var o,i,r}var Oe={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function je(e){return e}function Me(e,t){void 0===t&&(t=je);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,o);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function Re(e,t){return void 0===t&&(t=je),Me(e,t)}"production"===process.env.NODE_ENV||Ie.node;var De=Re({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Be=Re(),Te=Re(),He=function(e){void 0===e&&(e={});var t=Me(null);return t.options=Q({async:!0,ssr:!1},e),t}({async:!0}),Ae=[],Pe=e.forwardRef((function(t,n){var i,r=e.useState(),a=r[0],l=r[1],s=e.useRef(),c=e.useRef(!1),d=e.useRef(null),u=t.children,p=t.disabled,m=void 0!==p&&p,f=t.noFocusGuards,h=void 0!==f&&f,g=t.persistentFocus,b=void 0!==g&&g,v=t.crossFrame,y=void 0===v||v,x=t.autoFocus,w=void 0===x||x,E=t.allowTextSelection,C=t.group,$=t.className,k=t.whiteList,S=t.hasPositiveIndices,N=t.shards,I=void 0===N?Ae:N,L=t.as,z=void 0===L?"div":L,F=t.lockProps,O=void 0===F?{}:F,j=t.sideCar,M=t.returnFocus,R=void 0!==M&&M,D=t.focusOptions,B=t.onActivation,T=t.onDeactivation,H=e.useState({})[0],A=e.useCallback((function(){d.current=d.current||document&&document.activeElement,s.current&&B&&B(s.current),c.current=!0}),[B]),P=e.useCallback((function(){c.current=!1,T&&T(s.current)}),[T]);o((function(){m||(d.current=null)}),[]);var W=e.useCallback((function(e){var t=d.current;if(t&&t.focus){var n="function"==typeof R?R(t):R;if(n){var o="object"==typeof n?n:void 0;d.current=null,e?Promise.resolve().then((function(){return t.focus(o)})):t.focus(o)}}}),[R]),V=e.useCallback((function(e){c.current&&De.useMedium(e)}),[]),q=Be.useMedium,Z=e.useCallback((function(e){s.current!==e&&(s.current=e,l(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==E&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),e.useEffect((function(){s.current||"string"==typeof z||console.error("FocusLock: could not obtain ref to internal node")}),[]));var _=te(((i={})[ze]=m&&"disabled",i[Le]=C,i),O),X=!0!==h,U=X&&"tail"!==h,G=Fe([n,Z]);return e.createElement(e.Fragment,null,X&&[e.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:Oe}),S?e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:Oe}):null],!m&&e.createElement(j,{id:H,sideCar:He,observed:a,disabled:m,persistentFocus:b,crossFrame:y,autoFocus:w,whiteList:k,shards:I,onActivation:A,onDeactivation:P,returnFocus:W,focusOptions:D}),e.createElement(z,te({ref:G},_,{className:$,onBlur:q,onFocus:V}),u),U&&e.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:Oe}))}));Pe.propTypes="production"!==process.env.NODE_ENV?{children:Ne.node,disabled:Ne.bool,returnFocus:Ne.oneOfType([Ne.bool,Ne.object,Ne.func]),focusOptions:Ne.object,noFocusGuards:Ne.bool,hasPositiveIndices:Ne.bool,allowTextSelection:Ne.bool,autoFocus:Ne.bool,persistentFocus:Ne.bool,crossFrame:Ne.bool,group:Ne.string,className:Ne.string,whiteList:Ne.func,shards:Ne.arrayOf(Ne.any),as:Ne.oneOfType([Ne.string,Ne.func,Ne.object]),lockProps:Ne.object,onActivation:Ne.func,onDeactivation:Ne.func,sideCar:Ne.any.isRequired}:{};var We=Pe;function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Ze(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(t)}var _e=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Xe=function(e){return Array.isArray(e)?e:[e]},Ue=function(e){return Array.isArray(e)?e[0]:e},Ge=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Ye=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Ke=function(e,t){return!e||Ye(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(Ge(e))},Je=function(e,t){var n=e.get(t);if(void 0!==n)return n;var o=Ke(t,Je.bind(void 0,e));return e.set(t,o),o},Qe=function(e,t){var n=e.get(t);if(void 0!==n)return n;var o=function(e,t){return!(e&&!Ye(e))||!!ot(e)&&t(Ge(e))}(t,Qe.bind(void 0,e));return e.set(t,o),o},et=function(e){return e.dataset},tt=function(e){return"INPUT"===e.tagName},nt=function(e){return tt(e)&&"radio"===e.type},ot=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},it=function(e){var t;return Boolean(e&&(null===(t=et(e))||void 0===t?void 0:t.focusGuard))},rt=function(e){return!it(e)},at=function(e){return Boolean(e)},lt=function(e,t){var n=e.tabIndex-t.tabIndex,o=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||o},st=function(e,t,n){return _e(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(lt)},ct=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),dt="".concat(ct,", [data-focus-guard]"),ut=function(e,t){return _e((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?dt:ct)?[n]:[],ut(n))}),[])},pt=function(e,t){return e.reduce((function(e,n){var o,i=ut(n,t),r=(o=[]).concat.apply(o,i.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?pt([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(r,n.parentNode?_e(n.parentNode.querySelectorAll(ct)).filter((function(e){return e===n})):[])}),[])},mt=function(e,t){return _e(e).filter((function(e){return Je(t,e)})).filter((function(e){return function(e){return!((tt(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},ft=function(e,t){return void 0===t&&(t=new Map),_e(e).filter((function(e){return Qe(t,e)}))},ht=function(e,t,n){return st(mt(pt(e,n),t),!0,n)},gt=function(e,t){return st(mt(pt(e),t),!1)},bt=function(e,t){return mt((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),_e(n).map((function(e){return pt([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},vt=function(e,t){return e.shadowRoot?vt(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||_e(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var o=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!o&&vt(o,t)}return vt(e,t)}))},yt=function(e){return e.parentNode?yt(e.parentNode):e},xt=function(e){return Xe(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(Le);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,o=0;o<n;o+=1)for(var i=o+1;i<n;i+=1){var r=e[o].compareDocumentPosition(e[i]);(r&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(r&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(o)}return e.filter((function(e,n){return!t.has(n)}))}(_e(yt(t).querySelectorAll("[".concat(Le,'="').concat(n,'"]:not([').concat(ze,'="disabled"])')))):[t]),e}),[])},wt=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?wt(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return t.contentWindow.document}))?wt(t.contentWindow.document):t}},Et=function(e,t){return void 0===t&&(t=wt(Ue(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&xt(e).some((function(e){return vt(e,t)||function(e,t){return Boolean(_e(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},Ct=function(e,t){return nt(e)&&e.name?function(e,t){return t.filter(nt).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},$t=function(e){return e[0]&&e.length>1?Ct(e[0],e):e[0]},kt=function(e,t){return e.length>1?e.indexOf(Ct(e[t],e)):t},St="NEW_FOCUS",Nt=function(e,t,n,o){var i=e.length,r=e[0],a=e[i-1],l=it(n);if(!(n&&e.indexOf(n)>=0)){var s,c,d=void 0!==n?t.indexOf(n):-1,u=o?t.indexOf(o):d,p=o?e.indexOf(o):-1,m=d-u,f=t.indexOf(r),h=t.indexOf(a),g=(s=t,c=new Set,s.forEach((function(e){return c.add(Ct(e,s))})),s.filter((function(e){return c.has(e)}))),b=(void 0!==n?g.indexOf(n):-1)-(o?g.indexOf(o):d),v=kt(e,0),y=kt(e,i-1);return-1===d||-1===p?St:!m&&p>=0?p:d<=f&&l&&Math.abs(m)>1?y:d>=h&&l&&Math.abs(m)>1?v:m&&Math.abs(b)>1?p:d<=f?y:d>h?v:m?Math.abs(m)>1?p:(i+p+m)%i:void 0}},It=function(e,t,n){var o,i=e.map((function(e){return e.node})),r=ft(i.filter((o=n,function(e){var t,n=null===(t=et(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||o.indexOf(e)>=0})));return r&&r.length?$t(r):$t(ft(t))},Lt=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Lt(e.parentNode.host||e.parentNode,t),t},zt=function(e,t){for(var n=Lt(e),o=Lt(t),i=0;i<n.length;i+=1){var r=n[i];if(o.indexOf(r)>=0)return r}return!1},Ft=function(e,t,n){var o=Xe(e),i=Xe(t),r=o[0],a=!1;return i.filter(Boolean).forEach((function(e){a=zt(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=zt(r,e);t&&(a=!a||vt(t,a)?t:zt(t,a))}))})),a},Ot=function(e,t){var n=wt(Xe(e).length>0?document:Ue(e).ownerDocument),o=xt(e).filter(rt),i=Ft(n||e,e,o),r=new Map,a=gt(o,r),l=ht(o,r).filter((function(e){var t=e.node;return rt(t)}));if(l[0]||(l=a)[0]){var s,c,d,u=gt([i],r).map((function(e){return e.node})),p=(s=u,c=l,d=new Map,c.forEach((function(e){return d.set(e.node,e)})),s.map((function(e){return d.get(e)})).filter(at)),m=p.map((function(e){return e.node})),f=Nt(m,u,n,t);if(f===St){var h=It(a,m,function(e,t){return e.reduce((function(e,n){return e.concat(bt(n,t))}),[])}(o,r));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:p[f]}},jt=0,Mt=!1,Rt=function(e,t,n){void 0===n&&(n={});var o,i,r=Ot(e,t);if(!Mt&&r){if(jt>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Mt=!0,void setTimeout((function(){Mt=!1}),1);jt++,o=r.node,i=n.focusOptions,"focus"in o&&o.focus(i),"contentWindow"in o&&o.contentWindow&&o.contentWindow.focus(),jt--}};function Dt(e){setTimeout(e,1)}var Bt=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=wt(e);return!!t&&_e(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return vt(e,t)}))}()},Tt=null,Ht=null,At=null,Pt=!1,Wt=function(){return!0};function Vt(e,t,n,o){var i=null,r=e;do{var a=o[r];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(r!==e)return;i=null}}while((r+=n)!==t);i&&(i.node.tabIndex=0)}var qt=function(e){return e&&"current"in e?e.current:e},Zt=function e(t,n,o){return n&&(n.host===t&&(!n.activeElement||o.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,o))},_t=function(){var e,t,n,o,i,r,a,l=!1;if(Tt){var s=Tt,c=s.observed,d=s.persistentFocus,u=s.autoFocus,p=s.shards,m=s.crossFrame,f=s.focusOptions,h=c||At&&At.portaledElement,g=document&&document.activeElement;if(h){var b=[h].concat(p.map(qt).filter(Boolean));if(g&&!function(e){return(Tt.whiteList||Wt)(e)}(g)||(d||(m?Boolean(Pt):"meanwhile"===Pt)||!Bt()||!Ht&&u)&&(h&&!(Et(b)||g&&function(e,t){return t.some((function(t){return Zt(e,t,t)}))}(g,b)||(a=g,At&&At.portaledElement===a))&&(document&&!Ht&&g&&!u?(g.blur&&g.blur(),document.body.focus()):(l=Rt(b,Ht,{focusOptions:f}),At={})),Pt=!1,Ht=document&&document.activeElement),document){var v=document&&document.activeElement,y=(t=xt(e=b).filter(rt),n=Ft(e,e,t),o=new Map,i=ht([n],o,!0),r=ht(t,o).filter((function(e){var t=e.node;return rt(t)})).map((function(e){return e.node})),i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:it(t)}}))),x=y.map((function(e){return e.node})).indexOf(v);x>-1&&(y.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Vt(x,y.length,1,y),Vt(x,-1,-1,y))}}}return l},Xt=function(e){_t()&&e&&(e.stopPropagation(),e.preventDefault())},Ut=function(){return Dt(_t)};"production"===process.env.NODE_ENV||Ie.node.isRequired;var Gt=function(){Pt="just",Dt((function(){Pt="meanwhile"}))};De.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(At={observerNode:n,portaledElement:t})})),Be.assignMedium(Ut),Te.assignMedium((function(e){return e({moveFocusInside:Rt,focusInside:Et})}));var Yt=function(e,n){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(o){if("production"!==process.env.NODE_ENV&&"function"!=typeof o)throw new Error("Expected WrappedComponent to be a React component.");var r,a=[];function l(){r=e(a.map((function(e){return e.props}))),n(r)}var s,c,d,u=function(e){var n,i;function s(){return e.apply(this,arguments)||this}i=e,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,Ve(n,i),s.peek=function(){return r};var c=s.prototype;return c.componentDidMount=function(){a.push(this),l()},c.componentDidUpdate=function(){l()},c.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),l()},c.render=function(){return t.createElement(o,this.props)},s}(i);return s=u,c="displayName",d="SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")",(c=Ze(c))in s?Object.defineProperty(s,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[c]=d,u}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Tt&&(document.addEventListener("focusin",Xt),document.addEventListener("focusout",Ut),window.addEventListener("blur",Gt));var n=Tt,o=n&&t&&t.id===n.id;Tt=t,n&&!o&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Ht=null,o&&n.observed===t.observed||t.onActivation(),_t(),Dt(_t)):(document.removeEventListener("focusin",Xt),document.removeEventListener("focusout",Ut),window.removeEventListener("blur",Gt),Ht=null)}))((function(){return null})),Kt=e.forwardRef((function(t,n){return e.createElement(We,te({sideCar:Yt,ref:n},t))})),Jt=We.propTypes||{};Jt.sideCar;var Qt=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Jt,["sideCar"]);Kt.propTypes="production"!==process.env.NODE_ENV?Qt:{};var en=Kt;const tn=e=>`${e}-${Math.floor(1e3*Math.random())}`;class nn extends i{constructor(e){super(e),this.id=tn("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?y(e,this.portalNode):null}}const on=m.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,rn=m.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,an=e=>e.filter(Boolean).join(" "),ln=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},sn=(e,t)=>{const n=ln(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},cn=e=>{var{id:i,children:a,zIndex:l=T.layers.popup,placement:s="bottom",anchorElement:c,rootElementRef:d,shards:u,onShouldClose:p,style:m,disableFocusLock:f}=e,h=ee(e,["id","children","zIndex","placement","anchorElement","rootElementRef","shards","onShouldClose","style","disableFocusLock"]);const[v,y]=n(null),{styles:x,attributes:w,update:E}=g(c,v,{placement:s}),C=r((()=>i||tn("popover")),[i]);(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.setAttribute("aria-expanded","true")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||e.setAttribute("aria-controls",t)}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||e.setAttribute("aria-haspopup","dialog")}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t])})({anchorElement:c,popoverId:C}),o((()=>{if(!E||!v)return;const e=new b(E);return e.observe(v),()=>e.disconnect()}),[E,v]),o((()=>{if(E)return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)}),[E]);const $=()=>null==c?void 0:c.focus(),k=()=>{$(),null==p||p()};return t.createElement(nn,{rootElementRef:d},t.createElement(rn,{onClick:k,zIndex:l}),t.createElement(en,{shards:u,onDeactivation:$,whiteList:e=>e!==c,disabled:f},t.createElement(on,Object.assign({open:!0,zIndex:l,ref:y,style:Object.assign(Object.assign({},x.popper),m),onKeyDown:e=>{"Escape"===e.key&&k()},autoFocus:!0},w.popper,h),a)))},dn=({width:e,height:n,className:o,color:i,label:r})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},t.createElement("defs",null,t.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},t.createElement("stop",{stopColor:i,stopOpacity:"0",offset:"0%"}),t.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),t.createElement("stop",{stopColor:i,offset:"100%"}))),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(1 1)"},t.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:i,strokeWidth:"2"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),t.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),un=({width:e,height:n,className:o,color:i,label:r})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":r},t.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},t.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),pn=({width:e,height:n,className:o,color:i,label:r})=>t.createElement("svg",{width:e,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"aria-label":r},t.createElement("circle",{cx:"15",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},t.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),t.createElement("circle",{cx:"105",cy:"15",r:"15"},t.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),t.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),mn=({className:e,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return t.createElement(un,{className:e,height:n,width:o,color:i});case"ThreeDots":return t.createElement(pn,{className:e,height:n,width:o,color:i});default:return t.createElement(dn,{className:e,height:n,width:o,color:i})}},fn=m.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({loading:e})=>e&&"opacity: 0;"};svg{width:${({size:e})=>R[e]};height:${({size:e})=>R[e]};}`,hn=m.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:${T.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",r="16px",a="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",a="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${a};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,gn=m(hn).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${T.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?T.colors.neutral.ink.base:T.colors.secondary.blue.base};&:hover{background-color:${T.colors.neutral.grey.lightest};}&:active{background-color:${T.colors.neutral.grey.lightest};border-color:${T.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${T.colors.neutral.grey.base} !important;border-color:${T.colors.neutral.grey.base} !important;color:${T.colors.neutral.ink.light} !important;}`,bn=m(gn).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${T.colors.secondary.red.base};&:hover{color:${T.colors.secondary.red.dark};}&:active{border-color:${T.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};color:${T.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}`,vn=m(gn).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${T.colors.secondary.blue.base};border-color:${T.colors.secondary.blue.base};color:white;&:hover{background-color:${T.colors.secondary.blue.dark};border-color:${T.colors.secondary.blue.dark};}&:active{background-color:${T.colors.secondary.blue.dark};border-color:${T.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}`,yn=m(vn).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${T.colors.secondary.red.base};border-color:${T.colors.secondary.red.base};color:white;&:hover{background-color:${T.colors.secondary.red.dark};border-color:${T.colors.secondary.red.dark};}&:active{background-color:${T.colors.secondary.red.dark};border-color:${T.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}`,xn=m(hn).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${T.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,wn=m.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,En=m(wn).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${T.text.link.fontFamily};font-size:${T.text.link.fontSize};font-weight:${T.text.link.fontWeight};line-height:${T.text.link.lineHeight};text-decoration:${T.text.link.textDecoration};color:${T.colors.secondary.blue.base};&:hover{color:${T.colors.secondary.blue.dark};}& > * + *{margin-left:${T.sizes.xs};}& > span{position:relative;top:-1px;}`,Cn=m.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;`,$n=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),kn={default:gn,primary:vn,destructive:bn,primaryDestructive:yn,flat:xn,link:En,unstyled:wn},Sn=a(((e,n)=>{var{className:o,children:i,icon:r,variant:a="default",size:l="base",dropdown:s=!1,loading:c=!1}=e,d=ee(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return t.createElement(wn,Object.assign({ref:n,className:o},d),i);const u=kn[a],p=void 0!==i,m=!!r;return t.createElement(u,Object.assign({ref:n,className:o,size:l,hasText:p,hasIcon:m,hasDropdown:s},d),(p||m)&&t.createElement(fn,{loading:c,hasText:!!i,size:i||"sm"===l?"base":"md"},r&&r,void 0!==i&&t.createElement("span",null,i),s&&t.createElement($n,null)),c&&t.createElement(Cn,null,t.createElement(mn,null)))})),Nn=m.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${R.md};padding-right:${R.md};padding-left:${R.md};margin-bottom:${R.md};& > * + *{margin-top:${R.xs};}`,In=m.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${R.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ln=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:R.md},e),t.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"})),zn=e=>t.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),t.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"})),Fn=({id:e,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:a,isCollapsed:l,onClickCollapse:s,onClickClose:c})=>t.createElement(Nn,null,t.createElement(In,null,t.createElement(W,{id:e,variant:i},n),r&&t.createElement(Sn,{variant:"link",onClick:r.onClick},r.title),a,s&&t.createElement(Sn,{variant:"flat",icon:l?t.createElement(Ln,null):t.createElement(K,null),onClick:s}),c&&t.createElement(Sn,{variant:"flat",icon:t.createElement(zn,null),onClick:c,"aria-label":"Close"})),o&&t.createElement(W,{variant:"subheadingSmall"},o)),{grey:On}=I.neutral,jn={0:"none",1:F.sm,2:F.base,3:F.md,4:F.lg},Mn={info:I.secondary.blue.base,success:I.secondary.green.base,error:I.secondary.red.base},Rn=m.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${R.base};padding:${R.md};z-index:2;`,Dn=m.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${R.md};padding-left:${R.md};margin-top:${R.md};margin-bottom:${R.md};font-family:${B.body.fontFamily};font-size:${B.body.fontSize};font-weight:${B.body.fontWeight};line-height:${B.body.lineHeight};color:${B.body.color};& + &{border-top:${R.line} solid ${On.base};padding-top:${R.md};}`,Bn=m.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${R.md};margin-right:-${R.md};`,Tn=m(u.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${Dn}:first-child{margin-top:0;}`,Hn=m.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${R.line} solid ${On.base};box-shadow:${e=>void 0!==e.elevation?jn[e.elevation]:F.sm};border-radius:${z.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: ${R.xs};\n background-color: ${Mn[e]};\n }\n `}`,An={expanded:{height:"auto"},collapsed:{height:0}},Pn=({className:e,style:o,title:i,subtitle:r,HeaderActionSlot:a,action:l,collapsable:s,elevation:c,accent:d,children:u,onClose:p,renderFooter:m})=>{const[f,h]=n(!1),g=i&&t.createElement(Fn,{title:i,subtitle:r,ActionSlot:a,action:l,onClickClose:p,isCollapsed:f,onClickCollapse:s?()=>{h(!f)}:void 0}),b=s&&!f||!s,v=t.createElement(Tn,{animate:b?"expanded":"collapsed",variants:An,transition:{duration:.3,ease:"easeOut"}},t.createElement(Dn,null,u)),y=void 0!==m&&t.createElement(Rn,null,m());return t.createElement(Hn,{className:e,style:o,elevation:c,accent:d},g,v,y)};Pn.Surface=Hn,Pn.Section=Dn,Pn.FullBleed=Bn,Pn.Footer=Rn;const{sizes:Wn,colors:Vn,text:qn}=T,Zn=m(Pn.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${Wn.base} 0;display:flex;flex-direction:column;`,_n=m.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Vn.neutral.grey.base};margin-top:${Wn.base};padding-top:${Wn.base};}`,Xn=m(W).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${Wn.sm} ${Wn.base} ${Wn.sm};`,Un=m(Sn).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${Wn.lg};padding:${Wn.xs} ${Wn.base};display:flex;align-items:center;white-space:nowrap;font-family:${qn.body.fontFamily};font-size:${qn.body.fontSize};font-weight:${qn.body.fontWeight};&:hover{background-color:${Vn.neutral.grey.light};color:${Vn.secondary.blue.base};}& > * + *{margin-left:${Wn[3]};}`,Gn={item:Un,action:m(Un).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${Vn.secondary.blue.base};`,link:m(Un).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${Vn.secondary.blue.base};text-decoration:underline;`},Yn=({title:e,items:o=[],sections:i,buttonVariant:r,buttonSize:a})=>{const[l,s]=n(!1),[c,d]=n(null),u=e=>{const n=Gn[e.variant||"item"];return t.createElement(n,{onClick:()=>{return t=e.onClick,s(!1),void t();var t},key:e.title},e.icon&&e.icon,t.createElement("span",null,e.title))},p=i?i.map((e=>t.createElement(_n,{key:e.title},e.title&&t.createElement(Xn,null,e.title),e.items.map(u)))):o.map(u);return t.createElement(t.Fragment,null,t.createElement(Sn,{dropdown:!0,variant:r,size:a,onClick:()=>s(!l),ref:d},e),l&&t.createElement(cn,{anchorElement:c,placement:"bottom-start",onShouldClose:()=>s(!1)},t.createElement(Zn,null,p)))},Kn=m.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${T.text.link.fontFamily};font-style:${T.text.link.fontStyle};font-weight:${T.text.link.fontWeight};font-size:${T.text.link.fontSize};line-height:${T.text.link.lineHeight};color:${T.colors.secondary.blue.base};text-decoration:${T.text.link.textDecoration};&:hover{color:${T.colors.secondary.blue.dark};}`,Jn=({children:e,className:n,text:o,href:i,target:r})=>t.createElement(Kn,{href:i,target:r,className:n},e||o),Qn=m(k).withConfig({displayName:"vui--Container",componentId:"vui--901a1g"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,eo=a(((e,n)=>{const{children:o,className:i}=e;return t.createElement(Qn,{className:i,ref:n},o)})),to=m(k).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,no=m(k).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,oo=m(eo).withConfig({displayName:"vui--Dropdown",componentId:"vui--dv3wrs"})`flex-direction:column;position:absolute;z-index:3;${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,io=({cta:e,shouldShowDropdown:n,children:i,className:r="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:c=350,transitionClassnames:d="dropdown",onClick:u,onMouseEnter:p,onMouseLeave:m})=>{const f=l(null);return((e,t)=>{o((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(f,(e=>{n&&s(e)})),t.createElement(to,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:p,onMouseLeave:m,ref:f},!a&&e,t.createElement(no,{className:`${r}-wrap ${r}`},t.createElement(x,{in:n,timeout:c,classNames:d,unmountOnExit:!0},t.createElement(oo,{reversed:a,className:`${r}-basic-dropdown ${r}`},i))),a&&e)},ro=m.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${T.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:${T.text.bodySmallBold.fontFamily};font-weight:${T.text.bodySmallBold.fontWeight};font-size:${T.text.bodySmallBold.fontSize};line-height:${T.text.bodySmallBold.lineHeight};}`,ao=({width:e="40px",name:n="Veeqo",bgColor:o=T.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return t.createElement(ro,{width:e,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((e,n)=>t.createElement("span",{key:`${e}-${n}`},e))))};var lo,so;!function(e){e.end="end",e.start="start"}(lo||(lo={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(so||(so={}));const co=m.div.withConfig({displayName:"vui--Container",componentId:"vui--16xd2og"})`display:inline-block;`,uo=m(co).withConfig({displayName:"vui--Hoverable",componentId:"vui--if1bgt"})``,po=m(W).withConfig({displayName:"vui--TooltipText",componentId:"vui--1tbdgc0"})`color:${T.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,mo=m.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1eqvhdd"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,fo=m.div.withConfig({displayName:"vui--Tip",componentId:"vui--10g4qtf"})`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;}`,ho=m(co).withConfig({displayName:"vui--Wrap",componentId:"vui--1arl0em"})`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;`,go={duration:400,side:so.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},bo=({children:e,text:o,content:i,config:r,reversed:a=!1,className:l,withTriangle:c,initialShouldShow:d=!1,useReactPortal:u=!0})=>{const p=!!o&&o.trim().length>0,m=Object.assign(Object.assign({},go),r),{duration:f,side:h,triangleOffset:b,tipMinWidth:y,tipMaxWidth:x}=m,w={container:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},[E,C]=n(d),[$,k]=n(null),[S,N]=n(null),{styles:I,attributes:L}=g($,S,{placement:`${h}-${a?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),z=s((()=>C(!0)),[C]),F=s((()=>C(!1)),[C]),O=Object.assign(Object.assign({},I.popper),{zIndex:T.layers.tooltip}),j=E&&(i||p)&&t.createElement(fo,Object.assign({className:w.tip,ref:N,duration:f,triangleOffsetSize:b,style:O},L.popper,{role:"tooltip"}),t.createElement(ho,{className:w.wrap,tipMinWidth:y,tipMaxWidth:x},null!=i?i:t.createElement(po,null,o)),c&&t.createElement(mo,{id:"veeqo-components-triangle",className:w.triangle}));return t.createElement(co,{className:w.container},u?v.createPortal(j,document.body):j,t.createElement(uo,{ref:k,className:w.hoverable,onMouseEnter:z,onMouseLeave:F},e))},vo=m(k).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:${B.bodySmall.fontFamily};font-weight:${B.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${R.base};height:${R.base};}`,yo={default:m(vo).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${I.secondary.blue.base};color:${I.secondary.blue.base};`,primary:m(vo).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};color:${I.secondary.blue.base};`,warning:m(vo).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${I.secondary.yellow.base};background-color:${I.secondary.yellow.lightest};color:${I.secondary.orange.dark};`},xo=({variant:e="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:a,children:l})=>{const s=yo[e];return t.createElement(bo,{text:i},t.createElement(s,{className:an([r,a]),hideBorder:n},o&&o,l&&t.createElement("span",null,l)))},wo=m(k).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"};`,Eo=m(k).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,Co=m(k).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,$o=m(Co).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${R.md};height:${R.md};color:${({accentColor:e})=>e};}`,ko=m(k).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,So=m(Co).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,No=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,Io={help:I.secondary.blue.base,info:I.neutral.ink.base,error:I.secondary.red.base,success:I.secondary.green.base},Lo=e=>{var{type:n="info",text:o,icon:i,onClose:r,className:a,header:l,children:s,backgroundColor:c="white"}=e,d=ee(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Io[n];return t.createElement(wo,Object.assign({accentColor:u,className:a,backgroundColor:c},d),t.createElement(Eo,null,i&&t.createElement($o,{style:{marginRight:R.md},accentColor:u},i),s?t.createElement(ko,null,s):t.createElement(t.Fragment,null,t.createElement(So,null,l||t.createElement(No,{variant:"headingSmall"},o)),t.createElement(Co,null,r&&t.createElement(Sn,{variant:"flat","aria-label":"Close",icon:t.createElement(zn,null),onClick:r})))))},zo=m.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${B.body.fontFamily};font-weight:${B.body.fontWeight};font-size:${B.body.fontSize};line-height:${B.body.lineHeight};`,Fo=m.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;}`,Oo=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),jo=({children:e,title:n,LinkComponent:o,href:i})=>o?t.createElement(Fo,{className:"breadcrumb"},t.createElement(o,{href:i},n),e):t.createElement(Fo,{className:"breadcrumb"},n,e),Mo=()=>t.createElement(Oo,{className:"separator",width:R.base,height:R.base}),Ro=({children:e,href:n})=>t.createElement("a",{href:n},e),Do=({children:e})=>t.createElement("span",null,e),Bo=({items:e,Separator:n=t.createElement(Mo,null),LinkComponent:o=Ro})=>t.createElement(zo,{className:"breadcrumbs"},e.map(((i,r)=>t.createElement(jo,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==e.length-1?o:Do},e.length!==r+1&&n))));var To;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(To||(To={}));const Ho=m.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let r,a,l,s,c="",d="";return"vertical"===t?(r=n&&To[n],a=o&&To[o],c=T.sizes[i],l="column"):(r=o&&To[o],a=n&&To[n],d=T.sizes[i],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${a};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${c};\n margin-left: ${d};\n }\n `}}`;Ho.displayName="Stack";const Ao={top:"flex-start",center:"center"},Po=m.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${T.sizes.base};}`,Wo=m.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>Ao[e.align]};width:24px;height:24px;`,Vo=m.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,qo=m.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${T.sizes.sm};}`,Zo=m.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${T.text.body.fontFamily};font-size:${T.text.body.fontSize};font-weight:${T.text.body.fontWeight};line-height:${T.sizes.md};color:${T.text.body.color};`,_o=m.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`,Xo=m.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};`,Uo=m.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Go=m(Uo).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${T.colors.neutral.grey.dark};border-radius:${T.radius.md};padding:${T.sizes.base} 0.75rem;&:hover{border-color:${T.colors.secondary.blue.base};}& ${Zo}{font-weight:${T.text.bodyBold.fontWeight};}`,Yo=m(bo).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Ko=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Jo=({id:e,label:n,hint:o,tooltip:i,error:r,bordered:a,Badge:l,Accessory:s,Footer:c,children:d,disabled:u=!1})=>{const p=t.createElement(Po,null,t.createElement(Wo,{align:s?"center":"top"},d),s&&t.createElement(Vo,null,s),n||o||r||l||c?t.createElement(qo,null,t.createElement(Ho,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&t.createElement(Zo,null,n),i&&t.createElement(Yo,{text:i},t.createElement(Ko,{name:"help",width:T.sizes.base,color:T.colors.neutral.ink.lightest}))),o&&t.createElement(_o,null,o),r&&t.createElement(Xo,null,r),c):null);return a?t.createElement(Go,{disabled:u,htmlFor:e},p):t.createElement(Uo,{disabled:u,htmlFor:e},p)},{colors:Qo,sizes:ei,radius:ti}=T,ni=m.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Qo.neutral.ink.lightest};border-radius:${ti.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Qo.secondary.blue.base};border-color:${Qo.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:${ei[4]};background-position:center;}&:hover{border-color:${Qo.secondary.blue.base};}&:active{border-color:${Qo.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Qo.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Qo.secondary.blue.base};border-color:${Qo.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:${ei[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Qo.neutral.grey.base};border-color:${Qo.neutral.grey.base};color:${Qo.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>");}`,oi=e=>{var{checked:n,indeterminate:i,value:a,name:c,disabled:d,ariaLabel:u,className:p,onChange:m}=e,f=ee(e,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=r((()=>tn("checkbox")),[]),g=l(null),b=s((e=>{m(e.currentTarget.checked,a)}),[m,a]);return o((()=>{g.current&&(g.current.indeterminate=!0===i)}),[i]),t.createElement(Jo,Object.assign({id:h,disabled:d},f),t.createElement(ni,{ref:g,id:h,type:"checkbox",checked:n,value:a,name:c,disabled:d,"aria-label":u,className:p,onChange:b}))},ii=m.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;}`,ri=a(((e,n)=>{var{checked:o,value:i,name:r,disabled:a,onChange:l,id:c}=e,d=ee(e,["checked","value","name","disabled","onChange","id"]);const u=s((e=>{l(e.currentTarget.checked,i)}),[l,i]),p=null!=c?c:tn("radio");return t.createElement(Jo,Object.assign({id:p,disabled:a},d),t.createElement(ii,{id:p,type:"radio",checked:o,value:i,name:r,disabled:a,onChange:u,ref:n}))})),ai=m.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,li=m.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${T.text.inputLabel.fontFamily};font-size:${T.text.inputLabel.fontSize};font-style:${T.text.inputLabel.fontStyle};font-weight:${T.text.inputLabel.fontWeight};line-height:${T.text.inputLabel.lineHeight};text-decoration:${T.text.inputLabel.textDecoration};color:${T.text.inputLabel.color};`;class si extends c{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 i=[];i=t?[...n,e]:n.filter((t=>t!==e)),o(i)}}render(){const{allowMultiple:e,options:n,selected:o,title:i,disabled:r,bordered:a}=this.props,l=e?oi:ri;return t.createElement(ai,{disabled:r},i&&t.createElement(li,null,i),n.map((e=>t.createElement(l,Object.assign({key:e.value,bordered:a,checked:o.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const ci=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),di=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),ui={width:R.base,height:R.base},pi=m(Sn).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${R.base};width:${R.base};top:unset;}`,mi=({className:e,text:n,onCopy:o})=>{const[i,r]=t.useState(!1),a=s((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return t.createElement(bo,{text:i?"Copied!":"Copy to clipboard"},t.createElement(pi,{variant:"flat",size:"sm",className:e,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?t.createElement(ci,Object.assign({color:I.secondary.green.base},ui)):t.createElement(di,Object.assign({color:I.secondary.blue.base},ui)),onClick:a}))};function fi(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function hi(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${hi(e.min,"max-content")}, ${hi(e.max)})`;default:return t||"1fr"}}function gi({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){const a=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 `)),l=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 `)),s="start"!==o&&"none"!==o,c=`\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: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,d="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: ${d?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,p=`\n tr:nth-child(odd) > td {\n background-color: ${T.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${T.colors.neutral.grey.base};\n }\n `,m=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${T.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${T.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>hi(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?a:""}\n ${t.length>0?l:""}\n\n ${c}\n ${u}\n\n ${"nested"===r?m:p}\n `}var bi;!function(e){e.ascending="ascending",e.descending="descending"}(bi||(bi={}));const vi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),yi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),xi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),wi=({sortState:e,columnId:n,size:o})=>e&&e.columnId===n?e.direction===bi.ascending?t.createElement(yi,{color:T.colors.neutral.ink.dark,size:o}):t.createElement(xi,{color:T.colors.neutral.ink.dark,size:o}):t.createElement(vi,{size:o});function Ei(e,t){const[i,r]=n([]),a=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));r(n)};return o((()=>{a()}),[e.current]),o((()=>{if(!t.current)return;const e=E(a,50),n=new b(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),i}function Ci(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),i=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...i,...o],pinnedLeft:n,pinnedRight:o}}function $i(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},a=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",a),()=>null==n?void 0:n.removeEventListener("mousedown",a)}),[e.current])}function ki(){const[e,t]=n([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(n,o)=>{if(o)if(n){if(e.includes(o))return;const n=[...e,o];t(n)}else{const n=e.findIndex((e=>e===o));if(n<0)return;const i=[...e];i.splice(n,1),t(i)}}}}}function Si(e){const[t,i]=n("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",r),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",r)}}),[e.current]),o((()=>{if(!e.current)return;const t=E(r,50),n=new b(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:t,containerRef:e}}const Ni="56px",Ii=m.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${Ni};display:flex;align-items:center;justify-content:${({align:e="left"})=>fi(e)};background-color:white;padding-left:${({spacing:e=3})=>T.sizes[e]};padding-right:${({spacing:e=3})=>T.sizes[e]};border-bottom:1px solid ${T.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Li(e){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=e,a=ee(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?t.createElement(Ii,Object.assign({},a)):t.createElement(Ii,Object.assign({},a),t.createElement(oi,{checked:n,indeterminate:o,onChange:i}))}const zi=m.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>fi(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>T.sizes[e]};padding-right:${({spacing:e=3})=>T.sizes[e]};color:${T.text.bodySmall.color};font-family:${T.text.bodySmall.fontFamily};font-size:${T.text.bodySmall.fontSize};font-style:${T.text.bodySmall.fontStyle};font-weight:${T.text.bodySmall.fontWeight};line-height:${T.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${T.colors.secondary.blue.base};background-color:${T.colors.neutral.grey.lightest};}`;function Fi(e){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:a}=e,l=ee(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?t.createElement(zi,Object.assign({},l),t.createElement(ri,{value:o,checked:n,disabled:a,onChange:i})):t.createElement(zi,Object.assign({},l),t.createElement(oi,{value:o,checked:n,disabled:a,onChange:i}))}const Oi=[[],()=>{}];function ji({selectionMode:e="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,a]=n||Oi,l=()=>{r.length!==o.length?a(o):a([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>t.createElement(Li,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:l,selectionMode:e})),renderCell:(n,o,i,r)=>t.createElement(Fi,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:e,disabled:r.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)a([n]);else if(t){if(r.includes(n))return;const e=[...r,n];a(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),a(t)}}}}const Mi=m.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${T.colors.neutral.ink.lightest};`,Ri=m.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${T.text.headingTable.color};font-family:${T.text.headingTable.fontFamily};font-size:${T.text.headingTable.fontSize};font-style:${T.text.headingTable.fontStyle};font-weight:${T.text.headingTable.fontWeight};line-height:${T.text.headingTable.lineHeight};`,Di=m(Ri).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 ${Mi}{background-color:${T.colors.neutral.grey.light};color:${T.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${T.colors.secondary.blue.light};}`;function Bi({column:e,sortState:n,onChangeSort:o}){if(e.sortable&&!n)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const i={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,i);const r=e.sortable?Di:Ri,a=e.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const t=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===bi.ascending;let i=bi.ascending;return n&&o&&(i=bi.descending),{columnId:t,direction:i}}({sortState:n,columnId:e.id});o?o(t):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return t.createElement(Ii,Object.assign({},i),t.createElement(bo,{text:e.tooltip},t.createElement(r,Object.assign({},a),e.icon&&e.icon,e.title&&t.createElement("span",null,e.title),e.sortable&&t.createElement(Mi,null,t.createElement(wi,{sortState:n,columnId:e.id,size:5})))))}const Ti=T.colors.neutral.grey.base,Hi=T.colors.neutral.grey.dark,Ai=m.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${T.radius.base};background:${Ti};background-image:linear-gradient(\n to right,\n ${Ti} 0%,\n ${Hi} 20%,\n ${Ti} 40%,\n ${Ti} 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 Pi=m.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:${Ni};background-color:white;`,Wi=m.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 ${T.colors.neutral.grey.base};& > *{flex:1;}`;function Vi({selectionColumn:e,intersectionTargetRef:i,containerRef:r,children:a}){var l;const[s,c]=n(!1);o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{c(!e.isIntersecting)}))}));return e.observe(i.current),()=>e.disconnect()}),[i.current]);const d=null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect(),u={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},p=s?u:{position:"absolute",top:0,left:0,right:0};return t.createElement(Pi,{style:p},Bi({column:e}),t.createElement(Wi,null,a))}const qi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Zi=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),_i=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Xi=m.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${T.sizes.lg};padding-bottom:${T.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${T.sizes.md};`,Ui=m.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${T.sizes.md};background-color:${T.colors.neutral.grey.light};border-radius:${T.radius.full};`,Gi=m.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,Yi=m.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${T.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 `}`,Ki=m.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Ji=m.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${T.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Qi=m.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,er={full:`border-width: 1px; border-radius: ${T.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},tr=m.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${T.colors.neutral.grey.dark};${({borderMode:e="full"})=>er[e]} &,& *{box-sizing:border-box;}`;function nr({children:e,intersectionTargetRef:i,containerRef:r,cellWidths:a,tableCss:s}){const c=l(null),[d,u]=n(!1),[p,m]=n({top:0,left:0,width:0,height:0}),f=()=>{var e;const t=null===(e=r.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};m(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=c.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{d&&r.current&&f()}),[r.current,d]),o((()=>{if(!d)return;if(!r.current)return;const e=E(f,33),t=new b(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,d]),o((()=>{h()}),[d]),o((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",h)}}),[r.current]),!d)return null;const g=Object.assign(Object.assign({},p),{height:Ni,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${T.colors.neutral.grey.base}`}),v=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return t.createElement("div",{style:g,ref:c},t.createElement(Ji,{css:v},t.createElement("thead",null,e)))}const or=(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}),ir=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"}),t.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),t.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),rr={icon:t.createElement(ir,{width:48,height:48}),heading:"No results"},ar=()=>{},lr=({ActionBarSlot:e,borderMode:n,columns:o,emptyState:i=rr,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:c,rows:d,disabledRowIds:u,selectionMode:p,selectionState:m,setExpanded:f,sortState:h,stripingMode:g,enableStickyHeader:b})=>{const v=l(null),y=l(null),x=l(null);$i(v);const w=d.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:C,selectionColumn:$,setSelected:k}=ji({selectionMode:p,selectionState:m,enabledRowIds:w}),S={setSelected:k||ar,setExpanded:f||ar},N=[$,...o],I=E?N:o,L=Ei(y,v),{visible:z,pinnedLeft:F,pinnedRight:O}=Ci(I),{scrollPosition:j}=Si(v),M=gi({pinnedLeft:F,pinnedRight:O,cellWidths:L,scrollPosition:j,visible:z,stripingMode:g});if(a){const e=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return t.createElement(tr,{borderMode:n},t.createElement(Ki,{ref:v},t.createElement(Ji,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},t.createElement(Yi,{role:"row"},z.map((e=>Bi({column:e,sortState:h,onChangeSort:c}))))),t.createElement("tbody",{role:"rowgroup"},e.map((e=>t.createElement(Yi,{key:e.id},z.map((n=>function(e,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${e.id}-${n.id}`,role:"cell",spacing:n.spacing};return t.createElement(zi,Object.assign({},o),t.createElement(Ai,null))}(e,n))))))))))}if(0===d.length)return t.createElement(tr,{borderMode:n},t.createElement(Ki,{ref:v},t.createElement(Ji,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},t.createElement(Yi,{role:"row"},z.map((e=>Bi({column:e,sortState:h,onChangeSort:c}))))),t.createElement("tbody",{role:"rowgroup"},t.createElement(Xi,{columnCount:z.length},t.createElement(Ui,null,i.icon),t.createElement(Ho,{spacing:"sm",alignX:"center"},t.createElement(W,{variant:"headingMedium"},i.heading),i.subheading&&t.createElement(W,{variant:"subheadingMedium"},i.subheading)))))));const R=e=>{const{e2eClassName:n="",accentColor:o}=e,i=or(e.id,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:u});return t.createElement(Yi,Object.assign({role:"row",key:e.id,accentColor:o,className:n},i),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(e,t,S,i))))},D=(e,n)=>{var o,i;const a=null===(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,l=or(n,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:u});return t.createElement(Yi,{role:"row",key:e.id,className:a},z.map((n=>function(e,n,o){if(n.hidden)return null;const i={align:n.align,key:`${e.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(e,i,o):t.createElement(zi,Object.assign({},i))}(e,n,l))))},B=e=>{var n;const o=null==r?void 0:r.includes(e.id);return t.createElement("tbody",{role:"rowgroup",key:e.id},R(e),o&&(null===(n=e.nestedRows)||void 0===n?void 0:n.map((t=>D(t,e.id)))))},T=t.createElement(Yi,{role:"row"},z.map((e=>Bi({column:e,sortState:h,onChangeSort:c})))),H=o.some((e=>!!e.renderFooter)),A=C.length>0&&!!e;return t.createElement(tr,{borderMode:n},A&&t.createElement(Vi,{selectionColumn:$,intersectionTargetRef:x,containerRef:v},e),t.createElement(Ki,{ref:v},b&&t.createElement(nr,{tableCss:M,intersectionTargetRef:x,containerRef:v,cellWidths:L},T),t.createElement("div",{ref:x,style:{height:0}}),t.createElement(Ji,{css:M,ref:y,role:"table"},t.createElement("thead",{role:"rowgroup"},T),(()=>{const e=!!r;return e&&"nested"===g?d.map(B):e?t.createElement("tbody",{role:"rowgroup"},d.map((e=>{var t;return[R(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>D(t,e.id))))||[]]}))):t.createElement("tbody",{role:"rowgroup"},d.map(R))})(),H&&t.createElement("tfoot",{role:"rowgroup"},t.createElement(Yi,{role:"row"},z.map((e=>function({column:e}){if(e.hidden)return null;const n={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,n):t.createElement(zi,Object.assign({},n))}({column:e}))))))))};lr.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},lr.Cell=zi,lr.ColumnMenu=function({columns:e,columnGroups:o,setColumns:i}){const[r,a]=n(null),[l,s]=n(!1),c=e.map((e=>[e.id,e])),d=Object.fromEntries(c),u=o.map((e=>e.map((e=>d[e])))),p=(t,n)=>{const o=u[t].map((e=>e.id)),r=[...e];o.forEach((e=>{const t=r.findIndex((t=>t.id===e));t<0||(r[t]=Object.assign(Object.assign({},r[t]),{hidden:n}))})),i(r)};return t.createElement(t.Fragment,null,t.createElement(Sn,{ref:a,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&t.createElement(cn,{anchorElement:r,onShouldClose:()=>s(!1)},t.createElement(Pn,{style:{width:600}},t.createElement(Ho,{alignX:"stretch",spacing:"sm"},u.map(((e,n)=>t.createElement(Ho,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},t.createElement(Sn,{variant:"flat",icon:t.createElement(_i,null)}),t.createElement(Ho,{spacing:"sm",style:{flex:1}},e.map((e=>t.createElement("div",{key:e.id},e.title)))),t.createElement(Ho,{direction:"horizontal",spacing:"sm"},e[0].hidden?t.createElement(Sn,{variant:"flat",icon:t.createElement(Zi,null),onClick:()=>p(n,!1),style:{color:T.colors.neutral.ink.lightest}}):t.createElement(Sn,{variant:"flat",icon:t.createElement(qi,null),onClick:()=>p(n,!0)})))))))))},lr.SelectionCell=Fi,lr.SelectionHeader=Li,lr.Header=Ii,lr.Truncate=Qi,lr.NoWrap=Gi;const sr=m.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${T.sizes.base};}`,cr=m.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${T.sizes.xs};}`,dr=m.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${T.sizes.base};}`,ur=m.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${T.sizes.xs};}`,pr=m.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${T.text.bodyBold.fontFamily};font-size:${T.text.bodyBold.fontSize};font-weight:${T.text.bodyBold.fontWeight};line-height:${T.text.bodyBold.lineHeight};color:${T.text.bodyBold.color};`,mr=m.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${T.text.body.fontFamily};font-size:${T.text.body.fontSize};font-weight:${T.text.body.fontWeight};line-height:${T.text.body.lineHeight};color:${T.text.body.color};`,fr=({items:e,horizontal:n})=>{const o=e=>Array.isArray(e)?e.map((e=>t.createElement(mr,{key:e},e))):t.createElement(mr,null,e);return t.createElement(sr,null,e.map((e=>n?t.createElement(dr,{key:e.term},t.createElement(pr,null,e.term),t.createElement(ur,null,o(e.description))):t.createElement(cr,{key:e.term},t.createElement(pr,null,e.term),o(e.description)))))},{sizes:hr,colors:gr}=T,br=m.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${hr.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${hr.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,vr=m.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${hr.md};overflow-x:hidden;background-color:${gr.neutral.grey.lightest};`,yr=({renderHeader:e,children:o})=>{const[i,r]=n(!0);return t.createElement("main",null,e((()=>r(!i)),i),t.createElement(vr,null,t.createElement(br,{showSidebar:i},o)))},xr=m.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 wr;!function(e){e.base="base",e.sm="sm"}(wr||(wr={}));const Er=m.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${T.text.inputLabel.fontFamily};font-size:${T.text.inputLabel.fontSize};font-weight:${T.text.inputLabel.fontWeight};line-height:${T.text.inputLabel.lineHeight};color:${T.text.inputLabel.color};`,Cr=m.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`,$r=m.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${T.sizes[2]} * -1);width:2px;background-color:${T.colors.secondary.red.base};}`,kr=m(Ho).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,Sr=m(bo).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,Nr=e=>n=>{var{label:o,hint:i,error:a,tooltip:l}=n,s=ee(n,["label","hint","error","tooltip"]);const c=r((()=>tn(e.name)),[]);return o?t.createElement(kr,{spacing:"sm",alignX:"stretch"},t.createElement("div",null,t.createElement(Ho,{direction:"horizontal",alignY:"center",spacing:"sm"},t.createElement(Er,{htmlFor:c},o),l&&t.createElement(Sr,{text:l},t.createElement(Ko,{width:T.sizes.base,height:T.sizes.base,color:T.colors.neutral.ink.light}))),i&&t.createElement(Cr,null,i)),t.createElement(e,Object.assign({id:c,hasError:!!a},s)),a&&t.createElement($r,null,a)):t.createElement(e,Object.assign({hasError:!!a},s))},Ir=e=>n=>(o((()=>{console.warn(`${e.name} is deprecated.`)}),[]),t.createElement(e,Object.assign({},n))),Lr=({hasError:e,inputSize:t})=>f`&{--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 "}`,zr=m.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${T.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 `}} ${Lr} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Fr=m.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;${Lr}`,Or=/^-?[0-9]*\.?[0-9]+$/,jr=Nr(a(((e,n)=>{var{id:o,className:i,disabled:r=!1,hasError:a,max:l,min:c,multiline:d=!1,name:u,onChange:p,pattern:m,placeholder:f,rows:h="3",size:g=wr.base,step:b,type:v="text",value:y,spellCheck:x=!1}=e,w=ee(e,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=s((e=>{if(!p)return;const t=e.currentTarget.value;if(""===t)return void p(t);if("number"!==v)return void p(t);new RegExp(Or).test(t)&&p(t)}),[p,v]),C=null!=o?o:tn("textfield");return"text"===v&&d?t.createElement(Fr,Object.assign({className:i,disabled:r,hasError:a,id:C,name:u,onChange:E,placeholder:f,rows:h,value:y,spellCheck:x,ref:n},w)):t.createElement(zr,Object.assign({className:i,disabled:r,hasError:a,id:C,inputSize:g,max:l,min:c,name:u,onChange:E,placeholder:f,step:b,type:v,value:y,spellCheck:x,ref:n},w))})));jr.displayName="TextField";const Mr=m(k).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,Rr=m(k).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Dr=m(jr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${T.colors.neutral.ink.lightest};}`,Br=m(Sn).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${T.colors.neutral.ink.lightest};`;m(W).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,m.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${T.sizes[2]} * -1);width:2px;background-color:${T.colors.secondary.red.base};}`,m.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`;const Tr=Nr((e=>{var{size:n=wr.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:a,height:l,width:s,length:c,unit:d}=e,u=ee(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return t.createElement(Mr,{className:a},t.createElement(Rr,null,t.createElement(Dr,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:c},u)),t.createElement(zn,{height:T.sizes.base,width:T.sizes.base}),t.createElement(Dr,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s},u)),t.createElement(zn,{height:T.sizes.base,width:T.sizes.base}),t.createElement(xr,null,t.createElement(Dr,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l},u)),t.createElement(Br,{size:n},d))))}));Tr.displayName="DimensionsInput";const Hr=(e,t)=>{const n=l(null),i=s((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=s((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",r),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",i)}}),[r,i,e]),n},Ar=(e,t)=>{const[i,r]=n(e);return o((()=>{const n=setTimeout((()=>r(e)),t);return()=>clearTimeout(n)}),[e,t]),i};function Pr(){const[e,t]=n(!1),o=s((()=>t(!e)),[e,t]),i=s((()=>t(!1)),[t]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:t,closeDropdown:i}}const Wr=t.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Vr({children:e}){const[i,r]=n(!0);return o((()=>{function e(){r(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r(!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 i(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function a(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",a,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",a,!0),o()}}),[r]),t.createElement(Wr.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},e)}function qr(){const[e,n]=t.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=t.useContext(Wr),r=t.useCallback((()=>{e||n(!0)}),[e]),a=t.useCallback((()=>{e&&n(!1)}),[e]);let l;return l=i?o&&e:e,t.useMemo((()=>({focusVisible:l,onFocus:r,onBlur:a})),[l,a,r])}const Zr=(e=!1)=>{const[t,o]=n(e);return[t,s((()=>o(!0)),[o]),s((()=>o(!1)),[o])]},_r=e=>{const[t,i]=n(!1),[r,a]=n(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:t&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;a(o-n-i<=0)}}},Xr=(e,t)=>{const{defaultActiveIndex:o=0}=t||{},[i]=n(e),[r,a]=n(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&a(t)}]},Ur=m(k).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${I.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${R.base};height:${R.base};}`,Gr=m(W).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Yr=m(Gr).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Kr=m(Ln).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,Jr=m(zn).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Qr=m(k).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,ea=m(k).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 ${I.neutral.grey.base};svg{color:${({color:e})=>e};width:${R[5]};height:${R[5]};margin-right:10px;}`,ta=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),na=({className:e,e2eClassName:n,label:o,text:i,iconSlot:r,fill:a=I.secondary.blue.base,content:l,footer:c,onClickAway:d,onClick:u,shouldCloseOnClickAway:p=!0})=>{const m=ta(e),f=ta(n),{shouldShowDropdown:h,toggleShouldShowDropdown:g,closeDropdown:b}=Pr(),v=s((e=>{g(),d&&h&&d(e)}),[g,d,h]),y=s((e=>{d&&d(e,b),p&&b()}),[b,d,p]);return!l?t.createElement(Ur,{className:an([null==m?void 0:m.container,null==f?void 0:f.container]),onClick:u},o&&t.createElement(Yr,{variant:"subheadingSmallBold"},`${o}:`),t.createElement(W,null,i),t.createElement(Jr,{className:an([null==m?void 0:m.cross,null==f?void 0:f.cross]),name:"cross",size:"base",color:I.neutral.ink.base})):t.createElement(io,{className:m.filterTagDropdown,shouldShowDropdown:h,onClickAway:y,cta:t.createElement(Ur,{className:m.container,onClick:v},o&&t.createElement(Yr,{variant:"subheadingSmallBold"},`${o}:`),t.createElement(W,null,i),t.createElement(Kr,{color:I.neutral.ink.base,name:"downArrow",shouldShow:h}))},t.createElement(Qr,null,t.createElement(ea,{color:a},r,t.createElement(W,{variant:"bodyBold"},o)),l,c))},oa=m(k).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?R[e]:0};`,ia=e=>t.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),ra=m.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,aa=m.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,la=m.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,sa=m.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,ca=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}),da=({src:e,alt:o="",className:i,e2eClassName:r,width:a,height:l,previewWidth:c,previewHeight:d,previewPlacement:u="right",previewEnabled:p=!1,placeholder:m,placeholderWidth:f,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=ca(i),x=ca(r),[w,E]=n(!1),[C,$]=n({isLoaded:!1,isError:!1}),[k,S]=t.useState(null),[N,I]=t.useState(null),{styles:L,attributes:z}=g(k,N,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=s((()=>p?E(!0):{}),[p]),O=s((()=>p?E(!1):{}),[p]),j=!C.isLoaded||C.isError;return t.createElement(ra,{className:an([null==v?void 0:v.container,null==x?void 0:x.container,i])},t.createElement(aa,{src:e,alt:o,className:an([null==v?void 0:v.image,null==x?void 0:x.image]),width:a,height:l,onLoad:()=>$({isLoaded:!0,isError:!1}),onError:()=>$({isLoaded:!0,isError:!0}),previewEnabled:p,onMouseEnter:F,onMouseLeave:O,style:j?{display:"none"}:{},ref:S}),!b&&j&&(m||t.createElement(ia,{className:an([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:f||a,height:h||l})),w&&y(t.createElement(la,Object.assign({ref:I,style:L.popper},z.popper,{className:an([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),t.createElement(sa,{src:e,alt:"",width:c,height:d})),document.body))},ua={width:64,height:64},pa={icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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({},ua)),title:"No data found"},ma={icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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({},ua)),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 fa;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(fa||(fa={}));const{text:ha,sizes:ga}=T,{blue:ba}=T.colors.secondary,{grey:va}=T.colors.neutral,{scrollbar:ya}=T.colors.system,xa='\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',wa=m.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,Ea=m.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 ${va.dark};border-bottom:1px solid ${va.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: ${ya.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${ya.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 ${xa};\n\n ${o===fa.middle||o===fa.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 ${xa};\n\n ${o===fa.start||o===fa.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ca=m(Ea).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${va.dark};border-radius:4px;`,$a=m.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,ka=m.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${va.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;m.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${va.lightest};padding:1.5rem 1rem;border-top:1px solid ${ba.base};}`;const Sa=m.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 `}`,Na=m.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:${ha.bodySmall.fontFamily};font-size:${ha.bodySmall.fontSize};font-weight:${ha.bodySmall.fontWeight};color:${ha.bodySmall.color};line-height:${ga.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Ia=m(Na).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${va.dark};font-family:${ha.bodySmallBold.fontFamily};font-size:${ha.bodySmallBold.fontSize};font-weight:${ha.bodySmallBold.fontWeight};color:${ha.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${va.light};}`,La={left:"flex-start",center:"center",right:"flex-end"},za=m.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?La[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Fa=m.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${ka}:nth-child(even) td {\n background-color: ${va.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Ia}, & ${Ia} span {\n white-space: nowrap;\n }\n `}`,Oa=m.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Na}{border-top:1px solid ${va.dark};background-color:${va.lightest};padding-top:${ga.base};padding-bottom:${ga.base};line-height:2rem;}`,ja=m.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Ma=m(Fa).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,Ra=m(k).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;`,Da=m(k).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${T.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Ba=m(W).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,Ta=m(W).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,Ha=({height:e,icon:n,title:o,subTitle:i})=>t.createElement(Ra,{height:e},t.createElement(Da,null,n),t.createElement(Ba,{variant:"headingLarge"},o),i&&t.createElement(Ta,{variant:"subheadingMedium"},i)),Aa=m.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:${T.sizes.base};border-radius:${T.radius.base};&:hover{cursor:pointer;background-color:${T.colors.secondary.blue.lightest};}`,Pa=m(Aa).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${T.text.link.color};text-decoration:${T.text.link.textDecoration};`,Wa=m.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Va}=T.colors.neutral,qa=m.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,Za=m.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, ${Va.base} 8%, ${Va.dark} 15%, ${Va.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,_a=({isLoading:e,style:n})=>t.createElement(qa,{style:n},t.createElement(Za,{isLoading:e})),Xa=e=>{var{style:n}=e,o=ee(e,["style"]);return t.createElement(Na,Object.assign({},o),t.createElement(_a,{style:n}))};Xa.defaultProps={style:{}};const Ua=({renderHeader:e,tableRef:i,wrapperRef:r,isFixedLayout:a,wrapperStyle:l})=>{var c;const[d,u]=n(null),{isSticky:p}=((e,t)=>{const[i,r]=n(!1),a=s((({top:e,bottom:n})=>{let o=i;o=e<=(t||0)&&n>0?!i||o:!i&&o,o!==i&&r(o)}),[i,t]);return o((()=>{const t=()=>{var t;e.current&&a(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[a,e]),{isSticky:i}})(i,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),m=((null===(c=r.current)||void 0===c?void 0:c.getBoundingClientRect().width)||0)-2;C(r);const f=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:d&&(d.scrollLeft=n)};return f(),p?t.createElement(ja,{ref:e=>{u(e),f(e)},style:Object.assign({width:m},l)},t.createElement(Ma,{style:{tableLayout:a?"fixed":"auto"}},e())):null},Ga=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")},Ya=e=>{var{style:n,width:o,isLoading:i}=e,r=ee(e,["style","width","isLoading"]);return t.createElement(Ia,Object.assign({},r,{style:{width:o}}),t.createElement(_a,{style:n,isLoading:i}))},Ka=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Ja=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Qa=()=>t.createElement(vi,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),el=()=>t.createElement(Ka,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),tl=()=>t.createElement(Ja,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),nl=({borderless:e=!1,striped:i=!0,noWrap:a=!1,showScrollbar:c=!1,headers:d,rows:u,renderRow:p,renderNestedRow:m,expandedRowIds:f,renderLoadingRow:h,renderFooterRow:g,renderFooterLoadingRow:b,omitFooterSelectionCell:v=!1,selectedRowIds:y,disabledSelectionInputRowIds:x,selectionMode:w="multiple",onChangeSelectedRowIds:E,sortColumnId:C,sortDirection:$,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:O=375,startFixedColumnsNumber:j,endFixedColumnsNumber:M})=>{const R=e?Ea:Ca,D=!!u&&0===u.length,B=Boolean(j||M),T=!j&&!M,H=l(null),A=l(null),[P,W]=n(fa.none);o((()=>{var e;let t=null;const n=()=>{if(!A.current||T)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?W(fa.none):0===n?W(fa.start):n>0&&i<t?W(fa.middle):i===t&&W(fa.end)};return A.current&&(t=A.current,n(),null===(e=A.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[H,T]);const V=s((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),[]),q=s(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),Z=s((()=>{if(!d||N)return null;const e=[],t=[];let n=0,o=0;if(j){y&&(e.push(q(1,n,"left")),n+=58);for(let t=0;t<j;t+=1){const o=V(d[t].width);o&&(e.push(q(y?t+2:t+1,n,"left")),n+=o)}}if(M)for(let e=0;e<M;e+=1){const n=V(d.slice(-e-1)[0].width);n&&(t.push(q(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,V,M,q,d,j,y]),_=r((()=>Z()),[Z]),X=s(((e,t)=>{if(!y||!E)return;if(e)return"single"===w?void E([t.id]):void E([...y,t.id]);const n=[...y],o=n.findIndex((e=>e===t.id));n.splice(o,1),E(n)}),[E,y,w]),U=s((()=>{if(!y||!E)return;if(y.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,y]),G=s((e=>{if(void 0===C||void 0===k)return;let t=C,n="ascending";"ascending"===$&&(n="descending"),e!==C&&(t=e,n="ascending"),k(t,n)}),[k,C,$]),Y=s(((e,n)=>{let o="",i=()=>{},r=t.createElement(Qa,null);const{tooltip:a,align:l,icon:s,title:c,sortable:d,id:u}=e;d&&(o="sortable",i=()=>G(u),C===u&&(r="ascending"===$?t.createElement(el,null):t.createElement(tl,null)));const p=t.createElement(za,{align:l},s&&s,c&&t.createElement("span",null,c),d&&r);return t.createElement(Ia,{key:u,id:`data-table-header-${u}`,className:o,onClick:i,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},n)},a?t.createElement(bo,{text:a},t.createElement(wa,null,p)):p)}),[G,C,$]),K=s(((e,n)=>t.createElement(Ya,{key:e.id,width:e.width||"auto",style:n,isLoading:N})),[N]),J=s((()=>{if(!d)return null;const e=Z(),n=e?e[0].style:{};return t.createElement($a,null,t.createElement(Sa,null,y&&t.createElement(Ia,{style:Object.assign({width:58},n)},"multiple"===w&&t.createElement(oi,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:U,disabled:x&&x.length>0||N||D,ariaLabel:"Select all"})),d.map(((t,n)=>{const o=y?n+2:n+1,i=n-d.length,r=null==e?void 0:e.find((e=>e.index===o||e.index===i));return t.skeleton&&(N||S||D)?K(t,t.skeletonStyle||{}):Y(t,(null==r?void 0:r.style)||{})}))))}),[Z,U,d,D,S,N,K,Y,u.length,y,w,x]),Q=s(((e,n)=>{const o={checked:e,onChange:e=>X(e,n),disabled:(null==x?void 0:x.includes(n.id))||!1};return"single"===w?t.createElement(ri,Object.assign({},o)):t.createElement(oi,Object.assign({},o))}),[X,w,x]),ee=s((e=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?t.createElement(Xa,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):t.createElement(Xa,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=s(((e,n)=>{var o,i;if(!m)return null;const r=m(e);if(!r)return null;const a=(null===(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row)||"";return t.createElement(Sa,{key:e.id,className:`${a} ${n?"hidden":""}`},y&&t.createElement(Na,null),r)}),[m,y]),ne=s((e=>{if(!d)return t.createElement(Xa,null);const n=d.map((n=>t.createElement(Xa,{key:`${e}-${n.id}`})));return y&&n.unshift(ee(e)),n}),[d,ee,y]),oe=()=>g?N&&!b||!N&&D?null:t.createElement(Oa,{fixedColumnsStyle:Ga(_||[])},t.createElement(Sa,null,y&&!v&&t.createElement(Na,null),!N&&g(u),N&&b&&b())):null;let ie=j;y&&ie&&(ie+=1);const re=r((()=>u.map((e=>{var n,o,i;const{data:r}=e,a=!!y&&y.includes(e.id),l=!f||f.includes(e.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,c=null!==(i=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",d=a?`selected ${c}`:`${c}`;return t.createElement(ka,{key:e.id,className:s,fixedColumnsStyle:Ga(_||[])},t.createElement(Sa,{key:e.id,className:d,accentColor:e.accentColor},y&&t.createElement(Na,null,Q(a,e)),p(e)),e.nestedRows&&e.nestedRows.map((e=>te(e,!l))))}))),[u,f,_,te,p,Q,y]);if(N){const e=[];for(let n=0;n<I;n+=1)e.push(t.createElement(ka,{key:`loading-row-${n}`,fixedColumnsStyle:Ga(_||[])},t.createElement(Sa,null,h?t.createElement(t.Fragment,null,y&&ee(),h()):ne(n))));return t.createElement(R,{ref:A,scrollDisabled:!0,scrollPosition:P,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M},L&&d&&t.createElement(Ua,{renderHeader:J,tableRef:H,wrapperRef:A,isFixedLayout:B,wrapperStyle:z}),t.createElement(Fa,{ref:H,striped:i,noWrap:a,tableLoading:!0,isFixedLayout:B},J(),e,oe()))}if(D||S){let e=pa;return F?e=F:S&&(e=ma),t.createElement(R,{scrollDisabled:!0},t.createElement(Fa,{ref:H,striped:i,noWrap:a,tableLoading:!1,isFixedLayout:B},J(),oe()),t.createElement(Ha,Object.assign({height:O},e)))}return t.createElement(R,{scrollDisabled:!1,ref:A,scrollPosition:P,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M,showScrollbar:c},L&&d&&t.createElement(Ua,{renderHeader:J,tableRef:H,wrapperRef:A,isFixedLayout:B,wrapperStyle:z}),t.createElement(Fa,{ref:H,striped:i,noWrap:a,tableLoading:!1,isFixedLayout:B},J(),re,oe()))};nl.Cell=Na,nl.ClickableCell=e=>{var{onClick:n,children:o}=e,i=ee(e,["onClick","children"]);return t.createElement(Na,Object.assign({},i),t.createElement(Pa,{onClick:n},o))},nl.EditableCell=e=>{var{onClick:n,children:o}=e,i=ee(e,["onClick","children"]);return t.createElement(Na,Object.assign({},i),t.createElement(Aa,{onClick:n},t.createElement(Wa,null,o)))},nl.SkeletonCell=Xa,nl.SkeletonContent=_a;const ol=m.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,il="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",rl="Log in with Amazon",al=e=>{const[o,i]=n(il);return t.createElement(ol,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(il)},"aria-label":rl},e),t.createElement("img",{src:o,alt:rl}))},ll=h`body{overflow:hidden;scrollbar-gutter:stable;}`,sl=m.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${T.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Pn.Footer} {\n box-shadow: 0px 10px 15px 0px ${T.colors.neutral.ink.dark};\n }\n `}`,cl=e=>!!e.footerSlot,dl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},ul={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},pl={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:ml}=T,fl=m(u.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:${T.sizes.sm};box-shadow:${T.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Pn.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${dl[e]};`} ${sl}{padding-bottom:${T.sizes.md};}${Pn.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${ml.mobile} + 1px))and (max-width: ${ml.tablet}){max-width:${({variant:e})=>ul[ml.tablet][e]};}@media (min-width: ${ml.tablet})and (max-width: ${ml.lgTablet}){max-width:${({variant:e})=>ul[ml.lgTablet][e]};}@media (min-width: ${ml.lgTablet})and (max-width: ${ml.desktop}){max-width:${({variant:e})=>ul[ml.desktop][e]};}@media (min-width: ${ml.desktop}){max-width:${({variant:e})=>ul[ml.lgDesktop][e]};}@media (max-width: ${({variant:e})=>pl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Pn.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${sn(T.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,hl=t.forwardRef(((e,n)=>{var o=ee(e,[]);return t.createElement(fl,Object.assign({ref:n},o))})),gl=e=>{const{shouldShow:i,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:c,children:d}=e,u=l(null),[m,f]=n(null);o((()=>{var e,t;i&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[i]);const{isOverflowing:h,onScroll:g}=_r(m),b=()=>{var e;null===(e=u.current)||void 0===e||e.close(),c()};return t.createElement(p,null,i&&t.createElement("div",{"data-testid":"dialog-wrapper"},t.createElement(ll,null),t.createElement(hl,{ref:u,onClose:b,variant:s,"aria-describedby":"modal_title"},t.createElement(Pn.Surface,null,(e=>!!e.headerSlot)(e)?e.headerSlot:t.createElement(Fn,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:e.headerTitle,subtitle:e.headerSubtitle},r&&{onClickClose:b})),t.createElement(sl,{onScroll:g,ref:f,isScrollable:h,fullBleed:a},d),cl(e)&&e.footerSlot,!cl(e)&&(e.leftActions||e.rightActions)&&t.createElement(Pn.Footer,null,t.createElement(Ho,{direction:"horizontal",alignX:e.leftActions?"between":"end"},e.leftActions&&t.createElement(Ho,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},e.leftActions.map((e=>{var{label:n}=e,o=ee(e,["label"]);return t.createElement(Sn,Object.assign({key:n,type:"button"},o),n)}))),e.rightActions&&t.createElement(Ho,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},e.rightActions.map((e=>{var{label:n}=e,o=ee(e,["label"]);return t.createElement(Sn,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:bl,text:vl,shadows:yl}=T,{grey:xl}=T.colors.neutral,wl=m.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${bl.base} ${bl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&yl[e]};`,El=m.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${vl.headingXL.fontFamily};font-size:${vl.headingXL.fontSize};font-weight:${vl.headingXL.fontWeight};margin:unset;line-height:1;`,Cl=m.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${vl.subheadingLarge.fontFamily};font-weight:${vl.subheadingLarge.fontWeight};font-size:${vl.subheadingLarge.fontSize};line-height:${vl.subheadingLarge.lineHeight};`,$l=m.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${T.radius.base};border:${bl.line} solid ${xl.base};object-fit:cover;`,kl=m.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Sl=m(Sn).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${T.text.link.fontFamily};font-size:${T.text.link.fontSize};font-weight:${T.text.link.fontWeight};line-height:${T.text.link.lineHeight};color:${T.text.link.color};&:hover{text-decoration:${T.text.link.textDecoration};}& > * + *{margin-left:${T.sizes.xs};}`,Nl=m.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:${bl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Il=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),Ll=({title:e,subtitle:n,imageSrc:o,actions:i,quickActions:r,backAction:a,Accessory:l,shadow:s="none",onClickPrevious:c,onClickNext:d,onClickToggleSidebar:u})=>{const p=i&&t.createElement(Yn,{buttonVariant:r?"default":"primary",title:"Actions",sections:i}),m=null==r?void 0:r.map((e=>t.createElement(Sn,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),f=a&&t.createElement(Sn,{onClick:a.onClick,icon:t.createElement(Il,null),variant:"link"},a.title),h=u&&t.createElement(Ho,{direction:"horizontal",alignX:"end"},t.createElement(Sl,{onClick:u},t.createElement("span",null,"Toggle sidebar"),t.createElement(Oo,{width:R.md})));return t.createElement(wl,{shadow:s},t.createElement(Ho,null,f,t.createElement(Nl,null,t.createElement(Ho,{direction:"horizontal",spacing:"md"},o&&t.createElement($l,{src:o,alt:"",width:"72",height:"72"}),t.createElement("div",{style:{flex:1}},t.createElement(Ho,{alignX:"stretch"},t.createElement(El,null,e),l,n&&t.createElement(Cl,null,n)))),t.createElement(kl,null,t.createElement(Ho,{direction:"horizontal",alignX:"end",spacing:"sm"},m,p,c&&t.createElement(Sn,{icon:t.createElement(Il,null),onClick:c}),d&&t.createElement(Sn,{icon:t.createElement(Oo,null),onClick:d})),h))))},zl=m(Ho).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${T.sizes.lg};height:30px;background-color:${T.colors.neutral.grey.light};border:1px solid ${T.colors.neutral.grey.base};border-radius:${T.sizes.xs};`,Fl=m(Sn).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${T.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Ol=m(jr).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,jl=({count:e})=>t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(W,{variant:"bodySmall","aria-hidden":!0},"/")),t.createElement(zl,{alignX:"center",alignY:"center","aria-hidden":!0},t.createElement(W,{variant:"bodySmall"},e))),Ml=({currentPage:e,totalPagesCount:t,handleChangePage:i})=>{const[r,a]=n(`${e}`);o((()=>{a(`${e}`)}),[e]);const l=e=>e>=1&&e<=t,s=()=>{if(r||a(`${e}`),r===`${e}`)return;const t=parseInt(r,10);l(t)&&i(t)};return{pageInputValue:r,handleIncrement:()=>{l(e+1)&&i(e+1)},handleDecrement:()=>{l(e-1)&&i(e-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;l(n=t)&&a(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Rl=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Dl=e=>t.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Bl=({testId:e,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:a,handleIncrement:l,handleDecrement:s,handleFormSubmit:c,handleInputChange:d,handleSubmit:u}=Ml({currentPage:o,totalPagesCount:i,handleChangePage:r});return t.createElement(Ho,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:n},t.createElement(Fl,{onClick:()=>{1!==o&&r(1)},icon:t.createElement(Rl,null),size:"sm","aria-label":"go to first page"}),t.createElement(Fl,{onClick:s,icon:t.createElement(Il,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),t.createElement("form",{onSubmit:c},t.createElement(Ol,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:wr.sm,type:"number",value:a,min:"1",max:`${i}`,onChange:d,onBlur:u})),t.createElement(jl,{count:i}),t.createElement(Fl,{onClick:l,icon:t.createElement(Oo,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),t.createElement(Fl,{onClick:()=>{o!==i&&r(i)},icon:t.createElement(Dl,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Tl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Hl=m(k).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Al=m(io).withConfig({displayName:"vui--Dropdown",componentId:"vui--6y6o6p"})`&-container{width:100%;}`,Pl=m.button.withConfig({displayName:"vui--Button",componentId:"vui--6l6anz"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${I.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Wl=m(k).withConfig({displayName:"vui--Container",componentId:"vui--33jbzi"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Vl=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${I.secondary.blue.base};background:${I.neutral.grey.lightest};}`,ql=({item:e,handleRangeListChange:n})=>{const o=s((()=>n(e)),[n,e]);return t.createElement(Wl,{onClick:o},t.createElement(Vl,{variant:"bodySmall"},e.label))},Zl=e=>{const{handleRangeListChange:n,paginationRange:o=Tl}=e;return t.createElement(t.Fragment,null,o.map((e=>t.createElement(d,{key:e.label},t.createElement(ql,{item:e,handleRangeListChange:n})))))};class _l extends c{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Tl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:n=Tl,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:r}=this.state;return t.createElement(Hl,{className:e},t.createElement(Al,{cta:t.createElement(Pl,{onClick:this.toggleShouldShow},t.createElement(W,{variant:"bodySmall"},r.label),t.createElement($n,{color:T.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},t.createElement(Zl,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Xl=m.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;}`,Ul=m.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;}`,Gl=({onIncrement:e,onDecrement:n,disabled:o=!1,size:i})=>t.createElement(Xl,{size:i},t.createElement(Ul,{type:"button",onClick:e,disabled:o},t.createElement(K,{height:T.sizes.base,width:T.sizes.base,color:T.colors.neutral.ink.base})),t.createElement(Ul,{type:"button",onClick:n,disabled:o},t.createElement(Ln,{height:T.sizes.base,width:T.sizes.base,color:T.colors.neutral.ink.base}))),Yl=m(jr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${T.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${T.colors.neutral.ink.lightest};}`,Kl=m(k).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${T.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?T.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;}}`,Jl=m(W).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,Ql=m(xr).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 ${T.colors.secondary.red.light};\n\n > * {\n border-top-color: ${T.colors.secondary.red.base};\n border-bottom-color: ${T.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${T.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${T.colors.secondary.red.base};\n border-right-color: ${T.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${T.colors.secondary.red.base};\n border-bottom-color: ${T.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${T.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}}`;const es=Nr((e=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:a,onPriceChange:l,priceValue:s,step:c="0.1",size:d=wr.base}=e,u=ee(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const p=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(c)).toFixed(2))},m=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(c)).toFixed(2))};return t.createElement(Ql,{className:n,hasError:o},t.createElement(Kl,{disabled:r,size:d},t.createElement(Jl,{variant:"hintText"},i)),t.createElement(Yl,Object.assign({placeholder:"0.00",type:"currency",value:s,step:c,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void l("");const o=parseFloat(n.replace(",",".")).toFixed(2);l(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&p(a),"ArrowDown"===t&&m(a)},disabled:r,size:d},u)),t.createElement(Gl,{onIncrement:()=>p(),onDecrement:()=>m(),disabled:r,size:d}))}));es.displayName="PriceInput";const ts=m(jr).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,ns=m.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,os=m(k).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 & ${ts} {\n ${t}\n }\n\n & ${ns} {\n ${n}\n }\n `}}`,is=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),rs=({type:e="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,onKeyDown:s,onKeyPress:c,value:d="",error:u,placeholder:p="",className:m="",name:f,isLoading:h=!1,fill:g,reversed:b=!1,autoComplete:v="on",size:y="base"})=>{const x=d&&d.length>0;return t.createElement(os,{className:m,iconPosition:b?"left":"right"},t.createElement(ts,{size:y,type:e,value:d,onChange:i,onBlur:r,onFocus:a,onKeyUp:l,onKeyDown:s,onKeyPress:c,placeholder:p,name:f,disabled:n,error:u,autoComplete:v}),t.createElement(ns,null,h?t.createElement(mn,{height:24,color:g||T.colors.secondary.blue.base}):x&&o?t.createElement(Sn,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text"},t.createElement(zn,{color:g||T.colors.neutral.ink.dark})):t.createElement(Sn,{variant:"unstyled",onClick:()=>i(d),style:{display:"flex"},"aria-label":"Search"},t.createElement(is,{color:g||T.colors.neutral.ink.dark,height:R.md,width:R.md}))))},as=T.colors.neutral.grey.lightest,ls=T.colors.neutral.grey.dark,ss=T.colors.secondary.blue.dark,cs=m(k).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${as};border-color:${ls};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${ss};border-color:${ss};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${T.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,ds=({options:e,selected:n,className:o,onChange:i})=>t.createElement(cs,{className:o?`${o}-container`:void 0},e.map((e=>t.createElement(Sn,{variant:e.value===n?"primary":"default",key:e.key,onClick:()=>i(e.value),disabled:e.disabled,className:e.value===n?"veeqo-components-active-button":""},e.label)))),us=m.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;}`,ps=Nr(a(((e,n)=>{var{className:o,options:i,value:r,onChange:a,size:l,disabled:c,hasError:d}=e,u=ee(e,["className","options","value","onChange","size","disabled","hasError"]);const p=s((e=>{a&&a(e.currentTarget.value)}),[a]);return t.createElement(us,Object.assign({className:o,sizeVariant:l,value:null!=r?r:void 0,onChange:p,disabled:c,hasError:d,ref:n},u),!!i&&i.map((e=>t.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));ps.displayName="Select";const{blue:ms}=I.secondary,{grey:fs}=I.neutral,hs=m.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,gs=m.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${ms.lightest};}`,bs=m.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,vs=m.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:${B.bodySmall.fontFamily};font-size:${B.bodySmall.fontSize};font-weight:${B.bodySmall.fontWeight};color:${B.bodySmall.color};line-height:${R.base};& > *{vertical-align:middle;}`,ys=m(vs).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${fs.dark};font-family:${B.bodySmallBold.fontFamily};font-size:${B.bodySmallBold.fontSize};font-weight:${B.bodySmallBold.fontWeight};color:${B.bodySmallBold.color};`,xs=m.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${gs} tr:nth-child(even) td {\n background-color: ${fs.lightest};\n }\n `}`,ws=({striped:e=!0,className:n,children:o})=>t.createElement(xs,{striped:e,className:n},o);ws.Header=hs,ws.Body=gs,ws.Row=bs,ws.HeaderCell=ys,ws.Cell=vs;const Es=m.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Cs=m.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${T.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,$s=m.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 ${T.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 ${T.colors.secondary.blue.light};}`,ks=m(Cs).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${T.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ss=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}),Ns=({id:e,value:i,min:r,max:a,step:c=1,onChange:d,className:u,e2eClassName:p,onSlideStart:m=(()=>{}),onSlideEnd:f=(()=>{})})=>{const[h,g]=n(!1),[b,v]=n(-1),y=l(null),x=l(null),w=l(null),E=Ss(u),C=Ss(p),$=s((e=>{var t;if(!h||!y.current)return;const n=b>-1?i[b]:i,o=y.current.getBoundingClientRect();let l=100*(e.pageX-o.x)/o.width/100*(a-r)+r;const s=n-l;if(s>0&&(l=n+Math.ceil(l/c-n/c)*c),s<0&&(l=n+Math.floor(l/c-n/c)*c),n===l)return;l>a&&(l=a),l<r&&(l=r),Array.isArray(i)&&(0===b&&l>i[1]&&([,l]=i),1===b&&l<i[0]&&([l]=i));const u=c.toString().includes(".")?null===(t=c.toString().split(".").pop())||void 0===t?void 0:t.length:0;let p;l=Number(l.toFixed(u)),p=Array.isArray(i)?0===b?[l,i[1]]:[i[0],l]:l,d(p),Array.isArray(p)&&p[0]===p[1]&&(0===b&&v(1),1===b&&v(0))}),[b,h,a,r,d,c,i]),k=s((()=>{g(!1),f()}),[f]),S=s(((e,t)=>{g(!0),m(),"number"==typeof t&&v(t),e.preventDefault()}),[m]);o((()=>{const e=e=>S(e,Array.isArray(i)?0:1),t=e=>S(e,1),n=x.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",$),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",k)}}),[S,$,k,i]);const N=(e,n,o)=>{let i;return i=an("number"==typeof o?0===o?[null==E?void 0:E.startSlider,null==C?void 0:C.startSlider]:[null==E?void 0:E.endSlider,null==C?void 0:C.endSlider]:[null==E?void 0:E.slider,null==C?void 0:C.slider]),t.createElement($s,{role:"slider",ref:1===o?w:x,className:i,left:e,"aria-valuemin":r,"aria-valuemax":a,"aria-valuenow":n})},I=e=>{const n=100*(e[0]<r?0:e[0]-r)/(a-r),o=100*(e[1]>a?100:e[1]-r)/(a-r),i=o-n;return t.createElement(t.Fragment,null,t.createElement(ks,{className:an([null==E?void 0:E.sliderRange,null==C?void 0:C.sliderRange]),left:n,width:i}),N(n,e[0],0),N(o,e[1],1))};let L;return L=Array.isArray(i)?I(i):(e=>{if(Array.isArray(i))return I(i);let t;return t=i>a?100:i<r?0:100*(e-r)/(a-r),N(t,e)})(i),t.createElement(Es,{className:an([null==E?void 0:E.container,null==C?void 0:C.container]),id:e,ref:y},t.createElement(Cs,null),L)},Is=m(k).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:I.neutral.ink.base};\n background-color: ${null!=e?e:I.neutral.grey.base};\n `}`,Ls=m(Ho).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,zs=m(Ho).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${T.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${T.shadows.lg};border-radius:${T.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;}`,Fs=m(k).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${T.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${R.md};height:${R.md};}`,Os=m(Ho).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,js=m(W).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,Ms={info:{accentColor:I.brand.blue.base,icon:t.createElement(ir,null)},success:{accentColor:I.secondary.green.base,icon:t.createElement(ci,null)},error:{accentColor:I.secondary.red.base,icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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:I.secondary.purple.base,icon:t.createElement((e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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)}},Rs=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ds=({className:e,e2eClassName:n,type:o,iconSlot:i,text:r,last:a,minWidth:l,cta:s,onClose:c})=>{const d=Rs(e),u=Rs(n);return t.createElement(zs,{className:an([null==d?void 0:d.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:a},t.createElement(Fs,{color:Ms[o].accentColor,className:an([d.icon,u.icon])},null!=i?i:Ms[o].icon),t.createElement(Os,{direction:"horizontal",alignY:"center",alignX:"between"},t.createElement(js,{variant:"body"},r),s),t.createElement(Sn,{variant:"flat",icon:t.createElement(zn,{color:"white"}),onClick:c,"aria-label":"Close"}))},Bs=({className:e,e2eClassName:n,toasts:i,minWidth:r="50vw",max:a=3,onClose:l})=>(o((()=>{a&&i.length>a&&l(i[0].key)}),[i,a,l]),y(t.createElement(Ls,{direction:"vertical",alignX:"center",spacing:4},t.createElement(w,{component:null},[...i].reverse().map(((o,a)=>t.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},t.createElement(Ds,Object.assign({className:e,e2eClassName:n,minWidth:r,last:a===i.length-1,onClose:()=>l(o.key)},o))))))),document.body)),Ts=m.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?T.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Hs=m.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${Ts}{box-shadow:0 0 0 4px ${T.colors.brand.blue.light};}&:checked + ${Ts}{background-color:#0079d1;}&:disabled + ${Ts}{background-color:${T.colors.neutral.grey.base};}&:checked:disabled + ${Ts}{background-color:${T.colors.secondary.blue.light};}`,As=m.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;}${Ts}: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"};}${Hs}:checked + ${Ts}{&: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"});}}`,Ps=m(k).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Ws=a((({id:e,className:n,name:o,switched:i,small:r,onClick:a=(()=>{}),disabled:l,ariaLabel:s},c)=>t.createElement(Ps,{className:n,disabled:l},t.createElement(As,{small:r,disabled:l,role:"switch"},t.createElement(Hs,{id:e,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:l?void 0:a,disabled:l,ref:c}),t.createElement(Ts,{switched:i,disabled:l}))))),Vs=m.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:${T.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",i="24px",r="8px",a="16px",l="4px",s="white",c="#CDD1D5",d="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",a="14px",l="2px"),t&&(s="#0079D1",c="#0079D1",d="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${a};\n\n background-color: ${s};\n border-color: ${c};\n color: ${d};\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;}`,qs=({children:e,checked:n,size:o="base",disabled:i=!1,onChange:r})=>t.createElement(Vs,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},e),Zs="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",_s=m(k).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${Zs} display:${e=>e.shouldShow?"initial":"none"};z-index:${T.layers.modal};`,Xs=m(k).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${Zs} background-color:rgba(55,66,77,0.5);`,Us=m(k).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,Gs=({usePortal:e,children:n})=>t.createElement(t.Fragment,null,e?t.createElement(nn,null,n):n),Ys=({className:e,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>t.createElement(Gs,{usePortal:i},t.createElement(_s,{className:an([`${e}-container`,e]),shouldShow:o},t.createElement(Xs,null),t.createElement($,{isActive:o},t.createElement(Us,{className:an([`${e}-wrap`,e])},n)))),Ks=m.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,Js=m.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Qs=m(Sn).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`,ec=({id:e,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=Hr(o,i);return t.createElement(Ys,{shouldShow:o,className:`${e}-video`},t.createElement(Ks,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},t.createElement(Js,{ref:r},t.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),t.createElement(Qs,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:t.createElement(zn,{color:"white"})}))))};var tc;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(tc||(tc={}));const nc=m(k).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,oc=m(W).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,ic=m(k).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 ${W} {\n color: ${null!=t?t:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,rc=m(W).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 & > ${oc} {\n color: #fff;\n }\n `}`,ac={style:{marginLeft:R.xs,padding:R.xs,height:R.base,width:R.base}},lc=m.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${R.sm};svg{height:${R.base};width:${R.base};}`,sc=e=>t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.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"})),cc=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}),dc=({id:e,iconSlot:n,name:o,type:i,className:r,colourPalette:a=I.secondary.blue,customTextColour:l,count:c,active:d=!1,onClick:u,onDelete:p,onEdit:m,e2eClassName:f})=>{const h=cc(r),g=cc(f),[b,v,y]=Zr(),x=s((()=>u(e)),[e,u]),w=s((t=>{t.stopPropagation(),p&&p(e)}),[p,e]),E=s((t=>{t.stopPropagation(),m&&m(e)}),[m,e]),C=i===tc.draft,$=i===tc.saved,k=d?I.neutral.ink.dark:I.neutral.ink.base;return t.createElement(nc,{className:`${an([null==h?void 0:h.container,null==g?void 0:g.container])} ${d&&(null==g?void 0:g.active)||""}`,onClick:x},t.createElement(ic,{active:d,onMouseEnter:v,onMouseLeave:y,colourPalette:a,customTextColour:l},n&&t.createElement(lc,null,n),t.createElement(W,{variant:"bodyBold"},o),c&&t.createElement(rc,{active:d||b,colourPalette:a,customTextColour:l},t.createElement(oc,{className:null==g?void 0:g.counter,variant:"subheadingSmall"},c)),C&&t.createElement(zn,Object.assign({},ac,{color:k,className:null==g?void 0:g.delete,onClick:w})),$&&d&&t.createElement(sc,Object.assign({},ac,{color:k,className:null==g?void 0:g.edit,onClick:E}))))},uc=m(k).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,pc=m(k).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,mc=m(jr).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,fc=m(Sn).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${T.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${T.colors.secondary.red.base};\n `};`,hc=Nr((e=>{var{size:n=wr.base,hasError:o,className:i}=e,r=ee(e,["size","hasError","className"]);return t.createElement(uc,{className:i},t.createElement(pc,null,"g"===r.weightUnit&&t.createElement(xr,null,t.createElement(mc,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o},r)),t.createElement(fc,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&t.createElement(t.Fragment,null,t.createElement(xr,null,t.createElement(mc,Object.assign({size:n,onChange:r.handleChangePound,name:"ounce",type:"number",value:r.pound,hasError:o},r)),t.createElement(fc,{hasError:o,size:n},"lb")),t.createElement(xr,null,t.createElement(mc,Object.assign({size:n,onChange:r.handleChangeOunce,name:"pound",type:"number",value:r.ounce,hasError:o},r)),t.createElement(fc,{hasError:o,size:n},"oz")))))}));hc.displayName="WeightInput",hc.defaultProps={weightUnit:"lb"};export{J as Accordion,Yn as ActionList,Jn as Anchor,io as AnimatedDropdown,ao as Avatar,xo as Badge,Lo as Banner,k as BaseContainer,Bo as Breadcrumbs,Sn as Button,Pn as Card,Fn as CardHeader,oi as Checkbox,Jo as Choice,si as ChoiceList,mi as CopyToClipboard,lr as DataTable,fr as DescriptionList,yr as DetailPage,Tr as DimensionsInput,na as FilterTag,Vr as FocusVisibleManager,oa as Grid,da as Image,xr as InputGroup,nl as LegacyDataTable,mn as Loader,al as LoginWithAmazonButton,gl as Modal,Ll as PageHeader,Bl as Pagination,_l as PaginationRange,cn as Popover,Ys as Popup,nn as Portal,es as PriceInput,ri as Radio,rs as Search,ds as SegmentedControl,ps as Select,ws as SimpleTable,Ns as Slider,Ho as Stack,Gl as Stepper,Is as Tag,W as Text,jr as TextField,Bs as ToastsLayout,Ws as Toggle,qs as ToggleButton,bo as Tooltip,ec as VideoModal,dc as View,hc as WeightInput,an as buildClassnames,tn as generateId,sn as getOpaqueHexColor,ln as hexToRgb,T as theme,Ei as useCellWidths,Hr as useClickOutside,Ci as useColumns,Ar as useDebounce,$i as useDragToScroll,Pr as useDropdown,qr as useFocusVisible,Zr as useHover,_r as useIsOverflowing,ki as useNested,Si as useScrollPosition,ji as useSelection,Xr as useTabs,Ir as withDeprecated,Nr as withLabels};
|
|
1
|
+
import e,{useState as t,PureComponent as n,useEffect as o,useMemo as i,forwardRef as l,useRef as r,useCallback as a,Component as s,Fragment as d}from"react";import{motion as c,AnimatePresence as m}from"framer-motion";import u,{css as p,createGlobalStyle as g}from"styled-components";import{usePopper as h}from"react-popper";import b from"resize-observer-polyfill";import f,{createPortal as v}from"react-dom";import{CSSTransition as x,TransitionGroup as y}from"react-transition-group";import w from"lodash.throttle";import{useScroll as C}from"react-use";import E from"react-scrolllock-configurable";const $=u.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--bg86rb"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,k={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},S=(e,t)=>e||(t?k[t]:void 0),N={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"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},I={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var z,F;!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)"}(z||(z={})),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"}(F||(F={}));const j=function({increment:e,unit:t,count:n}){const o={};for(let i=0;i<=n;i++){const n=i*e;o[i]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),B={[F.none]:"0",[F.line]:"1px",[F.xs]:j[1],[F.sm]:j[2],[F.base]:j[4],[F.md]:j[6],[F.lg]:j[8],[F.xl]:j[12],[F.xxl]:j[16]},H=Object.assign(Object.assign({},B),j),M={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},R={headingXXL:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:M.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},D=Object.assign(Object.assign({},M),{breakpoints:L,colors:N,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:I,shadows:z,sizes:H,text:R}),{text:O,colors:W,fontFamily:T}=D,A=u.span.attrs((({as:e,variant:t})=>({as:S(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:${T};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?W.neutral.ink.lightest:O[e].color;return`\n font-family: ${O[e].fontFamily};\n font-style: ${O[e].fontStyle};\n font-weight: ${O[e].fontWeight};\n font-size: ${O[e].fontSize};\n line-height: ${O[e].lineHeight};\n color: ${n};\n text-decoration: ${O[e].textDecoration};\n letter-spacing: ${O[e].letterSpacing};\n `}}`,Z=u($).withConfig({displayName:"vui--TapBarChild",componentId:"vui--vb6lvt"})`display:flex;flex-direction:row;align-items:center;`,P=u(Z).withConfig({displayName:"vui--Left",componentId:"vui--19b2coz"})`svg{margin-right:12px;height:${H.base};width:${H.base};color:${({glyphColor:e})=>e};}`,V=u(Z).withConfig({displayName:"vui--Right",componentId:"vui--13mhsyo"})`justify-content:flex-end;flex-grow:2;`,q=u.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 ${D.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${D.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${D.colors.secondary.blue.light};}`,X=u($).withConfig({displayName:"vui--Top",componentId:"vui--11peosj"})`display:flex;flex-direction:row;align-items:center;height:16px;`,Y=u(A).withConfig({displayName:"vui--Description",componentId:"vui--1e00qnt"})`margin-top:8px;`,K=u(c($)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--2wgxvx"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,U=u.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--1dg5oex"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,G=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:H.md},t),e.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"})),_=({className:n,children:o,label:i,iconSlot:l,glyphColor:r=N.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d})=>{const[m,u]=t(!!d);return e.createElement(U,{open:!!d,className:n},e.createElement(q,{onClick:()=>u(!m)},e.createElement(X,null,e.createElement(P,{glyphColor:r},l,e.createElement(A,{variant:"body"},i)),e.createElement(V,null,e.createElement(c.span,{animate:{rotate:m?180:0}},e.createElement(G,{name:m?"downArrow":"upArrow"})))),!!s&&e.createElement(Y,{variant:"hintText"},s)),m&&e.createElement(K,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}},o))};function J(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 i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const Q=e=>`${e}-${Math.floor(1e3*Math.random())}`;class ee extends n{constructor(e){super(e),this.id=Q("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?v(e,this.portalNode):null}}const te=u.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--cg48a2"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,ne=u.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--49or9l"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,oe=e=>e.filter(Boolean).join(" "),ie=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},le=(e,t)=>{const n=ie(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},re=(e,t,n=!1)=>({handleKeyDown:o=>{e&&("Escape"===o.key?t():n||"Tab"!==o.key||(t=>{const n=e.querySelectorAll('button:not(:disabled), [href]:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not(:disabled)'),o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())})(o))}}),ae=n=>{var{id:l,children:r,zIndex:a=D.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:m,style:u,disableFocusLock:p}=n,g=J(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock"]);const[f,v]=t(null),{styles:x,attributes:y,update:w}=h(d,f,{placement:s}),C=i((()=>l||Q("popover")),[l]);(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.setAttribute("aria-expanded","true")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||e.setAttribute("aria-controls",t)}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||e.setAttribute("aria-haspopup","dialog")}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t])})({anchorElement:d,popoverId:C});const E=()=>{null==d||d.focus(),null==m||m()},{handleKeyDown:$}=re(f,E,p);return o((()=>{if(!w||!f)return;const e=new b(w);return e.observe(f),()=>e.disconnect()}),[w,f]),o((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),e.createElement(ee,{rootElementRef:c},e.createElement(ne,{onClick:E,zIndex:a}),e.createElement(te,Object.assign({open:!0,zIndex:a,ref:v,style:Object.assign(Object.assign({},x.popper),u),onKeyDown:$},y.popper,g),r))},se=({width:t,height:n,className:o,color:i,label:l})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":l},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:i,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:i,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:i,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),de=({width:t,height:n,className:o,color:i,label:l})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":l},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ce=({width:t,height:n,className:o,color:i,label:l})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"aria-label":l},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),me=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:l="TailSpin"})=>{switch(l){case"Grid":return e.createElement(de,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(ce,{className:t,height:n,width:o,color:i});default:return e.createElement(se,{className:t,height:n,width:o,color:i})}},ue=u.span.withConfig({displayName:"vui--MainContent",componentId:"vui--3juln2"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({loading:e})=>e&&"opacity: 0;"};svg{width:${({size:e})=>H[e]};height:${({size:e})=>H[e]};}`,pe=u.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:${D.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",l="16px",r="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",l="14px",r="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${r};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}& > span{position:relative;top:-1px;}`,ge=u(pe).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1mceh7z"})`border-color:${D.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?D.colors.neutral.ink.base:D.colors.secondary.blue.base};&:hover{background-color:${D.colors.neutral.grey.lightest};}&:active{background-color:${D.colors.neutral.grey.lightest};border-color:${D.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${D.colors.neutral.grey.base} !important;border-color:${D.colors.neutral.grey.base} !important;color:${D.colors.neutral.ink.light} !important;}`,he=u(ge).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1vhc5dm"})`color:${D.colors.secondary.red.base};&:hover{color:${D.colors.secondary.red.dark};}&:active{border-color:${D.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};color:${D.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}`,be=u(ge).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--lamrqo"})`background-color:${D.colors.secondary.blue.base};border-color:${D.colors.secondary.blue.base};color:white;&:hover{background-color:${D.colors.secondary.blue.dark};border-color:${D.colors.secondary.blue.dark};}&:active{background-color:${D.colors.secondary.blue.dark};border-color:${D.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};}`,fe=u(be).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--14zrdl"})`background-color:${D.colors.secondary.red.base};border-color:${D.colors.secondary.red.base};color:white;&:hover{background-color:${D.colors.secondary.red.dark};border-color:${D.colors.secondary.red.dark};}&:active{background-color:${D.colors.secondary.red.dark};border-color:${D.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.red.light};}`,ve=u(pe).withConfig({displayName:"vui--FlatButton",componentId:"vui--1w880uc"})`border-color:transparent;box-shadow:none;color:${D.colors.neutral.ink.base};&:hover{background-color:rgba(0, 0, 0, 0.1);}&:active{background-color:rgba(0, 0, 0, 0.1);}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${D.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,xe=u.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--kyccjz"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,ye=u(xe).withConfig({displayName:"vui--LinkButton",componentId:"vui--eh2yja"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${D.text.link.fontFamily};font-size:${D.text.link.fontSize};font-weight:${D.text.link.fontWeight};line-height:${D.text.link.lineHeight};text-decoration:${D.text.link.textDecoration};color:${D.colors.secondary.blue.base};&:hover{color:${D.colors.secondary.blue.dark};}& > * + *{margin-left:${D.sizes.xs};}& > span{position:relative;top:-1px;}`,we=u.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;`,Ce=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Ee={default:ge,primary:be,destructive:he,primaryDestructive:fe,flat:ve,link:ye,unstyled:xe},$e=l(((t,n)=>{var{className:o,children:i,icon:l,variant:r="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=J(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===r)return e.createElement(xe,Object.assign({ref:n,className:o},c),i);const m=Ee[r],u=void 0!==i,p=!!l;return e.createElement(m,Object.assign({ref:n,className:o,size:a,hasText:u,hasIcon:p,hasDropdown:s},c),(u||p)&&e.createElement(ue,{loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},l&&l,void 0!==i&&e.createElement("span",null,i),s&&e.createElement(Ce,null)),d&&e.createElement(we,null,e.createElement(me,null)))})),ke=u.header.withConfig({displayName:"vui--Header",componentId:"vui--13im4do"})`padding-top:${H.md};padding-right:${H.md};padding-left:${H.md};margin-bottom:${H.md};& > * + *{margin-top:${H.xs};}`,Se=u.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--1orvtgl"})`/*${H.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ne=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:H.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),Le=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Ie=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:l,ActionSlot:r,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(ke,null,e.createElement(Se,null,e.createElement(A,{id:t,variant:i},n),l&&e.createElement($e,{variant:"link",onClick:l.onClick},l.title),r,s&&e.createElement($e,{variant:"flat",icon:a?e.createElement(Ne,null):e.createElement(G,null),onClick:s}),d&&e.createElement($e,{variant:"flat",icon:e.createElement(Le,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(A,{variant:"subheadingSmall"},o)),{grey:ze}=N.neutral,Fe={0:"none",1:z.sm,2:z.base,3:z.md,4:z.lg},je={info:N.secondary.blue.base,success:N.secondary.green.base,error:N.secondary.red.base},Be=u.footer.withConfig({displayName:"vui--Footer",componentId:"vui--1s3932u"})`margin-top:${H.base};padding:${H.md};z-index:2;`,He=u.section.withConfig({displayName:"vui--Section",componentId:"vui--n2tmr2"})`padding-right:${H.md};padding-left:${H.md};margin-top:${H.md};margin-bottom:${H.md};font-family:${R.body.fontFamily};font-size:${R.body.fontSize};font-weight:${R.body.fontWeight};line-height:${R.body.lineHeight};color:${R.body.color};& + &{border-top:${H.line} solid ${ze.base};padding-top:${H.md};}`,Me=u.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--8unl0i"})`margin-left:-${H.md};margin-right:-${H.md};`,Re=u(c.div).withConfig({displayName:"vui--Body",componentId:"vui--1q1caki"})`overflow-y:hidden;&:not(:first-child)> ${He}:first-child{margin-top:0;}`,De=u.div.withConfig({displayName:"vui--Surface",componentId:"vui--5cnkiv"})`position:relative;width:100%;background-color:white;border:${H.line} solid ${ze.base};box-shadow:${e=>void 0!==e.elevation?Fe[e.elevation]:z.sm};border-radius:${I.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: ${H.xs};\n background-color: ${je[e]};\n }\n `}`,Oe={expanded:{height:"auto"},collapsed:{height:0}},We=({className:n,style:o,title:i,subtitle:l,HeaderActionSlot:r,action:a,collapsable:s,elevation:d,accent:c,children:m,onClose:u,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(Ie,{title:i,subtitle:l,ActionSlot:r,action:a,onClickClose:u,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(Re,{animate:f?"expanded":"collapsed",variants:Oe,transition:{duration:.3,ease:"easeOut"}},e.createElement(He,null,m)),x=void 0!==p&&e.createElement(Be,null,p());return e.createElement(De,{className:n,style:o,elevation:d,accent:c},b,v,x)};We.Surface=De,We.Section=He,We.FullBleed=Me,We.Footer=Be;const{sizes:Te,colors:Ae,text:Ze}=D,Pe=u(We.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--1trkfaa"})`min-width:280px;padding:${Te.base} 0;display:flex;flex-direction:column;`,Ve=u.section.withConfig({displayName:"vui--Section",componentId:"vui--rjtb0l"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Ae.neutral.grey.base};margin-top:${Te.base};padding-top:${Te.base};}`,qe=u(A).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--74egpv"})`margin:${Te.sm} ${Te.base} ${Te.sm};`,Xe=u($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--1ib3pw5"})`box-sizing:border-box;min-height:${Te.lg};padding:${Te.xs} ${Te.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ze.body.fontFamily};font-size:${Ze.body.fontSize};font-weight:${Ze.body.fontWeight};&:hover{background-color:${Ae.neutral.grey.light};color:${Ae.secondary.blue.base};}& > * + *{margin-left:${Te[3]};}`,Ye={item:Xe,action:u(Xe).withConfig({displayName:"vui--ActionItem",componentId:"vui--1p9b0cj"})`color:${Ae.secondary.blue.base};`,link:u(Xe).withConfig({displayName:"vui--LinkItem",componentId:"vui--dzqkwg"})`color:${Ae.secondary.blue.base};text-decoration:underline;`},Ke=({title:n,items:o=[],sections:i,buttonVariant:l,buttonSize:r})=>{const[a,s]=t(!1),[d,c]=t(null),m=t=>{const n=Ye[t.variant||"item"];return e.createElement(n,{onClick:()=>{return e=t.onClick,s(!1),void e();var e},key:t.title},t.icon&&t.icon,e.createElement("span",null,t.title))},u=i?i.map((t=>e.createElement(Ve,{key:t.title},t.title&&e.createElement(qe,null,t.title),t.items.map(m)))):o.map(m);return e.createElement(e.Fragment,null,e.createElement($e,{dropdown:!0,variant:l,size:r,onClick:()=>s(!a),ref:c},n),a&&e.createElement(ae,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(Pe,null,u)))},Ue=u.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--1tq5iq"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${D.text.link.fontFamily};font-style:${D.text.link.fontStyle};font-weight:${D.text.link.fontWeight};font-size:${D.text.link.fontSize};line-height:${D.text.link.lineHeight};color:${D.colors.secondary.blue.base};text-decoration:${D.text.link.textDecoration};&:hover{color:${D.colors.secondary.blue.dark};}`,Ge=({children:t,className:n,text:o,href:i,target:l})=>e.createElement(Ue,{href:i,target:l,className:n},t||o),_e=u($).withConfig({displayName:"vui--Container",componentId:"vui--901a1g"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Je=l(((t,n)=>{const{children:o,className:i}=t;return e.createElement(_e,{className:i,ref:n},o)})),Qe=u($).withConfig({displayName:"vui--Container",componentId:"vui--602vf7"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,et=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--npjssh"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,tt=u(Je).withConfig({displayName:"vui--Dropdown",componentId:"vui--dv3wrs"})`flex-direction:column;position:absolute;z-index:3;${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,nt=({cta:t,shouldShowDropdown:n,children:i,className:l="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:m,onMouseEnter:u,onMouseLeave:p})=>{const g=r(null);return((e,t)=>{o((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(g,(e=>{n&&s(e)})),e.createElement(Qe,{className:`${l}-container ${l}`,onClick:m,onMouseEnter:u,onMouseLeave:p,ref:g},!a&&t,e.createElement(et,{className:`${l}-wrap ${l}`},e.createElement(x,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(tt,{reversed:a,className:`${l}-basic-dropdown ${l}`},i))),a&&t)},ot=u.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--224xhi"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${D.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:${D.text.bodySmallBold.fontFamily};font-weight:${D.text.bodySmallBold.fontWeight};font-size:${D.text.bodySmallBold.fontSize};line-height:${D.text.bodySmallBold.lineHeight};}`,it=({width:t="40px",name:n="Veeqo",bgColor:o=D.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const l=n.toUpperCase().match(/\b(\w)/g);return e.createElement(ot,{width:t,bgColor:o,textColor:i,className:"avatar"},null==l?void 0:l.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))};var lt,rt;!function(e){e.end="end",e.start="start"}(lt||(lt={})),function(e){e.BOTTOM="bottom",e.TOP="top"}(rt||(rt={}));const at=u.div.withConfig({displayName:"vui--Container",componentId:"vui--16xd2og"})`display:inline-block;`,st=u(at).withConfig({displayName:"vui--Hoverable",componentId:"vui--if1bgt"})``,dt=u(A).withConfig({displayName:"vui--TooltipText",componentId:"vui--1tbdgc0"})`color:${D.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,ct=u.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1eqvhdd"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,mt=u.div.withConfig({displayName:"vui--Tip",componentId:"vui--10g4qtf"})`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;}`,ut=u(at).withConfig({displayName:"vui--Wrap",componentId:"vui--1arl0em"})`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;`,pt={duration:400,side:rt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},gt=({children:n,text:o,content:i,config:l,reversed:r=!1,className:s,withTriangle:d,initialShouldShow:c=!1,useReactPortal:m=!0})=>{const u=!!o&&o.trim().length>0,p=Object.assign(Object.assign({},pt),l),{duration:g,side:b,triangleOffset:v,tipMinWidth:x,tipMaxWidth:y}=p,w={container:s&&`${s} ${s}-container`,tip:s&&`${s}-tip`,wrap:s&&`${s}-wrap`,triangle:s&&`${s}-triangle`,hoverable:s&&`${s}-hoverable`},[C,E]=t(c),[$,k]=t(null),[S,N]=t(null),{styles:L,attributes:I}=h($,S,{placement:`${b}-${r?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),z=a((()=>E(!0)),[E]),F=a((()=>E(!1)),[E]),j=Object.assign(Object.assign({},L.popper),{zIndex:D.layers.tooltip}),B=C&&(i||u)&&e.createElement(mt,Object.assign({className:w.tip,ref:N,duration:g,triangleOffsetSize:v,style:j},I.popper,{role:"tooltip"}),e.createElement(ut,{className:w.wrap,tipMinWidth:x,tipMaxWidth:y},null!=i?i:e.createElement(dt,null,o)),d&&e.createElement(ct,{id:"veeqo-components-triangle",className:w.triangle}));return e.createElement(at,{className:w.container},m?f.createPortal(B,document.body):B,e.createElement(st,{ref:k,className:w.hoverable,onMouseEnter:z,onMouseLeave:F},n))},ht=u($).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:${R.bodySmall.fontFamily};font-weight:${R.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${H.base};height:${H.base};}`,bt={default:u(ht).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--cjoxaq"})`background-color:inherit;border-color:${N.secondary.blue.base};color:${N.secondary.blue.base};`,primary:u(ht).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--12dvheo"})`border-color:${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};color:${N.secondary.blue.base};`,warning:u(ht).withConfig({displayName:"vui--WarningBadge",componentId:"vui--5cooo3"})`border-color:${N.secondary.yellow.base};background-color:${N.secondary.yellow.lightest};color:${N.secondary.orange.dark};`},ft=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:l,e2eClassName:r,children:a})=>{const s=bt[t];return e.createElement(gt,{text:i},e.createElement(s,{className:oe([l,r]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},vt=u($).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"};`,xt=u($).withConfig({displayName:"vui--Row",componentId:"vui--9nzbbv"})`display:flex;flex-direction:row;`,yt=u($).withConfig({displayName:"vui--Col",componentId:"vui--zplr21"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,wt=u(yt).withConfig({displayName:"vui--IconCol",componentId:"vui--1j9d69e"})`svg{width:${H.md};height:${H.md};color:${({accentColor:e})=>e};}`,Ct=u($).withConfig({displayName:"vui--ChildContainer",componentId:"vui--wt59q7"})`width:100%;`,Et=u(yt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1wkol92"})`flex-grow:2;margin-right:12px;`,$t=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--150p0zs"})`position:relative;top:-2px;`,kt={help:N.secondary.blue.base,info:N.neutral.ink.base,error:N.secondary.red.base,success:N.secondary.green.base},St=t=>{var{type:n="info",text:o,icon:i,onClose:l,className:r,header:a,children:s,backgroundColor:d="white"}=t,c=J(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const m=kt[n];return e.createElement(vt,Object.assign({accentColor:m,className:r,backgroundColor:d},c),e.createElement(xt,null,i&&e.createElement(wt,{style:{marginRight:H.md},accentColor:m},i),s?e.createElement(Ct,null,s):e.createElement(e.Fragment,null,e.createElement(Et,null,a||e.createElement($t,{variant:"headingSmall"},o)),e.createElement(yt,null,l&&e.createElement($e,{variant:"flat","aria-label":"Close",icon:e.createElement(Le,null),onClick:l})))))},Nt=u.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--16f283b"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${R.body.fontFamily};font-weight:${R.body.fontWeight};font-size:${R.body.fontSize};line-height:${R.body.lineHeight};`,Lt=u.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;}`,It=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),zt=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(Lt,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(Lt,{className:"breadcrumb"},n,t),Ft=()=>e.createElement(It,{className:"separator",width:H.base,height:H.base}),jt=({children:t,href:n})=>e.createElement("a",{href:n},t),Bt=({children:t})=>e.createElement("span",null,t),Ht=({items:t,Separator:n=e.createElement(Ft,null),LinkComponent:o=jt})=>e.createElement(Nt,{className:"breadcrumbs"},t.map(((i,l)=>e.createElement(zt,{key:i.title,title:i.title,href:i.pathname,LinkComponent:l!==t.length-1?o:Bt},t.length!==l+1&&n))));var Mt;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Mt||(Mt={}));const Rt=u.div.withConfig({displayName:"vui--Stack",componentId:"vui--ikbqaf"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let l,r,a,s,d="",c="";return"vertical"===t?(l=n&&Mt[n],r=o&&Mt[o],d=D.sizes[i],a="column"):(l=o&&Mt[o],r=n&&Mt[n],c=D.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${l};\n justify-content: ${r};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Rt.displayName="Stack";const Dt={top:"flex-start",center:"center"},Ot=u.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--3b6yzv"})`display:flex;align-items:center;& > * + *{margin-left:${D.sizes.base};}`,Wt=u.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--8ngm7b"})`align-self:stretch;display:flex;align-items:${e=>Dt[e.align]};width:24px;height:24px;`,Tt=u.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--1cu5xjr"})`align-self:center;display:flex;align-items:center;`,At=u.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1na6cp4"})`flex:1;& > * + *{margin-top:${D.sizes.sm};}`,Zt=u.span.withConfig({displayName:"vui--LabelText",componentId:"vui--1rasg4l"})`font-family:${D.text.body.fontFamily};font-size:${D.text.body.fontSize};font-weight:${D.text.body.fontWeight};line-height:${D.sizes.md};color:${D.text.body.color};`,Pt=u.div.withConfig({displayName:"vui--HintText",componentId:"vui--13bynjq"})`font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`,Vt=u.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--1kh3zgo"})`font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};`,qt=u.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--ogz9oa"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Xt=u(qt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--11xzxut"})`border:2px solid ${D.colors.neutral.grey.dark};border-radius:${D.radius.md};padding:${D.sizes.base} 0.75rem;&:hover{border-color:${D.colors.secondary.blue.base};}& ${Zt}{font-weight:${D.text.bodyBold.fontWeight};}`,Yt=u(gt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--gms4qf"})`display:block;&-hoverable{display:block;}`,Kt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Ut=({id:t,label:n,hint:o,tooltip:i,error:l,bordered:r,Badge:a,Accessory:s,Footer:d,children:c,disabled:m=!1})=>{const u=e.createElement(Ot,null,e.createElement(Wt,{align:s?"center":"top"},c),s&&e.createElement(Tt,null,s),n||o||l||a||d?e.createElement(At,null,e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},a,n&&e.createElement(Zt,null,n),i&&e.createElement(Yt,{text:i},e.createElement(Kt,{name:"help",width:D.sizes.base,color:D.colors.neutral.ink.lightest}))),o&&e.createElement(Pt,null,o),l&&e.createElement(Vt,null,l),d):null);return r?e.createElement(Xt,{disabled:m,htmlFor:t},u):e.createElement(qt,{disabled:m,htmlFor:t},u)},{colors:Gt,sizes:_t,radius:Jt}=D,Qt=u.input.withConfig({displayName:"vui--Input",componentId:"vui--bq2l9d"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Gt.neutral.ink.lightest};border-radius:${Jt.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Gt.secondary.blue.base};border-color:${Gt.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:${_t[4]};background-position:center;}&:hover{border-color:${Gt.secondary.blue.base};}&:active{border-color:${Gt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Gt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Gt.secondary.blue.base};border-color:${Gt.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:${_t[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Gt.neutral.grey.base};border-color:${Gt.neutral.grey.base};color:${Gt.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>");}`,en=t=>{var{checked:n,indeterminate:l,value:s,name:d,disabled:c,ariaLabel:m,className:u,onChange:p}=t,g=J(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=i((()=>Q("checkbox")),[]),b=r(null),f=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{b.current&&(b.current.indeterminate=!0===l)}),[l]),e.createElement(Ut,Object.assign({id:h,disabled:c},g),e.createElement(Qt,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":m,className:u,onChange:f}))},tn=u.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;}`,nn=l(((t,n)=>{var{checked:o,value:i,name:l,disabled:r,onChange:s,id:d}=t,c=J(t,["checked","value","name","disabled","onChange","id"]);const m=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),u=null!=d?d:Q("radio");return e.createElement(Ut,Object.assign({id:u,disabled:r},c),e.createElement(tn,{id:u,type:"radio",checked:o,value:i,name:l,disabled:r,onChange:m,ref:n}))})),on=u.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--z1f13i"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,ln=u.legend.withConfig({displayName:"vui--Legend",componentId:"vui--snr02n"})`font-family:${D.text.inputLabel.fontFamily};font-size:${D.text.inputLabel.fontSize};font-style:${D.text.inputLabel.fontStyle};font-weight:${D.text.inputLabel.fontWeight};line-height:${D.text.inputLabel.lineHeight};text-decoration:${D.text.inputLabel.textDecoration};color:${D.text.inputLabel.color};`;class rn extends s{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 i=[];i=t?[...n,e]:n.filter((t=>t!==e)),o(i)}}render(){const{allowMultiple:t,options:n,selected:o,title:i,disabled:l,bordered:r}=this.props,a=t?en:nn;return e.createElement(on,{disabled:l},i&&e.createElement(ln,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:r,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const an=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),sn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),dn={width:H.base,height:H.base},cn=u($e).withConfig({displayName:"vui--XSButton",componentId:"vui--n9oowl"})`padding:1px;height:unset;span{height:${H.base};width:${H.base};top:unset;}`,mn=({className:t,text:n,onCopy:o})=>{const[i,l]=e.useState(!1),r=a((()=>{navigator.clipboard.writeText(n),o&&o(),l(!0),setTimeout((()=>l(!1)),2500)}),[o,n]);return e.createElement(gt,{text:i?"Copied!":"Copy to clipboard"},e.createElement(cn,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(an,Object.assign({color:N.secondary.green.base},dn)):e.createElement(sn,Object.assign({color:N.secondary.blue.base},dn)),onClick:r}))};function un(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function pn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${pn(e.min,"max-content")}, ${pn(e.max)})`;default:return t||"1fr"}}function gn({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:l}){const r=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 `)),a=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 `)),s="start"!==o&&"none"!==o,d=`\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: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,m=`\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 `,u=`\n tr:nth-child(odd) > td {\n background-color: ${D.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${D.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${D.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${D.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>pn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?r:""}\n ${t.length>0?a:""}\n\n ${d}\n ${m}\n\n ${"nested"===l?p:u}\n `}var hn;!function(e){e.ascending="ascending",e.descending="descending"}(hn||(hn={}));const bn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),fn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),xn=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===hn.ascending?e.createElement(fn,{color:D.colors.neutral.ink.dark,size:o}):e.createElement(vn,{color:D.colors.neutral.ink.dark,size:o}):e.createElement(bn,{size:o});function yn(e,n){const[i,l]=t([]),r=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));l(n)};return o((()=>{r()}),[e.current]),o((()=>{if(!n.current)return;const e=w(r,50),t=new b(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function wn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),i=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...i,...o],pinnedLeft:n,pinnedRight:o}}function Cn(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},l=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",l),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},r=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",r),()=>null==n?void 0:n.removeEventListener("mousedown",r)}),[e.current])}function En(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,o)=>{if(o)if(t){if(e.includes(o))return;const t=[...e,o];n(t)}else{const t=e.findIndex((e=>e===o));if(t<0)return;const i=[...e];i.splice(t,1),n(i)}}}}}function $n(e){const[n,i]=t("start"),l=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",l),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",l)}}),[e.current]),o((()=>{if(!e.current)return;const t=w(l,50),n=new b(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const kn="56px",Sn=u.th.withConfig({displayName:"vui--Header",componentId:"vui--ilge6b"})`height:${kn};display:flex;align-items:center;justify-content:${({align:e="left"})=>un(e)};background-color:white;padding-left:${({spacing:e=3})=>D.sizes[e]};padding-right:${({spacing:e=3})=>D.sizes[e]};border-bottom:1px solid ${D.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Nn(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:l}=t,r=J(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===l?e.createElement(Sn,Object.assign({},r)):e.createElement(Sn,Object.assign({},r),e.createElement(en,{checked:n,indeterminate:o,onChange:i}))}const Ln=u.td.withConfig({displayName:"vui--Cell",componentId:"vui--3tw1b6"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>un(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>D.sizes[e]};padding-right:${({spacing:e=3})=>D.sizes[e]};color:${D.text.bodySmall.color};font-family:${D.text.bodySmall.fontFamily};font-size:${D.text.bodySmall.fontSize};font-style:${D.text.bodySmall.fontStyle};font-weight:${D.text.bodySmall.fontWeight};line-height:${D.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${D.colors.secondary.blue.base};background-color:${D.colors.neutral.grey.lightest};}`;function In(t){var{selected:n,rowId:o,onChange:i,selectionMode:l,disabled:r}=t,a=J(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===l?e.createElement(Ln,Object.assign({},a),e.createElement(nn,{value:o,checked:n,disabled:r,onChange:i})):e.createElement(Ln,Object.assign({},a),e.createElement(en,{value:o,checked:n,disabled:r,onChange:i}))}const zn=[[],()=>{}];function Fn({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[l,r]=n||zn,a=()=>{l.length!==o.length?r(o):r([])};return{selectionEnabled:i,selectedRowIds:l,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(Nn,Object.assign({},i,{selected:l.length===o.length,indeterminate:l.length>0&&l.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,l)=>e.createElement(In,Object.assign({},o,{rowId:n.id,selected:l.selected,onChange:i.setSelected,selectionMode:t,disabled:l.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)r([n]);else if(e){if(l.includes(n))return;const e=[...l,n];r(e)}else{const e=l.findIndex((e=>e===n));if(e<0)return;const t=[...l];t.splice(e,1),r(t)}}}}const jn=u.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--1x79m95"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${D.colors.neutral.ink.lightest};`,Bn=u.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--1kiwwja"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${D.text.headingTable.color};font-family:${D.text.headingTable.fontFamily};font-size:${D.text.headingTable.fontSize};font-style:${D.text.headingTable.fontStyle};font-weight:${D.text.headingTable.fontWeight};line-height:${D.text.headingTable.lineHeight};`,Hn=u(Bn).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 ${jn}{background-color:${D.colors.neutral.grey.light};color:${D.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${D.colors.secondary.blue.light};}`;function Mn({column:t,sortState:n,onChangeSort:o}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const i={key:t.id.toString(),id:`datatable-header-${t.id}`,role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,i);const l=t.sortable?Hn:Bn,r=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===hn.ascending;let i=hn.ascending;return n&&o&&(i=hn.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Sn,Object.assign({},i),e.createElement(gt,{text:t.tooltip},e.createElement(l,Object.assign({},r),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(jn,null,e.createElement(xn,{sortState:n,columnId:t.id,size:5})))))}const Rn=D.colors.neutral.grey.base,Dn=D.colors.neutral.grey.dark,On=u.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1bv9ck1"})`height:20px;width:75%;border-radius:${D.radius.base};background:${Rn};background-image:linear-gradient(\n to right,\n ${Rn} 0%,\n ${Dn} 20%,\n ${Rn} 40%,\n ${Rn} 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 Wn=u.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:${kn};background-color:white;`,Tn=u.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 ${D.colors.neutral.grey.base};& > *{flex:1;}`;function An({selectionColumn:n,intersectionTargetRef:i,containerRef:l,children:r}){var a;const[s,d]=t(!1);o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(i.current),()=>e.disconnect()}),[i.current]);const c=null===(a=l.current)||void 0===a?void 0:a.getBoundingClientRect(),m={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},u=s?m:{position:"absolute",top:0,left:0,right:0};return e.createElement(Wn,{style:u},Mn({column:n}),e.createElement(Tn,null,r))}const Zn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),Pn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),Vn=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const qn=u.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--klb9dq"})`padding-top:${D.sizes.lg};padding-bottom:${D.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${D.sizes.md};`,Xn=u.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--12lmw1"})`padding:${D.sizes.md};background-color:${D.colors.neutral.grey.light};border-radius:${D.radius.full};`,Yn=u.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--kbcaqo"})`white-space:nowrap;`,Kn=u.tr.withConfig({displayName:"vui--Row",componentId:"vui--9t9651"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${D.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 `}`,Un=u.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1lne8xk"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Gn=u.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--15hxahr"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${D.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,_n=u.div.withConfig({displayName:"vui--Truncate",componentId:"vui--coqvc6"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Jn={full:`border-width: 1px; border-radius: ${D.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Qn=u.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--nnuzgr"})`width:100%;position:relative;border-style:solid;border-color:${D.colors.neutral.grey.dark};${({borderMode:e="full"})=>Jn[e]} &,& *{box-sizing:border-box;}`;function eo({children:n,intersectionTargetRef:i,containerRef:l,cellWidths:a,tableCss:s}){const d=r(null),[c,m]=t(!1),[u,p]=t({top:0,left:0,width:0,height:0}),g=()=>{var e;const t=null===(e=l.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};p(n)},h=()=>{var e;if(!l.current)return;const t=l.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{m(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{c&&l.current&&g()}),[l.current,c]),o((()=>{if(!c)return;if(!l.current)return;const e=w(g,33),t=new b(e);return t.observe(l.current),()=>t.disconnect()}),[l.current,c]),o((()=>{h()}),[c]),o((()=>{var e;return null===(e=l.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=l.current)||void 0===e||e.removeEventListener("scroll",h)}}),[l.current]),!c)return null;const f=Object.assign(Object.assign({},u),{height:kn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${D.colors.neutral.grey.base}`}),v=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:f,ref:d},e.createElement(Gn,{css:v},e.createElement("thead",null,n)))}const to=(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}),no=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"}),e.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),e.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),oo={icon:e.createElement(no,{width:48,height:48}),heading:"No results"},io=()=>{},lo=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=oo,expandedRowIds:l,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:m,selectionMode:u,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f})=>{const v=r(null),x=r(null),y=r(null);Cn(v);const w=c.map((e=>e.id)).filter((e=>!(null==m?void 0:m.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=Fn({selectionMode:u,selectionState:p,enabledRowIds:w}),S={setSelected:k||io,setExpanded:g||io},N=[$,...o],L=C?N:o,I=yn(x,v),{visible:z,pinnedLeft:F,pinnedRight:j}=wn(L),{scrollPosition:B}=$n(v),H=gn({pinnedLeft:F,pinnedRight:j,cellWidths:I,scrollPosition:B,visible:z,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Qn,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Gn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Kn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Kn,{key:t.id},z.map((n=>function(t,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(Ln,Object.assign({},o),e.createElement(On,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Qn,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Gn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Kn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(qn,{columnCount:z.length},e.createElement(Xn,null,i.icon),e.createElement(Rt,{spacing:"sm",alignX:"center"},e.createElement(A,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(A,{variant:"subheadingMedium"},i.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:o}=t,i=to(t.id,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:m});return e.createElement(Kn,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),z.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,S,i))))},R=(t,n)=>{var o,i;const r=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,a=to(n,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:m});return e.createElement(Kn,{role:"row",key:t.id,className:r},z.map((n=>function(t,n,o){if(n.hidden)return null;const i={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,i,o):e.createElement(Ln,Object.assign({},i))}(t,n,a))))},D=t=>{var n;const o=null==l?void 0:l.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},M(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>R(e,t.id)))))},O=e.createElement(Kn,{role:"row"},z.map((e=>Mn({column:e,sortState:h,onChangeSort:d})))),W=o.some((e=>!!e.renderFooter)),T=E.length>0&&!!t;return e.createElement(Qn,{borderMode:n},T&&e.createElement(An,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),e.createElement(Un,{ref:v},f&&e.createElement(eo,{tableCss:H,intersectionTargetRef:y,containerRef:v,cellWidths:I},O),e.createElement("div",{ref:y,style:{height:0}}),e.createElement(Gn,{css:H,ref:x,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!l;return t&&"nested"===b?c.map(D):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>R(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(M))})(),W&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Kn,{role:"row"},z.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(Ln,Object.assign({},n))}({column:t}))))))))};lo.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},lo.Cell=Ln,lo.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[l,r]=t(null),[a,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),m=o.map((e=>e.map((e=>c[e])))),u=(e,t)=>{const o=m[e].map((e=>e.id)),l=[...n];o.forEach((e=>{const n=l.findIndex((t=>t.id===e));n<0||(l[n]=Object.assign(Object.assign({},l[n]),{hidden:t}))})),i(l)};return e.createElement(e.Fragment,null,e.createElement($e,{ref:r,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(ae,{anchorElement:l,onShouldClose:()=>s(!1)},e.createElement(We,{style:{width:600}},e.createElement(Rt,{alignX:"stretch",spacing:"sm"},m.map(((t,n)=>e.createElement(Rt,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement($e,{variant:"flat",icon:e.createElement(Vn,null)}),e.createElement(Rt,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Rt,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement($e,{variant:"flat",icon:e.createElement(Pn,null),onClick:()=>u(n,!1),style:{color:D.colors.neutral.ink.lightest}}):e.createElement($e,{variant:"flat",icon:e.createElement(Zn,null),onClick:()=>u(n,!0)})))))))))},lo.SelectionCell=In,lo.SelectionHeader=Nn,lo.Header=Sn,lo.Truncate=_n,lo.NoWrap=Yn;const ro=u.dl.withConfig({displayName:"vui--List",componentId:"vui--1lcnd5n"})`margin:unset;& > * + *{margin-top:${D.sizes.base};}`,ao=u.div.withConfig({displayName:"vui--Item",componentId:"vui--t25k5o"})`& > * + *{margin-top:${D.sizes.xs};}`,so=u.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--j013c4"})`display:flex;justify-content:space-between;& > * + *{margin-left:${D.sizes.base};}`,co=u.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--12tjaz"})`text-align:right;& > * + *{margin-top:${D.sizes.xs};}`,mo=u.dt.withConfig({displayName:"vui--Term",componentId:"vui--zavj5i"})`font-family:${D.text.bodyBold.fontFamily};font-size:${D.text.bodyBold.fontSize};font-weight:${D.text.bodyBold.fontWeight};line-height:${D.text.bodyBold.lineHeight};color:${D.text.bodyBold.color};`,uo=u.dd.withConfig({displayName:"vui--Description",componentId:"vui--7wguee"})`margin-left:unset;font-family:${D.text.body.fontFamily};font-size:${D.text.body.fontSize};font-weight:${D.text.body.fontWeight};line-height:${D.text.body.lineHeight};color:${D.text.body.color};`,po=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(uo,{key:t},t))):e.createElement(uo,null,t);return e.createElement(ro,null,t.map((t=>n?e.createElement(so,{key:t.term},e.createElement(mo,null,t.term),e.createElement(co,null,o(t.description))):e.createElement(ao,{key:t.term},e.createElement(mo,null,t.term),o(t.description)))))},{sizes:go,colors:ho}=D,bo=u.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1tbr7pe"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${go.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${go.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,fo=u.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--qefy7h"})`width:100%;box-sizing:border-box;padding:${go.md};overflow-x:hidden;background-color:${ho.neutral.grey.lightest};`,vo=({renderHeader:n,children:o})=>{const[i,l]=t(!0);return e.createElement("main",null,n((()=>l(!i)),i),e.createElement(fo,null,e.createElement(bo,{showSidebar:i},o)))},xo=u.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 yo;!function(e){e.base="base",e.sm="sm"}(yo||(yo={}));const wo=u.label.withConfig({displayName:"vui--Label",componentId:"vui--u4z5d7"})`display:block;font-family:${D.text.inputLabel.fontFamily};font-size:${D.text.inputLabel.fontSize};font-weight:${D.text.inputLabel.fontWeight};line-height:${D.text.inputLabel.lineHeight};color:${D.text.inputLabel.color};`,Co=u.span.withConfig({displayName:"vui--Hint",componentId:"vui--dhtep4"})`display:block;font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`,Eo=u.span.withConfig({displayName:"vui--Error",componentId:"vui--1fu4njf"})`display:block;font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${D.sizes[2]} * -1);width:2px;background-color:${D.colors.secondary.red.base};}`,$o=u(Rt).withConfig({displayName:"vui--RootStack",componentId:"vui--1r762o2"})`position:relative;`,ko=u(gt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1wskrbx"})`display:block;&-hoverable{display:block;}`,So=t=>n=>{var{label:o,hint:l,error:r,tooltip:a}=n,s=J(n,["label","hint","error","tooltip"]);const d=i((()=>Q(t.name)),[]);return o?e.createElement($o,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(wo,{htmlFor:d},o),a&&e.createElement(ko,{text:a},e.createElement(Kt,{width:D.sizes.base,height:D.sizes.base,color:D.colors.neutral.ink.light}))),l&&e.createElement(Co,null,l)),e.createElement(t,Object.assign({id:d,hasError:!!r},s)),r&&e.createElement(Eo,null,r)):e.createElement(t,Object.assign({hasError:!!r},s))},No=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Lo=({hasError:e,inputSize:t})=>p`&{--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 "}`,Io=u.input.withConfig({displayName:"vui--Input",componentId:"vui--1o6oill"})`font-family:${D.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 `}} ${Lo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,zo=u.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;${Lo}`,Fo=/^-?[0-9]*\.?[0-9]+$/,jo=So(l(((t,n)=>{var{id:o,className:i,disabled:l=!1,hasError:r,max:s,min:d,multiline:c=!1,name:m,onChange:u,pattern:p,placeholder:g,rows:h="3",size:b=yo.base,step:f,type:v="text",value:x,spellCheck:y=!1}=t,w=J(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=a((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(Fo).test(t)&&u(t)}),[u,v]),E=null!=o?o:Q("textfield");return"text"===v&&c?e.createElement(zo,Object.assign({className:i,disabled:l,hasError:r,id:E,name:m,onChange:C,placeholder:g,rows:h,value:x,spellCheck:y,ref:n},w)):e.createElement(Io,Object.assign({className:i,disabled:l,hasError:r,id:E,inputSize:b,max:s,min:d,name:m,onChange:C,placeholder:g,step:f,type:v,value:x,spellCheck:y,ref:n},w))})));jo.displayName="TextField";const Bo=u($).withConfig({displayName:"vui--Container",componentId:"vui--31hvgq"})`display:flex;flex-direction:column;position:relative;`,Ho=u($).withConfig({displayName:"vui--Row",componentId:"vui--fkaqbt"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Mo=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--sglucf"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${D.colors.neutral.ink.lightest};}`,Ro=u($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--m1c7se"})`padding:0 6px;border-color:${D.colors.neutral.ink.lightest};`;u(A).withConfig({displayName:"vui--Label",componentId:"vui--1cuqy49"})``,u.span.withConfig({displayName:"vui--Error",componentId:"vui--1yz94gf"})`display:block;font-family:${D.text.error.fontFamily};font-size:${D.text.error.fontSize};font-weight:${D.text.error.fontWeight};line-height:${D.text.error.lineHeight};color:${D.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${D.sizes[2]} * -1);width:2px;background-color:${D.colors.secondary.red.base};}`,u.span.withConfig({displayName:"vui--Hint",componentId:"vui--d0gr40"})`display:block;font-family:${D.fontFamily};font-size:${D.sizes[3]};line-height:${D.sizes[4]};color:${D.colors.neutral.ink.light};`;const Do=So((t=>{var{size:n=yo.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:l,className:r,height:a,width:s,length:d,unit:c}=t,m=J(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Bo,{className:r},e.createElement(Ho,null,e.createElement(Mo,Object.assign({onChange:l,size:n,name:"length",type:"number",placeholder:"L",value:d},m)),e.createElement(Le,{height:D.sizes.base,width:D.sizes.base}),e.createElement(Mo,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s},m)),e.createElement(Le,{height:D.sizes.base,width:D.sizes.base}),e.createElement(xo,null,e.createElement(Mo,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a},m)),e.createElement(Ro,{size:n},c))))}));Do.displayName="DimensionsInput";const Oo=(e,t)=>{const n=r(null),i=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),l=a((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",l),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",i)}}),[l,i,e]),n},Wo=(e,n)=>{const[i,l]=t(e);return o((()=>{const t=setTimeout((()=>l(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function To(){const[e,n]=t(!1),o=a((()=>n(!e)),[e,n]),i=a((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:i}}const Ao=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Zo({children:n}){const[i,l]=t(!0);return o((()=>{function e(){l(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(l(!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 i(e){e.metaKey||e.altKey||e.ctrlKey||l(!0)}function r(){"hidden"===document.visibilityState&&(l(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",r,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",r,!0),o()}}),[l]),e.createElement(Ao.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function Po(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(Ao),l=e.useCallback((()=>{t||n(!0)}),[t]),r=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:l,onBlur:r})),[a,r,l])}const Vo=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},qo=e=>{const[n,i]=t(!1),[l,r]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!l,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;r(o-n-i<=0)}}},Xo=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[l,r]=t(i[o]);return[l,e=>{const t=i.find((t=>t.key===e));t&&r(t)}]},Yo=u($).withConfig({displayName:"vui--Container",componentId:"vui--ujckjn"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${N.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${H.base};height:${H.base};}`,Ko=u(A).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--oath0b"})`user-select:none;`,Uo=u(Ko).withConfig({displayName:"vui--GroupLabel",componentId:"vui--ln021"})`margin-right:4px;`,Go=u(Ne).withConfig({displayName:"vui--MainIcon",componentId:"vui--za0kgi"})`margin-left:4px;transform:rotate(${e=>e.shouldShow?"180deg":"0"});width:10px;height:10px;`,_o=u(Le).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--8epxko"})`margin-left:4px;height:10px;width:10px;`,Jo=u($).withConfig({displayName:"vui--Content",componentId:"vui--1wgdg8n"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Qo=u($).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 ${N.neutral.grey.base};svg{color:${({color:e})=>e};width:${H[5]};height:${H[5]};margin-right:10px;}`,ei=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ti=({className:t,e2eClassName:n,label:o,text:i,iconSlot:l,fill:r=N.secondary.blue.base,content:s,footer:d,onClickAway:c,onClick:m,shouldCloseOnClickAway:u=!0})=>{const p=ei(t),g=ei(n),{shouldShowDropdown:h,toggleShouldShowDropdown:b,closeDropdown:f}=To(),v=a((e=>{b(),c&&h&&c(e)}),[b,c,h]),x=a((e=>{c&&c(e,f),u&&f()}),[f,c,u]);return!s?e.createElement(Yo,{className:oe([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:m},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(A,null,i),e.createElement(_o,{className:oe([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:N.neutral.ink.base})):e.createElement(nt,{className:p.filterTagDropdown,shouldShowDropdown:h,onClickAway:x,cta:e.createElement(Yo,{className:p.container,onClick:v},o&&e.createElement(Uo,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(A,null,i),e.createElement(Go,{color:N.neutral.ink.base,name:"downArrow",shouldShow:h}))},e.createElement(Jo,null,e.createElement(Qo,{color:r},l,e.createElement(A,{variant:"bodyBold"},o)),s,d))},ni=u($).withConfig({displayName:"vui--Grid",componentId:"vui--kz0fa5"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?H[e]:0};`,oi=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),ii=u.div.withConfig({displayName:"vui--Container",componentId:"vui--zx358v"})``,li=u.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--b3uukr"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,ri=u.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--1x57v09"})`z-index:10;background-color:transparent;`,ai=u.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--7k8es9"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,si=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}),di=({src:n,alt:o="",className:i,e2eClassName:l,width:r,height:s,previewWidth:d,previewHeight:c,previewPlacement:m="right",previewEnabled:u=!1,placeholder:p,placeholderWidth:g,placeholderHeight:b,disablePlaceholder:f=!1})=>{const x=si(i),y=si(l),[w,C]=t(!1),[E,$]=t({isLoaded:!1,isError:!1}),[k,S]=e.useState(null),[N,L]=e.useState(null),{styles:I,attributes:z}=h(k,N,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=a((()=>u?C(!0):{}),[u]),j=a((()=>u?C(!1):{}),[u]),B=!E.isLoaded||E.isError;return e.createElement(ii,{className:oe([null==x?void 0:x.container,null==y?void 0:y.container,i])},e.createElement(li,{src:n,alt:o,className:oe([null==x?void 0:x.image,null==y?void 0:y.image]),width:r,height:s,onLoad:()=>$({isLoaded:!0,isError:!1}),onError:()=>$({isLoaded:!0,isError:!0}),previewEnabled:u,onMouseEnter:F,onMouseLeave:j,style:B?{display:"none"}:{},ref:S}),!f&&B&&(p||e.createElement(oi,{className:oe([null==x?void 0:x.placeholder,null==y?void 0:y.placeholder]),width:g||r,height:b||s})),w&&v(e.createElement(ri,Object.assign({ref:L,style:I.popper},z.popper,{className:oe([null==x?void 0:x.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(ai,{src:n,alt:"",width:d,height:c})),document.body))},ci={width:64,height:64},mi={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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({},ci)),title:"No data found"},ui={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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({},ci)),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 pi;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(pi||(pi={}));const{text:gi,sizes:hi}=D,{blue:bi}=D.colors.secondary,{grey:fi}=D.colors.neutral,{scrollbar:vi}=D.colors.system,xi='\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',yi=u.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--6b6999"})`display:flex;flex-direction:row;align-items:center;`,wi=u.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 ${fi.dark};border-bottom:1px solid ${fi.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: ${vi.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${vi.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 ${xi};\n\n ${o===pi.middle||o===pi.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 ${xi};\n\n ${o===pi.start||o===pi.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ci=u(wi).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--1uzcmg4"})`border:1px solid ${fi.dark};border-radius:4px;`,Ei=u.thead.withConfig({displayName:"vui--Head",componentId:"vui--tbv1ab"})`background-color:white;`,$i=u.tbody.withConfig({displayName:"vui--Body",componentId:"vui--1f7jdxq"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${fi.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;u.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--1ug6bgl"})`& td{background-color:${fi.lightest};padding:1.5rem 1rem;border-top:1px solid ${bi.base};}`;const ki=u.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 `}`,Si=u.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:${gi.bodySmall.fontFamily};font-size:${gi.bodySmall.fontSize};font-weight:${gi.bodySmall.fontWeight};color:${gi.bodySmall.color};line-height:${hi.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Ni=u(Si).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--1mc579o"})`user-select:none;border-bottom:1px solid ${fi.dark};font-family:${gi.bodySmallBold.fontFamily};font-size:${gi.bodySmallBold.fontSize};font-weight:${gi.bodySmallBold.fontWeight};color:${gi.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${fi.light};}`,Li={left:"flex-start",center:"center",right:"flex-end"},Ii=u.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--iko9ux"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Li[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,zi=u.table.withConfig({displayName:"vui--Table",componentId:"vui--1vjqk2m"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${$i}:nth-child(even) td {\n background-color: ${fi.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Ni}, & ${Ni} span {\n white-space: nowrap;\n }\n `}`,Fi=u.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--ob9m7j"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Si}{border-top:1px solid ${fi.dark};background-color:${fi.lightest};padding-top:${hi.base};padding-bottom:${hi.base};line-height:2rem;}`,ji=u.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--5eqa3f"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Bi=u(zi).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--48b34o"})``,Hi=u($).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;`,Mi=u($).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1khxo3q"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${D.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Ri=u(A).withConfig({displayName:"vui--TitleText",componentId:"vui--3cvjfj"})`margin-top:24px;`,Di=u(A).withConfig({displayName:"vui--SubTitleText",componentId:"vui--mw0wkw"})`margin-top:8px;`,Oi=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Hi,{height:t},e.createElement(Mi,null,n),e.createElement(Ri,{variant:"headingLarge"},o),i&&e.createElement(Di,{variant:"subheadingMedium"},i)),Wi=u.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:${D.sizes.base};border-radius:${D.radius.base};&:hover{cursor:pointer;background-color:${D.colors.secondary.blue.lightest};}`,Ti=u(Wi).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1qfw372"})`color:${D.text.link.color};text-decoration:${D.text.link.textDecoration};`,Ai=u.div.withConfig({displayName:"vui--Content",componentId:"vui--1fqu167"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Zi}=D.colors.neutral,Pi=u.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--q4n9vc"})`height:16px;width:100%;`,Vi=u.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, ${Zi.base} 8%, ${Zi.dark} 15%, ${Zi.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,qi=({isLoading:t,style:n})=>e.createElement(Pi,{style:n},e.createElement(Vi,{isLoading:t})),Xi=t=>{var{style:n}=t,o=J(t,["style"]);return e.createElement(Si,Object.assign({},o),e.createElement(qi,{style:n}))};Xi.defaultProps={style:{}};const Yi=({renderHeader:n,tableRef:i,wrapperRef:l,isFixedLayout:r,wrapperStyle:s})=>{var d;const[c,m]=t(null),{isSticky:u}=((e,n)=>{const[i,l]=t(!1),r=a((({top:e,bottom:t})=>{let o=i;o=e<=(n||0)&&t>0?!i||o:!i&&o,o!==i&&l(o)}),[i,n]);return o((()=>{const t=()=>{var t;e.current&&r(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[r,e]),{isSticky:i}})(i,parseInt("string"==typeof(null==s?void 0:s.top)?null==s?void 0:s.top:`${null==s?void 0:s.top}`,10)),p=((null===(d=l.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;C(l);const g=e=>{var t;const n=(null===(t=l.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),u?e.createElement(ji,{ref:e=>{m(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Bi,{style:{tableLayout:r?"fixed":"auto"}},n())):null},Ki=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")},Ui=t=>{var{style:n,width:o,isLoading:i}=t,l=J(t,["style","width","isLoading"]);return e.createElement(Ni,Object.assign({},l,{style:{width:o}}),e.createElement(qi,{style:n,isLoading:i}))},Gi=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),_i=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Ji=()=>e.createElement(bn,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),Qi=()=>e.createElement(Gi,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),el=()=>e.createElement(_i,{width:D.sizes.base,height:D.sizes.base,color:"lightgrey"}),tl=({borderless:n=!1,striped:l=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:m,renderRow:u,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:b,renderFooterLoadingRow:f,omitFooterSelectionCell:v=!1,selectedRowIds:x,disabledSelectionInputRowIds:y,selectionMode:w="multiple",onChangeSelectedRowIds:C,sortColumnId:E,sortDirection:$,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:L=5,isHeaderSticky:I=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:j=375,startFixedColumnsNumber:B,endFixedColumnsNumber:H})=>{const M=n?wi:Ci,R=!!m&&0===m.length,D=Boolean(B||H),O=!B&&!H,W=r(null),T=r(null),[A,Z]=t(pi.none);o((()=>{var e;let t=null;const n=()=>{if(!T.current||O)return;const e=T.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?Z(pi.none):0===n?Z(pi.start):n>0&&i<t?Z(pi.middle):i===t&&Z(pi.end)};return T.current&&(t=T.current,n(),null===(e=T.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[W,O]);const P=a((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),[]),V=a(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),q=a((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(B){x&&(e.push(V(1,n,"left")),n+=58);for(let t=0;t<B;t+=1){const o=P(c[t].width);o&&(e.push(V(x?t+2:t+1,n,"left")),n+=o)}}if(H)for(let e=0;e<H;e+=1){const n=P(c.slice(-e-1)[0].width);n&&(t.push(V(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,P,H,V,c,B,x]),X=i((()=>q()),[q]),Y=a(((e,t)=>{if(!x||!C)return;if(e)return"single"===w?void C([t.id]):void C([...x,t.id]);const n=[...x],o=n.findIndex((e=>e===t.id));n.splice(o,1),C(n)}),[C,x,w]),K=a((()=>{if(!x||!C)return;if(x.length===m.length)return void C([]);const e=m.map((e=>e.id));C(e)}),[C,m,x]),U=a((e=>{if(void 0===E||void 0===k)return;let t=E,n="ascending";"ascending"===$&&(n="descending"),e!==E&&(t=e,n="ascending"),k(t,n)}),[k,E,$]),G=a(((t,n)=>{let o="",i=()=>{},l=e.createElement(Ji,null);const{tooltip:r,align:a,icon:s,title:d,sortable:c,id:m}=t;c&&(o="sortable",i=()=>U(m),E===m&&(l="ascending"===$?e.createElement(Qi,null):e.createElement(el,null)));const u=e.createElement(Ii,{align:a},s&&s,d&&e.createElement("span",null,d),c&&l);return e.createElement(Ni,{key:m,id:`data-table-header-${m}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},r?e.createElement(gt,{text:r},e.createElement(yi,null,u)):u)}),[U,E,$]),_=a(((t,n)=>e.createElement(Ui,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=a((()=>{if(!c)return null;const t=q(),n=t?t[0].style:{};return e.createElement(Ei,null,e.createElement(ki,null,x&&e.createElement(Ni,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(en,{checked:m.length>0&&(null==x?void 0:x.length)===m.length||!1,onChange:K,disabled:y&&y.length>0||N||R,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=x?n+2:n+1,i=n-c.length,l=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||R)?_(e,e.skeletonStyle||{}):G(e,(null==l?void 0:l.style)||{})}))))}),[q,K,c,R,S,N,_,G,m.length,x,w,y]),Q=a(((t,n)=>{const o={checked:t,onChange:e=>Y(e,n),disabled:(null==y?void 0:y.includes(n.id))||!1};return"single"===w?e.createElement(nn,Object.assign({},o)):e.createElement(en,Object.assign({},o))}),[Y,w,y]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Xi,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Xi,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=a(((t,n)=>{var o,i;if(!p)return null;const l=p(t);if(!l)return null;const r=(null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row)||"";return e.createElement(ki,{key:t.id,className:`${r} ${n?"hidden":""}`},x&&e.createElement(Si,null),l)}),[p,x]),ne=a((t=>{if(!c)return e.createElement(Xi,null);const n=c.map((n=>e.createElement(Xi,{key:`${t}-${n.id}`})));return x&&n.unshift(ee(t)),n}),[c,ee,x]),oe=()=>b?N&&!f||!N&&R?null:e.createElement(Fi,{fixedColumnsStyle:Ki(X||[])},e.createElement(ki,null,x&&!v&&e.createElement(Si,null),!N&&b(m),N&&f&&f())):null;let ie=B;x&&ie&&(ie+=1);const le=i((()=>m.map((t=>{var n,o,i;const{data:l}=t,r=!!x&&x.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==l?void 0:l.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==l?void 0:l.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=r?`selected ${d}`:`${d}`;return e.createElement($i,{key:t.id,className:s,fixedColumnsStyle:Ki(X||[])},e.createElement(ki,{key:t.id,className:c,accentColor:t.accentColor},x&&e.createElement(Si,null,Q(r,t)),u(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[m,g,X,te,u,Q,x]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement($i,{key:`loading-row-${n}`,fixedColumnsStyle:Ki(X||[])},e.createElement(ki,null,h?e.createElement(e.Fragment,null,x&&ee(),h()):ne(n))));return e.createElement(M,{ref:T,scrollDisabled:!0,scrollPosition:A,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:H},I&&c&&e.createElement(Yi,{renderHeader:J,tableRef:W,wrapperRef:T,isFixedLayout:D,wrapperStyle:z}),e.createElement(zi,{ref:W,striped:l,noWrap:s,tableLoading:!0,isFixedLayout:D},J(),t,oe()))}if(R||S){let t=mi;return F?t=F:S&&(t=ui),e.createElement(M,{scrollDisabled:!0},e.createElement(zi,{ref:W,striped:l,noWrap:s,tableLoading:!1,isFixedLayout:D},J(),oe()),e.createElement(Oi,Object.assign({height:j},t)))}return e.createElement(M,{scrollDisabled:!1,ref:T,scrollPosition:A,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:H,showScrollbar:d},I&&c&&e.createElement(Yi,{renderHeader:J,tableRef:W,wrapperRef:T,isFixedLayout:D,wrapperStyle:z}),e.createElement(zi,{ref:W,striped:l,noWrap:s,tableLoading:!1,isFixedLayout:D},J(),le,oe()))};tl.Cell=Si,tl.ClickableCell=t=>{var{onClick:n,children:o}=t,i=J(t,["onClick","children"]);return e.createElement(Si,Object.assign({},i),e.createElement(Ti,{onClick:n},o))},tl.EditableCell=t=>{var{onClick:n,children:o}=t,i=J(t,["onClick","children"]);return e.createElement(Si,Object.assign({},i),e.createElement(Wi,{onClick:n},e.createElement(Ai,null,o)))},tl.SkeletonCell=Xi,tl.SkeletonContent=qi;const nl=u.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--wl2n5a"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,ol="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",il="Log in with Amazon",ll=n=>{const[o,i]=t(ol);return e.createElement(nl,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(ol)},"aria-label":il},n),e.createElement("img",{src:o,alt:il}))},rl=g`body{overflow:hidden;scrollbar-gutter:stable;}`,al=u.section.withConfig({displayName:"vui--MainSection",componentId:"vui--or7d"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${D.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${We.Footer} {\n box-shadow: 0px 10px 15px 0px ${D.colors.neutral.ink.dark};\n }\n `}`,sl=e=>!!e.footerSlot,dl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},cl={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},ml={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:ul}=D,pl=u(c.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:${D.sizes.sm};box-shadow:${D.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${We.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${dl[e]};`} ${al}{padding-bottom:${D.sizes.md};}${We.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${ul.mobile} + 1px))and (max-width: ${ul.tablet}){max-width:${({variant:e})=>cl[ul.tablet][e]};}@media (min-width: ${ul.tablet})and (max-width: ${ul.lgTablet}){max-width:${({variant:e})=>cl[ul.lgTablet][e]};}@media (min-width: ${ul.lgTablet})and (max-width: ${ul.desktop}){max-width:${({variant:e})=>cl[ul.desktop][e]};}@media (min-width: ${ul.desktop}){max-width:${({variant:e})=>cl[ul.lgDesktop][e]};}@media (max-width: ${({variant:e})=>ml[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${We.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${le(D.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,gl=e.forwardRef(((t,n)=>{var o=J(t,[]);return e.createElement(pl,Object.assign({ref:n},o))})),hl=n=>{const{shouldShow:i,showHeaderCloseButton:l=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=r(null),[p,g]=t(null);o((()=>{var e,t;i&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[i]);const{isOverflowing:h,onScroll:b}=qo(p),f=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(m,null,i&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(rl,null),e.createElement(gl,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(We.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Ie,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},l&&{onClickClose:f})),e.createElement(al,{onScroll:b,ref:g,isScrollable:h,fullBleed:a},c),sl(n)&&n.footerSlot,!sl(n)&&(n.leftActions||n.rightActions)&&e.createElement(We.Footer,null,e.createElement(Rt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Rt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=J(t,["label"]);return e.createElement($e,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Rt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=J(t,["label"]);return e.createElement($e,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:bl,text:fl,shadows:vl}=D,{grey:xl}=D.colors.neutral,yl=u.header.withConfig({displayName:"vui--Header",componentId:"vui--q2h2v8"})`padding:${bl.base} ${bl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&vl[e]};`,wl=u.h1.withConfig({displayName:"vui--Title",componentId:"vui--7ymyy4"})`font-family:${fl.headingXL.fontFamily};font-size:${fl.headingXL.fontSize};font-weight:${fl.headingXL.fontWeight};margin:unset;line-height:1;`,Cl=u.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1veavxl"})`margin:0.75rem 0 0;font-family:${fl.subheadingLarge.fontFamily};font-weight:${fl.subheadingLarge.fontWeight};font-size:${fl.subheadingLarge.fontSize};line-height:${fl.subheadingLarge.lineHeight};`,El=u.img.withConfig({displayName:"vui--Image",componentId:"vui--1fntac3"})`border-radius:${D.radius.base};border:${bl.line} solid ${xl.base};object-fit:cover;`,$l=u.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--4ms240"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,kl=u($e).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--1e4sfso"})`display:flex;align-items:center;font-family:${D.text.link.fontFamily};font-size:${D.text.link.fontSize};font-weight:${D.text.link.fontWeight};line-height:${D.text.link.lineHeight};color:${D.text.link.color};&:hover{text-decoration:${D.text.link.textDecoration};}& > * + *{margin-left:${D.sizes.xs};}`,Sl=u.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:${bl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Nl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),Ll=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:l,backAction:r,Accessory:a,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:m})=>{const u=i&&e.createElement(Ke,{buttonVariant:l?"default":"primary",title:"Actions",sections:i}),p=null==l?void 0:l.map((t=>e.createElement($e,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=r&&e.createElement($e,{onClick:r.onClick,icon:e.createElement(Nl,null),variant:"link"},r.title),h=m&&e.createElement(Rt,{direction:"horizontal",alignX:"end"},e.createElement(kl,{onClick:m},e.createElement("span",null,"Toggle sidebar"),e.createElement(It,{width:H.md})));return e.createElement(yl,{shadow:s},e.createElement(Rt,null,g,e.createElement(Sl,null,e.createElement(Rt,{direction:"horizontal",spacing:"md"},o&&e.createElement(El,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Rt,{alignX:"stretch"},e.createElement(wl,null,t),a,n&&e.createElement(Cl,null,n)))),e.createElement($l,null,e.createElement(Rt,{direction:"horizontal",alignX:"end",spacing:"sm"},p,u,d&&e.createElement($e,{icon:e.createElement(Nl,null),onClick:d}),c&&e.createElement($e,{icon:e.createElement(It,null),onClick:c})),h))))},Il=u(Rt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--1psd9g8"})`width:${D.sizes.lg};height:30px;background-color:${D.colors.neutral.grey.light};border:1px solid ${D.colors.neutral.grey.base};border-radius:${D.sizes.xs};`,zl=u($e).withConfig({displayName:"vui--PaginationButton",componentId:"vui--oolvks"})`color:${D.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Fl=u(jo).withConfig({displayName:"vui--PageInput",componentId:"vui--jjraff"})`&[type='number']{width:5.5ch;}`,jl=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(A,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Il,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(A,{variant:"bodySmall"},t))),Bl=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[l,r]=t(`${e}`);o((()=>{r(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(l||r(`${e}`),l===`${e}`)return;const t=parseInt(l,10);a(t)&&i(t)};return{pageInputValue:l,handleIncrement:()=>{a(e+1)&&i(e+1)},handleDecrement:()=>{a(e-1)&&i(e-1)},handleInputChange:e=>{e||r(e);const t=parseInt(e,10);var n;a(n=t)&&r(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Hl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Ml=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Rl=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:l})=>{const{pageInputValue:r,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:m}=Bl({currentPage:o,totalPagesCount:i,handleChangePage:l});return e.createElement(Rt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(zl,{onClick:()=>{1!==o&&l(1)},icon:e.createElement(Hl,null),size:"sm","aria-label":"go to first page"}),e.createElement(zl,{onClick:s,icon:e.createElement(Nl,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Fl,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:yo.sm,type:"number",value:r,min:"1",max:`${i}`,onChange:c,onBlur:m})),e.createElement(jl,{count:i}),e.createElement(zl,{onClick:a,icon:e.createElement(It,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(zl,{onClick:()=>{o!==i&&l(i)},icon:e.createElement(Ml,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Dl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Ol=u($).withConfig({displayName:"vui--Container",componentId:"vui--1t222e4"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Wl=u(nt).withConfig({displayName:"vui--Dropdown",componentId:"vui--6y6o6p"})`&-container{width:100%;}`,Tl=u.button.withConfig({displayName:"vui--Button",componentId:"vui--6l6anz"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${N.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Al=u($).withConfig({displayName:"vui--Container",componentId:"vui--33jbzi"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Zl=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--1oky5qu"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${N.secondary.blue.base};background:${N.neutral.grey.lightest};}`,Pl=({item:t,handleRangeListChange:n})=>{const o=a((()=>n(t)),[n,t]);return e.createElement(Al,{onClick:o},e.createElement(Zl,{variant:"bodySmall"},t.label))},Vl=t=>{const{handleRangeListChange:n,paginationRange:o=Dl}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(Pl,{item:t,handleRangeListChange:n})))))};class ql extends s{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Dl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Dl,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:l}=this.state;return e.createElement(Ol,{className:t},e.createElement(Wl,{cta:e.createElement(Tl,{onClick:this.toggleShouldShow},e.createElement(A,{variant:"bodySmall"},l.label),e.createElement(Ce,{color:D.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(Vl,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Xl=u.div.withConfig({displayName:"vui--Container",componentId:"vui--1kqph75"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Yl=u.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;}`,Kl=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(Xl,{size:i},e.createElement(Yl,{type:"button",onClick:t,disabled:o},e.createElement(G,{height:D.sizes.base,width:D.sizes.base,color:D.colors.neutral.ink.base})),e.createElement(Yl,{type:"button",onClick:n,disabled:o},e.createElement(Ne,{height:D.sizes.base,width:D.sizes.base,color:D.colors.neutral.ink.base}))),Ul=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--bdxre8"})`color:${D.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${D.colors.neutral.ink.lightest};}`,Gl=u($).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--1pz53n4"})`user-select:none;border:1px solid ${D.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?D.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,_l=u(A).withConfig({displayName:"vui--PrefixText",componentId:"vui--1n3xr2g"})`font-size:14px;`,Jl=u(xo).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 ${D.colors.secondary.red.light};\n\n > * {\n border-top-color: ${D.colors.secondary.red.base};\n border-bottom-color: ${D.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${D.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${D.colors.secondary.red.base};\n border-right-color: ${D.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${D.colors.secondary.red.base};\n border-bottom-color: ${D.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${D.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?D.colors.secondary.red.base:D.colors.secondary.blue.base};}}`;const Ql=So((t=>{var{className:n="",hasError:o,currency:i,disabled:l=!1,onChange:r,onPriceChange:a,priceValue:s,step:d="0.1",size:c=yo.base}=t,m=J(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(Jl,{className:n,hasError:o},e.createElement(Gl,{disabled:l,size:c},e.createElement(_l,{variant:"hintText"},i)),e.createElement(Ul,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>r(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void a("");const o=parseFloat(n.replace(",",".")).toFixed(2);a(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(r),"ArrowDown"===t&&p(r)},disabled:l,size:c},m)),e.createElement(Kl,{onIncrement:()=>u(),onDecrement:()=>p(),disabled:l,size:c}))}));Ql.displayName="PriceInput";const er=u(jo).withConfig({displayName:"vui--Input",componentId:"vui--1jvzatv"})`flex-grow:2;margin-top:0;margin-bottom:0;`,tr=u.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--12eib7v"})`position:absolute;`,nr=u($).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 & ${er} {\n ${t}\n }\n\n & ${tr} {\n ${n}\n }\n `}}`,or=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),ir=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:l,onFocus:r,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:m,placeholder:u="",className:p="",name:g,isLoading:h=!1,fill:b,reversed:f=!1,autoComplete:v="on",size:x="base"})=>{const y=c&&c.length>0;return e.createElement(nr,{className:p,iconPosition:f?"left":"right"},e.createElement(er,{size:x,type:t,value:c,onChange:i,onBlur:l,onFocus:r,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:u,name:g,disabled:n,error:m,autoComplete:v}),e.createElement(tr,null,h?e.createElement(me,{height:24,color:b||D.colors.secondary.blue.base}):y&&o?e.createElement($e,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text"},e.createElement(Le,{color:b||D.colors.neutral.ink.dark})):e.createElement($e,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search"},e.createElement(or,{color:b||D.colors.neutral.ink.dark,height:H.md,width:H.md}))))},lr=D.colors.neutral.grey.lightest,rr=D.colors.neutral.grey.dark,ar=D.colors.secondary.blue.dark,sr=u($).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--mxpi9o"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${lr};border-color:${rr};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${ar};border-color:${ar};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${D.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,dr=({options:t,selected:n,className:o,onChange:i})=>e.createElement(sr,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement($e,{variant:t.value===n?"primary":"default",key:t.key,onClick:()=>i(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),cr=u.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;}`,mr=So(l(((t,n)=>{var{className:o,options:i,value:l,onChange:r,size:s,disabled:d,hasError:c}=t,m=J(t,["className","options","value","onChange","size","disabled","hasError"]);const u=a((e=>{r&&r(e.currentTarget.value)}),[r]);return e.createElement(cr,Object.assign({className:o,sizeVariant:s,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:c,ref:n},m),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));mr.displayName="Select";const{blue:ur}=N.secondary,{grey:pr}=N.neutral,gr=u.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--1qepc31"})`background-color:white;`,hr=u.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--g9tnvb"})`&&& tr:hover td{background-color:${ur.lightest};}`,br=u.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--50l9ot"})``,fr=u.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:${R.bodySmall.fontFamily};font-size:${R.bodySmall.fontSize};font-weight:${R.bodySmall.fontWeight};color:${R.bodySmall.color};line-height:${H.base};& > *{vertical-align:middle;}`,vr=u(fr).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--k7q8ax"})`border-bottom:1px solid ${pr.dark};font-family:${R.bodySmallBold.fontFamily};font-size:${R.bodySmallBold.fontSize};font-weight:${R.bodySmallBold.fontWeight};color:${R.bodySmallBold.color};`,xr=u.table.withConfig({displayName:"vui--Table",componentId:"vui--25ejag"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${hr} tr:nth-child(even) td {\n background-color: ${pr.lightest};\n }\n `}`,yr=({striped:t=!0,className:n,children:o})=>e.createElement(xr,{striped:t,className:n},o);yr.Header=gr,yr.Body=hr,yr.Row=br,yr.HeaderCell=vr,yr.Cell=fr;const wr=u.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--s5qrf0"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Cr=u.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--pvw1wx"})`background:${D.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Er=u.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 ${D.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 ${D.colors.secondary.blue.light};}`,$r=u(Cr).withConfig({displayName:"vui--SliderRange",componentId:"vui--1vb0w08"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${D.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,kr=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}),Sr=({id:n,value:i,min:l,max:s,step:d=1,onChange:c,className:m,e2eClassName:u,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,b]=t(!1),[f,v]=t(-1),x=r(null),y=r(null),w=r(null),C=kr(m),E=kr(u),$=a((e=>{var t;if(!h||!x.current)return;const n=f>-1?i[f]:i,o=x.current.getBoundingClientRect();let r=100*(e.pageX-o.x)/o.width/100*(s-l)+l;const a=n-r;if(a>0&&(r=n+Math.ceil(r/d-n/d)*d),a<0&&(r=n+Math.floor(r/d-n/d)*d),n===r)return;r>s&&(r=s),r<l&&(r=l),Array.isArray(i)&&(0===f&&r>i[1]&&([,r]=i),1===f&&r<i[0]&&([r]=i));const m=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let u;r=Number(r.toFixed(m)),u=Array.isArray(i)?0===f?[r,i[1]]:[i[0],r]:r,c(u),Array.isArray(u)&&u[0]===u[1]&&(0===f&&v(1),1===f&&v(0))}),[f,h,s,l,c,d,i]),k=a((()=>{b(!1),g()}),[g]),S=a(((e,t)=>{b(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);o((()=>{const e=e=>S(e,Array.isArray(i)?0:1),t=e=>S(e,1),n=y.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",$),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",k)}}),[S,$,k,i]);const N=(t,n,o)=>{let i;return i=oe("number"==typeof o?0===o?[null==C?void 0:C.startSlider,null==E?void 0:E.startSlider]:[null==C?void 0:C.endSlider,null==E?void 0:E.endSlider]:[null==C?void 0:C.slider,null==E?void 0:E.slider]),e.createElement(Er,{role:"slider",ref:1===o?w:y,className:i,left:t,"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":n})},L=t=>{const n=100*(t[0]<l?0:t[0]-l)/(s-l),o=100*(t[1]>s?100:t[1]-l)/(s-l),i=o-n;return e.createElement(e.Fragment,null,e.createElement($r,{className:oe([null==C?void 0:C.sliderRange,null==E?void 0:E.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let I;return I=Array.isArray(i)?L(i):(e=>{if(Array.isArray(i))return L(i);let t;return t=i>s?100:i<l?0:100*(e-l)/(s-l),N(t,e)})(i),e.createElement(wr,{className:oe([null==C?void 0:C.container,null==E?void 0:E.container]),id:n,ref:x},e.createElement(Cr,null),I)},Nr=u($).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:N.neutral.ink.base};\n background-color: ${null!=e?e:N.neutral.grey.base};\n `}`,Lr=u(Rt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--qrqt2g"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Ir=u(Rt).withConfig({displayName:"vui--Toast",componentId:"vui--f5gjtj"})`background-color:${D.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${D.shadows.lg};border-radius:${D.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;}`,zr=u($).withConfig({displayName:"vui--IconWrap",componentId:"vui--n3gc7q"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${D.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${H.md};height:${H.md};}`,Fr=u(Rt).withConfig({displayName:"vui--ContentStack",componentId:"vui--12f8l37"})`flex-grow:1;`,jr=u(A).withConfig({displayName:"vui--StyledText",componentId:"vui--1qgwlso"})`color:white;font-size:16px;`,Br={info:{accentColor:N.brand.blue.base,icon:e.createElement(no,null)},success:{accentColor:N.secondary.green.base,icon:e.createElement(an,null)},error:{accentColor:N.secondary.red.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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:N.secondary.purple.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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)}},Hr=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Mr=({className:t,e2eClassName:n,type:o,iconSlot:i,text:l,last:r,minWidth:a,cta:s,onClose:d})=>{const c=Hr(t),m=Hr(n);return e.createElement(Ir,{className:oe([null==c?void 0:c.container,null==m?void 0:m.container]),direction:"horizontal",alignY:"center",minWidth:a,last:r},e.createElement(zr,{color:Br[o].accentColor,className:oe([c.icon,m.icon])},null!=i?i:Br[o].icon),e.createElement(Fr,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(jr,{variant:"body"},l),s),e.createElement($e,{variant:"flat",icon:e.createElement(Le,{color:"white"}),onClick:d,"aria-label":"Close"}))},Rr=({className:t,e2eClassName:n,toasts:i,minWidth:l="50vw",max:r=3,onClose:a})=>(o((()=>{r&&i.length>r&&a(i[0].key)}),[i,r,a]),v(e.createElement(Lr,{direction:"vertical",alignX:"center",spacing:4},e.createElement(y,{component:null},[...i].reverse().map(((o,r)=>e.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Mr,Object.assign({className:t,e2eClassName:n,minWidth:l,last:r===i.length-1,onClose:()=>a(o.key)},o))))))),document.body)),Dr=u.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?D.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Or=u.input.withConfig({displayName:"vui--Input",componentId:"vui--1f7rwsl"})`&:focus-visible + ${Dr}{box-shadow:0 0 0 4px ${D.colors.brand.blue.light};}&:checked + ${Dr}{background-color:#0079d1;}&:disabled + ${Dr}{background-color:${D.colors.neutral.grey.base};}&:checked:disabled + ${Dr}{background-color:${D.colors.secondary.blue.light};}`,Wr=u.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;}${Dr}: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"};}${Or}:checked + ${Dr}{&: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"});}}`,Tr=u($).withConfig({displayName:"vui--Wrapper",componentId:"vui--13u3unt"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Ar=l((({id:t,className:n,name:o,switched:i,small:l,onClick:r=(()=>{}),disabled:a,ariaLabel:s},d)=>e.createElement(Tr,{className:n,disabled:a},e.createElement(Wr,{small:l,disabled:a,role:"switch"},e.createElement(Or,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:a?void 0:r,disabled:a,ref:d}),e.createElement(Dr,{switched:i,disabled:a}))))),Zr=u.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:${D.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",i="24px",l="8px",r="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",l="4px",r="14px",a="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${a};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${l};\n font-size: ${r};\n\n background-color: ${s};\n border-color: ${d};\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;}`,Pr=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:l})=>e.createElement(Zr,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>l(!n)},t),Vr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",qr=u($).withConfig({displayName:"vui--Container",componentId:"vui--5gocp5"})`${Vr} display:${e=>e.shouldShow?"initial":"none"};z-index:${D.layers.modal};`,Xr=u($).withConfig({displayName:"vui--Shadow",componentId:"vui--p8qe4b"})`${Vr} background-color:rgba(55,66,77,0.5);`,Yr=u($).withConfig({displayName:"vui--Wrap",componentId:"vui--1u28do5"})`position:relative;height:100%;width:100%;z-index:1;`,Kr=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(ee,null,n):n),Ur=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(Kr,{usePortal:i},e.createElement(qr,{className:oe([`${t}-container`,t]),shouldShow:o},e.createElement(Xr,null),e.createElement(E,{isActive:o},e.createElement(Yr,{className:oe([`${t}-wrap`,t])},n)))),Gr=u.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--ohq9qo"})`display:flex;justify-content:center;align-items:center;height:100%;`,_r=u.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--55zou"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Jr=u($e).withConfig({displayName:"vui--ButtonSC",componentId:"vui--2rc7ks"})`position:absolute;top:0px;right:-45px;`,Qr=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const l=Oo(o,i);return e.createElement(Ur,{shouldShow:o,className:`${t}-video`},e.createElement(Gr,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(_r,{ref:l},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(Jr,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement(Le,{color:"white"})}))))};var ea;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(ea||(ea={}));const ta=u($).withConfig({displayName:"vui--Container",componentId:"vui--m1gs4v"})`padding:14px 24px;`,na=u(A).withConfig({displayName:"vui--CounterText",componentId:"vui--1ilv3bg"})`line-height:1;`,oa=u($).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 ${A} {\n color: ${null!=t?t:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,ia=u(A).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 & > ${na} {\n color: #fff;\n }\n `}`,la={style:{marginLeft:H.xs,padding:H.xs,height:H.base,width:H.base}},ra=u.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--122jw7g"})`display:flex;align-items:center;margin-right:${H.sm};svg{height:${H.base};width:${H.base};}`,aa=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.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"})),sa=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}),da=({id:t,iconSlot:n,name:o,type:i,className:l,colourPalette:r=N.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:m,onDelete:u,onEdit:p,e2eClassName:g})=>{const h=sa(l),b=sa(g),[f,v,x]=Vo(),y=a((()=>m(t)),[t,m]),w=a((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),C=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),E=i===ea.draft,$=i===ea.saved,k=c?N.neutral.ink.dark:N.neutral.ink.base;return e.createElement(ta,{className:`${oe([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:y},e.createElement(oa,{active:c,onMouseEnter:v,onMouseLeave:x,colourPalette:r,customTextColour:s},n&&e.createElement(ra,null,n),e.createElement(A,{variant:"bodyBold"},o),d&&e.createElement(ia,{active:c||f,colourPalette:r,customTextColour:s},e.createElement(na,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),E&&e.createElement(Le,Object.assign({},la,{color:k,className:null==b?void 0:b.delete,onClick:w})),$&&c&&e.createElement(aa,Object.assign({},la,{color:k,className:null==b?void 0:b.edit,onClick:C}))))},ca=u($).withConfig({displayName:"vui--Container",componentId:"vui--zood5u"})`display:flex;flex-direction:column;position:relative;`,ma=u($).withConfig({displayName:"vui--Row",componentId:"vui--f0y2wt"})`display:flex;flex-direction:row;`,ua=u(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1l16g0h"})`&&&{text-align:left;width:52px;}`,pa=u($e).withConfig({displayName:"vui--StyledButton",componentId:"vui--wvwega"})`padding:0 4px;border-color:${D.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${D.colors.secondary.red.base};\n `};`,ga=So((t=>{var{size:n=yo.base,hasError:o,className:i}=t,l=J(t,["size","hasError","className"]);return e.createElement(ca,{className:i},e.createElement(ma,null,"g"===l.weightUnit&&e.createElement(xo,null,e.createElement(ua,Object.assign({size:n,onChange:l.handleChangeGram,name:"gram",type:"number",value:l.gram,hasError:o},l)),e.createElement(pa,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(l)&&e.createElement(e.Fragment,null,e.createElement(xo,null,e.createElement(ua,Object.assign({size:n,onChange:l.handleChangePound,name:"ounce",type:"number",value:l.pound,hasError:o},l)),e.createElement(pa,{hasError:o,size:n},"lb")),e.createElement(xo,null,e.createElement(ua,Object.assign({size:n,onChange:l.handleChangeOunce,name:"pound",type:"number",value:l.ounce,hasError:o},l)),e.createElement(pa,{hasError:o,size:n},"oz")))))}));ga.displayName="WeightInput",ga.defaultProps={weightUnit:"lb"};export{_ as Accordion,Ke as ActionList,Ge as Anchor,nt as AnimatedDropdown,it as Avatar,ft as Badge,St as Banner,$ as BaseContainer,Ht as Breadcrumbs,$e as Button,We as Card,Ie as CardHeader,en as Checkbox,Ut as Choice,rn as ChoiceList,mn as CopyToClipboard,lo as DataTable,po as DescriptionList,vo as DetailPage,Do as DimensionsInput,ti as FilterTag,Zo as FocusVisibleManager,ni as Grid,di as Image,xo as InputGroup,tl as LegacyDataTable,me as Loader,ll as LoginWithAmazonButton,hl as Modal,Ll as PageHeader,Rl as Pagination,ql as PaginationRange,ae as Popover,Ur as Popup,ee as Portal,Ql as PriceInput,nn as Radio,ir as Search,dr as SegmentedControl,mr as Select,yr as SimpleTable,Sr as Slider,Rt as Stack,Kl as Stepper,Nr as Tag,A as Text,jo as TextField,Rr as ToastsLayout,Ar as Toggle,Pr as ToggleButton,gt as Tooltip,Qr as VideoModal,da as View,ga as WeightInput,oe as buildClassnames,Q as generateId,le as getOpaqueHexColor,ie as hexToRgb,D as theme,yn as useCellWidths,Oo as useClickOutside,wn as useColumns,Wo as useDebounce,Cn as useDragToScroll,To as useDropdown,Po as useFocusVisible,Vo as useHover,qo as useIsOverflowing,En as useNested,$n as useScrollPosition,Fn as useSelection,Xo as useTabs,No as withDeprecated,So as withLabels};
|
|
15
2
|
//# sourceMappingURL=index.esm.js.map
|