@veeqo/ui 5.5.2 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import e,{useState as t,PureComponent as n,useEffect as o,useMemo as i,forwardRef as r,useRef as l,useCallback as a,Component as s,Fragment as d,useImperativeHandle as c}from"react";import{motion as u,AnimatePresence as m}from"framer-motion";import p,{css as g,createGlobalStyle as h}from"styled-components";import{usePopper as b}from"react-popper";import f from"resize-observer-polyfill";import v,{createPortal as y}from"react-dom";import{CSSTransition as x,TransitionGroup as w}from"react-transition-group";import C from"lodash.throttle";import{useScroll as $}from"react-use";import E from"react-scrolllock-configurable";const k=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`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,B;!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"}(B||(B={}));const D=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}),j={[B.none]:"0",[B.line]:"1px",[B.xs]:D[1],[B.sm]:D[2],[B.base]:D[4],[B.md]:D[6],[B.lg]:D[8],[B.xl]:D[12],[B.xxl]:D[16]},M=Object.assign(Object.assign({},j),D),R={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},H={headingXXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:I.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:I.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},O=Object.assign(Object.assign({},R),{breakpoints:L,colors:I,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:F,sizes:M,text:H}),{text:T,colors:A,fontFamily:W}=O,P=p.span.attrs((({as:e,variant:t})=>({as:N(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${W};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:T[e].color;return`\n font-family: ${T[e].fontFamily};\n font-style: ${T[e].fontStyle};\n font-weight: ${T[e].fontWeight};\n font-size: ${T[e].fontSize};\n line-height: ${T[e].lineHeight};\n color: ${n};\n text-decoration: ${T[e].textDecoration};\n letter-spacing: ${T[e].letterSpacing};\n `}}`,V=p(k).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,Z=p(V).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${M.base};width:${M.base};color:${({glyphColor:e})=>e};}`,q=p(V).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,X=p.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${O.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${O.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${O.colors.secondary.blue.light};}`,K=p(k).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,G=p(P).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,_=p(u(k)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Y=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,U=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:M.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"})),J=({className:n,children:o,label:i,iconSlot:r,glyphColor:l=I.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d})=>{const[c,m]=t(!!d);return e.createElement(Y,{open:!!d,className:n},e.createElement(X,{onClick:()=>m(!c)},e.createElement(K,null,e.createElement(Z,{glyphColor:l},r,e.createElement(P,{variant:"body"},i)),e.createElement(q,null,e.createElement(u.span,{animate:{rotate:c?180:0}},e.createElement(U,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(G,{variant:"hintText"},s)),c&&e.createElement(_,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}},o))};function Q(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var 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 ee=e=>`${e}-${Math.floor(1e3*Math.random())}`;class te extends n{constructor(e){super(e),this.id=ee("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 ne=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,oe=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ie=e=>e.filter(Boolean).join(" "),re=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=re(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ae='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',se=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:i=!1})=>{o((()=>{if(!e||i)return;const t=e.querySelectorAll(ae);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,i]),o((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(ae);if(o.length<1)return void n();o[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",o),()=>null==t?void 0:t.removeEventListener("keydown",o)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():i||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(ae),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())})(t))}}},de=n=>{var{id:r,children:l,zIndex:a=O.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1}=n,h=Q(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[v,y]=t(null),{styles:x,attributes:w,update:C}=b(d,v,{placement:s}),$=i((()=>r||ee("popover")),[r]);(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",e),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:$});const E=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:k}=se({popperElement:v,anchorElement:d,onClose:E,disableFocusLock:p});return o((()=>{if(!C||!v)return;const e=new f(C);return e.observe(v),()=>e.disconnect()}),[C,v]),o((()=>{if(C)return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)}),[C]),e.createElement(te,{rootElementRef:c},!g&&e.createElement(oe,{onClick:E,zIndex:a}),e.createElement(ne,Object.assign({open:!0,zIndex:a,ref:y,style:Object.assign(Object.assign({},x.popper),m),onKeyDown:k},w.popper,h),l))},ce=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},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"}))))),ue=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"aria-label":r},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"}))),me=({width:t,height:n,className:o,color:i,label:r})=>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":r},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"}))),pe=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(ue,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(me,{className:t,height:n,width:o,color:i});default:return e.createElement(ce,{className:t,height:n,width:o,color:i})}},ge=p.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>M[e]};height:${({size:e})=>M[e]};}`,he=p.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${O.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",l="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",l="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${l};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,be=p(he).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${O.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?O.colors.neutral.ink.base:O.colors.secondary.blue.base};&:hover{background-color:${O.colors.neutral.grey.lightest};}&:active{background-color:${O.colors.neutral.grey.lightest};border-color:${O.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${O.colors.neutral.grey.base} !important;border-color:${O.colors.neutral.grey.base} !important;color:${O.colors.neutral.ink.light} !important;}`,fe=p(be).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${O.colors.secondary.red.base};&:hover{color:${O.colors.secondary.red.dark};}&:active{border-color:${O.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};color:${O.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}`,ve=p(be).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${O.colors.secondary.blue.base};border-color:${O.colors.secondary.blue.base};color:white;&:hover{background-color:${O.colors.secondary.blue.dark};border-color:${O.colors.secondary.blue.dark};}&:active{background-color:${O.colors.secondary.blue.dark};border-color:${O.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}`,ye=p(ve).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${O.colors.secondary.red.base};border-color:${O.colors.secondary.red.base};color:white;&:hover{background-color:${O.colors.secondary.red.dark};border-color:${O.colors.secondary.red.dark};}&:active{background-color:${O.colors.secondary.red.dark};border-color:${O.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.red.light};}`,xe=p(he).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${O.colors.neutral.ink.base};&:hover{background-color:${O.colors.neutral.grey.light};}&:active{background-color:${O.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${O.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,we=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,Ce=p(we).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${O.text.link.fontFamily};font-size:${O.text.link.fontSize};line-height:${O.text.link.fontSize};font-weight:${O.text.link.fontWeight};line-height:${O.text.link.lineHeight};text-decoration:${O.text.link.textDecoration};color:${O.colors.secondary.blue.base};&:hover{color:${O.colors.secondary.blue.dark};}& > * + *{margin-left:${O.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${O.colors.secondary.blue.light};border-radius:4px;}`,$e=p.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,Ee=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"})),ke={default:be,primary:ve,destructive:fe,primaryDestructive:ye,flat:xe,link:Ce,unstyled:we},Se=r(((t,n)=>{var{className:o,children:i,icon:r,variant:l="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=Q(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return e.createElement(we,Object.assign({ref:n,className:o},c),i);const u=ke[l],m=void 0!==i,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:a,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(ge,{$loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},r&&r,void 0!==i&&i,s&&e.createElement(Ee,null)),d&&e.createElement($e,null,e.createElement(pe,null)))})),Ne=p.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${M.md};padding-right:${M.md};padding-left:${M.md};margin-bottom:${M.md};& > * + *{margin-top:${M.xs};}`,Ie=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${M.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Le=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:M.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"})),ze=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"})),Fe=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:l,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(Ne,null,e.createElement(Ie,null,e.createElement(P,{id:t,variant:i},n),r&&e.createElement(Se,{variant:"link",onClick:r.onClick},r.title),l,s&&e.createElement(Se,{variant:"flat",icon:a?e.createElement(Le,null):e.createElement(U,null),onClick:s}),d&&e.createElement(Se,{variant:"flat",icon:e.createElement(ze,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(P,{variant:"subheadingSmall"},o)),{grey:Be}=I.neutral,De={0:"none",1:F.sm,2:F.base,3:F.md,4:F.lg},je={info:I.secondary.blue.base,success:I.secondary.green.base,error:I.secondary.red.base},Me=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${M.base};padding:${M.md};z-index:2;`,Re=p.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${M.md};padding-left:${M.md};margin-top:${M.md};margin-bottom:${M.md};font-family:${H.body.fontFamily};font-size:${H.body.fontSize};font-weight:${H.body.fontWeight};line-height:${H.body.lineHeight};color:${H.body.color};& + &{border-top:${M.line} solid ${Be.base};padding-top:${M.md};}`,He=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${M.md};margin-right:-${M.md};`,Oe=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Re}:first-child{margin-top:0;}`,Te=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${M.line} solid ${Be.base};box-shadow:${e=>void 0!==e.elevation?De[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: ${M.xs};\n background-color: ${je[e]};\n }\n `}`,Ae={expanded:{height:"auto"},collapsed:{height:0}},We=({className:n,style:o,title:i,subtitle:r,HeaderActionSlot:l,action:a,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(Fe,{title:i,subtitle:r,ActionSlot:l,action:a,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(Oe,{animate:f?"expanded":"collapsed",variants:Ae,transition:{duration:.3,ease:"easeOut"}},e.createElement(Re,null,u)),y=void 0!==p&&e.createElement(Me,null,p());return e.createElement(Te,{className:n,style:o,elevation:d,accent:c},b,v,y)};We.Surface=Te,We.Section=Re,We.FullBleed=He,We.Footer=Me;const{sizes:Pe,colors:Ve,text:Ze}=O,qe=p(We.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Pe.base} 0;display:flex;flex-direction:column;`,Xe=p.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Ve.neutral.grey.base};margin-top:${Pe.base};padding-top:${Pe.base};}`,Ke=p(P).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Pe.sm} ${Pe.base} ${Pe.sm};`,Ge=p(Se).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Pe.lg};padding:${Pe.xs} ${Pe.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:${Ve.neutral.grey.light};color:${Ve.secondary.blue.base};}& > * + *{margin-left:${Pe[3]};}`,_e={item:Ge,action:p(Ge).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Ve.secondary.blue.base};`,link:p(Ge).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Ve.secondary.blue.base};text-decoration:underline;`},Ye=({title:n,items:o=[],sections:i,buttonVariant:r,buttonSize:l})=>{const[a,s]=t(!1),[d,c]=t(null),u=t=>{const n=_e[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))},m=i?i.map((t=>e.createElement(Xe,{key:t.title},t.title&&e.createElement(Ke,null,t.title),t.items.map(u)))):o.map(u);return e.createElement(e.Fragment,null,e.createElement(Se,{dropdown:!0,variant:r,size:l,onClick:()=>s(!a),ref:c},n),a&&e.createElement(de,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(qe,null,m)))},Ue=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${O.text.link.fontFamily};font-style:${O.text.link.fontStyle};font-weight:${O.text.link.fontWeight};font-size:${O.text.link.fontSize};line-height:${O.text.link.lineHeight};color:${O.colors.secondary.blue.base};text-decoration:${O.text.link.textDecoration};&:hover{color:${O.colors.secondary.blue.dark};}`,Je=({children:t,className:n,text:o,href:i,target:r})=>e.createElement(Ue,{href:i,target:r,className:n},t||o),Qe=p(k).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,et=r(((t,n)=>{const{children:o,className:i,role:r}=t;return e.createElement(Qe,{className:i,ref:n,role:r},o)})),tt=p(k).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,nt=p(k).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,ot=p(et).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${O.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,it=({cta:t,shouldShowDropdown:n,children:i,className:r="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=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])})(g,(e=>{n&&s(e)})),e.createElement(tt,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!a&&t,e.createElement(nt,{className:`${r}-wrap ${r}`},e.createElement(x,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(ot,{role:"dialog",reversed:a,className:`${r}-basic-dropdown ${r}`},i))),a&&t)},rt=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${O.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:${O.text.bodySmallBold.fontFamily};font-weight:${O.text.bodySmallBold.fontWeight};font-size:${O.text.bodySmallBold.fontSize};line-height:${O.text.bodySmallBold.lineHeight};}`,lt=({width:t="40px",name:n="Veeqo",bgColor:o=O.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(rt,{width:t,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},at=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,st=p(at).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,dt=p(P).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${O.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,ct=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,ut=p.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,mt=p(at).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var pt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(pt||(pt={}));const gt={duration:400,side:pt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},ht=({content:n,text:o,hoverableElement:i,config:r,reversed:l,withTriangle:a,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},gt),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:f}=u,{styles:v,attributes:y}=b(i,d,{placement:`${p}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),x=Object.assign(Object.assign({},v.popper),{zIndex:O.layers.tooltip});return e.createElement(ut,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:x},y.popper,{role:"tooltip"}),e.createElement(mt,{className:s.wrap,tipMinWidth:h,tipMaxWidth:f},null!=n?n:e.createElement(dt,null,o)),a&&e.createElement(ct,{id:"veeqo-components-triangle",className:s.triangle}))},bt=({children:n,text:o,content:i,config:r,reversed:l=!1,className:a,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,b={container:a&&`${a} ${a}-container`,tip:a&&`${a}-tip`,wrap:a&&`${a}-wrap`,triangle:a&&`${a}-triangle`,hoverable:a&&`${a}-hoverable`},f=!(!i&&!h);if(!f)return n;const y=u&&f&&e.createElement(ht,{classNames:b,hoverableElement:p,config:r,reversed:l,withTriangle:s,text:o,content:i});return e.createElement(at,{className:b.container},c?v.createPortal(y,document.body):y,e.createElement(st,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},ft=p(k).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${H.bodySmall.fontFamily};font-weight:${H.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${M.base};height:${M.base};}`,vt={default:p(ft).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${I.secondary.blue.base};color:${I.secondary.blue.base};`,primary:p(ft).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};color:${I.secondary.blue.base};`,warning:p(ft).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${I.secondary.yellow.base};background-color:${I.secondary.yellow.lightest};color:${I.secondary.orange.dark};`},yt=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:l,children:a})=>{const s=vt[t];return e.createElement(bt,{text:i},e.createElement(s,{className:ie([r,l]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},xt=p(k).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,wt=p(k).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Ct=p(k).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,$t=p(Ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${M.md};height:${M.md};color:${({accentColor:e})=>e};}`,Et=p(k).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,kt=p(Ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,St=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Nt={help:I.secondary.blue.base,info:I.neutral.ink.base,error:I.secondary.red.base,success:I.secondary.green.base},It=t=>{var{type:n="info",text:o,icon:i,onClose:r,className:l,header:a,children:s,backgroundColor:d="white"}=t,c=Q(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Nt[n];return e.createElement(xt,Object.assign({accentColor:u,className:l,backgroundColor:d},c),e.createElement(wt,null,i&&e.createElement($t,{style:{marginRight:M.md},accentColor:u},i),s?e.createElement(Et,null,s):e.createElement(e.Fragment,null,e.createElement(kt,null,a||e.createElement(St,{variant:"headingSmall"},o)),e.createElement(Ct,null,r&&e.createElement(Se,{variant:"flat","aria-label":"Close",icon:e.createElement(ze,null),onClick:r})))))},Lt=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${H.body.fontFamily};font-weight:${H.body.fontWeight};font-size:${H.body.fontSize};line-height:${H.body.lineHeight};`,zt=p.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Ft=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"})),Bt=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(zt,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(zt,{className:"breadcrumb"},n,t),Dt=()=>e.createElement(Ft,{className:"separator",width:M.base,height:M.base}),jt=({children:t,href:n})=>e.createElement("a",{href:n},t),Mt=({children:t})=>e.createElement("span",null,t),Rt=({items:t,Separator:n=e.createElement(Dt,null),LinkComponent:o=jt})=>e.createElement(Lt,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(Bt,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:Mt},t.length!==r+1&&n))));var Ht;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ht||(Ht={}));const Ot=p.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let r,l,a,s,d="",c="";return"vertical"===t?(r=n&&Ht[n],l=o&&Ht[o],d=O.sizes[i],a="column"):(r=o&&Ht[o],l=n&&Ht[n],c=O.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${l};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Ot.displayName="Stack";const Tt={top:"flex-start",center:"center"},At=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${O.sizes.base};}`,Wt=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Tt[e.align]};width:24px;height:24px;`,Pt=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Vt=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${O.sizes.sm};}`,Zt=p.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${O.text.body.fontFamily};font-size:${O.text.body.fontSize};font-weight:${O.text.body.fontWeight};line-height:${O.sizes.md};color:${O.text.body.color};`,qt=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`,Xt=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};`,Kt=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Gt=p(Kt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${O.colors.neutral.grey.dark};border-radius:${O.radius.md};padding:${O.sizes.base} 0.75rem;&:hover{border-color:${O.colors.secondary.blue.base};}& ${Zt}{font-weight:${O.text.bodyBold.fontWeight};}`,_t=p(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Yt=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:r,bordered:l,Badge:a,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(At,null,e.createElement(Wt,{align:s?"center":"top"},c),s&&e.createElement(Pt,null,s),n||o||r||a||d?e.createElement(Vt,null,e.createElement(Ot,{direction:"horizontal",alignY:"center",spacing:"sm"},a,n&&e.createElement(Zt,null,n),i&&e.createElement(_t,{text:i},e.createElement(Yt,{name:"help",width:O.sizes.base,color:O.colors.neutral.ink.lightest}))),o&&e.createElement(qt,null,o),r&&e.createElement(Xt,null,r),d):null);return l?e.createElement(Gt,{disabled:u,htmlFor:t},m):e.createElement(Kt,{disabled:u,htmlFor:t},m)},{colors:Jt,sizes:Qt,radius:en}=O,tn=p.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Jt.neutral.ink.lightest};border-radius:${en.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Jt.secondary.blue.base};border-color:${Jt.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:${Qt[4]};background-position:center;}&:hover{border-color:${Jt.secondary.blue.base};}&:active{border-color:${Jt.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Jt.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Jt.secondary.blue.base};border-color:${Jt.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:${Qt[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Jt.neutral.grey.base};border-color:${Jt.neutral.grey.base};color:${Jt.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>");}`,nn=t=>{var{checked:n,indeterminate:r,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=Q(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=i((()=>ee("checkbox")),[]),b=l(null),f=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{b.current&&(b.current.indeterminate=!0===r)}),[r]),e.createElement(Ut,Object.assign({id:h,disabled:c},g),e.createElement(tn,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,className:m,onChange:f}))},on=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,rn=r(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d}=t,c=Q(t,["checked","value","name","disabled","onChange","id"]);const u=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),m=null!=d?d:ee("radio");return e.createElement(Ut,Object.assign({id:m,disabled:l},c),e.createElement(on,{id:m,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:u,ref:n}))})),ln=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,an=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${O.text.inputLabel.fontFamily};font-size:${O.text.inputLabel.fontSize};font-style:${O.text.inputLabel.fontStyle};font-weight:${O.text.inputLabel.fontWeight};line-height:${O.text.inputLabel.lineHeight};text-decoration:${O.text.inputLabel.textDecoration};color:${O.text.inputLabel.color};`;class sn 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:r,bordered:l}=this.props,a=t?nn:rn;return e.createElement(ln,{disabled:r},i&&e.createElement(an,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:l,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const dn=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"})),cn=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"})),un={width:M.base,height:M.base},mn=p(Se).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${M.base};width:${M.base};top:unset;}`,pn=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),l=a((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(bt,{text:i?"Copied!":"Copy to clipboard"},e.createElement(mn,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(dn,Object.assign({color:I.secondary.green.base},un)):e.createElement(cn,Object.assign({color:I.secondary.blue.base},un)),onClick:l}))};function gn(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function hn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${hn(e.min,"max-content")}, ${hn(e.max)})`;default:return t||"1fr"}}function bn({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){const l=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,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${O.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${O.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${O.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${O.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>hn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?l:""}\n ${t.length>0?a:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var fn;!function(e){e.ascending="ascending",e.descending="descending"}(fn||(fn={}));const vn=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"})),yn=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"})),xn=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"})),wn=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===fn.ascending?e.createElement(yn,{color:O.colors.neutral.ink.dark,size:o}):e.createElement(xn,{color:O.colors.neutral.ink.dark,size:o}):e.createElement(vn,{size:o});function Cn(e,n){const[i,r]=t([]),l=()=>{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((()=>{l()}),[e.current]),o((()=>{if(!n.current)return;const e=C(l,50),t=new f(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function $n(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 En(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"))},l=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",l),()=>null==n?void 0:n.removeEventListener("mousedown",l)}),[e.current])}function kn(){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 Sn(e){const[n,i]=t("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=C(r,50),n=new f(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Nn="56px",In=p.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Nn};display:flex;align-items:center;justify-content:${({align:e="left"})=>gn(e)};background-color:white;padding-left:${({spacing:e=3})=>O.sizes[e]};padding-right:${({spacing:e=3})=>O.sizes[e]};border-bottom:1px solid ${O.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Ln(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,l=Q(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(In,Object.assign({},l)):e.createElement(In,Object.assign({},l),e.createElement(nn,{checked:n,indeterminate:o,onChange:i}))}const zn=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>gn(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>O.sizes[e]};padding-right:${({spacing:e=3})=>O.sizes[e]};color:${O.text.bodySmall.color};font-family:${O.text.bodySmall.fontFamily};font-size:${O.text.bodySmall.fontSize};font-style:${O.text.bodySmall.fontStyle};font-weight:${O.text.bodySmall.fontWeight};line-height:${O.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${O.colors.secondary.blue.base};background-color:${O.colors.neutral.grey.lightest};}`;function Fn(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:l}=t,a=Q(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(zn,Object.assign({},a),e.createElement(rn,{value:o,checked:n,disabled:l,onChange:i})):e.createElement(zn,Object.assign({},a),e.createElement(nn,{value:o,checked:n,disabled:l,onChange:i}))}const Bn=[[],()=>{}];function Dn({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,l]=n||Bn,a=()=>{r.length!==o.length?l(o):l([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(Ln,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(Fn,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)l([n]);else if(e){if(r.includes(n))return;const e=[...r,n];l(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),l(t)}}}}const jn=p.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${O.colors.neutral.ink.lightest};`,Mn=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${O.text.headingTable.color};font-family:${O.text.headingTable.fontFamily};font-size:${O.text.headingTable.fontSize};font-style:${O.text.headingTable.fontStyle};font-weight:${O.text.headingTable.fontWeight};line-height:${O.text.headingTable.lineHeight};`,Rn=p(Mn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${jn}{background-color:${O.colors.neutral.grey.light};color:${O.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${O.colors.secondary.blue.light};}`;function Hn({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 r=t.sortable?Rn:Mn,l=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===fn.ascending;let i=fn.ascending;return n&&o&&(i=fn.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(In,Object.assign({},i),e.createElement(bt,{text:t.tooltip},e.createElement(r,Object.assign({},l),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(jn,null,e.createElement(wn,{sortState:n,columnId:t.id,size:5})))))}const On=O.colors.neutral.grey.base,Tn=O.colors.neutral.grey.dark,An=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${O.radius.base};background:${On};background-image:linear-gradient(\n to right,\n ${On} 0%,\n ${Tn} 20%,\n ${On} 40%,\n ${On} 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=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${Nn};background-color:white;`,Pn=p.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${O.colors.neutral.grey.base};& > *{flex:1;}`;function Vn({selectionColumn:n,intersectionTargetRef:i,containerRef:r,children:l}){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=r.current)||void 0===a?void 0:a.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(Wn,{style:m},Hn({column:n}),e.createElement(Pn,null,l))}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"})),qn=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"})),Xn=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 Kn=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${O.sizes.lg};padding-bottom:${O.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${O.sizes.md};`,Gn=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${O.sizes.md};background-color:${O.colors.neutral.grey.light};border-radius:${O.radius.full};`,_n=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Yn=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${O.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=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Jn=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${O.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Qn=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,eo={full:`border-width: 1px; border-radius: ${O.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},to=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${O.colors.neutral.grey.dark};${({borderMode:e="full"})=>eo[e]} &,& *{box-sizing:border-box;}`;function no({children:n,intersectionTargetRef:i,containerRef:r,cellWidths:a,tableCss:s}){const d=l(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),g=()=>{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};p(n)},h=()=>{var e;if(!r.current)return;const t=r.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=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=C(g,33),t=new f(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),o((()=>{h()}),[c]),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]),!c)return null;const b=Object.assign(Object.assign({},m),{height:Nn,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${O.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:b,ref:d},e.createElement(Jn,{css:v},e.createElement("thead",null,n)))}const oo=(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}),io=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"})),ro={icon:e.createElement(io,{width:48,height:48}),heading:"No results"},lo=()=>{},ao=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=ro,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f})=>{const v=l(null),y=l(null),x=l(null);En(v);const w=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:C,selectedRowIds:$,selectionColumn:E,setSelected:k}=Dn({selectionMode:m,selectionState:p,enabledRowIds:w}),S={setSelected:k||lo,setExpanded:g||lo},N=[E,...o],I=C?N:o,L=Cn(y,v),{visible:z,pinnedLeft:F,pinnedRight:B}=$n(I),{scrollPosition:D}=Sn(v),j=bn({pinnedLeft:F,pinnedRight:B,cellWidths:L,scrollPosition:D,visible:z,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(to,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Jn,{css:j,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Yn,{role:"row"},z.map((e=>Hn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Yn,{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(zn,Object.assign({},o),e.createElement(An,null))}(t,n))))))))))}if(0===c.length)return e.createElement(to,{borderMode:n},e.createElement(Un,{ref:v},e.createElement(Jn,{css:j,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Yn,{role:"row"},z.map((e=>Hn({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Kn,{columnCount:z.length},e.createElement(Gn,null,i.icon),e.createElement(Ot,{spacing:"sm",alignX:"center"},e.createElement(P,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(P,{variant:"subheadingMedium"},i.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:o}=t,i=oo(t.id,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Yn,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 l=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=oo(n,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Yn,{role:"row",key:t.id,className:l},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(zn,Object.assign({},i))}(t,n,a))))},H=t=>{var n;const o=null==r?void 0:r.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(Yn,{role:"row"},z.map((e=>Hn({column:e,sortState:h,onChangeSort:d})))),T=o.some((e=>!!e.renderFooter)),A=$.length>0&&!!t;return e.createElement(to,{borderMode:n},A&&e.createElement(Vn,{selectionColumn:E,intersectionTargetRef:x,containerRef:v},t),e.createElement(Un,{ref:v},f&&e.createElement(no,{tableCss:j,intersectionTargetRef:x,containerRef:v,cellWidths:L},O),e.createElement("div",{ref:x,style:{height:0}}),e.createElement(Jn,{css:j,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!r;return t&&"nested"===b?c.map(H):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==r?void 0:r.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))})(),T&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Yn,{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(zn,Object.assign({},n))}({column:t}))))))))};ao.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},ao.Cell=zn,ao.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,l]=t(null),[a,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=o.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const o=u[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),i(r)};return e.createElement(e.Fragment,null,e.createElement(Se,{ref:l,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(de,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(We,{style:{width:600}},e.createElement(Ot,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(Ot,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Se,{variant:"flat",icon:e.createElement(Xn,null)}),e.createElement(Ot,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Ot,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Se,{variant:"flat",icon:e.createElement(qn,null),onClick:()=>m(n,!1),style:{color:O.colors.neutral.ink.lightest}}):e.createElement(Se,{variant:"flat",icon:e.createElement(Zn,null),onClick:()=>m(n,!0)})))))))))},ao.SelectionCell=Fn,ao.SelectionHeader=Ln,ao.Header=In,ao.Truncate=Qn,ao.NoWrap=_n;const so=p.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${O.sizes.base};}`,co=p.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${O.sizes.xs};}`,uo=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${O.sizes.base};}`,mo=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${O.sizes.xs};}`,po=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${O.text.bodyBold.fontFamily};font-size:${O.text.bodyBold.fontSize};font-weight:${O.text.bodyBold.fontWeight};line-height:${O.text.bodyBold.lineHeight};color:${O.text.bodyBold.color};`,go=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${O.text.body.fontFamily};font-size:${O.text.body.fontSize};font-weight:${O.text.body.fontWeight};line-height:${O.text.body.lineHeight};color:${O.text.body.color};`,ho=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(go,{key:t},t))):e.createElement(go,null,t);return e.createElement(so,null,t.map((t=>n?e.createElement(uo,{key:t.term},e.createElement(po,null,t.term),e.createElement(mo,null,o(t.description))):e.createElement(co,{key:t.term},e.createElement(po,null,t.term),o(t.description)))))},{sizes:bo,colors:fo}=O,vo=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${bo.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${bo.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,yo=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${bo.md};overflow-x:hidden;background-color:${fo.neutral.grey.lightest};`,xo=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(yo,null,e.createElement(vo,{showSidebar:i},o)))},wo=p.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var Co;!function(e){e.base="base",e.sm="sm"}(Co||(Co={}));const $o=p.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${O.text.inputLabel.fontFamily};font-size:${O.text.inputLabel.fontSize};font-weight:${O.text.inputLabel.fontWeight};line-height:${O.text.inputLabel.lineHeight};color:${O.text.inputLabel.color};`,Eo=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`,ko=p.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${O.sizes[2]} * -1);width:2px;background-color:${O.colors.secondary.red.base};}`,So=p(Ot).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,No=p(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,Io=t=>n=>{var{label:o,hint:r,error:l,tooltip:a}=n,s=Q(n,["label","hint","error","tooltip"]);const d=i((()=>ee(t.name)),[]);return o?e.createElement(So,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Ot,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement($o,{htmlFor:d},o),a&&e.createElement(No,{text:a},e.createElement(Yt,{width:O.sizes.base,height:O.sizes.base,color:O.colors.neutral.ink.light}))),r&&e.createElement(Eo,null,r)),e.createElement(t,Object.assign({id:d,hasError:!!l},s)),l&&e.createElement(ko,null,l)):e.createElement(t,Object.assign({hasError:!!l},s))},Lo=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),zo=({hasError:e,inputSize:t})=>g`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,Fo=p.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${O.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 `}} ${zo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Bo=p.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${zo}`,Do=/^-?[0-9]*\.?[0-9]+$/,jo=Io(r(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,max:s,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:b=Co.base,step:f,type:v="text",value:y,spellCheck:x=!1}=t,w=Q(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=a((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(Do).test(t)&&m(t)}),[m,v]),$=null!=o?o:ee("textfield");return"text"===v&&c?e.createElement(Bo,Object.assign({className:i,disabled:r,hasError:l,id:$,name:u,onChange:C,placeholder:g,rows:h,value:y,spellCheck:x,ref:n},w)):e.createElement(Fo,Object.assign({className:i,disabled:r,hasError:l,id:$,inputSize:b,max:s,min:d,name:u,"aria-label":u,onChange:C,placeholder:g,step:f,type:v,value:y,spellCheck:x,ref:n},w))})));jo.displayName="TextField";const Mo=p(k).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Ro=p(k).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Ho=p(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${O.colors.neutral.ink.lightest};}`,Oo=p(Se).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${O.colors.neutral.ink.lightest};`;p(P).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${O.text.error.fontFamily};font-size:${O.text.error.fontSize};font-weight:${O.text.error.fontWeight};line-height:${O.text.error.lineHeight};color:${O.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${O.sizes[2]} * -1);width:2px;background-color:${O.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${O.fontFamily};font-size:${O.sizes[3]};line-height:${O.sizes[4]};color:${O.colors.neutral.ink.light};`;const To=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Ao=["-","+","E","e"],Wo=e=>To(e,Ao),Po=Io((t=>{var{size:n=Co.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:l,height:a,width:s,length:d,unit:c}=t,u=Q(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Mo,{className:l},e.createElement(Ro,null,e.createElement(Ho,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Wo},u)),e.createElement(ze,{height:O.sizes.base,width:O.sizes.base}),e.createElement(Ho,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Wo},u)),e.createElement(ze,{height:O.sizes.base,width:O.sizes.base}),e.createElement(wo,null,e.createElement(Ho,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a,min:"0",step:"any",onKeyDown:Wo},u)),e.createElement(Oo,{size:n},c))))}));Po.displayName="DimensionsInput";const Vo=(e,t)=>{const n=l(null),i=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=a((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},Zo=(e,n)=>{const[i,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function qo(){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 Xo=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Ko({children:n}){const[i,r]=t(!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 l(){"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",l,!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",l,!0),o()}}),[r]),e.createElement(Xo.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function Go(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(Xo),r=e.useCallback((()=>{t||n(!0)}),[t]),l=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:r,onBlur:l})),[a,l,r])}const _o=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},Yo=e=>{const[n,i]=t(!1),[r,l]=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&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;l(o-n-i<=0)}}},Uo=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,l]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&l(t)}]},Jo=p(k).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`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:${M.base};height:${M.base};}`,Qo=p(P).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,ei=p(Qo).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,ti=p(Le).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,ni=p(ze).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,oi=p(k).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,ii=p(k).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${I.neutral.grey.base};svg{color:${({color:e})=>e};width:${M[5]};height:${M[5]};margin-right:10px;}`,ri=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),li=({className:t,e2eClassName:n,label:o,text:i,iconSlot:r,fill:l=I.secondary.blue.base,content:s,footer:d,header:c,onClickAway:u,onClick:m,shouldCloseOnClickAway:p=!0})=>{const g=ri(t),h=ri(n),{shouldShowDropdown:b,toggleShouldShowDropdown:f,closeDropdown:v}=qo(),y=a((e=>{f(),u&&b&&u(e)}),[f,u,b]),x=a((e=>{u&&u(e,v),p&&v()}),[v,u,p]);return!s?e.createElement(Jo,{className:ie([null==g?void 0:g.container,null==h?void 0:h.container]),onClick:m},o&&e.createElement(ei,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(P,null,i),e.createElement(ni,{className:ie([null==g?void 0:g.cross,null==h?void 0:h.cross]),name:"cross",size:"base",color:I.neutral.ink.base})):e.createElement(it,{className:g.filterTagDropdown,shouldShowDropdown:b,onClickAway:x,cta:e.createElement(Jo,{className:g.container,onClick:y},o&&e.createElement(ei,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(P,null,i),e.createElement(ti,{color:I.neutral.ink.base,name:"downArrow",$shouldShow:b}))},e.createElement(oi,null,e.createElement(ii,{color:l},c||e.createElement(e.Fragment,null,r,e.createElement(P,{variant:"bodyBold"},o))),s,d))},ai=p(k).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?M[e]:0};`,si=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"})),di=p.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,ci=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,ui=p.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,mi=p.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,pi=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}),gi=({src:n,alt:o="",className:i,e2eClassName:r,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:f=!1})=>{const v=pi(i),x=pi(r),[w,C]=t(!1),[$,E]=t({isLoaded:!1,isError:!1}),[k,S]=e.useState(null),[N,I]=e.useState(null),{styles:L,attributes:z}=b(k,N,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=a((()=>m?C(!0):{}),[m]),B=a((()=>m?C(!1):{}),[m]),D=!$.isLoaded||$.isError;return e.createElement(di,{className:ie([null==v?void 0:v.container,null==x?void 0:x.container,i])},e.createElement(ci,{src:n,alt:o,className:ie([null==v?void 0:v.image,null==x?void 0:x.image]),width:l,height:s,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:F,onMouseLeave:B,style:D?{display:"none"}:{},ref:S}),!f&&D&&(p||e.createElement(si,{className:ie([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||l,height:h||s})),w&&y(e.createElement(ui,Object.assign({ref:I,style:L.popper},z.popper,{className:ie([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),e.createElement(mi,{src:n,alt:"",width:d,height:c})),document.body))},hi={width:64,height:64},bi={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({},hi)),title:"No data found"},fi={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({},hi)),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 vi;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(vi||(vi={}));const{text:yi,sizes:xi}=O,{blue:wi}=O.colors.secondary,{grey:Ci}=O.colors.neutral,{scrollbar:$i}=O.colors.system,Ei='\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',ki=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Si=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Ci.dark};border-bottom:1px solid ${Ci.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: ${$i.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${$i.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 ${Ei};\n\n ${o===vi.middle||o===vi.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 ${Ei};\n\n ${o===vi.start||o===vi.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ni=p(Si).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Ci.dark};border-radius:4px;`,Ii=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Li=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Ci.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;p.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Ci.lightest};padding:1.5rem 1rem;border-top:1px solid ${wi.base};}`;const zi=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Fi=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${yi.bodySmall.fontFamily};font-size:${yi.bodySmall.fontSize};font-weight:${yi.bodySmall.fontWeight};color:${yi.bodySmall.color};line-height:${xi.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Bi=p(Fi).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Ci.dark};font-family:${yi.bodySmallBold.fontFamily};font-size:${yi.bodySmallBold.fontSize};font-weight:${yi.bodySmallBold.fontWeight};color:${yi.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Ci.light};}`,Di={left:"flex-start",center:"center",right:"flex-end"},ji=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Di[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Mi=p.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Li}:nth-child(even) td {\n background-color: ${Ci.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Bi}, & ${Bi} span {\n white-space: nowrap;\n }\n `}`,Ri=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Fi}{border-top:1px solid ${Ci.dark};background-color:${Ci.lightest};padding-top:${xi.base};padding-bottom:${xi.base};line-height:2rem;}`,Hi=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Oi=p(Mi).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Ti=p(k).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Ai=p(k).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${O.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Wi=p(P).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Pi=p(P).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Vi=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Ti,{height:t},e.createElement(Ai,null,n),e.createElement(Wi,{variant:"headingLarge"},o),i&&e.createElement(Pi,{variant:"subheadingMedium"},i)),Zi=p.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${O.sizes.base};border-radius:${O.radius.base};&:hover{cursor:pointer;background-color:${O.colors.secondary.blue.lightest};}`,qi=p(Zi).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${O.text.link.color};text-decoration:${O.text.link.textDecoration};`,Xi=p.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Ki}=O.colors.neutral,Gi=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,_i=p.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${Ki.base} 8%, ${Ki.dark} 15%, ${Ki.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Yi=({isLoading:t,style:n})=>e.createElement(Gi,{style:n},e.createElement(_i,{isLoading:t})),Ui=t=>{var{style:n}=t,o=Q(t,["style"]);return e.createElement(Fi,Object.assign({},o),e.createElement(Yi,{style:n}))};Ui.defaultProps={style:{}};const Ji=({renderHeader:n,tableRef:i,wrapperRef:r,isFixedLayout:l,wrapperStyle:s})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[i,r]=t(!1),l=a((({top:e,bottom:t})=>{let o=i;o=e<=(n||0)&&t>0?!i||o:!i&&o,o!==i&&r(o)}),[i,n]);return o((()=>{const t=()=>{var t;e.current&&l(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[l,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=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;$(r);const g=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),m?e.createElement(Hi,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Oi,{style:{tableLayout:l?"fixed":"auto"}},n())):null},Qi=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")},er=t=>{var{style:n,width:o,isLoading:i}=t,r=Q(t,["style","width","isLoading"]);return e.createElement(Bi,Object.assign({},r,{style:{width:o}}),e.createElement(Yi,{style:n,isLoading:i}))},tr=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"})),nr=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"})),or=()=>e.createElement(vn,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),ir=()=>e.createElement(tr,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),rr=()=>e.createElement(nr,{width:O.sizes.base,height:O.sizes.base,color:"lightgrey"}),lr=({borderless:n=!1,striped:r=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:b,renderFooterLoadingRow:f,omitFooterSelectionCell:v=!1,selectedRowIds:y,disabledSelectionInputRowIds:x,selectionMode:w="multiple",onChangeSelectedRowIds:C,sortColumnId:$,sortDirection:E,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:B=375,startFixedColumnsNumber:D,endFixedColumnsNumber:j})=>{const M=n?Si:Ni,R=!!u&&0===u.length,H=Boolean(D||j),O=!D&&!j,T=l(null),A=l(null),[W,P]=t(vi.none);o((()=>{var e;let t=null;const n=()=>{if(!A.current||O)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?P(vi.none):0===n?P(vi.start):n>0&&i<t?P(vi.middle):i===t&&P(vi.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)}}),[T,O]);const V=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),[]),Z=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(D){y&&(e.push(Z(1,n,"left")),n+=58);for(let t=0;t<D;t+=1){const o=V(c[t].width);o&&(e.push(Z(y?t+2:t+1,n,"left")),n+=o)}}if(j)for(let e=0;e<j;e+=1){const n=V(c.slice(-e-1)[0].width);n&&(t.push(Z(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,V,j,Z,c,D,y]),X=i((()=>q()),[q]),K=a(((e,t)=>{if(!y||!C)return;if(e)return"single"===w?void C([t.id]):void C([...y,t.id]);const n=[...y],o=n.findIndex((e=>e===t.id));n.splice(o,1),C(n)}),[C,y,w]),G=a((()=>{if(!y||!C)return;if(y.length===u.length)return void C([]);const e=u.map((e=>e.id));C(e)}),[C,u,y]),_=a((e=>{if(void 0===$||void 0===k)return;let t=$,n="ascending";"ascending"===E&&(n="descending"),e!==$&&(t=e,n="ascending"),k(t,n)}),[k,$,E]),Y=a(((t,n)=>{let o="",i=()=>{},r=e.createElement(or,null);const{tooltip:l,align:a,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",i=()=>_(u),$===u&&(r="ascending"===E?e.createElement(ir,null):e.createElement(rr,null)));const m=e.createElement(ji,{align:a},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(Bi,{key:u,id:`data-table-header-${u}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},l?e.createElement(bt,{text:l},e.createElement(ki,null,m)):m)}),[_,$,E]),U=a(((t,n)=>e.createElement(er,{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(Ii,null,e.createElement(zi,null,y&&e.createElement(Bi,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(nn,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:G,disabled:x&&x.length>0||N||R,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=y?n+2:n+1,i=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||R)?U(e,e.skeletonStyle||{}):Y(e,(null==r?void 0:r.style)||{})}))))}),[q,G,c,R,S,N,U,Y,u.length,y,w,x]),Q=a(((t,n)=>{const o={checked:t,onChange:e=>K(e,n),disabled:(null==x?void 0:x.includes(n.id))||!1};return"single"===w?e.createElement(rn,Object.assign({},o)):e.createElement(nn,Object.assign({},o))}),[K,w,x]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(Ui,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Ui,{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 r=p(t);if(!r)return null;const l=(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(zi,{key:t.id,className:`${l} ${n?"hidden":""}`},y&&e.createElement(Fi,null),r)}),[p,y]),ne=a((t=>{if(!c)return e.createElement(Ui,null);const n=c.map((n=>e.createElement(Ui,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>b?N&&!f||!N&&R?null:e.createElement(Ri,{fixedColumnsStyle:Qi(X||[])},e.createElement(zi,null,y&&!v&&e.createElement(Fi,null),!N&&b(u),N&&f&&f())):null;let ie=D;y&&ie&&(ie+=1);const re=i((()=>u.map((t=>{var n,o,i;const{data:r}=t,l=!!y&&y.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=l?`selected ${d}`:`${d}`;return e.createElement(Li,{key:t.id,className:s,fixedColumnsStyle:Qi(X||[])},e.createElement(zi,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(Fi,null,Q(l,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[u,g,X,te,m,Q,y]);if(N){const t=[];for(let n=0;n<I;n+=1)t.push(e.createElement(Li,{key:`loading-row-${n}`,fixedColumnsStyle:Qi(X||[])},e.createElement(zi,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(M,{ref:A,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:j},L&&c&&e.createElement(Ji,{renderHeader:J,tableRef:T,wrapperRef:A,isFixedLayout:H,wrapperStyle:z}),e.createElement(Mi,{ref:T,striped:r,noWrap:s,tableLoading:!0,isFixedLayout:H},J(),t,oe()))}if(R||S){let t=bi;return F?t=F:S&&(t=fi),e.createElement(M,{scrollDisabled:!0},e.createElement(Mi,{ref:T,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:H},J(),oe()),e.createElement(Vi,Object.assign({height:B},t)))}return e.createElement(M,{scrollDisabled:!1,ref:A,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:j,showScrollbar:d},L&&c&&e.createElement(Ji,{renderHeader:J,tableRef:T,wrapperRef:A,isFixedLayout:H,wrapperStyle:z}),e.createElement(Mi,{ref:T,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:H},J(),re,oe()))};lr.Cell=Fi,lr.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Q(t,["onClick","children"]);return e.createElement(Fi,Object.assign({},i),e.createElement(qi,{onClick:n},o))},lr.EditableCell=t=>{var{onClick:n,children:o}=t,i=Q(t,["onClick","children"]);return e.createElement(Fi,Object.assign({},i),e.createElement(Zi,{onClick:n},e.createElement(Xi,null,o)))},lr.SkeletonCell=Ui,lr.SkeletonContent=Yi;const ar=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,sr="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",dr="Log in with Amazon",cr=n=>{const[o,i]=t(sr);return e.createElement(ar,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(sr)},"aria-label":dr},n),e.createElement("img",{src:o,alt:dr}))},ur=h`body{overflow:hidden;scrollbar-gutter:stable;}`,mr=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${O.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${We.Footer} {\n box-shadow: 0px 10px 15px 0px ${O.colors.neutral.ink.dark};\n }\n `}`,pr=e=>!!e.footerSlot,gr={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},hr={[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"}},br={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:fr}=O,vr=p(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--1ohvs0u"})`padding:0;border:none;border-radius:${O.sizes.sm};box-shadow:${O.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${We.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${gr[e]};`} ${mr}{padding-bottom:${O.sizes.md};}${We.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${fr.mobile} + 1px))and (max-width: ${fr.tablet}){max-width:${({variant:e})=>hr[fr.tablet][e]};}@media (min-width: ${fr.tablet})and (max-width: ${fr.lgTablet}){max-width:${({variant:e})=>hr[fr.lgTablet][e]};}@media (min-width: ${fr.lgTablet})and (max-width: ${fr.desktop}){max-width:${({variant:e})=>hr[fr.desktop][e]};}@media (min-width: ${fr.desktop}){max-width:${({variant:e})=>hr[fr.lgDesktop][e]};}@media (max-width: ${({variant:e})=>br[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(O.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,yr=e.forwardRef(((t,n)=>{var o=Q(t,[]);return e.createElement(vr,Object.assign({ref:n},o))})),xr=n=>{const{shouldShow:i,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(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}=Yo(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(ur,null),e.createElement(yr,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(We.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Fe,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:f})),e.createElement(mr,{onScroll:b,ref:g,isScrollable:h,fullBleed:a},c),pr(n)&&n.footerSlot,!pr(n)&&(n.leftActions||n.rightActions)&&e.createElement(We.Footer,null,e.createElement(Ot,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Ot,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=Q(t,["label"]);return e.createElement(Se,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Ot,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=Q(t,["label"]);return e.createElement(Se,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:wr,text:Cr,shadows:$r}=O,{grey:Er}=O.colors.neutral,kr=p.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${wr.base} ${wr.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&$r[e]};`,Sr=p.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Cr.headingXL.fontFamily};font-size:${Cr.headingXL.fontSize};font-weight:${Cr.headingXL.fontWeight};margin:unset;line-height:1;`,Nr=p.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Cr.subheadingLarge.fontFamily};font-weight:${Cr.subheadingLarge.fontWeight};font-size:${Cr.subheadingLarge.fontSize};line-height:${Cr.subheadingLarge.lineHeight};`,Ir=p.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${O.radius.base};border:${wr.line} solid ${Er.base};object-fit:cover;`,Lr=p.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,zr=p(Se).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${O.text.link.fontFamily};font-size:${O.text.link.fontSize};font-weight:${O.text.link.fontWeight};line-height:${O.text.link.lineHeight};color:${O.text.link.color};&:hover{text-decoration:${O.text.link.textDecoration};}& > * + *{margin-left:${O.sizes.xs};}`,Fr=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${wr.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Br=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"})),Dr=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:r,backAction:l,Accessory:a,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=i&&e.createElement(Ye,{buttonVariant:r?"default":"primary",title:"Actions",sections:i}),p=null==r?void 0:r.map((t=>e.createElement(Se,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=l&&e.createElement(Se,{onClick:l.onClick,icon:e.createElement(Br,null),variant:"link"},l.title),h=u&&e.createElement(Ot,{direction:"horizontal",alignX:"end"},e.createElement(zr,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(Ft,{width:M.md})));return e.createElement(kr,{shadow:s},e.createElement(Ot,null,g,e.createElement(Fr,null,e.createElement(Ot,{direction:"horizontal",spacing:"md"},o&&e.createElement(Ir,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Ot,{alignX:"stretch"},e.createElement(Sr,null,t),a,n&&e.createElement(Nr,null,n)))),e.createElement(Lr,null,e.createElement(Ot,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Se,{icon:e.createElement(Br,null),onClick:d}),c&&e.createElement(Se,{icon:e.createElement(Ft,null),onClick:c})),h))))},jr=p(Ot).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${O.sizes.lg};height:30px;background-color:${O.colors.neutral.grey.light};border:1px solid ${O.colors.neutral.grey.base};border-radius:${O.sizes.xs};`,Mr=p(Se).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${O.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Rr=p(jo).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Hr=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(P,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(jr,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(P,{variant:"bodySmall"},t))),Or=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[r,l]=t(`${e}`);o((()=>{l(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(r||l(`${e}`),r===`${e}`)return;const t=parseInt(r,10);a(t)&&i(t)};return{pageInputValue:r,handleIncrement:()=>{a(e+1)&&i(e+1)},handleDecrement:()=>{a(e-1)&&i(e-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;a(n=t)&&l(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Tr=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"})),Ar=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"})),Wr=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:l,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=Or({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement(Ot,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Mr,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Tr,null),size:"sm","aria-label":"go to first page"}),e.createElement(Mr,{onClick:s,icon:e.createElement(Br,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Rr,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:Co.sm,type:"number",value:l,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(Hr,{count:i}),e.createElement(Mr,{onClick:a,icon:e.createElement(Ft,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(Mr,{onClick:()=>{o!==i&&r(i)},icon:e.createElement(Ar,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Pr=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Vr=p(k).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Zr=p(it).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,qr=p.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`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;}`,Xr=p(k).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Kr=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${I.secondary.blue.base};background:${I.neutral.grey.lightest};}`,Gr=({item:t,handleRangeListChange:n})=>{const o=a((()=>n(t)),[n,t]);return e.createElement(Xr,{onClick:o},e.createElement(Kr,{variant:"bodySmall"},t.label))},_r=t=>{const{handleRangeListChange:n,paginationRange:o=Pr}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(Gr,{item:t,handleRangeListChange:n})))))};class Yr 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=Pr[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Pr,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:r}=this.state;return e.createElement(Vr,{className:t},e.createElement(Zr,{cta:e.createElement(qr,{onClick:this.toggleShouldShow},e.createElement(P,{variant:"bodySmall"},r.label),e.createElement(Ee,{color:O.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(_r,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Ur=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Jr=p.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Qr=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(Ur,{size:i},e.createElement(Jr,{type:"button",onClick:t,disabled:o},e.createElement(U,{height:O.sizes.base,width:O.sizes.base,color:O.colors.neutral.ink.base})),e.createElement(Jr,{type:"button",onClick:n,disabled:o},e.createElement(Le,{height:O.sizes.base,width:O.sizes.base,color:O.colors.neutral.ink.base}))),el=p(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${O.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${O.colors.neutral.ink.lightest};}`,tl=p(k).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${O.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?O.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;}}`,nl=p(P).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ol=p(wo).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${O.colors.secondary.red.light};\n\n > * {\n border-top-color: ${O.colors.secondary.red.base};\n border-bottom-color: ${O.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${O.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${O.colors.secondary.red.base};\n border-right-color: ${O.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${O.colors.secondary.red.base};\n border-bottom-color: ${O.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${O.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?O.colors.secondary.red.base:O.colors.secondary.blue.base};}}`;const il=Io((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:l,onPriceChange:a,priceValue:s,step:d="0.1",size:c=Co.base}=t,u=Q(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(ol,{className:n,hasError:o},e.createElement(tl,{disabled:r,size:c},e.createElement(nl,{variant:"hintText"},i)),e.createElement(el,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void 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&&m(l),"ArrowDown"===t&&p(l)},disabled:r,size:c},u)),e.createElement(Qr,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));il.displayName="PriceInput";const rl=p.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,ll=({children:t})=>e.createElement(rl,null,t),al=p(jo).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,sl=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,dl=p(k).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${al} {\n ${t}\n }\n\n & ${sl} {\n ${n}\n }\n `}}`,cl=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"})),ul=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:b,reversed:f=!1,autoComplete:v="on",size:y="base"})=>{const x=c&&c.length>0;return e.createElement(dl,{className:p,iconPosition:f?"left":"right"},e.createElement(al,{size:y,type:t,value:c,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:v}),e.createElement(sl,null,h?e.createElement(pe,{height:24,color:b||O.colors.secondary.blue.base}):x&&o?e.createElement(Se,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(ze,{color:b||O.colors.neutral.ink.dark})):e.createElement(Se,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(cl,{color:b||O.colors.neutral.ink.dark,height:M.md,width:M.md}))))},ml=O.colors.neutral.grey.lightest,pl=O.colors.neutral.grey.dark,gl=O.colors.secondary.blue.dark,hl=p(k).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${ml};border-color:${pl};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${gl};border-color:${gl};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${O.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,bl=({options:t,selected:n,className:o,onChange:i})=>e.createElement(hl,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Se,{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)))),fl=p.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,vl=Io(r(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,u=Q(t,["className","options","value","onChange","size","disabled","hasError"]);const m=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(fl,Object.assign({className:o,sizeVariant:s,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));vl.displayName="Select";const yl=p.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${O.colors.neutral.ink.base});font-family:${O.text.bodySmall.fontFamily};font-style:${O.text.bodySmall.fontStyle};font-size:${O.text.bodySmall.fontSize};line-height:${O.text.bodySmall.lineHeight};font-weight:${O.text.bodySmall.fontWeight};text-decoration:${O.text.bodySmall.textDecoration};letter-spacing:${O.text.bodySmall.letterSpacing};`,xl=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${O.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${O.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${O.text.bodySmall.fontFamily};font-style:${O.text.bodySmall.fontStyle};`,wl={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Cl={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},$l=t=>{var{shortcut:n,label:o,inverse:i=!1,displayLabel:r=!1}=t,l=Q(t,["shortcut","label","inverse","displayLabel"]);const a=n.split("+").map((t=>wl[t]?e.createElement(xl,{key:`Key: ${t}`,"aria-label":Cl[t]},wl[t]):e.createElement(xl,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(yl,Object.assign({"aria-label":o,$inverse:i},l),a," ",r?e.createElement("span",null,o):null)},{blue:El}=I.secondary,{grey:kl}=I.neutral,Sl=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Nl=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${El.lightest};}`,Il=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Ll=p.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${H.bodySmall.fontFamily};font-size:${H.bodySmall.fontSize};font-weight:${H.bodySmall.fontWeight};color:${H.bodySmall.color};line-height:${M.base};& > *{vertical-align:middle;}`,zl=p(Ll).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${kl.dark};font-family:${H.bodySmallBold.fontFamily};font-size:${H.bodySmallBold.fontSize};font-weight:${H.bodySmallBold.fontWeight};color:${H.bodySmallBold.color};`,Fl=p.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Nl} tr:nth-child(even) td {\n background-color: ${kl.lightest};\n }\n `}`,Bl=({striped:t=!0,className:n,children:o})=>e.createElement(Fl,{striped:t,className:n},o);Bl.Header=Sl,Bl.Body=Nl,Bl.Row=Il,Bl.HeaderCell=zl,Bl.Cell=Ll;const Dl=p(k).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Dl.displayName="Skeleton";const jl=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Ml=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${O.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Rl=p.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${O.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 ${O.colors.secondary.blue.light};}`,Hl=p(Ml).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${O.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ol=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}),Tl=({id:n,value:i,min:r,max:s,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,b]=t(!1),[f,v]=t(-1),y=l(null),x=l(null),w=l(null),C=Ol(u),$=Ol(m),E=a((e=>{var t;if(!h||!y.current)return;const n=f>-1?i[f]:i,o=y.current.getBoundingClientRect();let l=100*(e.pageX-o.x)/o.width/100*(s-r)+r;const a=n-l;if(a>0&&(l=n+Math.ceil(l/d-n/d)*d),a<0&&(l=n+Math.floor(l/d-n/d)*d),n===l)return;l>s&&(l=s),l<r&&(l=r),Array.isArray(i)&&(0===f&&l>i[1]&&([,l]=i),1===f&&l<i[0]&&([l]=i));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;l=Number(l.toFixed(u)),m=Array.isArray(i)?0===f?[l,i[1]]:[i[0],l]:l,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===f&&v(1),1===f&&v(0))}),[f,h,s,r,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=x.current,o=w.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k)}}),[S,E,k,i]);const N=(t,n,o)=>{let i;return i=ie("number"==typeof o?0===o?[null==C?void 0:C.startSlider,null==$?void 0:$.startSlider]:[null==C?void 0:C.endSlider,null==$?void 0:$.endSlider]:[null==C?void 0:C.slider,null==$?void 0:$.slider]),e.createElement(Rl,{role:"slider",ref:1===o?w:x,className:i,left:t,"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":n})},I=t=>{const n=100*(t[0]<r?0:t[0]-r)/(s-r),o=100*(t[1]>s?100:t[1]-r)/(s-r),i=o-n;return e.createElement(e.Fragment,null,e.createElement(Hl,{className:ie([null==C?void 0:C.sliderRange,null==$?void 0:$.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let L;return L=Array.isArray(i)?I(i):(e=>{if(Array.isArray(i))return I(i);let t;return t=i>s?100:i<r?0:100*(e-r)/(s-r),N(t,e)})(i),e.createElement(jl,{className:ie([null==C?void 0:C.container,null==$?void 0:$.container]),id:n,ref:y},e.createElement(Ml,null),L)},Al=p(k).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:I.neutral.ink.base};\n background-color: ${null!=e?e:I.neutral.grey.base};\n `}`,Wl=p(Ot).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Pl=p(Ot).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${O.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${O.shadows.lg};border-radius:${O.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;}`,Vl=p(k).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${O.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${M.md};height:${M.md};}`,Zl=p(Ot).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,ql=p(P).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Xl={info:{accentColor:I.brand.blue.base,icon:e.createElement(io,null)},success:{accentColor:I.secondary.green.base,icon:e.createElement(dn,null)},error:{accentColor:I.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:I.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)}},Kl=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Gl=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:l,minWidth:a,cta:s,onClose:d})=>{const c=Kl(t),u=Kl(n);return e.createElement(Pl,{className:ie([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:a,last:l},e.createElement(Vl,{color:Xl[o].accentColor,className:ie([c.icon,u.icon])},null!=i?i:Xl[o].icon),e.createElement(Zl,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(ql,{variant:"body"},r),s),e.createElement(Se,{variant:"flat",icon:e.createElement(ze,{color:"white"}),onClick:d,"aria-label":"Close"}))},_l=({className:t,e2eClassName:n,toasts:i,minWidth:r="50vw",max:l=3,onClose:a})=>(o((()=>{l&&i.length>l&&a(i[0].key)}),[i,l,a]),y(e.createElement(Wl,{direction:"vertical",alignX:"center",spacing:4},e.createElement(w,{component:null},[...i].reverse().map(((o,l)=>e.createElement(x,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Gl,Object.assign({className:t,e2eClassName:n,minWidth:r,last:l===i.length-1,onClose:()=>a(o.key)},o))))))),document.body)),Yl=p.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?O.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Ul=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${Yl}{box-shadow:0 0 0 4px ${O.colors.brand.blue.light};}&:checked + ${Yl}{background-color:#0079d1;}&:disabled + ${Yl}{background-color:${O.colors.neutral.grey.base};}&:checked:disabled + ${Yl}{background-color:${O.colors.secondary.blue.light};}`,Jl=p.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${Yl}: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"};}${Ul}:checked + ${Yl}{&: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"});}}`,Ql=p(k).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,ea=r((({id:t,className:n,name:o,switched:i,small:r,onClick:l=(()=>{}),disabled:a,ariaLabel:s},d)=>e.createElement(Ql,{className:n,disabled:a},e.createElement(Jl,{small:r,disabled:a,role:"switch"},e.createElement(Ul,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:a?void 0:l,disabled:a,ref:d}),e.createElement(Yl,{switched:i,disabled:a}))))),ta=p.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${O.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",l="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",l="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: ${r};\n font-size: ${l};\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;}`,na=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(ta,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),oa=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${M.md};border-radius:${z.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${I.neutral.ink.lightest};background-color:${I.neutral.grey.lightest};:hover{border:2px dashed ${I.secondary.blue.base};background-color:${I.secondary.blue.lightest};}:active{border:2px dashed ${I.secondary.blue.base};box-shadow:0 0 0 4px ${I.secondary.blue.light};background-color:${I.secondary.blue.lightest};}:focus-within{border:2px dashed ${I.secondary.blue.base};box-shadow:0 0 0 4px ${I.secondary.blue.light};background-color:${I.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${I.secondary.red.base};:hover{border:2px dashed ${I.secondary.red.base};background-color:${I.secondary.red.lightest};}:active{border:2px dashed ${I.secondary.red.base};box-shadow:0 0 0 4px ${I.secondary.red.light};background-color:${I.secondary.red.lightest};}:focus-within{border:2px dashed ${I.secondary.red.base};box-shadow:0 0 0 4px ${I.secondary.red.light};background-color:${I.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${I.neutral.grey.light};border-color:${I.neutral.ink.lightest};color:${I.neutral.ink.light};}`;var ia,ra,la;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(ia||(ia={})),function(e){e.KB="KB",e.MB="MB"}(ra||(ra={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(la||(la={}));const aa=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),sa=()=>e.createElement(Ot,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(aa,null),e.createElement(P,{variant:"subheadingSmall",style:{paddingTop:M.sm}},"Browse files or drag them here")),da=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Ot,{alignX:"start",spacing:"xs"},t&&e.createElement(P,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(P,{variant:"errorSmall"},"File is too big (",n,")")):null,ca=p(P).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,ua=p(Ot).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${I.neutral.ink.lightest};border-radius:${z.base};padding:${M.xs};${P}{padding-left:${M.xs};}`,ma=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(ua,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(ca,{variant:"body"},null==t?void 0:t.name),e.createElement(Se,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(ze,null),"aria-label":"Remove file",disabled:o})):null,pa=r(((n,i)=>{var{id:r,name:s,maxBytes:d=1e6,format:u=ra.MB,fileTypes:m,label:p="Upload file",required:g,disabled:h}=n,b=Q(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=l(null);c(i,(()=>f.current),[]);const[v,y]=t(),[x,w]=t(la.VALID),C=x===la.INVALID_FORMAT||x===la.INVALID_FORMAT_AND_SIZE,$=x===la.INVALID_SIZE||x===la.INVALID_FORMAT_AND_SIZE,E=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case ra.KB:return`${o}${Number(e)/1e3} KB`;case ra.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:d,format:u}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const i=o.length>1,r=t===o.length-1&&i,l=t===o.length-2&&i;switch(r&&(n+=" and "),e){case ia.CSV:n+="CSV";break;case ia.GIF:n+="GIF";break;case ia.JPEG:n+="JPEG";break;case ia.JPG:n+="JPG";break;case ia.PNG:n+="PNG"}!l&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:m}),S=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const i=o.length-1===n&&o.length>1;t+=i?`${e}`:`${e}, `})),t.trim()})({fileTypes:m}),N=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},I=({overMaxSize:e,invalidFormat:t})=>{var n;let o=la.VALID;t&&!e?o=la.INVALID_FORMAT:!t&&e?o=la.INVALID_SIZE:t&&e&&(o=la.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(o),w(o)},L=a((e=>{if(!e.length)return void I({invalidFormat:!0});const[t]=e,n=t.size>d,[,o]=t.type.split("/"),i=!m.find((e=>e.substring(1)===o));n||i?N():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:r}),I({invalidFormat:i,overMaxSize:n}),y(t)}),[m,r,d]),z=a((()=>{N(),y(void 0),I({invalidFormat:!1,overMaxSize:!1})}),[]),F=a((()=>{var e;const t=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?L(t):z()}),[z,L]);return o((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",F),null==e||e.addEventListener("cancel",z),()=>{null==e||e.removeEventListener("change",F),null==e||e.removeEventListener("cancel",z)}}),[F,z]),e.createElement(So,{spacing:"sm",alignX:"stretch"},e.createElement($o,{htmlFor:r},p,e.createElement(Ot,{spacing:3,alignX:"stretch",style:{paddingTop:M.sm}},e.createElement(Eo,null,e.createElement("div",null,k),e.createElement("div",null,E)),e.createElement(oa,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&L(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.blur()}},e.createElement(sa,null),e.createElement("input",Object.assign({ref:f,id:r,type:"file",accept:S,name:s,required:g,disabled:h},b))))),e.createElement(Ot,{alignX:"stretch",spacing:"sm"},e.createElement(ma,{file:v,resetSelection:z,disabled:h}),e.createElement(da,{acceptedTypesCopy:C?k:void 0,maxSizeCopy:$?E:void 0})))})),ga="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",ha=p(k).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${ga} display:${e=>e.shouldShow?"initial":"none"};z-index:${O.layers.modal};`,ba=p(k).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${ga} background-color:rgba(55,66,77,0.5);`,fa=p(k).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,va=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(te,null,n):n),ya=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(va,{usePortal:i},e.createElement(ha,{className:ie([`${t}-container`,t]),shouldShow:o},e.createElement(ba,null),e.createElement(E,{isActive:o},e.createElement(fa,{className:ie([`${t}-wrap`,t])},n)))),xa=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,wa=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Ca=p(Se).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,$a=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=Vo(o,i);return e.createElement(ya,{shouldShow:o,className:`${t}-video`},e.createElement(xa,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(wa,{ref:r},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(Ca,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement(ze,{color:"white"})}))))};var Ea;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Ea||(Ea={}));const ka=p(k).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Sa=p(P).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Na=p(k).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${P} {\n color: ${null!=t?t:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ia=p(P).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${Sa} {\n color: #fff;\n }\n `}`,La={style:{marginLeft:M.xs,padding:M.xs,height:M.base,width:M.base}},za=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${M.sm};svg{height:${M.base};width:${M.base};}`,Fa=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"})),Ba=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:r,colourPalette:l=I.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Ba(r),b=Ba(g),[f,v,y]=_o(),x=a((()=>u(t)),[t,u]),w=a((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),C=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),$=i===Ea.draft,E=i===Ea.saved,k=c?I.neutral.ink.dark:I.neutral.ink.base;return e.createElement(ka,{className:`${ie([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:x},e.createElement(Na,{active:c,onMouseEnter:v,onMouseLeave:y,colourPalette:l,customTextColour:s},n&&e.createElement(za,null,n),e.createElement(P,{variant:"bodyBold"},o),d&&e.createElement(Ia,{active:c||f,colourPalette:l,customTextColour:s},e.createElement(Sa,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),$&&e.createElement(ze,Object.assign({},La,{color:k,className:null==b?void 0:b.delete,onClick:w})),E&&c&&e.createElement(Fa,Object.assign({},La,{color:k,className:null==b?void 0:b.edit,onClick:C}))))};var ja;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(ja||(ja={}));const Ma=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Ra=p(P).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Ha=p(Ma).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Oa=p(ze).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Ta=p(P).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Ra} {\n color: ${I.neutral.grey.lightest};\n }\n `}`,Aa=p(k).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${I.neutral.grey.base};\n & > ${Ta} {\n background-color: ${I.neutral.grey.base};\n & > ${Ra} {\n color: ${I.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n & > ${Ha} {\n color: ${I.neutral.ink.dark};\n }\n & > ${Oa} {\n color: ${I.neutral.ink.dark};\n }\n }\n\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Ha} {\n color: ${t.dark};\n }\n & > ${Oa} {\n color: ${t.dark};\n }\n\n & > ${P} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Wa=p(xe).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Aa} {\n background-color: ${I.neutral.grey.base};\n & > ${Ta} {\n background-color: ${I.neutral.grey.base};\n & > ${Ra} {\n color: ${I.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:I.neutral.ink.dark};\n }\n & > ${Ha} {\n color: ${I.neutral.ink.dark};\n }\n & > ${Oa} {\n color: ${I.neutral.ink.dark};\n }\n }\n `}`,Pa={style:{marginLeft:M.xs,padding:M.xs,height:M.base,width:M.base}},Va=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${M.sm};svg{height:${M.base};width:${M.base};}`,Za=e.forwardRef(((t,n)=>{var{id:o,iconSlot:i,name:r,type:l,className:a,colourPalette:s=I.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=Q(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const b={delete:(f=a)?`${f}-delete`:void 0,edit:f?`${f}-edit`:void 0,container:f?`${f}-view`:void 0,active:f?`${f}-active`:void 0,counter:f?`${f}-counter`:void 0};var f;const[v,y,x]=_o(),w=u&&p?p:m,C=l===ja.draft,$=l===ja.saved;return e.createElement(Wa,Object.assign({className:ie([null==b?void 0:b.container]),onClick:()=>w(o),role:"tab","aria-selected":u,"aria-label":`${u&&C?"Delete":u&&$?"Edit":""} ${r} view ${c?`with ${c} ${g}`:""}`,customTextColour:d,ref:n},h),e.createElement(Aa,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:s,customTextColour:d},i&&e.createElement(Va,null,i),e.createElement(P,{variant:"bodyBold"},r),null!=c&&e.createElement(Ta,{"data-testid":"countContainer",active:u||v,colourPalette:s,customTextColour:d},e.createElement(Ra,{variant:"subheadingSmall"},c)),C&&e.createElement(Oa,Object.assign({},Pa,{"aria-label":"delete icon"})),$&&u&&e.createElement(Ha,Object.assign({},Pa,{"aria-label":"edit icon"}))))})),qa=p(Ot).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Xa=p(Ot).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${I.neutral.grey.lightest};`,Ka=p(Br).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${I.neutral.ink.base};`,Ga=p(Ft).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${I.neutral.ink.base};`,_a=p(Ma).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${I.neutral.ink.base};`,Ya=p(Se).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${I.neutral.grey.lightest};}`,Ua=p(Se).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Ka}{color:${I.neutral.ink.lightest};}}&:hover{background-color:${I.neutral.grey.lightest};}`,Ja=p(Se).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Ga}{color:${I.neutral.ink.lightest};}}&:hover{background-color:${I.neutral.grey.lightest};}`,Qa=p(wo).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,es=(e,n)=>{const[i,r]=t(!0),[l,s]=t(!1),[d,c]=t([]),u=a((()=>{var t,n;e.current.scrollLeft>0?r(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),r(!0));const o=e.current.scrollWidth-e.current.clientWidth;e.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),s(!0)):s(!1)}),[e]),m=a((()=>{e.current.scrollWidth-e.current.getBoundingClientRect().width<5?s(!0):s(!1)}),[e]),p=a((()=>{const t=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(d,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]),g=a((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(d,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]);return o((()=>{var t,o,i,r,l,a,s,p;if(e)return(null===(o=null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.children)||void 0===o?void 0:o.length)&&(null===(r=null===(i=null==e?void 0:e.current)||void 0===i?void 0:i.children)||void 0===r?void 0:r.length)!==d.length&&d.length>0&&d.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),c([...d,d[d.length-1]+(null!==(a=null===(l=e.current.children[d.length-1])||void 0===l?void 0:l.getBoundingClientRect().x)&&void 0!==a?a:0)-20])),(null===(p=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===p?void 0:p.length)&&0===d.length&&c((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m(),window.addEventListener("resize",(()=>m())),e.current.addEventListener("scroll",(()=>u())),()=>{window.removeEventListener("resize",(()=>m()))}}),[e,n,m,u,d]),{rightDisabled:l,leftDisabled:i,toNextScrollPosition:p,toPrevScrollPosition:g}},ts=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const a=l(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=es(a,t);return e.createElement(Xa,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(qa,{ref:a,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(Qa,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Ua,{id:"left-arrow",icon:e.createElement(Ka,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Ja,{id:"right-arrow",icon:e.createElement(Ga,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(Ya,{icon:e.createElement(_a,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),ns=p(k).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,os=p(k).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,is=p(jo).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,rs=p(Se).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${O.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${O.colors.secondary.red.base};\n `};`,ls=e=>To(e,Ao),as=Io((t=>{var{size:n=Co.base,hasError:o,className:i}=t,r=Q(t,["size","hasError","className"]);return e.createElement(ns,{className:i},e.createElement(os,null,"g"===r.weightUnit&&e.createElement(wo,null,e.createElement(is,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:ls},r)),e.createElement(rs,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(wo,null,e.createElement(is,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:ls},r)),e.createElement(rs,{hasError:o,size:n},"lb")),e.createElement(wo,null,e.createElement(is,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:ls},r)),e.createElement(rs,{hasError:o,size:n},"oz")))))}));as.displayName="WeightInput",as.defaultProps={weightUnit:"lb"};export{ia as AcceptedFileTypes,J as Accordion,Ye as ActionList,Je as Anchor,it as AnimatedDropdown,lt as Avatar,yt as Badge,It as Banner,k as BaseContainer,Rt as Breadcrumbs,Se as Button,We as Card,Fe as CardHeader,nn as Checkbox,Ut as Choice,sn as ChoiceList,pn as CopyToClipboard,ao as DataTable,ho as DescriptionList,xo as DetailPage,Po as DimensionsInput,ra as FileSizeUnit,li as FilterTag,Ko as FocusVisibleManager,ai as Grid,gi as Image,wo as InputGroup,lr as LegacyDataTable,pe as Loader,cr as LoginWithAmazonButton,xr as Modal,Dr as PageHeader,Wr as Pagination,Yr as PaginationRange,de as Popover,ya as Popup,te as Portal,il as PriceInput,rn as Radio,ll as ScreenReaderOnly,ul as Search,bl as SegmentedControl,vl as Select,$l as ShortcutKeys,Bl as SimpleTable,Dl as Skeleton,Tl as Slider,Ot as Stack,Qr as Stepper,Al as Tag,P as Text,jo as TextField,_l as ToastsLayout,ea as Toggle,na as ToggleButton,bt as Tooltip,pa as UploadFile,$a as VideoModal,Da as View,Za as ViewTab,ts as ViewsContainer,as as WeightInput,ie as buildClassnames,ee as generateId,le as getOpaqueHexColor,re as hexToRgb,O as theme,Cn as useCellWidths,Vo as useClickOutside,$n as useColumns,Zo as useDebounce,En as useDragToScroll,qo as useDropdown,Go as useFocusVisible,_o as useHover,Yo as useIsOverflowing,kn as useNested,Sn as useScrollPosition,Dn as useSelection,Uo as useTabs,Lo as withDeprecated,Io as withLabels};
1
+ import e,{useState as t,PureComponent as n,useEffect as o,useMemo as a,forwardRef as r,useRef as i,createContext as l,useCallback as s,useContext as d,Component as c,Fragment as u,useImperativeHandle as m}from"react";import{motion as p,AnimatePresence as g}from"framer-motion";import h,{css as f,createGlobalStyle as v}from"styled-components";import{usePopper as b}from"react-popper";import y from"resize-observer-polyfill";import w,{createPortal as x}from"react-dom";import{CSSTransition as E,TransitionGroup as $}from"react-transition-group";import C from"lodash.throttle";import{useScroll as k}from"react-use";import D from"react-scrolllock-configurable";const S=h.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,I={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},L=(e,t)=>e||(t?I[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"}}},R={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 P,T;!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)"}(P||(P={})),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"}(T||(T={}));const M=function({increment:e,unit:t,count:n}){const o={};for(let a=0;a<=n;a++){const n=a*e;o[a]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),F={[T.none]:"0",[T.line]:"1px",[T.xs]:M[1],[T.sm]:M[2],[T.base]:M[4],[T.md]:M[6],[T.lg]:M[8],[T.xl]:M[12],[T.xxl]:M[16]},B=Object.assign(Object.assign({},F),M),A={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},O={headingXXL:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},j=Object.assign(Object.assign({},A),{breakpoints:R,colors:N,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:P,sizes:B,text:O}),{text:H,colors:V,fontFamily:W}=j,Z=h.span.attrs((({as:e,variant:t})=>({as:L(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${W};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?V.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 `}}`,K=h(S).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,U=h(K).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${B.base};width:${B.base};color:${({glyphColor:e})=>e};}`,q=h(K).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Y=h.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${j.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${j.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${j.colors.secondary.blue.light};}`,J=h(S).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,G=h(Z).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,X=h(p(S)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,_=h.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,Q=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:B.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"})),ee=({className:n,children:o,label:a,iconSlot:r,glyphColor:i=N.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[c,u]=t(!!d);return e.createElement(_,{open:!!d,className:n},e.createElement(Y,{onClick:()=>u(!c)},e.createElement(J,null,e.createElement(U,{glyphColor:i},r,e.createElement(Z,{variant:"body"},a)),e.createElement(q,null,e.createElement(p.span,{animate:{rotate:c?180:0}},e.createElement(Q,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(G,{variant:"hintText"},s)),c&&e.createElement(X,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},o))};function te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ne=e=>`${e}-${Math.floor(1e3*Math.random())}`;class oe extends n{constructor(e){super(e),this.id=ne("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?x(e,this.portalNode):null}}const ae=h.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,re=h.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ie=e=>e.filter(Boolean).join(" "),le=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},se=(e,t)=>{const n=le(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},de='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',ce=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:a=!1})=>{o((()=>{if(!e||a)return;const t=e.querySelectorAll(de);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,a]),o((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(de);if(o.length<1)return void n();o[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",o),()=>null==t?void 0:t.removeEventListener("keydown",o)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():a||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(de),o=n[0],a=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),o.focus())})(t))}}},ue=n=>{var{id:r,children:i,zIndex:l=j.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1}=n,h=te(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[f,v]=t(null),{styles:w,attributes:x,update:E}=b(d,f,{placement:s}),$=a((()=>r||ne("popover")),[r]);(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",e),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:$});const C=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:k}=ce({popperElement:f,anchorElement:d,onClose:C,disableFocusLock:p});return o((()=>{if(!E||!f)return;const e=new y(E);return e.observe(f),()=>e.disconnect()}),[E,f]),o((()=>{if(E)return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)}),[E]),e.createElement(oe,{rootElementRef:c},!g&&e.createElement(re,{onClick:C,zIndex:l}),e.createElement(ae,Object.assign({open:!0,zIndex:l,ref:v,style:Object.assign(Object.assign({},w.popper),m),onKeyDown:k},x.popper,h),i))},me=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:a,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:a,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"}))))),pe=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:a,"aria-label":r},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"}))),ge=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":r},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"}))),he=({className:t,height:n=24,width:o=24,color:a="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(pe,{className:t,height:n,width:o,color:a});case"ThreeDots":return e.createElement(ge,{className:t,height:n,width:o,color:a});default:return e.createElement(me,{className:t,height:n,width:o,color:a})}},fe=h.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>B[e]};height:${({size:e})=>B[e]};}`,ve=h.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${j.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",a="8px",r="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",a="4px",r="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${a};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,be=h(ve).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${j.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?j.colors.neutral.ink.base:j.colors.secondary.blue.base};&:hover{background-color:${j.colors.neutral.grey.lightest};}&:active{background-color:${j.colors.neutral.grey.lightest};border-color:${j.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${j.colors.neutral.grey.base} !important;border-color:${j.colors.neutral.grey.base} !important;color:${j.colors.neutral.ink.light} !important;}`,ye=h(be).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${j.colors.secondary.red.base};&:hover{color:${j.colors.secondary.red.dark};}&:active{border-color:${j.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};color:${j.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}`,we=h(be).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${j.colors.secondary.blue.base};border-color:${j.colors.secondary.blue.base};color:white;&:hover{background-color:${j.colors.secondary.blue.dark};border-color:${j.colors.secondary.blue.dark};}&:active{background-color:${j.colors.secondary.blue.dark};border-color:${j.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}`,xe=h(we).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${j.colors.secondary.red.base};border-color:${j.colors.secondary.red.base};color:white;&:hover{background-color:${j.colors.secondary.red.dark};border-color:${j.colors.secondary.red.dark};}&:active{background-color:${j.colors.secondary.red.dark};border-color:${j.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}`,Ee=h(ve).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${j.colors.neutral.ink.base};&:hover{background-color:${j.colors.neutral.grey.light};}&:active{background-color:${j.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,$e=h.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,Ce=h($e).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${j.text.link.fontFamily};font-size:${j.text.link.fontSize};line-height:${j.text.link.fontSize};font-weight:${j.text.link.fontWeight};line-height:${j.text.link.lineHeight};text-decoration:${j.text.link.textDecoration};color:${j.colors.secondary.blue.base};&:hover{color:${j.colors.secondary.blue.dark};}& > * + *{margin-left:${j.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${j.colors.secondary.blue.light};border-radius:4px;}`,ke=h.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,De=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"})),Se={default:be,primary:we,destructive:ye,primaryDestructive:xe,flat:Ee,link:Ce,unstyled:$e},Ie=r(((t,n)=>{var{className:o,children:a,icon:r,variant:i="default",size:l="base",dropdown:s=!1,loading:d=!1}=t,c=te(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===i)return e.createElement($e,Object.assign({ref:n,className:o},c),a);const u=Se[i],m=void 0!==a,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:l,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(fe,{$loading:d,hasText:!!a,size:a||"sm"===l?"base":"md"},r&&r,void 0!==a&&a,s&&e.createElement(De,null)),d&&e.createElement(ke,null,e.createElement(he,null)))})),Le=h.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${B.md};padding-right:${B.md};padding-left:${B.md};margin-bottom:${B.md};& > * + *{margin-top:${B.xs};}`,Ne=h.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${B.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Re=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:B.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"})),ze=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"})),Pe=({id:t,title:n,subtitle:o,headerVariant:a="headingSmall",action:r,ActionSlot:i,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(Le,null,e.createElement(Ne,null,e.createElement(Z,{id:t,variant:a},n),r&&e.createElement(Ie,{variant:"link",onClick:r.onClick},r.title),i,s&&e.createElement(Ie,{variant:"flat",icon:l?e.createElement(Re,null):e.createElement(Q,null),onClick:s}),d&&e.createElement(Ie,{variant:"flat",icon:e.createElement(ze,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(Z,{variant:"subheadingSmall"},o)),{grey:Te}=N.neutral,Me={0:"none",1:P.sm,2:P.base,3:P.md,4:P.lg},Fe={info:N.secondary.blue.base,success:N.secondary.green.base,error:N.secondary.red.base},Be=h.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${B.base};padding:${B.md};z-index:2;`,Ae=h.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${B.md};padding-left:${B.md};margin-top:${B.md};margin-bottom:${B.md};font-family:${O.body.fontFamily};font-size:${O.body.fontSize};font-weight:${O.body.fontWeight};line-height:${O.body.lineHeight};color:${O.body.color};& + &{border-top:${B.line} solid ${Te.base};padding-top:${B.md};}`,Oe=h.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${B.md};margin-right:-${B.md};`,je=h(p.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ae}:first-child{margin-top:0;}`,He=h.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${B.line} solid ${Te.base};box-shadow:${e=>void 0!==e.elevation?Me[e.elevation]:P.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: ${B.xs};\n background-color: ${Fe[e]};\n }\n `}`,Ve={expanded:{height:"auto"},collapsed:{height:0}},We=({className:n,style:o,title:a,subtitle:r,HeaderActionSlot:i,action:l,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),f=a&&e.createElement(Pe,{title:a,subtitle:r,ActionSlot:i,action:l,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),v=s&&!g||!s,b=e.createElement(je,{animate:v?"expanded":"collapsed",variants:Ve,transition:{duration:.3,ease:"easeOut"}},e.createElement(Ae,null,u)),y=void 0!==p&&e.createElement(Be,null,p());return e.createElement(He,{className:n,style:o,elevation:d,accent:c},f,b,y)};We.Surface=He,We.Section=Ae,We.FullBleed=Oe,We.Footer=Be;const{sizes:Ze,colors:Ke,text:Ue}=j,qe=h(We.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Ze.base} 0;display:flex;flex-direction:column;`,Ye=h.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Ke.neutral.grey.base};margin-top:${Ze.base};padding-top:${Ze.base};}`,Je=h(Z).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Ze.sm} ${Ze.base} ${Ze.sm};`,Ge=h(Ie).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Ze.lg};padding:${Ze.xs} ${Ze.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ue.body.fontFamily};font-size:${Ue.body.fontSize};font-weight:${Ue.body.fontWeight};&:hover{background-color:${Ke.neutral.grey.light};color:${Ke.secondary.blue.base};}& > * + *{margin-left:${Ze[3]};}`,Xe={item:Ge,action:h(Ge).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Ke.secondary.blue.base};`,link:h(Ge).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Ke.secondary.blue.base};text-decoration:underline;`},_e=({title:n,items:o=[],sections:a,buttonVariant:r,buttonSize:i})=>{const[l,s]=t(!1),[d,c]=t(null),u=t=>{const n=Xe[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))},m=a?a.map((t=>e.createElement(Ye,{key:t.title},t.title&&e.createElement(Je,null,t.title),t.items.map(u)))):o.map(u);return e.createElement(e.Fragment,null,e.createElement(Ie,{dropdown:!0,variant:r,size:i,onClick:()=>s(!l),ref:c},n),l&&e.createElement(ue,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(qe,null,m)))},Qe=h.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${j.text.link.fontFamily};font-style:${j.text.link.fontStyle};font-weight:${j.text.link.fontWeight};font-size:${j.text.link.fontSize};line-height:${j.text.link.lineHeight};color:${j.colors.secondary.blue.base};text-decoration:${j.text.link.textDecoration};&:hover{color:${j.colors.secondary.blue.dark};}`,et=({children:t,className:n,text:o,href:a,target:r})=>e.createElement(Qe,{href:a,target:r,className:n},t||o),tt=h(S).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,nt=r(((t,n)=>{const{children:o,className:a,role:r}=t;return e.createElement(tt,{className:a,ref:n,role:r},o)})),ot=h(S).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,at=h(S).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,rt=h(nt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${j.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,it=({cta:t,shouldShowDropdown:n,children:a,className:r="animated-dropdown",reversed:l=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=i(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(ot,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!l&&t,e.createElement(at,{className:`${r}-wrap ${r}`},e.createElement(E,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(rt,{role:"dialog",reversed:l,className:`${r}-basic-dropdown ${r}`},a))),l&&t)},lt=h.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${j.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:${j.text.bodySmallBold.fontFamily};font-weight:${j.text.bodySmallBold.fontWeight};font-size:${j.text.bodySmallBold.fontSize};line-height:${j.text.bodySmallBold.lineHeight};}`,st=({width:t="40px",name:n="Veeqo",bgColor:o=j.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(lt,{width:t,bgColor:o,textColor:a,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},dt=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,ct=h(dt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,ut=h(Z).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${j.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,mt=h.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,pt=h.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,gt=h(dt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var ht;!function(e){e.BOTTOM="bottom",e.TOP="top"}(ht||(ht={}));const ft={duration:400,side:ht.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},vt=({content:n,text:o,hoverableElement:a,config:r,reversed:i,withTriangle:l,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},ft),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:f}=u,{styles:v,attributes:y}=b(a,d,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),w=Object.assign(Object.assign({},v.popper),{zIndex:j.layers.tooltip});return e.createElement(pt,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:w},y.popper,{role:"tooltip"}),e.createElement(gt,{className:s.wrap,tipMinWidth:h,tipMaxWidth:f},null!=n?n:e.createElement(ut,null,o)),l&&e.createElement(mt,{id:"veeqo-components-triangle",className:s.triangle}))},bt=({children:n,text:o,content:a,config:r,reversed:i=!1,className:l,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,f={container:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},v=!(!a&&!h);if(!v)return n;const b=u&&v&&e.createElement(vt,{classNames:f,hoverableElement:p,config:r,reversed:i,withTriangle:s,text:o,content:a});return e.createElement(dt,{className:f.container},c?w.createPortal(b,document.body):b,e.createElement(ct,{ref:g,className:f.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},yt=h(S).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${O.bodySmall.fontFamily};font-weight:${O.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${B.base};height:${B.base};}`,wt={default:h(yt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${N.secondary.blue.base};color:${N.secondary.blue.base};`,primary:h(yt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};color:${N.secondary.blue.base};`,warning:h(yt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${N.secondary.yellow.base};background-color:${N.secondary.yellow.lightest};color:${N.secondary.orange.dark};`},xt=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:a,className:r,e2eClassName:i,children:l})=>{const s=wt[t];return e.createElement(bt,{text:a},e.createElement(s,{className:ie([r,i]),hideBorder:n},o&&o,l&&e.createElement("span",null,l)))},Et=h(S).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,$t=h(S).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Ct=h(S).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,kt=h(Ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${B.md};height:${B.md};color:${({accentColor:e})=>e};}`,Dt=h(S).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,St=h(Ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,It=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Lt={help:N.secondary.blue.base,info:N.neutral.ink.base,error:N.secondary.red.base,success:N.secondary.green.base},Nt=t=>{var{type:n="info",text:o,icon:a,onClose:r,className:i,header:l,children:s,backgroundColor:d="white"}=t,c=te(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Lt[n];return e.createElement(Et,Object.assign({accentColor:u,className:i,backgroundColor:d},c),e.createElement($t,null,a&&e.createElement(kt,{style:{marginRight:B.md},accentColor:u},a),s?e.createElement(Dt,null,s):e.createElement(e.Fragment,null,e.createElement(St,null,l||e.createElement(It,{variant:"headingSmall"},o)),e.createElement(Ct,null,r&&e.createElement(Ie,{variant:"flat","aria-label":"Close",icon:e.createElement(ze,null),onClick:r})))))},Rt=h.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${O.body.fontFamily};font-weight:${O.body.fontWeight};font-size:${O.body.fontSize};line-height:${O.body.lineHeight};`,zt=h.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Pt=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"})),Tt=({children:t,title:n,LinkComponent:o,href:a})=>o?e.createElement(zt,{className:"breadcrumb"},e.createElement(o,{href:a},n),t):e.createElement(zt,{className:"breadcrumb"},n,t),Mt=()=>e.createElement(Pt,{className:"separator",width:B.base,height:B.base}),Ft=({children:t,href:n})=>e.createElement("a",{href:n},t),Bt=({children:t})=>e.createElement("span",null,t),At=({items:t,Separator:n=e.createElement(Mt,null),LinkComponent:o=Ft})=>e.createElement(Rt,{className:"breadcrumbs"},t.map(((a,r)=>e.createElement(Tt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:r!==t.length-1?o:Bt},t.length!==r+1&&n))));function Ot(e,t){return e-t*Math.floor(e/t)}const jt=1721426;function Ht(e,t,n,o){let a=(t=Wt(e,t))-1,r=-2;return n<=2?r=0:Vt(t)&&(r=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+r+o)}function Vt(e){return e%4==0&&(e%100!=0||e%400==0)}function Wt(e,t){return"BC"===e?1-t:t}function Zt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Kt={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ut{fromJulianDay(e){let t=e,n=t-jt,o=Math.floor(n/146097),a=Ot(n,146097),r=Math.floor(a/36524),i=Ot(a,36524),l=Math.floor(i/1461),s=Ot(i,1461),d=Math.floor(s/365),c=400*o+100*r+4*l+d+(4!==r&&4!==d?1:0),[u,m]=Zt(c),p=t-Ht(u,m,1,1),g=2;t<Ht(u,m,3,1)?g=0:Vt(m)&&(g=1);let h=Math.floor((12*(p+g)+373)/367),f=t-Ht(u,m,h,1)+1;return new Un(u,m,h,f)}toJulianDay(e){return Ht(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Kt[Vt(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Vt(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const qt={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Yt(e,t){return t=$n(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Jt(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Gt(e,t){let n=e.calendar.toJulianDay(e),o=Math.ceil(n+1-function(e){let t=ln(e);return t&&qt[t]||0}(t))%7;return o<0&&(o+=7),o}function Xt(e){return xn(function(e){return wn(Date.now(),e)}(e))}function _t(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Qt(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let en=null;function tn(){return null==en&&(en=(new Intl.DateTimeFormat).resolvedOptions().timeZone),en}function nn(e){return e.subtract({days:e.day-1})}function on(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function an(e,t){let n=Gt(e,t);return e.subtract({days:n})}const rn=new Map;function ln(e){if(Intl.Locale){let t=rn.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&rn.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function sn(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function dn(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const cn={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function un(e){return mn(Wt((e=$n(e,new Ut)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function mn(e,t,n,o,a,r,i){let l=new Date;return l.setUTCHours(o,a,r,i),l.setUTCFullYear(e,t-1,n),l.getTime()}function pn(e,t){if("UTC"===t)return 0;if(e>0&&t===tn())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:o,day:a,hour:r,minute:i,second:l}=hn(e,t);return mn(n,o,a,r,i,l,0)-1e3*Math.floor(e/1e3)}const gn=new Map;function hn(e,t){let n=gn.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),gn.set(t,n));let o=n.formatToParts(new Date(e)),a={};for(let e of o)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?1-a.year:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}const fn=864e5;function vn(e,t,n,o){return(n===o?[n]:[n,o]).filter((n=>function(e,t,n){let o=hn(n,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}(e,t,n)))}function bn(e,t,n="compatible"){let o=En(e);if("UTC"===t)return un(o);if(t===tn()&&"compatible"===n){o=$n(o,new Ut);let e=new Date,t=Wt(o.era,o.year);return e.setFullYear(t,o.month-1,o.day),e.setHours(o.hour,o.minute,o.second,o.millisecond),e.getTime()}let a=un(o),r=pn(a-fn,t),i=pn(a+fn,t),l=vn(o,t,a-r,a-i);if(1===l.length)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(a-r,a-i);case"compatible":case"later":return Math.max(a-r,a-i);case"reject":throw new RangeError("No such absolute time found")}}function yn(e,t,n="compatible"){return new Date(bn(e,t,n))}function wn(e,t){let n=pn(e,t),o=new Date(e+n),a=o.getUTCFullYear(),r=o.getUTCMonth()+1,i=o.getUTCDate(),l=o.getUTCHours(),s=o.getUTCMinutes(),d=o.getUTCSeconds(),c=o.getUTCMilliseconds();return new Gn(a,r,i,t,n,l,s,d,c)}function xn(e){return new Un(e.calendar,e.era,e.year,e.month,e.day)}function En(e,t){let n=0,o=0,a=0,r=0;if("timeZone"in e)({hour:n,minute:o,second:a,millisecond:r}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:o,second:a,millisecond:r}=t),new Yn(e.calendar,e.era,e.year,e.month,e.day,n,o,a,r)}function $n(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=n.era,o.year=n.year,o.month=n.month,o.day=n.day,Nn(o),o}function Cn(e,t,n){if(e instanceof Gn)return e.timeZone===t?e:function(e,t){let n=un(e)-e.offset;return $n(wn(n,t),e.calendar)}(e,t);return wn(bn(e,t,n),t)}const kn=36e5;function Dn(e,t){let n=e.copy(),o="hour"in n?function(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Mn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Mn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Mn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Mn(e.hour,24),t}(e)}(n,t):0;Sn(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,In(n),Ln(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=o,function(e){for(;e.day<1;)e.month--,In(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,In(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){var r,i;let e=null===(r=(i=n.calendar).isInverseEra)||void 0===r?void 0:r.call(i,n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Sn(e,t){var n,o;(null===(n=(o=e.calendar).isInverseEra)||void 0===n?void 0:n.call(o,e))&&(t=-t),e.year+=t}function In(e){for(;e.month<1;)Sn(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sn(e,1)}function Ln(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Nn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Ln(e)}function Rn(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function zn(e,t){return Dn(e,Rn(t))}function Pn(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),Nn(n),n}function Tn(e,t){let n=e.copy();var o;return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),(o=n).millisecond=Math.max(0,Math.min(o.millisecond,1e3)),o.second=Math.max(0,Math.min(o.second,59)),o.minute=Math.max(0,Math.min(o.minute,59)),o.hour=Math.max(0,Math.min(o.hour,23)),n}function Mn(e,t){let n=e%t;return n<0&&(n+=t),n}function Fn(e,t,n,o){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),r=t.indexOf(e.era);if(r<0)throw new Error("Invalid era: "+e.era);r=An(r,n,0,t.length-1,null==o?void 0:o.round),a.era=t[r],Nn(a);break}case"year":var r,i;(null===(r=(i=a.calendar).isInverseEra)||void 0===r?void 0:r.call(i,a))&&(n=-n),a.year=An(e.year,n,-1/0,9999,null==o?void 0:o.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=An(e.month,n,1,e.calendar.getMonthsInYear(e),null==o?void 0:o.round);break;case"day":a.day=An(e.day,n,1,e.calendar.getDaysInMonth(e),null==o?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),Nn(a),a}function Bn(e,t,n,o){let a=e.copy();switch(t){case"hour":{let t=e.hour,r=0,i=23;if(12===(null==o?void 0:o.hourCycle)){let e=t>=12;r=e?12:0,i=e?23:11}a.hour=An(t,n,r,i,null==o?void 0:o.round);break}case"minute":a.minute=An(e.minute,n,0,59,null==o?void 0:o.round);break;case"second":a.second=An(e.second,n,0,59,null==o?void 0:o.round);break;case"millisecond":a.millisecond=An(e.millisecond,n,0,999,null==o?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return a}function An(e,t,n,o,a=!1){if(a){(e+=Math.sign(t))<n&&(e=o);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>o&&(e=n)}else(e+=t)<n?e=o-(n-e-1):e>o&&(e=n+(e-o-1));return e}function On(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){n=bn(Dn(En(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=un(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),$n(wn(n,e.timeZone),e.calendar)}function jn(e){let t=$n(e,new Ut);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Hn(e){return`${jn(e)}T${t=e,`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}`;var t}function Vn(e){return`${Hn(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),o=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Wn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function Zn(e){let t,n="object"==typeof e[0]?e.shift():new Ut;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var Kn=new WeakMap;class Un{copy(){return this.era?new Un(this.calendar,this.era,this.year,this.month,this.day):new Un(this.calendar,this.year,this.month,this.day)}add(e){return Dn(this,e)}subtract(e){return zn(this,e)}set(e){return Pn(this,e)}cycle(e,t,n){return Fn(this,e,t,n)}toDate(e){return yn(this,e)}toString(){return jn(this)}compare(e){return _t(this,e)}constructor(...e){Wn(this,Kn,{writable:!0,value:void 0});let[t,n,o,a,r]=Zn(e);this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,Nn(this)}}var qn=new WeakMap;class Yn{copy(){return this.era?new Yn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Yn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Dn(this,e)}subtract(e){return zn(this,e)}set(e){return Pn(Tn(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return Fn(this,e,t,n);default:return Bn(this,e,t,n)}}toDate(e,t){return yn(this,e,t)}toString(){return Hn(this)}compare(e){let t=_t(this,e);return 0===t?function(e,t){return Qt(e)-Qt(t)}(this,En(e)):t}constructor(...e){Wn(this,qn,{writable:!0,value:void 0});let[t,n,o,a,r]=Zn(e);this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Nn(this)}}var Jn=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Gn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return On(this,e)}subtract(e){return function(e,t){return On(e,Rn(t))}(this,e)}set(e,t){return function(e,t,n){let o=En(e),a=Tn(Pn(o,t),t);return 0===a.compare(o)?e:$n(wn(bn(a,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,o){switch(t){case"hour":{let t=0,a=23;if(12===(null==o?void 0:o.hourCycle)){let n=e.hour>=12;t=n?12:0,a=n?23:11}let r=En(e),i=$n(Tn(r,{hour:t}),new Ut),l=[bn(i,e.timeZone,"earlier"),bn(i,e.timeZone,"later")].filter((t=>wn(t,e.timeZone).day===i.day))[0],s=$n(Tn(r,{hour:a}),new Ut),d=[bn(s,e.timeZone,"earlier"),bn(s,e.timeZone,"later")].filter((t=>wn(t,e.timeZone).day===s.day)).pop(),c=un(e)-e.offset,u=Math.floor(c/kn),m=c%kn;return c=An(u,n,Math.floor(l/kn),Math.floor(d/kn),null==o?void 0:o.round)*kn+m,$n(wn(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Bn(e,t,n,o);case"era":case"year":case"month":case"day":return $n(wn(bn(Fn(En(e),t,n,o),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=un(e)-e.offset;return new Date(t)}(this)}toString(){return Vn(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Cn(e,this.timeZone).toDate().getTime()}constructor(...e){Wn(this,Jn,{writable:!0,value:void 0});let[t,n,o,a,r]=Zn(e),i=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,this.timeZone=i,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Nn(this)}}const Xn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_n=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qn=[1867,1911,1925,1988,2018],eo=["meiji","taisho","showa","heisei","reiwa"];function to(e){const t=Xn.findIndex((([t,n,o])=>e.year<t||(e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<o)));return-1===t?Xn.length-1:0===t?0:t-1}function no(e){let t=Qn[eo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Un(e.year+t,e.month,e.day)}class oo extends Ut{fromJulianDay(e){let t=super.fromJulianDay(e),n=to(t);return new Un(this,eo[n],t.year-Qn[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(no(e))}balanceDate(e){let t=no(e),n=to(t);eo[n]!==e.era&&(e.era=eo[n],e.year=t.year-Qn[n]),this.constrainDate(e)}constrainDate(e){let t=eo.indexOf(e.era),n=_n[t];if(null!=n){let[o,a,r]=n,i=o-Qn[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(r,e.day)))}if(1===e.year&&t>=0){let[,n,o]=Xn[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(o,e.day))}}getEras(){return eo}getYearsInEra(e){let t=eo.indexOf(e.era),n=Xn[t],o=Xn[t+1];if(null==o)return 9999-n[0]+1;let a=o[0]-n[0];return(e.month<o[1]||e.month===o[1]&&e.day<o[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(no(e))}getMinimumMonthInYear(e){let t=ao(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=ao(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ao(e){if(1===e.year){let t=eo.indexOf(e.era);return Xn[t]}}class ro extends Ut{fromJulianDay(e){let t=super.fromJulianDay(e),n=Wt(t.era,t.year);return new Un(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(io(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(io(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function io(e){let[t,n]=Zt(e.year+-543);return new Un(t,n,e.month,e.day)}const lo=1911;function so(e){return"minguo"===e.era?e.year+lo:1-e.year+lo}function co(e){let t=e-lo;return t>0?["minguo",t]:["before_minguo",1-t]}class uo extends Ut{fromJulianDay(e){let t=super.fromJulianDay(e),n=Wt(t.era,t.year),[o,a]=co(n);return new Un(this,o,a,t.month,t.day)}toJulianDay(e){return super.toJulianDay(mo(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=co(so(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(mo(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-lo}constructor(...e){super(...e),this.identifier="roc"}}function mo(e){let[t,n]=Zt(so(e));return new Un(t,n,e.month,e.day)}const po=1948320,go=[0,31,62,93,124,155,186,216,246,276,306,336];class ho{fromJulianDay(e){let t=e-po,n=1+Math.floor((33*t+3)/12053),o=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=o<216?Math.floor(o/31):Math.floor((o-6)/30);return new Un(this,n,a+1,o-go[a]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=go[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;return Ot(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class fo extends Ut{fromJulianDay(e){let t,n,o,a=super.fromJulianDay(e),r=a.year-78,i=e-Ht(a.era,a.year,1,1);if(i<80?(r--,t=Vt(a.year-1)?31:30,i+=t+155+90+10):(t=Vt(a.year)?31:30,i-=80),i<t)n=1,o=i+1;else{let e=i-t;e<155?(n=Math.floor(e/31)+2,o=e%31+1):(e-=155,n=Math.floor(e/30)+7,o=e%30+1)}return new Un(this,r,n,o)}toJulianDay(e){let t,n,o=e.year+78,[a,r]=Zt(o);return Vt(r)?(t=31,n=Ht(a,r,3,21)):(t=30,n=Ht(a,r,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&Vt(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const vo=1948440,bo=1948439,yo=1300,wo=1600,xo=460322;function Eo(e,t,n,o){return o+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function $o(e,t,n){let o=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+Eo(t,o,1,1)))/29.5)+1),r=n-Eo(t,o,a,1)+1;return new Un(e,o,a,r)}function Co(e){return(14+11*e)%30<11}class ko{fromJulianDay(e){return $o(this,vo,e)}toJulianDay(e){return Eo(vo,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Co(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Co(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Do extends ko{fromJulianDay(e){return $o(this,bo,e)}toJulianDay(e){return Eo(bo,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let So,Io;function Lo(e){return xo+Io[e-yo]}function No(e,t){let n=1<<11-(t-1);return 0==(So[e-yo]&n)?29:30}function Ro(e,t){let n=Lo(e);for(let o=1;o<t;o++)n+=No(e,o);return n}function zo(e){return Io[e+1-yo]-Io[e-yo]}class Po extends ko{fromJulianDay(e){let t=e-vo,n=Lo(yo),o=Lo(wo);if(t<n||t>o)return super.fromJulianDay(e);{let e=yo-1,n=1,o=1;for(;o>0;){e++,o=t-Lo(e)+1;let a=zo(e);if(o===a){n=12;break}if(o<a){let t=No(e,n);for(n=1;o>t;)o-=t,n++,t=No(e,n);break}}return new Un(this,e,n,t-Ro(e,n)+1)}}toJulianDay(e){return e.year<yo||e.year>wo?super.toJulianDay(e):vo+Ro(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<yo||e.year>wo?super.getDaysInMonth(e):No(e.year,e.month)}getDaysInYear(e){return e.year<yo||e.year>wo?super.getDaysInYear(e):zo(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",So||(So=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Io){Io=new Uint32Array(wo-yo+1);let e=0;for(let t=yo;t<=wo;t++){Io[t-yo]=e;for(let n=1;n<=12;n++)e+=No(t,n)}}}}const To=347997;function Mo(e){return Ot(7*e+1,19)<7}function Fo(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,o=29*t+Math.floor(n/25920);return Ot(3*(o+1),7)<3&&(o+=1),o}function Bo(e){return Fo(e)+function(e){let t=Fo(e-1),n=Fo(e);return Fo(e+1)-n==356?2:n-t==382?1:0}(e)}function Ao(e){return Bo(e+1)-Bo(e)}function Oo(e,t){if(t>=6&&!Mo(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=Ao(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Mo(e)?30:0:30}class jo{fromJulianDay(e){let t=e-To,n=25920*t/765433,o=Math.floor((19*n+234)/235)+1,a=Bo(o),r=Math.floor(t-a);for(;r<1;)o--,a=Bo(o),r=Math.floor(t-a);let i=1,l=0;for(;l<r;)l+=Oo(o,i),i++;return i--,l-=Oo(o,i),new Un(this,o,i,r-l)}toJulianDay(e){let t=Bo(e.year);for(let n=1;n<e.month;n++)t+=Oo(e.year,n);return t+e.day+To}getDaysInMonth(e){return Oo(e.year,e.month)}getMonthsInYear(e){return Mo(e.year)?13:12}getDaysInYear(e){return Ao(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Mo(t.year)&&!Mo(e.year)&&t.month>6?e.month--:!Mo(t.year)&&Mo(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ho=1723856,Vo=1824665,Wo=5500;function Zo(e,t,n,o){return e+365*t+Math.floor(t/4)+30*(n-1)+o-1}function Ko(e,t){let n=Math.floor(4*(t-e)/1461),o=1+Math.floor((t-Zo(e,n,1,1))/30);return[n,o,t+1-Zo(e,n,o,1)]}function Uo(e){return Math.floor(e%4/3)}function qo(e,t){return t%13!=0?30:Uo(e)+5}class Yo{fromJulianDay(e){let[t,n,o]=Ko(Ho,e),a="AM";return t<=0&&(a="AA",t+=Wo),new Un(this,a,t,n,o)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Wo),Zo(Ho,t,e.month,e.day)}getDaysInMonth(e){return qo(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Uo(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Jo extends Yo{fromJulianDay(e){let[t,n,o]=Ko(Ho,e);return t+=Wo,new Un(this,"AA",t,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Go extends Yo{fromJulianDay(e){let[t,n,o]=Ko(Vo,e),a="CE";return t<=0&&(a="BCE",t=1-t),new Un(this,a,t,n,o)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Zo(Vo,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),qo(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Xo(e){switch(e){case"buddhist":return new ro;case"ethiopic":return new Yo;case"ethioaa":return new Jo;case"coptic":return new Go;case"hebrew":return new jo;case"indian":return new fo;case"islamic-civil":return new ko;case"islamic-tbla":return new Do;case"islamic-umalqura":return new Po;case"japanese":return new oo;case"persian":return new ho;case"roc":return new uo;default:return new Ut}}let _o=new Map;class Qo{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),o=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==oa&&(oa="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return oa}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=ta(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),o=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===o&&23===a)return"h23";if(24===o&&23===a)return"h24";if(0===o&&11===a)return"h11";if(12===o&&11===a)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=ta(e,t),this.options=t}}const ea={true:{ja:"h11"},false:{}};function ta(e,t={}){if("boolean"==typeof t.hour12&&function(){null==na&&(na="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return na}()){t={...t};let n=ea[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:o,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(_o.has(n))return _o.get(n);let o=new Intl.DateTimeFormat(e,t);return _o.set(n,o),o}let na=null;let oa=null;l(null),l(null),l(null),l(null),l(null);const aa=l({}),ra="undefined"!=typeof document?e.useLayoutEffect:()=>{};function ia(e){const t=i(null);return ra((()=>{t.current=e}),[e]),s(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const la={prefix:String(Math.round(1e10*Math.random())),current:0},sa=e.createContext(la),da=e.createContext(!1);let ca=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),ua=new WeakMap;const ma="function"==typeof e.useId?function(n){let o=e.useId(),[a]=t(fa()),r=a||"test"===process.env.NODE_ENV?"react-aria":`react-aria${la.prefix}`;return n||`${r}-${o}`}:function(t){let n=d(sa);n!==la||ca||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=function(t=!1){let n=d(sa),o=i(null);if(null===o.current&&!t){var a,r;let t=null===(r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(a=r.ReactCurrentOwner)||void 0===a?void 0:a.current;if(t){let e=ua.get(t);null==e?ua.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,ua.delete(t))}o.current=++n.current}return o.current}(!!t),a=n===la&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return t||`${a}-${o}`};function pa(){return!1}function ga(){return!0}function ha(e){return()=>{}}function fa(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(ha,pa,ga):d(da)}let va=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),ba=new Map;function ya(e){let[n,a]=t(e),r=i(null),l=ma(n),d=s((e=>{r.current=e}),[]);return va&&ba.set(l,d),ra((()=>{let e=l;return()=>{ba.delete(e)}}),[l]),o((()=>{let e=r.current;e&&(r.current=null,a(e))})),l}function wa(e,t){if(e===t)return e;let n=ba.get(e);if(n)return n(t),t;let o=ba.get(t);return o?(o(e),e):t}function xa(e=[]){let n=ya(),[o,a]=function(e){let[n,o]=t(e),a=i(null),r=ia((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:n===e.value?r():o(e.value)}));ra((()=>{a.current&&r()}));let l=ia((e=>{a.current=e(n),r()}));return[n,l]}(n),r=s((()=>{a((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,a]);return ra(r,[n,r,...e]),o}function Ea(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const $a=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ca=e=>{if(e&&"window"in e&&e.window===e)return e;return $a(e).defaultView||window};function ka(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ka(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Da(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ka(e))&&(o&&(o+=" "),o+=t);return o}function Sa(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let o=e[n];for(let e in o){let n=t[e],a=o[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Ea(n,a):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof a?"id"===e&&n&&a?t.id=wa(n,a):t[e]=void 0!==a?a:n:t[e]=Da(n,a)}}return t}const Ia=new Set(["id"]),La=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Na=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ra=/^(data-.*)$/;function za(e,t={}){let{labelable:n,isLink:o,propNames:a}=t,r={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Ia.has(t)||n&&La.has(t)||o&&Na.has(t)||(null==a?void 0:a.has(t))||Ra.test(t))&&(r[t]=e[t]);return r}function Pa(e){if(function(){if(null==Ta){Ta=!1;try{document.createElement("div").focus({get preventScroll(){return Ta=!0,!0}})}catch(e){}}return Ta}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o}(t)}}let Ta=null;function Ma(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Fa(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ba(){return Fa(/^Mac/i)}function Aa(){return Fa(/^iPad/i)||Ba()&&navigator.maxTouchPoints>1}function Oa(){return Fa(/^iPhone/i)||Aa()}function ja(){return Ma(/AppleWebKit/i)&&!Ma(/Chrome/i)}function Ha(){return Ma(/Android/i)}function Va(e,t,n=!0){var o,a;let{metaKey:r,ctrlKey:i,altKey:l,shiftKey:s}=t;Ma(/Firefox/i)&&(null===(a=window.event)||void 0===a||null===(o=a.type)||void 0===o?void 0:o.startsWith("key"))&&"_blank"===e.target&&(Ba()?r=!0:i=!0);let d=ja()&&Ba()&&!Aa()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Va.isOpening=n,Pa(e),e.dispatchEvent(d),Va.isOpening=!1}Va.isOpening=!1;let Wa=new Map,Za=new Set;function Ka(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let o=Wa.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",t),Wa.delete(n.target)),0===Wa.size)){for(let e of Za)e();Za.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let o=Wa.get(n.target);o||(o=new Set,Wa.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Ua(e){requestAnimationFrame((()=>{0===Wa.size?e():Za.add(e)}))}function qa(e,t){let{id:n,"aria-label":o,"aria-labelledby":a}=e;if(n=ya(n),a&&o){let e=new Set([n,...a.trim().split(/\s+/)]);a=[...e].join(" ")}else a&&(a=a.trim().split(/\s+/).join(" "));return o||a||!t||(o=t),{id:n,"aria-label":o,"aria-labelledby":a}}function Ya(e,t){const n=i(!0),a=i(null);o((()=>(n.current=!0,()=>{n.current=!1})),[]),o((()=>{n.current?n.current=!1:a.current&&!t.some(((e,t)=>!Object.is(e,a[t])))||e(),a.current=t}),t)}function Ja(e,t){ra((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Ga(e,t){let n=window.getComputedStyle(e),o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Xa(e,t){let n=e;for(Ga(n,t)&&(n=n.parentElement);n&&!Ga(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?Ka():document.addEventListener("DOMContentLoaded",Ka));let _a=0;const Qa=new Map;function er(e,t,n,a){let r=ia(n),i=null==n;o((()=>{if(i||!e.current)return;let n=e.current;return n.addEventListener(t,r,a),()=>{n.removeEventListener(t,r,a)}}),[e,t,a,i,r])}function tr(e,t){let n=nr(e,t,"left"),o=nr(e,t,"top"),a=t.offsetWidth,r=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(s,10),m=c+e.clientWidth,p=u+e.clientHeight;n<=i?i=n-parseInt(d,10):n+a>m&&(i+=n+a-m),o<=u?l=o-parseInt(s,10):o+r>p&&(l+=o+r-p),e.scrollLeft=i,e.scrollTop=l}function nr(e,t,n){const o="left"===n?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[o];break}t=t.offsetParent}return a}function or(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Ga(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)tr(n,e)}else{var n;let{left:i,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:d}=e.getBoundingClientRect();var o,a,r;if(Math.abs(i-s)>1||Math.abs(l-d)>1)null==t||null===(a=t.containingElement)||void 0===a||null===(o=a.scrollIntoView)||void 0===o||o.call(a,{block:"center",inline:"center"}),null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"})}}}function ar(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ha()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function rr(e,t){let n=i(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ir(e,n,a){let[r,l]=t(e||n),d=i(void 0!==e),c=void 0!==e;o((()=>{let e=d.current;e!==c&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),d.current=c}),[c]);let u=c?e:r,m=s(((e,...t)=>{let n=(e,...t)=>{a&&(Object.is(u,e)||a(e,...t)),c||(u=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l(((o,...a)=>{let r=e(c?u:o,...a);return n(r,...t),c?o:r}))}else c||l(e),n(e,...t)}),[c,u,a]);return[u,m]}let lr="default",sr="",dr=new WeakMap;function cr(e){if(Oa()){if("default"===lr){const t=$a(e);sr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}lr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(dr.set(e,e.style.userSelect),e.style.userSelect="none")}function ur(e){if(Oa()){if("disabled"!==lr)return;lr="restoring",setTimeout((()=>{Ua((()=>{if("restoring"===lr){const t=$a(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=sr||""),sr="",lr="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dr.has(e)){let t=dr.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),dr.delete(e)}}const mr=e.createContext({register:()=>{}});function pr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function gr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,pr(e,t,"set"),n),n}mr.displayName="PressResponderContext";var hr=new WeakMap;class fr{continuePropagation(){gr(this,hr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,pr(e,hr,"get"));var e}constructor(e,t,n){Wn(this,hr,{writable:!0,value:void 0}),gr(this,hr,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const vr=Symbol("linkClicked");function br(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:c,onPressUp:u,isDisabled:m,isPressed:p,preventFocusOnPress:g,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:f,ref:v,...b}=function(e){let t=d(mr);if(t){let{register:n,...o}=t;e=Sa(o,e),n()}return Ja(t,e.ref),e}(e),[y,w]=t(!1),x=i({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:E,removeAllGlobalListeners:$}=function(){let e=i(new Map),t=s(((t,n,o,a)=>{let r=(null==a?void 0:a.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:n,eventTarget:t,fn:r,options:a}),t.addEventListener(n,o,a)}),[]),n=s(((t,n,o,a)=>{var r;let i=(null===(r=e.current.get(o))||void 0===r?void 0:r.fn)||o;t.removeEventListener(n,i,a),e.current.delete(o)}),[]),a=s((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return o((()=>a),[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}(),C=ia(((e,t)=>{let n=x.current;if(m||n.didFirePressStart)return!1;let o=!0;if(n.isTriggeringEvent=!0,l){let n=new fr("pressstart",t,e);l(n),o=n.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,w(!0),o})),k=ia(((e,t,o=!0)=>{let a=x.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let i=!0;if(c){let n=new fr("pressend",t,e);c(n),i=n.shouldStopPropagation}if(r&&r(!1),w(!1),n&&o&&!m){let o=new fr("press",t,e);n(o),i&&(i=o.shouldStopPropagation)}return a.isTriggeringEvent=!1,i})),D=ia(((e,t)=>{let n=x.current;if(m)return!1;if(u){n.isTriggeringEvent=!0;let o=new fr("pressup",t,e);return u(o),n.isTriggeringEvent=!1,o.shouldStopPropagation}return!0})),S=ia((e=>{let t=x.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&k(Er(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,$(),f||ur(t.target))})),I=ia((e=>{h&&S(e)})),L=a((()=>{let e=x.current,t={onKeyDown(t){if(wr(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;kr(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=C(t,"keyboard");let o=t.currentTarget,r=t=>{wr(t,o)&&!t.repeat&&o.contains(t.target)&&e.target&&D(Er(e.target,t),"keyboard")};E($a(t.currentTarget),"keyup",Ea(r,n),!0)}a&&t.stopPropagation(),t.metaKey&&Ba()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!Va.isOpening){let n=!0;if(m&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||ar(t.nativeEvent))){m||g||Pa(t.currentTarget);let e=C(t,"virtual"),o=D(t,"virtual"),a=k(t,"virtual");n=e&&o&&a}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&wr(t,e.target)){var o;kr(t.target,t.key)&&t.preventDefault();let n=t.target;k(Er(e.target,t),"keyboard",e.target.contains(n)),$(),"Enter"!==t.key&&yr(e.target)&&e.target.contains(n)&&!t[vr]&&(t[vr]=!0,Va(e.target,t,!1)),e.isPressed=!1,null===(o=e.metaKeyEvents)||void 0===o||o.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var a;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(a=e.target)||void 0===a||a.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(r=t.nativeEvent,!Ha()&&0===r.width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType)return void(e.pointerType="virtual");var r;Cr(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let i=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,m||g||Pa(t.currentTarget),f||cr(e.target),i=C(t,e.pointerType),E($a(t.currentTarget),"pointermove",n,!1),E($a(t.currentTarget),"pointerup",o,!1),E($a(t.currentTarget),"pointercancel",a,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Cr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&$r(t,t.currentTarget)&&D(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&$r(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,C(Er(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,k(Er(e.target,t),e.pointerType,!1),I(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&($r(t,e.target)&&null!=e.pointerType?k(Er(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&k(Er(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),f||ur(e.target))},a=e=>{S(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&S(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(Cr(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=ar(t.nativeEvent)?"virtual":"mouse",m||g||Pa(t.currentTarget),C(t,e.pointerType)&&t.stopPropagation(),E($a(t.currentTarget),"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=C(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=k(t,e.pointerType,!1),I(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||D(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&$r(t,e.target)&&null!=e.pointerType?k(Er(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&k(Er(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",m||g||Pa(t.currentTarget),f||cr(e.target),C(t,e.pointerType)&&t.stopPropagation(),E(Ca(t.currentTarget),"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=xr(t.nativeEvent,e.activePointerId),o=!0;n&&$r(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,o=C(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,o=k(t,e.pointerType,!1),I(t)),o&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=xr(t.nativeEvent,e.activePointerId),o=!0;n&&$r(n,t.currentTarget)&&null!=e.pointerType?(D(t,e.pointerType),o=k(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(o=k(t,e.pointerType,!1)),o&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!f&&ur(e.target),$()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&S(t))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&S({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&S(e)}}return t}),[E,m,g,$,f,S,I,k,C,D]);return o((()=>()=>{var e;f||ur(null!==(e=x.current.target)&&void 0!==e?e:void 0)}),[f]),{isPressed:p||y,pressProps:Sa(b,L)}}function yr(e){return"A"===e.tagName&&e.hasAttribute("href")}function wr(e,t){const{key:n,code:o}=e,a=t,r=a.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||a instanceof Ca(a).HTMLInputElement&&!Sr(a,n)||a instanceof Ca(a).HTMLTextAreaElement||a.isContentEditable||("link"===r||!r&&yr(a))&&"Enter"!==n)}function xr(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const o=n[e];if(o.identifier===t)return o}return null}function Er(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $r(e,t){let n=t.getBoundingClientRect(),o=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return r=o,!((a=n).left>r.right||r.left>a.right||a.top>r.bottom||r.top>a.bottom);var a,r}function Cr(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function kr(e,t){return e instanceof HTMLInputElement?!Sr(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!yr(e)}const Dr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Sr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Dr.has(e.type)}class Ir{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Lr(e){let t=i({isFocused:!1,observer:null});ra((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=ia((t=>{null==e||e(t)}));return s((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=e.target,a=e=>{t.current.isFocused=!1,o.disabled&&n(new Ir("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function Nr(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:a}=e;const r=s((e=>{if(e.target===e.currentTarget)return o&&o(e),a&&a(!1),!0}),[o,a]),i=Lr(r),l=s((e=>{const t=$a(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),a&&a(!0),i(e))}),[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||o)?l:void 0,onBlur:t||!o&&!a?void 0:r}}}let Rr=null,zr=new Set,Pr=new Map,Tr=!1,Mr=!1;const Fr={Tab:!0,Escape:!0};function Br(e,t){for(let n of zr)n(e,t)}function Ar(e){Tr=!0,function(e){return!(e.metaKey||!Ba()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Rr="keyboard",Br("keyboard",e))}function Or(e){Rr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Tr=!0,Br("pointer",e))}function jr(e){ar(e)&&(Tr=!0,Rr="virtual")}function Hr(e){e.target!==window&&e.target!==document&&(Tr||Mr||(Rr="virtual",Br("virtual",e)),Tr=!1,Mr=!1)}function Vr(){Tr=!1,Mr=!0}function Wr(e){if("undefined"==typeof window||Pr.get(Ca(e)))return;const t=Ca(e),n=$a(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Tr=!0,o.apply(this,arguments)},n.addEventListener("keydown",Ar,!0),n.addEventListener("keyup",Ar,!0),n.addEventListener("click",jr,!0),t.addEventListener("focus",Hr,!0),t.addEventListener("blur",Vr,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Or,!0),n.addEventListener("pointermove",Or,!0),n.addEventListener("pointerup",Or,!0)):(n.addEventListener("mousedown",Or,!0),n.addEventListener("mousemove",Or,!0),n.addEventListener("mouseup",Or,!0)),t.addEventListener("beforeunload",(()=>{Zr(e)}),{once:!0}),Pr.set(t,{focus:o})}const Zr=(e,t)=>{const n=Ca(e),o=$a(e);t&&o.removeEventListener("DOMContentLoaded",t),Pr.has(n)&&(n.HTMLElement.prototype.focus=Pr.get(n).focus,o.removeEventListener("keydown",Ar,!0),o.removeEventListener("keyup",Ar,!0),o.removeEventListener("click",jr,!0),n.removeEventListener("focus",Hr,!0),n.removeEventListener("blur",Vr,!1),"undefined"!=typeof PointerEvent?(o.removeEventListener("pointerdown",Or,!0),o.removeEventListener("pointermove",Or,!0),o.removeEventListener("pointerup",Or,!0)):(o.removeEventListener("mousedown",Or,!0),o.removeEventListener("mousemove",Or,!0),o.removeEventListener("mouseup",Or,!0)),Pr.delete(n))};function Kr(){return"pointer"!==Rr}function Ur(){return Rr}"undefined"!=typeof document&&function(e){const t=$a(e);let n;"loading"!==t.readyState?Wr(e):(n=()=>{Wr(e)},t.addEventListener("DOMContentLoaded",n))}();const qr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yr(e,t,n){Wr(),o((()=>{let t=(t,o)=>{(function(e,t,n){var o;const a="undefined"!=typeof window?Ca(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,r="undefined"!=typeof window?Ca(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?Ca(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Ca(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof a&&!qr.has(null==n||null===(o=n.target)||void 0===o?void 0:o.type)||(null==n?void 0:n.target)instanceof r||(null==n?void 0:n.target)instanceof i&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!Fr[n.key])})(!!(null==n?void 0:n.isTextInput),t,o)&&e(Kr())};return zr.add(t),()=>{zr.delete(t)}}),t)}function Jr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:a}=e,r=i({isFocusWithin:!1}),l=s((e=>{r.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(r.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,r]),d=Lr(l),c=s((e=>{r.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),a&&a(!0),r.current.isFocusWithin=!0,d(e))}),[o,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let Gr=!1,Xr=0;function _r(){Gr=!0,setTimeout((()=>{Gr=!1}),50)}function Qr(e){"touch"===e.pointerType&&_r()}function ei(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Qr):document.addEventListener("touchend",_r),Xr++,()=>{Xr--,Xr>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Qr):document.removeEventListener("touchend",_r))}}function ti(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:s}=e,[d,c]=t(!1),u=i({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;o(ei,[]);let{hoverProps:m,triggerHoverEnd:p}=a((()=>{let e=(e,t)=>{if(u.pointerType=t,s||"touch"===t||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let o=e.currentTarget;u.target=o,n&&n({type:"hoverstart",target:o,pointerType:t}),r&&r(!0),c(!0)},t=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let n=e.currentTarget;l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{Gr&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(o.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||Gr||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:o,triggerHoverEnd:t}}),[n,r,l,s,u]);return o((()=>{s&&p({currentTarget:u.target},u.pointerType)}),[s]),{hoverProps:m,isHovered:d}}function ni(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&n.stopPropagation()}}function oi(e={}){let{autoFocus:n=!1,isTextInput:o,within:a}=e,r=i({isFocused:!1,isFocusVisible:n||Kr()}),[l,d]=t(!1),[c,u]=t((()=>r.current.isFocused&&r.current.isFocusVisible)),m=s((()=>u(r.current.isFocused&&r.current.isFocusVisible)),[]),p=s((e=>{r.current.isFocused=e,d(e),m()}),[m]);Yr((e=>{r.current.isFocusVisible=e,m()}),[],{isTextInput:o});let{focusProps:g}=Nr({isDisabled:a,onFocusChange:p}),{focusWithinProps:h}=Jr({isDisabled:!a,onFocusWithinChange:p});return{isFocused:l,isFocusVisible:c,focusProps:a?h:g}}let ai=e.createContext(null);function ri(e,t){let{focusProps:n}=Nr(e),{keyboardProps:a}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ni(e.onKeyDown),onKeyUp:ni(e.onKeyUp)}}}(e),r=Sa(n,a),l=function(e){let t=d(ai)||{};Ja(t,e);let{ref:n,...o}=t;return o}(t),s=e.isDisabled?{}:l,c=i(e.autoFocus);return o((()=>{c.current&&t.current&&function(e){const t=$a(e);if("virtual"===Ur()){let n=t.activeElement;Ua((()=>{t.activeElement===n&&e.isConnected&&Pa(e)}))}else Pa(e)}(t.current),c.current=!1}),[t]),{focusableProps:Sa({...r,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const ii=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),li=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function si(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return ii.has(t.script)}let t=e.split("-")[0];return li.has(t)}const di=Symbol.for("react-aria.i18n.locale");function ci(){let e="undefined"!=typeof window&&window[di]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:si(e)?"rtl":"ltr"}}let ui=ci(),mi=new Set;function pi(){ui=ci();for(let e of mi)e(ui)}const gi=e.createContext(null);function hi(){let e=function(){let e=fa(),[n,a]=t(ui);return o((()=>(0===mi.size&&window.addEventListener("languagechange",pi),mi.add(a),()=>{mi.delete(a),0===mi.size&&window.removeEventListener("languagechange",pi)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return d(gi)||e}const fi=Symbol.for("react-aria.i18n.locale"),vi=Symbol.for("react-aria.i18n.strings");let bi;class yi{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[o])return t[o];for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[fi];if(void 0===bi){let e=window[vi];if(!e)return null;bi={};for(let n in e)bi[n]=new yi({[t]:e[n]},t)}let n=null==bi?void 0:bi[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const wi=new Map,xi=new Map;class Ei{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let o=t["="+e];if(o)return"function"==typeof o?o():o;let a=this.locale+":"+n,r=wi.get(a);return r||(r=new Intl.PluralRules(this.locale,{type:n}),wi.set(a,r)),o=t[r.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=xi.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),xi.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const $i=new WeakMap;function Ci(e,t){return t&&yi.getGlobalDictionaryForPackage(t)||function(e){let t=$i.get(e);return t||(t=new yi(e),$i.set(e,t)),t}(e)}function ki(e,t){let{locale:n}=hi(),o=Ci(e,t);return a((()=>new Ei(n,o)),[n,o])}function Di(e){e=rr(null!=e?e:{},Si);let{locale:t}=hi();return a((()=>new Qo(t,e)),[t,e])}function Si(e,t){if(e===t)return!0;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}var Ii={};function Li(e){return e&&e.__esModule?e.default:e}Ii={"ar-AE":{dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`},"bg-BG":{dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`},"cs-CZ":{dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`},"el-GR":{dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`},"he-IL":{dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`},"ru-RU":{dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`},"uk-UA":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`}};const Ni=new WeakMap;function Ri(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function zi(e,t,n,o){let r=ki(Li(Ii),"@react-aria/calendar"),i=Ri(e)||Ri(t),l=Di({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n}),s=Di({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n});return a((()=>{if(Yt(e,nn(e))){if(Yt(t,on(e)))return l.format(e.toDate(n));if(Yt(t,on(t)))return o?Pi(l,r,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))}return o?Pi(s,r,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}),[e,t,l,s,r,n,o])}function Pi(e,t,n,o,a){let r=e.formatRangeToParts(n.toDate(a),o.toDate(a)),i=-1;for(let e=0;e<r.length;e++){let t=r[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let l="",s="";for(let e=0;e<r.length;e++)e<i?l+=r[e].value:e>i&&(s+=r[e].value);return t.format("dateRange",{startDate:l,endDate:s})}const Ti=7e3;let Mi=null;function Fi(e,t="assertive",n=Ti){Mi||(Mi=new Bi),Mi.announce(e,t,n)}class Bi{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=Ti){if(!this.node)return;let o=document.createElement("div");o.textContent=e,"assertive"===t?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),""!==e&&setTimeout((()=>{o.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Ai(e,n){let o=ki((r=Ii)&&r.__esModule?r.default:r,"@react-aria/calendar");var r;let i=za(e),l=zi(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),s=zi(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Ya((()=>{n.isFocused||Fi(s)}),[s]);let d=function(e){let t,n,o=ki(Li(Ii),"@react-aria/calendar");"highlightedRange"in e?({start:t,end:n}=e.highlightedRange||{}):t=n=e.value;let r=Di({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ri(t)||Ri(n),timeZone:e.timeZone}),i="anchorDate"in e?e.anchorDate:null;return a((()=>{if(!i&&t&&n){if(Yt(t,n)){let n=r.format(t.toDate(e.timeZone));return o.format("selectedDateDescription",{date:n})}{let a=Pi(r,o,t,n,e.timeZone);return o.format("selectedRangeDescription",{dateRange:a})}}return""}),[t,n,i,e.timeZone,o,r])}(n);Ya((()=>{d&&Fi(d,"polite",4e3)}),[d]);let c=xa([Boolean(e.errorMessage),e.isInvalid,e.validationState]);Ni.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:d});let[u,m]=t(!1),p=e.isDisabled||n.isNextVisibleRangeInvalid();p&&u&&(m(!1),n.setFocused(!0));let[g,h]=t(!1),f=e.isDisabled||n.isPreviousVisibleRangeInvalid();return f&&g&&(h(!1),n.setFocused(!0)),{calendarProps:Sa(i,qa({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":o.format("next"),isDisabled:p,onFocusChange:m},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":o.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:c},title:l}}function Oi(e,n,r){let{date:l,isDisabled:s}=e,{errorMessageId:d,selectedDateDescription:c}=Ni.get(n),u=ki((m=Ii)&&m.__esModule?m.default:m,"@react-aria/calendar");var m;let p=Di({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ri(l),timeZone:n.timeZone}),g=n.isSelected(l),h=n.isCellFocused(l);s=s||n.isCellDisabled(l);let f=n.isCellUnavailable(l),v=!s&&!f,b=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&l.compare(n.highlightedRange.start)>=0&&l.compare(n.highlightedRange.end)<=0:n.value&&Yt(n.value,l));b&&(g=!0),l=rr(l,Jt);let y=a((()=>l.toDate(n.timeZone)),[l,n.timeZone]),w=function(e,t){return Yt(e,Xt(t))}(l,n.timeZone),x=a((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Yt(l,n.value.start)||Yt(l,n.value.end))&&(e=c+", "),e+=p.format(y),w?e=u.format(g?"todayDateSelected":"todayDate",{date:e}):g&&(e=u.format("dateSelected",{date:e})),n.minValue&&Yt(l,n.minValue)?e+=", "+u.format("minimumDate"):n.maxValue&&Yt(l,n.maxValue)&&(e+=", "+u.format("maximumDate")),e}),[p,y,u,g,w,l,n,c]),E="";"anchorDate"in n&&h&&!n.isReadOnly&&v&&(E=n.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let $=function(e){let[n,o]=t();return ra((()=>{if(!e)return;let t=Qa.get(e);if(t)o(t.element.id);else{let n="react-aria-description-"+_a++;o(n);let a=document.createElement("div");a.id=n,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},Qa.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),Qa.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}(E),C=i(!1),k=i(!1),D=i(null),{pressProps:S,isPressed:I}=br({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!v||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(l);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!b){if(Yt(l,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(l),n.setDragging(!0),void(k.current=!0);if(Yt(l,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(l),n.setDragging(!0),void(k.current=!0)}let t=()=>{n.setDragging(!0),D.current=null,n.selectDate(l),n.setFocusedDate(l),C.current=!0};"touch"===e.pointerType?D.current=setTimeout(t,200):t()}},onPressEnd(){k.current=!1,C.current=!1,clearTimeout(D.current),D.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(l),n.setFocusedDate(l))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&D.current&&(n.selectDate(l),n.setFocusedDate(l)),"anchorDate"in n))if(k.current)n.setAnchorDate(l);else if(n.anchorDate&&!C.current)n.selectDate(l),n.setFocusedDate(l);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(l),n.setFocusedDate(l));else{n.selectDate(l);let e=l.add({days:1});n.isInvalid(e)&&(e=l.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),L=null;s||(L=Yt(l,n.focusedDate)?0:-1),o((()=>{h&&r.current&&(Pa(r.current),"pointer"!==Ur()&&document.activeElement===r.current&&or(r.current,{containingElement:Xa(r.current)}))}),[h,r]);let N=Di({day:"numeric",timeZone:n.timeZone,calendar:l.calendar.identifier}),R=a((()=>N.formatToParts(y).find((e=>"day"===e.type)).value),[N,y]);return{cellProps:{role:"gridcell","aria-disabled":!v||null,"aria-selected":g||null,"aria-invalid":b||null},buttonProps:Sa(S,{onFocus(){s||n.setFocusedDate(l)},tabIndex:L,role:"button","aria-disabled":!v||null,"aria-label":x,"aria-invalid":b||null,"aria-describedby":[b?d:null,$["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&v&&n.highlightDate(l)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:I,isFocused:h,isSelected:g,isDisabled:s,isUnavailable:f,isOutsideVisibleRange:l.compare(n.visibleRange.start)<0||l.compare(n.visibleRange.end)>0,isInvalid:b,formattedDate:R}}const ji={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Hi(n){let{children:o,elementType:r="div",isFocusable:i,style:l,...s}=n,{visuallyHiddenProps:d}=function(e={}){let{style:n,isFocusable:o}=e,[r,i]=t(!1),{focusWithinProps:l}=Jr({isDisabled:!o,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...l,style:a((()=>r?n:n?{...ji,...n}:ji),[r])}}}(n);return e.createElement(r,Sa(s,d),o)}const Vi=Symbol("default");function Wi({values:t,children:n}){for(let[o,a]of t)n=e.createElement(o.Provider,{value:a},n);return n}function Zi(e){let{className:t,style:n,children:o,defaultClassName:r,defaultChildren:i,defaultStyle:l,values:s}=e;return a((()=>{let e,a,d;return e="function"==typeof t?t({...s,defaultClassName:r}):t,a="function"==typeof n?n({...s,defaultStyle:l||{}}):n,d="function"==typeof o?o({...s,defaultChildren:i}):null==o?i:o,{className:null!=e?e:r,style:a||l?{...l,...a}:void 0,children:null!=d?d:i,"data-rac":""}}),[t,n,o,r,i,l,s])}function Ki(e,t,n){let o=function(e,t){let n=d(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));if(!t&&!n.slots[Vi])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let o=t||Vi;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[o]}return n}(n,e.slot)||{},{ref:r,...l}=o,s=function(e){const t=i(null);return a((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}(a((()=>function(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(t,r)),[t,r])),c=Sa(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&("function"==typeof l.style||"function"==typeof e.style?c.style=t=>{let n="function"==typeof l.style?l.style(t):l.style,o={...t.defaultStyle,...n},a="function"==typeof e.style?e.style({...t,defaultStyle:o}):e.style;return{...o,...a}}:c.style={...l.style,...e.style}),[c,s]}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Ui=l(!1);function qi(t){let n=(e,n)=>d(Ui)?null:t(e,n);return n.displayName=t.displayName||t.name,e.forwardRef(n)}"undefined"!=typeof DocumentFragment&&new DocumentFragment;const Yi=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ji=l({});function Gi(t,n){[t,n]=Ki(t,n,Ji);let o=t,{buttonProps:a,isPressed:r}=function(e,t){let n,{elementType:o="button",isDisabled:a,onPress:r,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:m,href:p,target:g,rel:h,type:f="button"}=e;n="button"===o?{type:f,disabled:a}:{role:"button",tabIndex:a?void 0:0,href:"a"===o&&a?void 0:p,target:"a"===o?g:void 0,type:"input"===o?f:void 0,disabled:"input"===o?a:void 0,"aria-disabled":a&&"input"!==o?a:void 0,rel:"a"===o?h:void 0};let{pressProps:v,isPressed:b}=br({onPressStart:i,onPressEnd:l,onPressChange:d,onPress:r,onPressUp:s,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:y}=ri(e,t);u&&(y.tabIndex=a?-1:y.tabIndex);let w=Sa(y,v,za(e,{labelable:!0}));return{isPressed:b,buttonProps:Sa(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}(t,n),{focusProps:i,isFocused:l,isFocusVisible:s}=oi(t),{hoverProps:d,isHovered:c}=ti(t),u=Zi({...t,values:{isHovered:c,isPressed:r,isFocused:l,isFocusVisible:s,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return e.createElement("button",{...za(t,{propNames:Yi}),...Sa(a,i,d),...u,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-pressed":o.isPressed||r||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0})}const Xi=qi(Gi),_i=l({});function Qi(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function el(e,t,n,o,a){let r={};for(let e in t)r[e]=Math.floor(t[e]/2),r[e]>0&&t[e]%2==0&&r[e]--;return ol(e,tl(e,t,n).subtract(r),t,n,o,a)}function tl(e,t,n,o,a){let r=e;return t.years?r=function(e){return nn(e.subtract({months:e.month-1}))}(e):t.months?r=nn(e):t.weeks&&(r=an(e,n)),ol(e,r,t,n,o,a)}function nl(e,t,n,o,a){let r={...t};return t.days?r.days--:t.weeks?r.weeks--:t.months?r.months--:t.years&&r.years--,ol(e,tl(e,t,n).subtract(r),t,n,o,a)}function ol(e,t,n,o,a,r){return a&&e.compare(a)>=0&&(t=dn(t,tl(xn(a),n,o))),r&&e.compare(r)<=0&&(t=sn(t,nl(xn(r),n,o))),t}function al(e,t,n){return t&&(e=dn(e,xn(t))),n&&(e=sn(e,xn(n))),e}function rl(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function il(e){let n=a((()=>new Qo(e.locale)),[e.locale]),o=a((()=>n.resolvedOptions()),[n]),{locale:r,createCalendar:i,visibleDuration:l={months:1},minValue:s,maxValue:d,selectionAlignment:c,isDateUnavailable:u,pageBehavior:m="visible"}=e,p=a((()=>i(o.calendar)),[i,o.calendar]),[g,h]=ir(e.value,e.defaultValue,e.onChange),f=a((()=>g?$n(xn(g),p):null),[g,p]),v=a((()=>g&&"timeZone"in g?g.timeZone:o.timeZone),[g,o.timeZone]),b=a((()=>e.focusedValue?al($n(xn(e.focusedValue),p),s,d):void 0),[e.focusedValue,p,s,d]),y=a((()=>al(e.defaultFocusedValue?$n(xn(e.defaultFocusedValue),p):f||$n(Xt(v),p),s,d)),[e.defaultFocusedValue,f,v,p,s,d]),[w,x]=ir(b,y,e.onFocusChange),[E,$]=t((()=>{switch(c){case"start":return tl(w,l,r,s,d);case"end":return nl(w,l,r,s,d);default:return el(w,l,r,s,d)}})),[C,k]=t(e.autoFocus||!1),D=a((()=>{let e={...l};return e.days?e.days--:e.days=-1,E.add(e)}),[E,l]),[S,I]=t(p.identifier);if(p.identifier!==S){let e=$n(w,p);$(el(e,l,r,s,d)),x(e),I(p.identifier)}function L(e){e=al(e,s,d),x(e)}function N(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void h(null);if(!(t=rl(t=al(t,s,d),E,u)))return;t=$n(t,(null==g?void 0:g.calendar)||new Ut),h(g&&"hour"in g?g.set(t):t)}}Qi(w,s,d)?x(al(w,s,d)):w.compare(E)<0?$(nl(w,l,r,s,d)):w.compare(D)>0&&$(tl(w,l,r,s,d));let R=a((()=>!!f&&(!(!u||!u(f))||Qi(f,s,d))),[f,u,s,d]),z=e.isInvalid||"invalid"===e.validationState||R,P=z?"invalid":null,T=a((()=>"visible"===m?l:ll(l)),[m,l]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:f,setValue:N,visibleRange:{start:E,end:D},minValue:s,maxValue:d,focusedDate:w,timeZone:v,validationState:P,isValueInvalid:z,setFocusedDate(e){L(e),k(!0)},focusNextDay(){L(w.add({days:1}))},focusPreviousDay(){L(w.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&L(w.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&L(w.subtract({weeks:1}))},focusNextPage(){let e=E.add(T);x(al(w.add(T),s,d)),$(tl(ol(w,e,T,r,s,d),T,r))},focusPreviousPage(){let e=E.subtract(T);x(al(w.subtract(T),s,d)),$(tl(ol(w,e,T,r,s,d),T,r))},focusSectionStart(){l.days?L(E):l.weeks?L(an(w,r)):(l.months||l.years)&&L(nn(w))},focusSectionEnd(){l.days?L(D):l.weeks?L(function(e,t){return an(e,t).add({days:6})}(w,r)):(l.months||l.years)&&L(on(w))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?L(w.add({months:1})):(l.months||l.years)&&L(w.add({years:1})):L(w.add(ll(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?L(w.subtract({months:1})):(l.months||l.years)&&L(w.subtract({years:1})):L(w.subtract(ll(l)))},selectFocusedDate(){N(w)},selectDate(e){N(e)},isFocused:C,setFocused:k,isInvalid:e=>Qi(e,s,d),isSelected(e){return null!=f&&Yt(e,f)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>C&&w&&Yt(e,w),isCellDisabled(t){return e.isDisabled||t.compare(E)<0||t.compare(D)>0||this.isInvalid(t,s,d)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return Yt(e,E)||this.isInvalid(e,s,d)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return Yt(e,D)||this.isInvalid(e,s,d)},getDatesInWeek(e,t=E){let n=t.add({weeks:e}),o=[];n=an(n,r);let a=Gt(n,r);for(let e=0;e<a;e++)o.push(null);for(;o.length<7;){o.push(n);let e=n.add({days:1});if(Yt(n,e))break;n=e}for(;o.length<7;)o.push(null);return o}}}function ll(e){let t={...e};for(let n in e)t[n]=1;return t}function sl(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:xn(e),end:xn(t)}):null}function dl(e,t){return e=$n(e,(null==t?void 0:t.calendar)||new Ut),t&&"hour"in t?t.set(e):e}function cl(e,t,n){let o=e.add({days:n});for(;(n<0?o.compare(t.visibleRange.start)>=0:o.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(o);)o=o.add({days:n});return t.isCellUnavailable(o)?o.add({days:-n}):null}const ul=l({}),ml=l(null),pl=l(null);function gl(n,o){[n,o]=Ki(n,o,ul);let{locale:r}=hi(),l=function(e){let{value:n,defaultValue:o,onChange:r,createCalendar:l,locale:s,visibleDuration:d={months:1},minValue:c,maxValue:u,...m}=e,[p,g]=ir(n,o||null,r),[h,f]=t(null),v="center";if(p&&p.start&&p.end){let e=el(xn(p.start),d,s,c,u).add(d).subtract({days:1});p.end.compare(e)>0&&(v="start")}let b=i(null),[y,w]=t(null),x=a((()=>dn(c,null==y?void 0:y.start)),[c,y]),E=a((()=>sn(u,null==y?void 0:y.end)),[u,y]),$=il({...m,value:p&&p.start,createCalendar:l,locale:s,visibleDuration:d,minValue:x,maxValue:E,selectionAlignment:v}),C=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(b.current={start:cl(t,$,-1),end:cl(t,$,1)},w(b.current)):(b.current=null,w(null))},[k,D]=t($.visibleRange);Jt($.visibleRange.start,k.start)&&Jt($.visibleRange.end,k.end)||(C(h),D($.visibleRange));let S=e=>{e?(f(e),C(e)):(f(null),C(null))},I=h?sl(h,$.focusedDate):p&&sl(p.start,p.end),L=t=>{if(!e.isReadOnly&&(t=rl(t=al(t,x,E),$.visibleRange.start,e.isDateUnavailable)))if(h){let e=sl(h,t);g({start:dl(e.start,null==p?void 0:p.start),end:dl(e.end,null==p?void 0:p.end)}),S(null)}else S(t)},[N,R]=t(!1),{isDateUnavailable:z}=e,P=a((()=>!(!p||h)&&(!(!z||!z(p.start)&&!z(p.end))||Qi(p.start,c,u)||Qi(p.end,c,u))),[z,p,h,c,u]),T=e.isInvalid||"invalid"===e.validationState||P,M=T?"invalid":null;return{...$,value:p,setValue:g,anchorDate:h,setAnchorDate:S,highlightedRange:I,validationState:M,isValueInvalid:T,selectFocusedDate(){L($.focusedDate)},selectDate:L,highlightDate(e){h&&$.setFocusedDate(e)},isSelected:e=>I&&e.compare(I.start)>=0&&e.compare(I.end)<=0&&!$.isCellDisabled(e)&&!$.isCellUnavailable(e),isInvalid(e){var t,n;return $.isInvalid(e)||Qi(e,null===(t=b.current)||void 0===t?void 0:t.start,null===(n=b.current)||void 0===n?void 0:n.end)},isDragging:N,setDragging:R}}({...n,locale:r,createCalendar:Xo}),{calendarProps:s,prevButtonProps:d,nextButtonProps:c,errorMessageProps:u,title:m}=function(e,t,n){let o=Ai(e,t),a=i(!1),r=i("undefined"!=typeof window?window:null);return er(r,"pointerdown",(e=>{a.current=0===e.width&&0===e.height})),er(r,"pointerup",(e=>{if(a.current)return void(a.current=!1);if(t.setDragging(!1),!t.anchorDate)return;let o=e.target;!n.current||!n.current.contains(document.activeElement)||n.current.contains(o)&&o.closest('button, [role="button"]')||t.selectFocusedDate()})),o.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&n.current.contains(e.relatedTarget)||!t.anchorDate||t.selectFocusedDate())},er(n,"touchmove",(e=>{t.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(n,l,o),p=Zi({...n,values:{state:l,isDisabled:n.isDisabled||!1,isInvalid:l.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return e.createElement("div",{...p,...s,ref:o,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":l.isValueInvalid||void 0},e.createElement(Wi,{values:[[Ji,{slots:{previous:d,next:c}}],[aa,{"aria-hidden":!0,level:2,children:m}],[pl,l],[_i,{slots:{errorMessage:u}}]]},e.createElement(Hi,null,e.createElement("h2",null,s["aria-label"])),p.children,e.createElement(Hi,null,e.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}const hl=r(gl),fl=l(null);function vl(t,n){let o=d(ml),r=d(pl),i=null!=o?o:r,l=i.visibleRange.start;t.offset&&(l=l.add(t.offset));let{gridProps:s,headerProps:c,weekDays:u}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:o=t.visibleRange.end}=e,{direction:r}=hi(),i=zi(n,o,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=Ni.get(t),d=qa({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),c=Di({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:u}=hi(),m=a((()=>{let e=an(Xt(t.timeZone),u);return[...new Array(7).keys()].map((n=>{let o=e.add({days:n}).toDate(t.timeZone);return c.format(o)}))}),[u,t.timeZone,c]);return{gridProps:Sa(d,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===r?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===r?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}({startDate:l,endDate:on(l),weekdayStyle:t.weekdayStyle},i);var m;return e.createElement(fl.Provider,{value:{headerProps:c,weekDays:u,startDate:l}},e.createElement("table",{...za(t),...s,ref:n,style:t.style,className:null!==(m=t.className)&&void 0!==m?m:"react-aria-CalendarGrid"},"function"!=typeof t.children?t.children:e.createElement(e.Fragment,null,e.createElement(wl,null,(t=>e.createElement(El,null,t))),e.createElement(Cl,null,t.children))))}const bl=r(vl);function yl(t,n){let{children:o,style:a,className:r}=t,{headerProps:i,weekDays:l}=d(fl);return e.createElement("thead",{...za(t),...i,ref:n,style:a,className:r||"react-aria-CalendarGridHeader"},e.createElement("tr",null,l.map(((t,n)=>e.cloneElement(o(t),{key:n})))))}const wl=r(yl);function xl(t,n){let{children:o,style:a,className:r}=t;return e.createElement("th",{...za(t),ref:n,style:a,className:r||"react-aria-CalendarHeaderCell"},o)}const El=r(xl);function $l(t,n){let{children:o,style:a,className:r}=t,i=d(ml),l=d(pl),s=null!=i?i:l,{startDate:c}=d(fl),{locale:u}=hi(),m=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Gt(nn(e),t)+n)/7)}(c,u);return e.createElement("tbody",{...za(t),ref:n,style:a,className:r||"react-aria-CalendarGridBody"},[...new Array(m).keys()].map((t=>e.createElement("tr",{key:t},s.getDatesInWeek(t,c).map(((t,n)=>t?e.cloneElement(o(t),{key:n}):e.createElement("td",{key:n})))))))}const Cl=r($l);function kl({date:t,...n},o){let a=d(ml),r=d(pl),l=null!=a?a:r;var s;let{startDate:c}=null!==(s=d(fl))&&void 0!==s?s:{startDate:l.visibleRange.start},u=i(null),{cellProps:m,buttonProps:p,...g}=Oi({date:t},l,u),{hoverProps:h,isHovered:f}=ti({...n,isDisabled:g.isDisabled}),{focusProps:v,isFocusVisible:b}=oi();b&&(b=g.isFocused);let y=(x=$n(x=t,(w=c).calendar),w=nn(w),x=nn(x),!(w.era===x.era&&w.year===x.year&&w.month===x.month));var w,x;let E=!1,$=!1;"highlightedRange"in l&&l.highlightedRange&&(E=Yt(t,l.highlightedRange.start),$=Yt(t,l.highlightedRange.end));let C=Zi({...n,defaultChildren:g.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:f,isOutsideMonth:y,isFocusVisible:b,isSelectionStart:E,isSelectionEnd:$,...g}}),k={"data-focused":g.isFocused||void 0,"data-hovered":f||void 0,"data-pressed":g.isPressed||void 0,"data-unavailable":g.isUnavailable||void 0,"data-disabled":g.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":g.isOutsideVisibleRange||void 0,"data-outside-month":y||void 0,"data-selected":g.isSelected||void 0,"data-selection-start":E||void 0,"data-selection-end":$||void 0,"data-invalid":g.isInvalid||void 0};return e.createElement("td",{...m,ref:o},e.createElement("div",{...Sa(za(n),p,v,h,k,C),ref:u}))}const Dl=r(kl);function Sl(t,n){[t,n]=Ki(t,n,aa);let{children:o,level:a=3,className:r,...i}=t,l=`h${a}`;return e.createElement(l,{...i,ref:n,className:null!=r?r:"react-aria-Heading"},o)}const Il=r(Sl),Ll=t=>e.createElement(bl,Object.assign({weekdayStyle:"short"},t),e.createElement(wl,null,(t=>e.createElement(El,null,t.slice(0,2)))),e.createElement(Cl,null,(t=>e.createElement(Dl,{date:t})))),Nl=f`.react-aria-Button{color:${j.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${j.sizes.base};height:${j.sizes.base};}&:not[disabled]:active,&:not[disabled]:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:not[disabled]:active,&:not[disabled]:hover{background-color:${j.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${j.colors.neutral.grey.base};cursor:default;}}`,Rl=f`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${j.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${j.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${j.colors.secondary.blue.light};}&[data-selected]{background:${j.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${j.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:default;}&[data-unavailable]{text-decoration:line-through;color:${j.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${j.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${j.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${j.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,zl=f`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Pl=j.text.headingSmall,`\n font-family: ${Pl.fontFamily};\n font-style: ${Pl.fontStyle};\n font-weight: ${Pl.fontWeight};\n font-size: ${Pl.fontSize};\n line-height: ${Pl.lineHeight};\n color: ${Pl.color};\n text-decoration: ${Pl.textDecoration};\n letter-spacing: ${Pl.letterSpacing};\n`}}}.react-aria-CalendarHeaderCell{padding-bottom:${j.sizes.sm};}`;var Pl;const Tl=h(hl).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${j.colors.neutral.ink.base};font-size:14px;font-family:${j.fontFamily};${zl} ${Nl} ${Rl} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,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:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Fl=t=>{var{disabledRanges:n=[],disallowWeekends:o=!1,isMultiMonth:a=!1}=t,r=te(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const{locale:i}=hi(),l=s((e=>!!o&&function(e,t){let n=e.calendar.toJulianDay(e),o=Math.ceil(n+1)%7;o<0&&(o+=7);let a=ln(t),[r,i]=cn[a]||[6,0];return o===r||o===i}(e,i)||n.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[n,o,i]);return e.createElement(Tl,Object.assign({isDateUnavailable:l,visibleDuration:a?{months:2}:void 0},r),e.createElement("header",null,e.createElement(Xi,{slot:"previous"},e.createElement(Ml,null)),e.createElement(Il,null),e.createElement(Xi,{slot:"next"},e.createElement(Pt,null))),a?e.createElement("div",{style:{display:"flex",gap:j.sizes.sm,overflow:"auto"}},e.createElement(Ll,null),e.createElement(Ll,{offset:{months:1}})):e.createElement(Ll,null))};var Bl;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Bl||(Bl={}));const Al=h.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:a="base"}=e;let r,i,l,s,d="",c="";return"vertical"===t?(r=n&&Bl[n],i=o&&Bl[o],d=j.sizes[a],l="column"):(r=o&&Bl[o],i=n&&Bl[n],c=j.sizes[a],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${i};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Al.displayName="Stack";const Ol={top:"flex-start",center:"center"},jl=h.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${j.sizes.base};}`,Hl=h.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Ol[e.align]};width:24px;height:24px;`,Vl=h.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Wl=h.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${j.sizes.sm};}`,Zl=h.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${j.text.body.fontFamily};font-size:${j.text.body.fontSize};font-weight:${j.text.body.fontWeight};line-height:${j.sizes.md};color:${j.text.body.color};`,Kl=h.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`,Ul=h.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};`,ql=h.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Yl=h(ql).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${j.colors.neutral.grey.dark};border-radius:${j.radius.md};padding:${j.sizes.base} 0.75rem;&:hover{border-color:${j.colors.secondary.blue.base};}& ${Zl}{font-weight:${j.text.bodyBold.fontWeight};}`,Jl=h(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Gl=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"})),Xl=({id:t,label:n,hint:o,tooltip:a,error:r,bordered:i,Badge:l,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(jl,null,e.createElement(Hl,{align:s?"center":"top"},c),s&&e.createElement(Vl,null,s),n||o||r||l||d?e.createElement(Wl,null,e.createElement(Al,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&e.createElement(Zl,null,n),a&&e.createElement(Jl,{text:a},e.createElement(Gl,{name:"help",width:j.sizes.base,color:j.colors.neutral.ink.lightest}))),o&&e.createElement(Kl,null,o),r&&e.createElement(Ul,null,r),d):null);return i?e.createElement(Yl,{disabled:u,htmlFor:t},m):e.createElement(ql,{disabled:u,htmlFor:t},m)},{colors:_l,sizes:Ql,radius:es}=j,ts=h.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${_l.neutral.ink.lightest};border-radius:${es.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${_l.secondary.blue.base};border-color:${_l.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:${Ql[4]};background-position:center;}&:hover{border-color:${_l.secondary.blue.base};}&:active{border-color:${_l.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${_l.secondary.blue.light};outline:0;}&:indeterminate{background-color:${_l.secondary.blue.base};border-color:${_l.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:${Ql[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${_l.neutral.grey.base};border-color:${_l.neutral.grey.base};color:${_l.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>");}`,ns=t=>{var{checked:n,indeterminate:r,value:l,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=te(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=a((()=>ne("checkbox")),[]),f=i(null),v=s((e=>{p(e.currentTarget.checked,l)}),[p,l]);return o((()=>{f.current&&(f.current.indeterminate=!0===r)}),[r]),e.createElement(Xl,Object.assign({id:h,disabled:c},g),e.createElement(ts,{ref:f,id:h,type:"checkbox",checked:n,value:l,name:d,disabled:c,"aria-label":u,className:m,onChange:v}))},os=h.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,as=r(((t,n)=>{var{checked:o,value:a,name:r,disabled:i,onChange:l,id:d}=t,c=te(t,["checked","value","name","disabled","onChange","id"]);const u=s((e=>{l(e.currentTarget.checked,a)}),[l,a]),m=null!=d?d:ne("radio");return e.createElement(Xl,Object.assign({id:m,disabled:i},c),e.createElement(os,{id:m,type:"radio",checked:o,value:a,name:r,disabled:i,onChange:u,ref:n}))})),rs=h.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,is=h.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${j.text.inputLabel.fontFamily};font-size:${j.text.inputLabel.fontSize};font-style:${j.text.inputLabel.fontStyle};font-weight:${j.text.inputLabel.fontWeight};line-height:${j.text.inputLabel.lineHeight};text-decoration:${j.text.inputLabel.textDecoration};color:${j.text.inputLabel.color};`;class ls 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 a=[];a=t?[...n,e]:n.filter((t=>t!==e)),o(a)}}render(){const{allowMultiple:t,options:n,selected:o,title:a,disabled:r,bordered:i}=this.props,l=t?ns:as;return e.createElement(rs,{disabled:r},a&&e.createElement(is,null,a),n.map((t=>e.createElement(l,Object.assign({key:t.value,bordered:i,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const ss=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"})),ds=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"})),cs={width:B.base,height:B.base},us=h(Ie).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${B.base};width:${B.base};top:unset;}`,ms=({className:t,text:n,onCopy:o})=>{const[a,r]=e.useState(!1),i=s((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(bt,{text:a?"Copied!":"Copy to clipboard"},e.createElement(us,{variant:"flat",size:"sm",className:t,"aria-label":`${a?"Copied":"Copy"} "${n}" to clipboard`,icon:a?e.createElement(ss,Object.assign({color:N.secondary.green.base},cs)):e.createElement(ds,Object.assign({color:N.secondary.blue.base},cs)),onClick:i}))};function ps(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function gs(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${gs(e.min,"max-content")}, ${gs(e.max)})`;default:return t||"1fr"}}function hs({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:a,stripingMode:r}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),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,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,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${j.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${j.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${j.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${j.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>gs(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?l:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var fs;!function(e){e.ascending="ascending",e.descending="descending"}(fs||(fs={}));const vs=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"})),bs=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"})),ys=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"})),ws=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===fs.ascending?e.createElement(bs,{color:j.colors.neutral.ink.dark,size:o}):e.createElement(ys,{color:j.colors.neutral.ink.dark,size:o}):e.createElement(vs,{size:o});function xs(e,n){const[a,r]=t([]),i=()=>{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((()=>{i()}),[e.current]),o((()=>{if(!n.current)return;const e=C(i,50),t=new y(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}function Es(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),a=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...a,...o],pinnedLeft:n,pinnedRight:o}}function $s(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},a=e=>{if(!n)return;const a=e.clientX-o.x;n.scrollLeft=o.left-a,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",a),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[e.current])}function Cs(){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 a=[...e];a.splice(t,1),n(a)}}}}}function ks(e){const[n,a]=t("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;a(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=C(r,50),n=new y(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Ds="56px",Ss=h.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Ds};display:flex;align-items:center;justify-content:${({align:e="left"})=>ps(e)};background-color:white;padding-left:${({spacing:e=3})=>j.sizes[e]};padding-right:${({spacing:e=3})=>j.sizes[e]};border-bottom:1px solid ${j.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Is(t){var{selected:n,indeterminate:o,onChange:a,selectionMode:r}=t,i=te(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Ss,Object.assign({},i)):e.createElement(Ss,Object.assign({},i),e.createElement(ns,{checked:n,indeterminate:o,onChange:a}))}const Ls=h.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>ps(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>j.sizes[e]};padding-right:${({spacing:e=3})=>j.sizes[e]};color:${j.text.bodySmall.color};font-family:${j.text.bodySmall.fontFamily};font-size:${j.text.bodySmall.fontSize};font-style:${j.text.bodySmall.fontStyle};font-weight:${j.text.bodySmall.fontWeight};line-height:${j.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${j.colors.secondary.blue.base};background-color:${j.colors.neutral.grey.lightest};}`;function Ns(t){var{selected:n,rowId:o,onChange:a,selectionMode:r,disabled:i}=t,l=te(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Ls,Object.assign({},l),e.createElement(as,{value:o,checked:n,disabled:i,onChange:a})):e.createElement(Ls,Object.assign({},l),e.createElement(ns,{value:o,checked:n,disabled:i,onChange:a}))}const Rs=[[],()=>{}];function zs({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const a=!!n,[r,i]=n||Rs,l=()=>{r.length!==o.length?i(o):i([])};return{selectionEnabled:a,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,a)=>e.createElement(Is,Object.assign({},a,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:l,selectionMode:t})),renderCell:(n,o,a,r)=>e.createElement(Ns,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:a.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)i([n]);else if(e){if(r.includes(n))return;const e=[...r,n];i(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),i(t)}}}}const Ps=h.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${j.colors.neutral.ink.lightest};`,Ts=h.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${j.text.headingTable.color};font-family:${j.text.headingTable.fontFamily};font-size:${j.text.headingTable.fontSize};font-style:${j.text.headingTable.fontStyle};font-weight:${j.text.headingTable.fontWeight};line-height:${j.text.headingTable.lineHeight};`,Ms=h(Ts).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${Ps}{background-color:${j.colors.neutral.grey.light};color:${j.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${j.colors.secondary.blue.light};}`;function Fs({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 a={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,a);const r=t.sortable?Ms:Ts,i=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===fs.ascending;let a=fs.ascending;return n&&o&&(a=fs.descending),{columnId:t,direction:a}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Ss,Object.assign({},a),e.createElement(bt,{text:t.tooltip},e.createElement(r,Object.assign({},i),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Ps,null,e.createElement(ws,{sortState:n,columnId:t.id,size:5})))))}const Bs=j.colors.neutral.grey.base,As=j.colors.neutral.grey.dark,Os=h.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${j.radius.base};background:${Bs};background-image:linear-gradient(\n to right,\n ${Bs} 0%,\n ${As} 20%,\n ${Bs} 40%,\n ${Bs} 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 js=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${Ds};background-color:white;`,Hs=h.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${j.colors.neutral.grey.base};& > *{flex:1;}`;function Vs({selectionColumn:n,intersectionTargetRef:a,containerRef:r,children:i}){var l;const[s,d]=t(!1);o((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(a.current),()=>e.disconnect()}),[a.current]);const c=null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(js,{style:m},Fs({column:n}),e.createElement(Hs,null,i))}const Ws=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"})),Zs=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"})),Ks=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 Us=h.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${j.sizes.lg};padding-bottom:${j.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${j.sizes.md};`,qs=h.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${j.sizes.md};background-color:${j.colors.neutral.grey.light};border-radius:${j.radius.full};`,Ys=h.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Js=h.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${j.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 `}`,Gs=h.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Xs=h.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${j.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,_s=h.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Qs={full:`border-width: 1px; border-radius: ${j.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},ed=h.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${j.colors.neutral.grey.dark};${({borderMode:e="full"})=>Qs[e]} &,& *{box-sizing:border-box;}`;function td({children:n,intersectionTargetRef:a,containerRef:r,cellWidths:l,tableCss:s}){const d=i(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),g=()=>{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};p(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(a.current),()=>e.disconnect()}),[a.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=C(g,33),t=new y(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),o((()=>{h()}),[c]),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]),!c)return null;const f=Object.assign(Object.assign({},m),{height:Ds,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${j.colors.neutral.grey.base}`}),v=s+l.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(Xs,{css:v},e.createElement("thead",null,n)))}const nd=(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}),od=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"})),ad={icon:e.createElement(od,{width:48,height:48}),heading:"No results"},rd=()=>{},id=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:a=ad,expandedRowIds:r,loading:l,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:f,enableStickyHeader:v})=>{const b=i(null),y=i(null),w=i(null);$s(b);const x=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:$,selectionColumn:C,setSelected:k}=zs({selectionMode:m,selectionState:p,enabledRowIds:x}),D={setSelected:k||rd,setExpanded:g||rd},S=[C,...o],I=E?S:o,L=xs(y,b),{visible:N,pinnedLeft:R,pinnedRight:z}=Es(I),{scrollPosition:P}=ks(b),T=hs({pinnedLeft:R,pinnedRight:z,cellWidths:L,scrollPosition:P,visible:N,stripingMode:f});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(ed,{borderMode:n},e.createElement(Gs,{ref:b},e.createElement(Xs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Js,{role:"row"},N.map((e=>Fs({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Js,{key:t.id},N.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(Ls,Object.assign({},o),e.createElement(Os,null))}(t,n))))))))))}if(0===c.length)return e.createElement(ed,{borderMode:n},e.createElement(Gs,{ref:b},e.createElement(Xs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Js,{role:"row"},N.map((e=>Fs({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Us,{columnCount:N.length},e.createElement(qs,null,a.icon),e.createElement(Al,{spacing:"sm",alignX:"center"},e.createElement(Z,{variant:"headingMedium"},a.heading),a.subheading&&e.createElement(Z,{variant:"subheadingMedium"},a.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:o}=t,a=nd(t.id,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Js,Object.assign({role:"row",key:t.id,accentColor:o,className:n},a),N.map((e=>function(e,t,n,o){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,a,n,o)}(t,e,D,a))))},F=(t,n)=>{var o,a;const i=null===(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===a?void 0:a.row,l=nd(n,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Js,{role:"row",key:t.id,className:i},N.map((n=>function(t,n,o){if(n.hidden)return null;const a={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,a,o):e.createElement(Ls,Object.assign({},a))}(t,n,l))))},B=t=>{var n;const o=null==r?void 0:r.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=>F(e,t.id)))))},A=e.createElement(Js,{role:"row"},N.map((e=>Fs({column:e,sortState:h,onChangeSort:d})))),O=o.some((e=>!!e.renderFooter)),j=$.length>0&&!!t;return e.createElement(ed,{borderMode:n},j&&e.createElement(Vs,{selectionColumn:C,intersectionTargetRef:w,containerRef:b},t),e.createElement(Gs,{ref:b},v&&e.createElement(td,{tableCss:T,intersectionTargetRef:w,containerRef:b,cellWidths:L},A),e.createElement("div",{ref:w,style:{height:0}}),e.createElement(Xs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},A),(()=>{const t=!!r;return t&&"nested"===f?c.map(B):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>F(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(M))})(),O&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Js,{role:"row"},N.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(Ls,Object.assign({},n))}({column:t}))))))))};id.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},id.Cell=Ls,id.ColumnMenu=function({columns:n,columnGroups:o,setColumns:a}){const[r,i]=t(null),[l,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=o.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const o=u[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),a(r)};return e.createElement(e.Fragment,null,e.createElement(Ie,{ref:i,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&e.createElement(ue,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(We,{style:{width:600}},e.createElement(Al,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(Al,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Ie,{variant:"flat",icon:e.createElement(Ks,null)}),e.createElement(Al,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Al,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Ie,{variant:"flat",icon:e.createElement(Zs,null),onClick:()=>m(n,!1),style:{color:j.colors.neutral.ink.lightest}}):e.createElement(Ie,{variant:"flat",icon:e.createElement(Ws,null),onClick:()=>m(n,!0)})))))))))},id.SelectionCell=Ns,id.SelectionHeader=Is,id.Header=Ss,id.Truncate=_s,id.NoWrap=Ys;const ld=h.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${j.sizes.base};}`,sd=h.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${j.sizes.xs};}`,dd=h.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${j.sizes.base};}`,cd=h.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${j.sizes.xs};}`,ud=h.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${j.text.bodyBold.fontFamily};font-size:${j.text.bodyBold.fontSize};font-weight:${j.text.bodyBold.fontWeight};line-height:${j.text.bodyBold.lineHeight};color:${j.text.bodyBold.color};`,md=h.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${j.text.body.fontFamily};font-size:${j.text.body.fontSize};font-weight:${j.text.body.fontWeight};line-height:${j.text.body.lineHeight};color:${j.text.body.color};`,pd=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(md,{key:t},t))):e.createElement(md,null,t);return e.createElement(ld,null,t.map((t=>n?e.createElement(dd,{key:t.term},e.createElement(ud,null,t.term),e.createElement(cd,null,o(t.description))):e.createElement(sd,{key:t.term},e.createElement(ud,null,t.term),o(t.description)))))},{sizes:gd,colors:hd}=j,fd=h.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${gd.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${gd.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,vd=h.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${gd.md};overflow-x:hidden;background-color:${hd.neutral.grey.lightest};`,bd=({renderHeader:n,children:o})=>{const[a,r]=t(!0);return e.createElement("main",null,n((()=>r(!a)),a),e.createElement(vd,null,e.createElement(fd,{showSidebar:a},o)))},yd=h.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var wd;!function(e){e.base="base",e.sm="sm"}(wd||(wd={}));const xd=h.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${j.text.inputLabel.fontFamily};font-size:${j.text.inputLabel.fontSize};font-weight:${j.text.inputLabel.fontWeight};line-height:${j.text.inputLabel.lineHeight};color:${j.text.inputLabel.color};`,Ed=h.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`,$d=h.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${j.sizes[2]} * -1);width:2px;background-color:${j.colors.secondary.red.base};}`,Cd=h(Al).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,kd=h(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,Dd=t=>n=>{var{label:o,hint:r,error:i,tooltip:l}=n,s=te(n,["label","hint","error","tooltip"]);const d=a((()=>ne(t.name)),[]);return o?e.createElement(Cd,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Al,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(xd,{htmlFor:d},o),l&&e.createElement(kd,{text:l},e.createElement(Gl,{width:j.sizes.base,height:j.sizes.base,color:j.colors.neutral.ink.light}))),r&&e.createElement(Ed,null,r)),e.createElement(t,Object.assign({id:d,hasError:!!i},s)),i&&e.createElement($d,null,i)):e.createElement(t,Object.assign({hasError:!!i},s))},Sd=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Id=({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 "}`,Ld=h.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${j.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 `}} ${Id} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Nd=h.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${Id}`,Rd=/^-?[0-9]*\.?[0-9]+$/,zd=Dd(r(((t,n)=>{var{id:o,className:a,disabled:r=!1,hasError:i,max:l,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:f=wd.base,step:v,type:b="text",value:y,spellCheck:w=!1}=t,x=te(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=s((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==b)return void m(t);new RegExp(Rd).test(t)&&m(t)}),[m,b]),$=null!=o?o:ne("textfield");return"text"===b&&c?e.createElement(Nd,Object.assign({className:a,disabled:r,hasError:i,id:$,name:u,onChange:E,placeholder:g,rows:h,value:y,spellCheck:w,ref:n},x)):e.createElement(Ld,Object.assign({className:a,disabled:r,hasError:i,id:$,inputSize:f,max:l,min:d,name:u,"aria-label":u,onChange:E,placeholder:g,step:v,type:b,value:y,spellCheck:w,ref:n},x))})));zd.displayName="TextField";const Pd=h(S).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Td=h(S).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Md=h(zd).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${j.colors.neutral.ink.lightest};}`,Fd=h(Ie).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${j.colors.neutral.ink.lightest};`;h(Z).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,h.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${j.sizes[2]} * -1);width:2px;background-color:${j.colors.secondary.red.base};}`,h.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`;const Bd=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Ad=["-","+","E","e"],Od=e=>Bd(e,Ad),jd=Dd((t=>{var{size:n=wd.base,handleChangeHeight:o,handleChangeWidth:a,handleChangeLength:r,className:i,height:l,width:s,length:d,unit:c}=t,u=te(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Pd,{className:i},e.createElement(Td,null,e.createElement(Md,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Od},u)),e.createElement(ze,{height:j.sizes.base,width:j.sizes.base}),e.createElement(Md,Object.assign({onChange:a,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Od},u)),e.createElement(ze,{height:j.sizes.base,width:j.sizes.base}),e.createElement(yd,null,e.createElement(Md,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l,min:"0",step:"any",onKeyDown:Od},u)),e.createElement(Fd,{size:n},c))))}));jd.displayName="DimensionsInput";const Hd=(e,t)=>{const n=i(null),a=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",a),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",a)}}),[r,a,e]),n},Vd=(e,n)=>{const[a,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),a};function Wd(){const[e,n]=t(!1),o=s((()=>n(!e)),[e,n]),a=s((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:a}}const Zd=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Kd({children:n}){const[a,r]=t(!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 a(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function i(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",a,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[r]),e.createElement(Zd.Provider,{value:{hadKeyboardEvent:a,isInitialized:!0}},n)}function Ud(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:a}=e.useContext(Zd),r=e.useCallback((()=>{t||n(!0)}),[t]),i=e.useCallback((()=>{t&&n(!1)}),[t]);let l;return l=a?o&&t:t,e.useMemo((()=>({focusVisible:l,onFocus:r,onBlur:i})),[l,i,r])}const qd=(e=!1)=>{const[n,o]=t(e);return[n,s((()=>o(!0)),[o]),s((()=>o(!1)),[o])]},Yd=e=>{const[n,a]=t(!1),[r,i]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;a(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:a}=t.target;i(o-n-a<=0)}}},Jd=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[a]=t(e),[r,i]=t(a[o]);return[r,e=>{const t=a.find((t=>t.key===e));t&&i(t)}]},Gd=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`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:${B.base};height:${B.base};}`,Xd=h(Z).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,_d=h(Xd).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Qd=h(Re).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,ec=h(ze).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,tc=h(S).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,nc=h(S).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${N.neutral.grey.base};svg{color:${({color:e})=>e};width:${B[5]};height:${B[5]};margin-right:10px;}`,oc=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ac=({className:t,e2eClassName:n,label:o,text:a,iconSlot:r,fill:i=N.secondary.blue.base,content:l,footer:d,header:c,onClickAway:u,onClick:m,shouldCloseOnClickAway:p=!0})=>{const g=oc(t),h=oc(n),{shouldShowDropdown:f,toggleShouldShowDropdown:v,closeDropdown:b}=Wd(),y=s((e=>{v(),u&&f&&u(e)}),[v,u,f]),w=s((e=>{u&&u(e,b),p&&b()}),[b,u,p]);return!l?e.createElement(Gd,{className:ie([null==g?void 0:g.container,null==h?void 0:h.container]),onClick:m},o&&e.createElement(_d,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(Z,null,a),e.createElement(ec,{className:ie([null==g?void 0:g.cross,null==h?void 0:h.cross]),name:"cross",size:"base",color:N.neutral.ink.base})):e.createElement(it,{className:g.filterTagDropdown,shouldShowDropdown:f,onClickAway:w,cta:e.createElement(Gd,{className:g.container,onClick:y},o&&e.createElement(_d,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(Z,null,a),e.createElement(Qd,{color:N.neutral.ink.base,name:"downArrow",$shouldShow:f}))},e.createElement(tc,null,e.createElement(nc,{color:i},c||e.createElement(e.Fragment,null,r,e.createElement(Z,{variant:"bodyBold"},o))),l,d))},rc=h(S).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?B[e]:0};`,ic=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"})),lc=h.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,sc=h.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,dc=h.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,cc=h.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,uc=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}),mc=({src:n,alt:o="",className:a,e2eClassName:r,width:i,height:l,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:f=!1})=>{const v=uc(a),y=uc(r),[w,E]=t(!1),[$,C]=t({isLoaded:!1,isError:!1}),[k,D]=e.useState(null),[S,I]=e.useState(null),{styles:L,attributes:N}=b(k,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),R=s((()=>m?E(!0):{}),[m]),z=s((()=>m?E(!1):{}),[m]),P=!$.isLoaded||$.isError;return e.createElement(lc,{className:ie([null==v?void 0:v.container,null==y?void 0:y.container,a])},e.createElement(sc,{src:n,alt:o,className:ie([null==v?void 0:v.image,null==y?void 0:y.image]),width:i,height:l,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:R,onMouseLeave:z,style:P?{display:"none"}:{},ref:D}),!f&&P&&(p||e.createElement(ic,{className:ie([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:g||i,height:h||l})),w&&x(e.createElement(dc,Object.assign({ref:I,style:L.popper},N.popper,{className:ie([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(cc,{src:n,alt:"",width:d,height:c})),document.body))},pc={width:64,height:64},gc={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({},pc)),title:"No data found"},hc={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({},pc)),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 fc;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(fc||(fc={}));const{text:vc,sizes:bc}=j,{blue:yc}=j.colors.secondary,{grey:wc}=j.colors.neutral,{scrollbar:xc}=j.colors.system,Ec='\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',$c=h.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Cc=h.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${wc.dark};border-bottom:1px solid ${wc.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: ${xc.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${xc.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 ${Ec};\n\n ${o===fc.middle||o===fc.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 ${Ec};\n\n ${o===fc.start||o===fc.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,kc=h(Cc).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${wc.dark};border-radius:4px;`,Dc=h.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Sc=h.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${wc.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;h.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${wc.lightest};padding:1.5rem 1rem;border-top:1px solid ${yc.base};}`;const Ic=h.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Lc=h.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${vc.bodySmall.fontFamily};font-size:${vc.bodySmall.fontSize};font-weight:${vc.bodySmall.fontWeight};color:${vc.bodySmall.color};line-height:${bc.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Nc=h(Lc).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${wc.dark};font-family:${vc.bodySmallBold.fontFamily};font-size:${vc.bodySmallBold.fontSize};font-weight:${vc.bodySmallBold.fontWeight};color:${vc.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${wc.light};}`,Rc={left:"flex-start",center:"center",right:"flex-end"},zc=h.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Rc[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Pc=h.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Sc}:nth-child(even) td {\n background-color: ${wc.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Nc}, & ${Nc} span {\n white-space: nowrap;\n }\n `}`,Tc=h.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Lc}{border-top:1px solid ${wc.dark};background-color:${wc.lightest};padding-top:${bc.base};padding-bottom:${bc.base};line-height:2rem;}`,Mc=h.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Fc=h(Pc).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Bc=h(S).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Ac=h(S).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${j.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Oc=h(Z).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,jc=h(Z).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Hc=({height:t,icon:n,title:o,subTitle:a})=>e.createElement(Bc,{height:t},e.createElement(Ac,null,n),e.createElement(Oc,{variant:"headingLarge"},o),a&&e.createElement(jc,{variant:"subheadingMedium"},a)),Vc=h.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${j.sizes.base};border-radius:${j.radius.base};&:hover{cursor:pointer;background-color:${j.colors.secondary.blue.lightest};}`,Wc=h(Vc).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${j.text.link.color};text-decoration:${j.text.link.textDecoration};`,Zc=h.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Kc}=j.colors.neutral,Uc=h.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,qc=h.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${Kc.base} 8%, ${Kc.dark} 15%, ${Kc.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Yc=({isLoading:t,style:n})=>e.createElement(Uc,{style:n},e.createElement(qc,{isLoading:t})),Jc=t=>{var{style:n}=t,o=te(t,["style"]);return e.createElement(Lc,Object.assign({},o),e.createElement(Yc,{style:n}))};Jc.defaultProps={style:{}};const Gc=({renderHeader:n,tableRef:a,wrapperRef:r,isFixedLayout:i,wrapperStyle:l})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[a,r]=t(!1),i=s((({top:e,bottom:t})=>{let o=a;o=e<=(n||0)&&t>0?!a||o:!a&&o,o!==a&&r(o)}),[a,n]);return o((()=>{const t=()=>{var t;e.current&&i(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[i,e]),{isSticky:a}})(a,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),p=((null===(d=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;k(r);const g=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),m?e.createElement(Mc,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},l)},e.createElement(Fc,{style:{tableLayout:i?"fixed":"auto"}},n())):null},Xc=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")},_c=t=>{var{style:n,width:o,isLoading:a}=t,r=te(t,["style","width","isLoading"]);return e.createElement(Nc,Object.assign({},r,{style:{width:o}}),e.createElement(Yc,{style:n,isLoading:a}))},Qc=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"})),eu=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"})),tu=()=>e.createElement(vs,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),nu=()=>e.createElement(Qc,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),ou=()=>e.createElement(eu,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),au=({borderless:n=!1,striped:r=!0,noWrap:l=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:f,renderFooterLoadingRow:v,omitFooterSelectionCell:b=!1,selectedRowIds:y,disabledSelectionInputRowIds:w,selectionMode:x="multiple",onChangeSelectedRowIds:E,sortColumnId:$,sortDirection:C,onChangeSort:k,isError:D=!1,isLoading:S=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:N,customSpecificState:R,bodyHeightInSpecificStates:z=375,startFixedColumnsNumber:P,endFixedColumnsNumber:T})=>{const M=n?Cc:kc,F=!!u&&0===u.length,B=Boolean(P||T),A=!P&&!T,O=i(null),j=i(null),[H,V]=t(fc.none);o((()=>{var e;let t=null;const n=()=>{if(!j.current||A)return;const e=j.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),a=n+o;t===o?V(fc.none):0===n?V(fc.start):n>0&&a<t?V(fc.middle):a===t&&V(fc.end)};return j.current&&(t=j.current,n(),null===(e=j.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[O,A]);const W=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),[]),Z=s(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),K=s((()=>{if(!c||S)return null;const e=[],t=[];let n=0,o=0;if(P){y&&(e.push(Z(1,n,"left")),n+=58);for(let t=0;t<P;t+=1){const o=W(c[t].width);o&&(e.push(Z(y?t+2:t+1,n,"left")),n+=o)}}if(T)for(let e=0;e<T;e+=1){const n=W(c.slice(-e-1)[0].width);n&&(t.push(Z(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[S,W,T,Z,c,P,y]),U=a((()=>K()),[K]),q=s(((e,t)=>{if(!y||!E)return;if(e)return"single"===x?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,x]),Y=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]),J=s((e=>{if(void 0===$||void 0===k)return;let t=$,n="ascending";"ascending"===C&&(n="descending"),e!==$&&(t=e,n="ascending"),k(t,n)}),[k,$,C]),G=s(((t,n)=>{let o="",a=()=>{},r=e.createElement(tu,null);const{tooltip:i,align:l,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",a=()=>J(u),$===u&&(r="ascending"===C?e.createElement(nu,null):e.createElement(ou,null)));const m=e.createElement(zc,{align:l},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(Nc,{key:u,id:`data-table-header-${u}`,className:o,onClick:a,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},i?e.createElement(bt,{text:i},e.createElement($c,null,m)):m)}),[J,$,C]),X=s(((t,n)=>e.createElement(_c,{key:t.id,width:t.width||"auto",style:n,isLoading:S})),[S]),_=s((()=>{if(!c)return null;const t=K(),n=t?t[0].style:{};return e.createElement(Dc,null,e.createElement(Ic,null,y&&e.createElement(Nc,{style:Object.assign({width:58},n)},"multiple"===x&&e.createElement(ns,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:Y,disabled:w&&w.length>0||S||F,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=y?n+2:n+1,a=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===a));return e.skeleton&&(S||D||F)?X(e,e.skeletonStyle||{}):G(e,(null==r?void 0:r.style)||{})}))))}),[K,Y,c,F,D,S,X,G,u.length,y,x,w]),Q=s(((t,n)=>{const o={checked:t,onChange:e=>q(e,n),disabled:(null==w?void 0:w.includes(n.id))||!1};return"single"===x?e.createElement(as,Object.assign({},o)):e.createElement(ns,Object.assign({},o))}),[q,x,w]),ee=s((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===x?e.createElement(Jc,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Jc,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[x]),te=s(((t,n)=>{var o,a;if(!p)return null;const r=p(t);if(!r)return null;const i=(null===(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===a?void 0:a.row)||"";return e.createElement(Ic,{key:t.id,className:`${i} ${n?"hidden":""}`},y&&e.createElement(Lc,null),r)}),[p,y]),ne=s((t=>{if(!c)return e.createElement(Jc,null);const n=c.map((n=>e.createElement(Jc,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>f?S&&!v||!S&&F?null:e.createElement(Tc,{fixedColumnsStyle:Xc(U||[])},e.createElement(Ic,null,y&&!b&&e.createElement(Lc,null),!S&&f(u),S&&v&&v())):null;let ae=P;y&&ae&&(ae+=1);const re=a((()=>u.map((t=>{var n,o,a;const{data:r}=t,i=!!y&&y.includes(t.id),l=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(a=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==a?a:"",c=i?`selected ${d}`:`${d}`;return e.createElement(Sc,{key:t.id,className:s,fixedColumnsStyle:Xc(U||[])},e.createElement(Ic,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(Lc,null,Q(i,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!l))))}))),[u,g,U,te,m,Q,y]);if(S){const t=[];for(let n=0;n<I;n+=1)t.push(e.createElement(Sc,{key:`loading-row-${n}`,fixedColumnsStyle:Xc(U||[])},e.createElement(Ic,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(M,{ref:j,scrollDisabled:!0,scrollPosition:H,lastStartFixedColumnsIndex:ae,firstEndFixedColumnsIndex:T},L&&c&&e.createElement(Gc,{renderHeader:_,tableRef:O,wrapperRef:j,isFixedLayout:B,wrapperStyle:N}),e.createElement(Pc,{ref:O,striped:r,noWrap:l,tableLoading:!0,isFixedLayout:B},_(),t,oe()))}if(F||D){let t=gc;return R?t=R:D&&(t=hc),e.createElement(M,{scrollDisabled:!0},e.createElement(Pc,{ref:O,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:B},_(),oe()),e.createElement(Hc,Object.assign({height:z},t)))}return e.createElement(M,{scrollDisabled:!1,ref:j,scrollPosition:H,lastStartFixedColumnsIndex:ae,firstEndFixedColumnsIndex:T,showScrollbar:d},L&&c&&e.createElement(Gc,{renderHeader:_,tableRef:O,wrapperRef:j,isFixedLayout:B,wrapperStyle:N}),e.createElement(Pc,{ref:O,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:B},_(),re,oe()))};au.Cell=Lc,au.ClickableCell=t=>{var{onClick:n,children:o}=t,a=te(t,["onClick","children"]);return e.createElement(Lc,Object.assign({},a),e.createElement(Wc,{onClick:n},o))},au.EditableCell=t=>{var{onClick:n,children:o}=t,a=te(t,["onClick","children"]);return e.createElement(Lc,Object.assign({},a),e.createElement(Vc,{onClick:n},e.createElement(Zc,null,o)))},au.SkeletonCell=Jc,au.SkeletonContent=Yc;const ru=h.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,iu="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",lu="Log in with Amazon",su=n=>{const[o,a]=t(iu);return e.createElement(ru,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(iu)},"aria-label":lu},n),e.createElement("img",{src:o,alt:lu}))},du=v`body{overflow:hidden;scrollbar-gutter:stable;}`,cu=h.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${j.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${We.Footer} {\n box-shadow: 0px 10px 15px 0px ${j.colors.neutral.ink.dark};\n }\n `}`,uu=e=>!!e.footerSlot,mu={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},pu={[R.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[R.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[R.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[R.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[R.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},gu={xs:R.mobile,sm:R.mobile,base:R.tablet,lg:R.lgTablet},{breakpoints:hu}=j,fu=h(p.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${j.sizes.sm};box-shadow:${j.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${We.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${mu[e]};`} ${cu}{padding-bottom:${j.sizes.md};}${We.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${hu.mobile} + 1px))and (max-width: ${hu.tablet}){max-width:${({variant:e})=>pu[hu.tablet][e]};}@media (min-width: ${hu.tablet})and (max-width: ${hu.lgTablet}){max-width:${({variant:e})=>pu[hu.lgTablet][e]};}@media (min-width: ${hu.lgTablet})and (max-width: ${hu.desktop}){max-width:${({variant:e})=>pu[hu.desktop][e]};}@media (min-width: ${hu.desktop}){max-width:${({variant:e})=>pu[hu.lgDesktop][e]};}@media (max-width: ${({variant:e})=>gu[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:${se(j.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,vu=e.forwardRef(((t,n)=>{var o=te(t,[]);return e.createElement(fu,Object.assign({ref:n},o))})),bu=n=>{const{shouldShow:a,showHeaderCloseButton:r=!0,fullBleed:l=!1,variant:s="base",onClose:d,children:c}=n,u=i(null),[m,p]=t(null);o((()=>{var e,t;a&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:h,onScroll:f}=Yd(m),v=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(g,null,a&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(du,null),e.createElement(vu,{ref:u,onClose:v,variant:s,"aria-describedby":"modal_title"},e.createElement(We.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Pe,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:v})),e.createElement(cu,{onScroll:f,ref:p,isScrollable:h,fullBleed:l},c),uu(n)&&n.footerSlot,!uu(n)&&(n.leftActions||n.rightActions)&&e.createElement(We.Footer,null,e.createElement(Al,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Al,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=te(t,["label"]);return e.createElement(Ie,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(Al,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=te(t,["label"]);return e.createElement(Ie,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:yu,text:wu,shadows:xu}=j,{grey:Eu}=j.colors.neutral,$u=h.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${yu.base} ${yu.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&xu[e]};`,Cu=h.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${wu.headingXL.fontFamily};font-size:${wu.headingXL.fontSize};font-weight:${wu.headingXL.fontWeight};margin:unset;line-height:1;`,ku=h.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${wu.subheadingLarge.fontFamily};font-weight:${wu.subheadingLarge.fontWeight};font-size:${wu.subheadingLarge.fontSize};line-height:${wu.subheadingLarge.lineHeight};`,Du=h.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${j.radius.base};border:${yu.line} solid ${Eu.base};object-fit:cover;`,Su=h.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Iu=h(Ie).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${j.text.link.fontFamily};font-size:${j.text.link.fontSize};font-weight:${j.text.link.fontWeight};line-height:${j.text.link.lineHeight};color:${j.text.link.color};&:hover{text-decoration:${j.text.link.textDecoration};}& > * + *{margin-left:${j.sizes.xs};}`,Lu=h.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${yu.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Nu=({title:t,subtitle:n,imageSrc:o,actions:a,quickActions:r,backAction:i,Accessory:l,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=a&&e.createElement(_e,{buttonVariant:r?"default":"primary",title:"Actions",sections:a}),p=null==r?void 0:r.map((t=>e.createElement(Ie,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=i&&e.createElement(Ie,{onClick:i.onClick,icon:e.createElement(Ml,null),variant:"link"},i.title),h=u&&e.createElement(Al,{direction:"horizontal",alignX:"end"},e.createElement(Iu,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(Pt,{width:B.md})));return e.createElement($u,{shadow:s},e.createElement(Al,null,g,e.createElement(Lu,null,e.createElement(Al,{direction:"horizontal",spacing:"md"},o&&e.createElement(Du,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Al,{alignX:"stretch"},e.createElement(Cu,null,t),l,n&&e.createElement(ku,null,n)))),e.createElement(Su,null,e.createElement(Al,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Ie,{icon:e.createElement(Ml,null),onClick:d}),c&&e.createElement(Ie,{icon:e.createElement(Pt,null),onClick:c})),h))))},Ru=h(Al).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${j.sizes.lg};height:30px;background-color:${j.colors.neutral.grey.light};border:1px solid ${j.colors.neutral.grey.base};border-radius:${j.sizes.xs};`,zu=h(Ie).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${j.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Pu=h(zd).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Tu=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(Z,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Ru,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(Z,{variant:"bodySmall"},t))),Mu=({currentPage:e,totalPagesCount:n,handleChangePage:a})=>{const[r,i]=t(`${e}`);o((()=>{i(`${e}`)}),[e]);const l=e=>e>=1&&e<=n,s=()=>{if(r||i(`${e}`),r===`${e}`)return;const t=parseInt(r,10);l(t)&&a(t)};return{pageInputValue:r,handleIncrement:()=>{l(e+1)&&a(e+1)},handleDecrement:()=>{l(e-1)&&a(e-1)},handleInputChange:e=>{e||i(e);const t=parseInt(e,10);var n;l(n=t)&&i(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Fu=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"})),Bu=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"})),Au=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:a,handleChangePage:r})=>{const{pageInputValue:i,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=Mu({currentPage:o,totalPagesCount:a,handleChangePage:r});return e.createElement(Al,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(zu,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Fu,null),size:"sm","aria-label":"go to first page"}),e.createElement(zu,{onClick:s,icon:e.createElement(Ml,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Pu,{"aria-live":"polite","aria-label":`page ${o} of ${a}`,size:wd.sm,type:"number",value:i,min:"1",max:`${a}`,onChange:c,onBlur:u})),e.createElement(Tu,{count:a}),e.createElement(zu,{onClick:l,icon:e.createElement(Pt,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=a}),e.createElement(zu,{onClick:()=>{o!==a&&r(a)},icon:e.createElement(Bu,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=a}))},Ou=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ju=h(S).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Hu=h(it).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Vu=h.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`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;}`,Wu=h(S).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Zu=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${N.secondary.blue.base};background:${N.neutral.grey.lightest};}`,Ku=({item:t,handleRangeListChange:n})=>{const o=s((()=>n(t)),[n,t]);return e.createElement(Wu,{onClick:o},e.createElement(Zu,{variant:"bodySmall"},t.label))},Uu=t=>{const{handleRangeListChange:n,paginationRange:o=Ou}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(u,{key:t.label},e.createElement(Ku,{item:t,handleRangeListChange:n})))))};class qu 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=Ou[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Ou,reversedDropdown:o}=this.props,{shouldShowDropdown:a,dropdownValue:r}=this.state;return e.createElement(ju,{className:t},e.createElement(Hu,{cta:e.createElement(Vu,{onClick:this.toggleShouldShow},e.createElement(Z,{variant:"bodySmall"},r.label),e.createElement(De,{color:j.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(Uu,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Yu=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Ju=h.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Gu=({onIncrement:t,onDecrement:n,disabled:o=!1,size:a})=>e.createElement(Yu,{size:a},e.createElement(Ju,{type:"button",onClick:t,disabled:o},e.createElement(Q,{height:j.sizes.base,width:j.sizes.base,color:j.colors.neutral.ink.base})),e.createElement(Ju,{type:"button",onClick:n,disabled:o},e.createElement(Re,{height:j.sizes.base,width:j.sizes.base,color:j.colors.neutral.ink.base}))),Xu=h(zd).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${j.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${j.colors.neutral.ink.lightest};}`,_u=h(S).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${j.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?j.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;}}`,Qu=h(Z).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,em=h(yd).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${j.colors.secondary.red.light};\n\n > * {\n border-top-color: ${j.colors.secondary.red.base};\n border-bottom-color: ${j.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${j.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${j.colors.secondary.red.base};\n border-right-color: ${j.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${j.colors.secondary.red.base};\n border-bottom-color: ${j.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${j.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}}`;const tm=Dd((t=>{var{className:n="",hasError:o,currency:a,disabled:r=!1,onChange:i,onPriceChange:l,priceValue:s,step:d="0.1",size:c=wd.base}=t,u=te(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(em,{className:n,hasError:o},e.createElement(_u,{disabled:r,size:c},e.createElement(Qu,{variant:"hintText"},a)),e.createElement(Xu,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>i(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&&m(i),"ArrowDown"===t&&p(i)},disabled:r,size:c},u)),e.createElement(Gu,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));tm.displayName="PriceInput";const nm=h.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,om=({children:t})=>e.createElement(nm,null,t),am=h(zd).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,rm=h.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,im=h(S).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${am} {\n ${t}\n }\n\n & ${rm} {\n ${n}\n }\n `}}`,lm=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"})),sm=({type:t="text",disabled:n=!1,onClearClick:o,onChange:a,onBlur:r,onFocus:i,onKeyUp:l,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:f,reversed:v=!1,autoComplete:b="on",size:y="base"})=>{const w=c&&c.length>0;return e.createElement(im,{className:p,iconPosition:v?"left":"right"},e.createElement(am,{size:y,type:t,value:c,onChange:a,onBlur:r,onFocus:i,onKeyUp:l,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:b}),e.createElement(rm,null,h?e.createElement(he,{height:24,color:f||j.colors.secondary.blue.base}):w&&o?e.createElement(Ie,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(ze,{color:f||j.colors.neutral.ink.dark})):e.createElement(Ie,{variant:"unstyled",onClick:()=>a(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(lm,{color:f||j.colors.neutral.ink.dark,height:B.md,width:B.md}))))},dm=j.colors.neutral.grey.lightest,cm=j.colors.neutral.grey.dark,um=j.colors.secondary.blue.dark,mm=h(S).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${dm};border-color:${cm};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${um};border-color:${um};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${j.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,pm=({options:t,selected:n,className:o,onChange:a})=>e.createElement(mm,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ie,{variant:t.value===n?"primary":"default",key:t.key,onClick:()=>a(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),gm=h.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,hm=Dd(r(((t,n)=>{var{className:o,options:a,value:r,onChange:i,size:l,disabled:d,hasError:c}=t,u=te(t,["className","options","value","onChange","size","disabled","hasError"]);const m=s((e=>{i&&i(e.currentTarget.value)}),[i]);return e.createElement(gm,Object.assign({className:o,sizeVariant:l,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!a&&a.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));hm.displayName="Select";const fm=h.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${j.colors.neutral.ink.base});font-family:${j.text.bodySmall.fontFamily};font-style:${j.text.bodySmall.fontStyle};font-size:${j.text.bodySmall.fontSize};line-height:${j.text.bodySmall.lineHeight};font-weight:${j.text.bodySmall.fontWeight};text-decoration:${j.text.bodySmall.textDecoration};letter-spacing:${j.text.bodySmall.letterSpacing};`,vm=h.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${j.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${j.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${j.text.bodySmall.fontFamily};font-style:${j.text.bodySmall.fontStyle};`,bm={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},ym={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},wm=t=>{var{shortcut:n,label:o,inverse:a=!1,displayLabel:r=!1}=t,i=te(t,["shortcut","label","inverse","displayLabel"]);const l=n.split("+").map((t=>bm[t]?e.createElement(vm,{key:`Key: ${t}`,"aria-label":ym[t]},bm[t]):e.createElement(vm,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(fm,Object.assign({"aria-label":o,$inverse:a},i),l," ",r?e.createElement("span",null,o):null)},{blue:xm}=N.secondary,{grey:Em}=N.neutral,$m=h.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Cm=h.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${xm.lightest};}`,km=h.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Dm=h.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${O.bodySmall.fontFamily};font-size:${O.bodySmall.fontSize};font-weight:${O.bodySmall.fontWeight};color:${O.bodySmall.color};line-height:${B.base};& > *{vertical-align:middle;}`,Sm=h(Dm).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Em.dark};font-family:${O.bodySmallBold.fontFamily};font-size:${O.bodySmallBold.fontSize};font-weight:${O.bodySmallBold.fontWeight};color:${O.bodySmallBold.color};`,Im=h.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Cm} tr:nth-child(even) td {\n background-color: ${Em.lightest};\n }\n `}`,Lm=({striped:t=!0,className:n,children:o})=>e.createElement(Im,{striped:t,className:n},o);Lm.Header=$m,Lm.Body=Cm,Lm.Row=km,Lm.HeaderCell=Sm,Lm.Cell=Dm;const Nm=h(S).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Nm.displayName="Skeleton";const Rm=h.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,zm=h.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${j.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Pm=h.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${j.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 ${j.colors.secondary.blue.light};}`,Tm=h(zm).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${j.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Mm=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}),Fm=({id:n,value:a,min:r,max:l,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,f]=t(!1),[v,b]=t(-1),y=i(null),w=i(null),x=i(null),E=Mm(u),$=Mm(m),C=s((e=>{var t;if(!h||!y.current)return;const n=v>-1?a[v]:a,o=y.current.getBoundingClientRect();let i=100*(e.pageX-o.x)/o.width/100*(l-r)+r;const s=n-i;if(s>0&&(i=n+Math.ceil(i/d-n/d)*d),s<0&&(i=n+Math.floor(i/d-n/d)*d),n===i)return;i>l&&(i=l),i<r&&(i=r),Array.isArray(a)&&(0===v&&i>a[1]&&([,i]=a),1===v&&i<a[0]&&([i]=a));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;i=Number(i.toFixed(u)),m=Array.isArray(a)?0===v?[i,a[1]]:[a[0],i]:i,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===v&&b(1),1===v&&b(0))}),[v,h,l,r,c,d,a]),k=s((()=>{f(!1),g()}),[g]),D=s(((e,t)=>{f(!0),p(),"number"==typeof t&&b(t),e.preventDefault()}),[p]);o((()=>{const e=e=>D(e,Array.isArray(a)?0:1),t=e=>D(e,1),n=w.current,o=x.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k)}}),[D,C,k,a]);const S=(t,n,o)=>{let a;return a=ie("number"==typeof o?0===o?[null==E?void 0:E.startSlider,null==$?void 0:$.startSlider]:[null==E?void 0:E.endSlider,null==$?void 0:$.endSlider]:[null==E?void 0:E.slider,null==$?void 0:$.slider]),e.createElement(Pm,{role:"slider",ref:1===o?x:w,className:a,left:t,"aria-valuemin":r,"aria-valuemax":l,"aria-valuenow":n})},I=t=>{const n=100*(t[0]<r?0:t[0]-r)/(l-r),o=100*(t[1]>l?100:t[1]-r)/(l-r),a=o-n;return e.createElement(e.Fragment,null,e.createElement(Tm,{className:ie([null==E?void 0:E.sliderRange,null==$?void 0:$.sliderRange]),left:n,width:a}),S(n,t[0],0),S(o,t[1],1))};let L;return L=Array.isArray(a)?I(a):(e=>{if(Array.isArray(a))return I(a);let t;return t=a>l?100:a<r?0:100*(e-r)/(l-r),S(t,e)})(a),e.createElement(Rm,{className:ie([null==E?void 0:E.container,null==$?void 0:$.container]),id:n,ref:y},e.createElement(zm,null),L)},Bm=h(S).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:N.neutral.ink.base};\n background-color: ${null!=e?e:N.neutral.grey.base};\n `}`,Am=h(Al).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Om=h(Al).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${j.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${j.shadows.lg};border-radius:${j.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;}`,jm=h(S).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${j.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${B.md};height:${B.md};}`,Hm=h(Al).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Vm=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Wm={info:{accentColor:N.brand.blue.base,icon:e.createElement(od,null)},success:{accentColor:N.secondary.green.base,icon:e.createElement(ss,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)}},Zm=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Km=({className:t,e2eClassName:n,type:o,iconSlot:a,text:r,last:i,minWidth:l,cta:s,onClose:d})=>{const c=Zm(t),u=Zm(n);return e.createElement(Om,{className:ie([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:i},e.createElement(jm,{color:Wm[o].accentColor,className:ie([c.icon,u.icon])},null!=a?a:Wm[o].icon),e.createElement(Hm,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Vm,{variant:"body"},r),s),e.createElement(Ie,{variant:"flat",icon:e.createElement(ze,{color:"white"}),onClick:d,"aria-label":"Close"}))},Um=({className:t,e2eClassName:n,toasts:a,minWidth:r="50vw",max:i=3,onClose:l})=>(o((()=>{i&&a.length>i&&l(a[0].key)}),[a,i,l]),x(e.createElement(Am,{direction:"vertical",alignX:"center",spacing:4},e.createElement($,{component:null},[...a].reverse().map(((o,i)=>e.createElement(E,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Km,Object.assign({className:t,e2eClassName:n,minWidth:r,last:i===a.length-1,onClose:()=>l(o.key)},o))))))),document.body)),qm=h.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?j.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Ym=h.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${qm}{box-shadow:0 0 0 4px ${j.colors.brand.blue.light};}&:checked + ${qm}{background-color:#0079d1;}&:disabled + ${qm}{background-color:${j.colors.neutral.grey.base};}&:checked:disabled + ${qm}{background-color:${j.colors.secondary.blue.light};}`,Jm=h.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${qm}: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"};}${Ym}:checked + ${qm}{&: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"});}}`,Gm=h(S).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Xm=r((({id:t,className:n,name:o,switched:a,small:r,onClick:i=(()=>{}),disabled:l,ariaLabel:s},d)=>e.createElement(Gm,{className:n,disabled:l},e.createElement(Jm,{small:r,disabled:l,role:"switch"},e.createElement(Ym,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!a,onChange:l?void 0:i,disabled:l,ref:d}),e.createElement(qm,{switched:a,disabled:l}))))),_m=h.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${j.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",a="24px",r="8px",i="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",a="16px",r="4px",i="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${a};\n border-radius: ${r};\n font-size: ${i};\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;}`,Qm=({children:t,checked:n,size:o="base",disabled:a=!1,onChange:r})=>e.createElement(_m,{type:"button",checked:n,size:o,disabled:a,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),ep=h.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${B.md};border-radius:${z.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${N.neutral.ink.lightest};background-color:${N.neutral.grey.lightest};:hover{border:2px dashed ${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};}:active{border:2px dashed ${N.secondary.blue.base};box-shadow:0 0 0 4px ${N.secondary.blue.light};background-color:${N.secondary.blue.lightest};}:focus-within{border:2px dashed ${N.secondary.blue.base};box-shadow:0 0 0 4px ${N.secondary.blue.light};background-color:${N.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${N.secondary.red.base};:hover{border:2px dashed ${N.secondary.red.base};background-color:${N.secondary.red.lightest};}:active{border:2px dashed ${N.secondary.red.base};box-shadow:0 0 0 4px ${N.secondary.red.light};background-color:${N.secondary.red.lightest};}:focus-within{border:2px dashed ${N.secondary.red.base};box-shadow:0 0 0 4px ${N.secondary.red.light};background-color:${N.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${N.neutral.grey.light};border-color:${N.neutral.ink.lightest};color:${N.neutral.ink.light};}`;var tp,np,op;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(tp||(tp={})),function(e){e.KB="KB",e.MB="MB"}(np||(np={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(op||(op={}));const ap=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),rp=()=>e.createElement(Al,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(ap,null),e.createElement(Z,{variant:"subheadingSmall",style:{paddingTop:B.sm}},"Browse files or drag them here")),ip=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Al,{alignX:"start",spacing:"xs"},t&&e.createElement(Z,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(Z,{variant:"errorSmall"},"File is too big (",n,")")):null,lp=h(Z).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,sp=h(Al).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${N.neutral.ink.lightest};border-radius:${z.base};padding:${B.xs};${Z}{padding-left:${B.xs};}`,dp=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(sp,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(lp,{variant:"body"},null==t?void 0:t.name),e.createElement(Ie,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(ze,null),"aria-label":"Remove file",disabled:o})):null,cp=r(((n,a)=>{var{id:r,name:l,maxBytes:d=1e6,format:c=np.MB,fileTypes:u,label:p="Upload file",required:g,disabled:h}=n,f=te(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const v=i(null);m(a,(()=>v.current),[]);const[b,y]=t(),[w,x]=t(op.VALID),E=w===op.INVALID_FORMAT||w===op.INVALID_FORMAT_AND_SIZE,$=w===op.INVALID_SIZE||w===op.INVALID_FORMAT_AND_SIZE,C=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case np.KB:return`${o}${Number(e)/1e3} KB`;case np.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:d,format:c}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const a=o.length>1,r=t===o.length-1&&a,i=t===o.length-2&&a;switch(r&&(n+=" and "),e){case tp.CSV:n+="CSV";break;case tp.GIF:n+="GIF";break;case tp.JPEG:n+="JPEG";break;case tp.JPG:n+="JPG";break;case tp.PNG:n+="PNG"}!i&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:u}),D=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const a=o.length-1===n&&o.length>1;t+=a?`${e}`:`${e}, `})),t.trim()})({fileTypes:u}),S=()=>{var e;(null===(e=v.current)||void 0===e?void 0:e.value)&&(v.current.value="")},I=({overMaxSize:e,invalidFormat:t})=>{var n;let o=op.VALID;t&&!e?o=op.INVALID_FORMAT:!t&&e?o=op.INVALID_SIZE:t&&e&&(o=op.INVALID_FORMAT_AND_SIZE),null===(n=v.current)||void 0===n||n.setCustomValidity(o),x(o)},L=s((e=>{if(!e.length)return void I({invalidFormat:!0});const[t]=e,n=t.size>d,[,o]=t.type.split("/"),a=!u.find((e=>e.substring(1)===o));n||a?S():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:r}),I({invalidFormat:a,overMaxSize:n}),y(t)}),[u,r,d]),N=s((()=>{S(),y(void 0),I({invalidFormat:!1,overMaxSize:!1})}),[]),R=s((()=>{var e;const t=null===(e=null==v?void 0:v.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?L(t):N()}),[N,L]);return o((()=>{const e=null==v?void 0:v.current;return null==e||e.addEventListener("change",R),null==e||e.addEventListener("cancel",N),()=>{null==e||e.removeEventListener("change",R),null==e||e.removeEventListener("cancel",N)}}),[R,N]),e.createElement(Cd,{spacing:"sm",alignX:"stretch"},e.createElement(xd,{htmlFor:r},p,e.createElement(Al,{spacing:3,alignX:"stretch",style:{paddingTop:B.sm}},e.createElement(Ed,null,e.createElement("div",null,k),e.createElement("div",null,C)),e.createElement(ep,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&L(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.blur()}},e.createElement(rp,null),e.createElement("input",Object.assign({ref:v,id:r,type:"file",accept:D,name:l,required:g,disabled:h},f))))),e.createElement(Al,{alignX:"stretch",spacing:"sm"},e.createElement(dp,{file:b,resetSelection:N,disabled:h}),e.createElement(ip,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:$?C:void 0})))})),up="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",mp=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${up} display:${e=>e.shouldShow?"initial":"none"};z-index:${j.layers.modal};`,pp=h(S).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${up} background-color:rgba(55,66,77,0.5);`,gp=h(S).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,hp=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(oe,null,n):n),fp=({className:t,children:n=null,shouldShow:o=!1,usePortal:a=!0})=>e.createElement(hp,{usePortal:a},e.createElement(mp,{className:ie([`${t}-container`,t]),shouldShow:o},e.createElement(pp,null),e.createElement(D,{isActive:o},e.createElement(gp,{className:ie([`${t}-wrap`,t])},n)))),vp=h.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,bp=h.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,yp=h(Ie).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,wp=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:a})=>{const r=Hd(o,a);return e.createElement(fp,{shouldShow:o,className:`${t}-video`},e.createElement(vp,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(bp,{ref:r},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(yp,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:e.createElement(ze,{color:"white"})}))))};var xp;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(xp||(xp={}));const Ep=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,$p=h(Z).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Cp=h(S).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${Z} {\n color: ${null!=t?t:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,kp=h(Z).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${$p} {\n color: #fff;\n }\n `}`,Dp={style:{marginLeft:B.xs,padding:B.xs,height:B.base,width:B.base}},Sp=h.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${B.sm};svg{height:${B.base};width:${B.base};}`,Ip=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"})),Lp=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}),Np=({id:t,iconSlot:n,name:o,type:a,className:r,colourPalette:i=N.secondary.blue,customTextColour:l,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Lp(r),f=Lp(g),[v,b,y]=qd(),w=s((()=>u(t)),[t,u]),x=s((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=s((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),$=a===xp.draft,C=a===xp.saved,k=c?N.neutral.ink.dark:N.neutral.ink.base;return e.createElement(Ep,{className:`${ie([null==h?void 0:h.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:w},e.createElement(Cp,{active:c,onMouseEnter:b,onMouseLeave:y,colourPalette:i,customTextColour:l},n&&e.createElement(Sp,null,n),e.createElement(Z,{variant:"bodyBold"},o),d&&e.createElement(kp,{active:c||v,colourPalette:i,customTextColour:l},e.createElement($p,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),$&&e.createElement(ze,Object.assign({},Dp,{color:k,className:null==f?void 0:f.delete,onClick:x})),C&&c&&e.createElement(Ip,Object.assign({},Dp,{color:k,className:null==f?void 0:f.edit,onClick:E}))))};var Rp;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Rp||(Rp={}));const zp=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Pp=h(Z).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Tp=h(zp).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Mp=h(ze).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Fp=h(Z).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Pp} {\n color: ${N.neutral.grey.lightest};\n }\n `}`,Bp=h(S).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${N.neutral.grey.base};\n & > ${Fp} {\n background-color: ${N.neutral.grey.base};\n & > ${Pp} {\n color: ${N.neutral.ink.base};\n }\n }\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n & > ${Tp} {\n color: ${N.neutral.ink.dark};\n }\n & > ${Mp} {\n color: ${N.neutral.ink.dark};\n }\n }\n\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Tp} {\n color: ${t.dark};\n }\n & > ${Mp} {\n color: ${t.dark};\n }\n\n & > ${Z} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Ap=h(Ee).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Bp} {\n background-color: ${N.neutral.grey.base};\n & > ${Fp} {\n background-color: ${N.neutral.grey.base};\n & > ${Pp} {\n color: ${N.neutral.ink.base};\n }\n }\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n & > ${Tp} {\n color: ${N.neutral.ink.dark};\n }\n & > ${Mp} {\n color: ${N.neutral.ink.dark};\n }\n }\n `}`,Op={style:{marginLeft:B.xs,padding:B.xs,height:B.base,width:B.base}},jp=h.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${B.sm};svg{height:${B.base};width:${B.base};}`,Hp=e.forwardRef(((t,n)=>{var{id:o,iconSlot:a,name:r,type:i,className:l,colourPalette:s=N.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=te(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const f={delete:(v=l)?`${v}-delete`:void 0,edit:v?`${v}-edit`:void 0,container:v?`${v}-view`:void 0,active:v?`${v}-active`:void 0,counter:v?`${v}-counter`:void 0};var v;const[b,y,w]=qd(),x=u&&p?p:m,E=i===Rp.draft,$=i===Rp.saved;return e.createElement(Ap,Object.assign({className:ie([null==f?void 0:f.container]),onClick:()=>x(o),role:"tab","aria-selected":u,"aria-label":`${u&&E?"Delete":u&&$?"Edit":""} ${r} view ${c?`with ${c} ${g}`:""}`,customTextColour:d,ref:n},h),e.createElement(Bp,{active:u,onMouseEnter:y,onMouseLeave:w,colourPalette:s,customTextColour:d},a&&e.createElement(jp,null,a),e.createElement(Z,{variant:"bodyBold"},r),null!=c&&e.createElement(Fp,{"data-testid":"countContainer",active:u||b,colourPalette:s,customTextColour:d},e.createElement(Pp,{variant:"subheadingSmall"},c)),E&&e.createElement(Mp,Object.assign({},Op,{"aria-label":"delete icon"})),$&&u&&e.createElement(Tp,Object.assign({},Op,{"aria-label":"edit icon"}))))})),Vp=h(Al).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Wp=h(Al).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${N.neutral.grey.lightest};`,Zp=h(Ml).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${N.neutral.ink.base};`,Kp=h(Pt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${N.neutral.ink.base};`,Up=h(zp).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${N.neutral.ink.base};`,qp=h(Ie).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${N.neutral.grey.lightest};}`,Yp=h(Ie).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Zp}{color:${N.neutral.ink.lightest};}}&:hover{background-color:${N.neutral.grey.lightest};}`,Jp=h(Ie).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Kp}{color:${N.neutral.ink.lightest};}}&:hover{background-color:${N.neutral.grey.lightest};}`,Gp=h(yd).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Xp=(e,n)=>{const[a,r]=t(!0),[i,l]=t(!1),[d,c]=t([]),u=s((()=>{var t,n;e.current.scrollLeft>0?r(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),r(!0));const o=e.current.scrollWidth-e.current.clientWidth;e.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),l(!0)):l(!1)}),[e]),m=s((()=>{e.current.scrollWidth-e.current.getBoundingClientRect().width<5?l(!0):l(!1)}),[e]),p=s((()=>{const t=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(d,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]),g=s((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(d,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]);return o((()=>{var t,o,a,r,i,l,s,p;if(e)return(null===(o=null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.children)||void 0===o?void 0:o.length)&&(null===(r=null===(a=null==e?void 0:e.current)||void 0===a?void 0:a.children)||void 0===r?void 0:r.length)!==d.length&&d.length>0&&d.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),c([...d,d[d.length-1]+(null!==(l=null===(i=e.current.children[d.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(p=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===p?void 0:p.length)&&0===d.length&&c((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m(),window.addEventListener("resize",(()=>m())),e.current.addEventListener("scroll",(()=>u())),()=>{window.removeEventListener("resize",(()=>m()))}}),[e,n,m,u,d]),{rightDisabled:i,leftDisabled:a,toNextScrollPosition:p,toPrevScrollPosition:g}},_p=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:a},r)=>{const l=i(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=Xp(l,t);return e.createElement(Wp,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Vp,{ref:l,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(Gp,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Yp,{id:"left-arrow",icon:e.createElement(Zp,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Jp,{id:"right-arrow",icon:e.createElement(Kp,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(qp,{icon:e.createElement(Up,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":a,"aria-haspopup":o?"dialog":void 0,ref:r})))})),Qp=h(S).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,eg=h(S).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,tg=h(zd).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,ng=h(Ie).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${j.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${j.colors.secondary.red.base};\n `};`,og=e=>Bd(e,Ad),ag=Dd((t=>{var{size:n=wd.base,hasError:o,className:a}=t,r=te(t,["size","hasError","className"]);return e.createElement(Qp,{className:a},e.createElement(eg,null,"g"===r.weightUnit&&e.createElement(yd,null,e.createElement(tg,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:og},r)),e.createElement(ng,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(yd,null,e.createElement(tg,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:og},r)),e.createElement(ng,{hasError:o,size:n},"lb")),e.createElement(yd,null,e.createElement(tg,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:og},r)),e.createElement(ng,{hasError:o,size:n},"oz")))))}));ag.displayName="WeightInput",ag.defaultProps={weightUnit:"lb"};export{tp as AcceptedFileTypes,ee as Accordion,_e as ActionList,et as Anchor,it as AnimatedDropdown,st as Avatar,xt as Badge,Nt as Banner,S as BaseContainer,At as Breadcrumbs,Ie as Button,We as Card,Pe as CardHeader,ns as Checkbox,Xl as Choice,ls as ChoiceList,ms as CopyToClipboard,id as DataTable,pd as DescriptionList,bd as DetailPage,jd as DimensionsInput,np as FileSizeUnit,ac as FilterTag,Kd as FocusVisibleManager,rc as Grid,mc as Image,yd as InputGroup,au as LegacyDataTable,he as Loader,su as LoginWithAmazonButton,bu as Modal,Nu as PageHeader,Au as Pagination,qu as PaginationRange,ue as Popover,fp as Popup,oe as Portal,tm as PriceInput,as as Radio,Fl as RangeCalendar,om as ScreenReaderOnly,sm as Search,pm as SegmentedControl,hm as Select,wm as ShortcutKeys,Lm as SimpleTable,Nm as Skeleton,Fm as Slider,Al as Stack,Gu as Stepper,Bm as Tag,Z as Text,zd as TextField,Um as ToastsLayout,Xm as Toggle,Qm as ToggleButton,bt as Tooltip,cp as UploadFile,wp as VideoModal,Np as View,Hp as ViewTab,_p as ViewsContainer,ag as WeightInput,ie as buildClassnames,ne as generateId,se as getOpaqueHexColor,le as hexToRgb,j as theme,xs as useCellWidths,Hd as useClickOutside,Es as useColumns,Vd as useDebounce,$s as useDragToScroll,Wd as useDropdown,Ud as useFocusVisible,qd as useHover,Yd as useIsOverflowing,Cs as useNested,ks as useScrollPosition,zs as useSelection,Jd as useTabs,Sd as withDeprecated,Dd as withLabels};
2
2
  //# sourceMappingURL=index.esm.js.map