@veeqo/ui 5.5.2 → 5.7.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.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),o=require("react-popper"),l=require("resize-observer-polyfill"),a=require("react-dom"),i=require("react-transition-group"),r=require("lodash.throttle"),d=require("react-use"),s=require("react-scrolllock-configurable");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),m=c(n),f=c(l),p=c(a),g=c(r),h=c(s);const b=m.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,v={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},x=(e,t)=>e||(t?v[t]:void 0),y={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},w={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},C={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var E,$;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(E||(E={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}($||($={}));const k=function({increment:e,unit:t,count:n}){const o={};for(let l=0;l<=n;l++){const n=l*e;o[l]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),S={[$.none]:"0",[$.line]:"1px",[$.xs]:k[1],[$.sm]:k[2],[$.base]:k[4],[$.md]:k[6],[$.lg]:k[8],[$.xl]:k[12],[$.xxl]:k[16]},N=Object.assign(Object.assign({},S),k),I={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},L={headingXXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:y.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:y.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},z=Object.assign(Object.assign({},I),{breakpoints:w,colors:y,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:C,shadows:E,sizes:N,text:L}),{text:F,colors:B,fontFamily:D}=z,R=m.default.span.attrs((({as:e,variant:t})=>({as:x(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${D};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?B.neutral.ink.lightest:F[e].color;return`\n font-family: ${F[e].fontFamily};\n font-style: ${F[e].fontStyle};\n font-weight: ${F[e].fontWeight};\n font-size: ${F[e].fontSize};\n line-height: ${F[e].lineHeight};\n color: ${n};\n text-decoration: ${F[e].textDecoration};\n letter-spacing: ${F[e].letterSpacing};\n `}}`,M=m.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=m.default(M).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${N.base};width:${N.base};color:${({glyphColor:e})=>e};}`,T=m.default(M).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,H=m.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${z.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${z.colors.secondary.blue.light};}`,O=m.default(b).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,A=m.default(R).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,W=m.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,P=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,V=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"}));function Z(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n}"function"==typeof SuppressedError&&SuppressedError;const q=e=>`${e}-${Math.floor(1e3*Math.random())}`;class X extends e.PureComponent{constructor(e){super(e),this.id=q("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?a.createPortal(e,this.portalNode):null}}const K=m.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,G=m.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,U=e=>e.filter(Boolean).join(" "),_=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},Y=(e,t)=>{const n=_(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},J='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',Q=({popperElement:t,anchorElement:n,onClose:o,disableFocusLock:l=!1})=>{e.useEffect((()=>{if(!t||l)return;const e=t.querySelectorAll(J);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,l]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(J);if(n.length<1)return void o();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,o]);return{handleKeyDown:e=>{t&&("Escape"===e.key?o():l||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(J),o=n[0],l=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),l.focus()):e.shiftKey||document.activeElement!==l||(e.preventDefault(),o.focus())})(e))}}},ee=t=>{var{id:n,children:l,zIndex:a=z.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:m,removeBackdrop:p=!1}=t,g=Z(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[h,b]=e.useState(null),{styles:v,attributes:x,update:y}=o.usePopper(r,h,{placement:i}),w=e.useMemo((()=>n||q("popover")),[n]);(({anchorElement:t,popoverId:n})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n])})({anchorElement:r,popoverId:w});const C=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:E}=Q({popperElement:h,anchorElement:r,onClose:C,disableFocusLock:m});return e.useEffect((()=>{if(!y||!h)return;const e=new f.default(y);return e.observe(h),()=>e.disconnect()}),[y,h]),e.useEffect((()=>{if(y)return window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)}),[y]),u.default.createElement(X,{rootElementRef:d},!p&&u.default.createElement(G,{onClick:C,zIndex:a}),u.default.createElement(K,Object.assign({open:!0,zIndex:a,ref:b,style:Object.assign(Object.assign({},v.popper),c),onKeyDown:E},x.popper,g),l))},te=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":l},u.default.createElement("defs",null,u.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},u.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),u.default.createElement("stop",{stopColor:o,stopOpacity:".631",offset:"63.146%"}),u.default.createElement("stop",{stopColor:o,offset:"100%"}))),u.default.createElement("g",{fill:"none",fillRule:"evenodd"},u.default.createElement("g",{transform:"translate(1 1)"},u.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:o,strokeWidth:"2"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),u.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),ne=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),oe=({width:e,height:t,className:n,color:o,label:l})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,"aria-label":l},u.default.createElement("circle",{cx:"15",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},u.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"105",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),le=({className:e,height:t=24,width:n=24,color:o="#588CB0",type:l="TailSpin"})=>{switch(l){case"Grid":return u.default.createElement(ne,{className:e,height:t,width:n,color:o});case"ThreeDots":return u.default.createElement(oe,{className:e,height:t,width:n,color:o});default:return u.default.createElement(te,{className:e,height:t,width:n,color:o})}},ae=m.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>N[e]};height:${({size:e})=>N[e]};}`,ie=m.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",l="8px",a="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",l="4px",a="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${a};\n line-height: ${a};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,re=m.default(ie).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${z.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?z.colors.neutral.ink.base:z.colors.secondary.blue.base};&:hover{background-color:${z.colors.neutral.grey.lightest};}&:active{background-color:${z.colors.neutral.grey.lightest};border-color:${z.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${z.colors.neutral.grey.base} !important;border-color:${z.colors.neutral.grey.base} !important;color:${z.colors.neutral.ink.light} !important;}`,de=m.default(re).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${z.colors.secondary.red.base};&:hover{color:${z.colors.secondary.red.dark};}&:active{border-color:${z.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};color:${z.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,se=m.default(re).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${z.colors.secondary.blue.base};border-color:${z.colors.secondary.blue.base};color:white;&:hover{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};}&:active{background-color:${z.colors.secondary.blue.dark};border-color:${z.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}`,ce=m.default(se).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${z.colors.secondary.red.base};border-color:${z.colors.secondary.red.base};color:white;&:hover{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};}&:active{background-color:${z.colors.secondary.red.dark};border-color:${z.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.red.light};}`,ue=m.default(ie).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${z.colors.neutral.ink.base};&:hover{background-color:${z.colors.neutral.grey.light};}&:active{background-color:${z.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${z.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,me=m.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,fe=m.default(me).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};line-height:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};text-decoration:${z.text.link.textDecoration};color:${z.colors.secondary.blue.base};&:hover{color:${z.colors.secondary.blue.dark};}& > * + *{margin-left:${z.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${z.colors.secondary.blue.light};border-radius:4px;}`,pe=m.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ge=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),he={default:re,primary:se,destructive:de,primaryDestructive:ce,flat:ue,link:fe,unstyled:me},be=e.forwardRef(((e,t)=>{var{className:n,children:o,icon:l,variant:a="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Z(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===a)return u.default.createElement(me,Object.assign({ref:t,className:n},s),o);const c=he[a],m=void 0!==o,f=!!l;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:f,hasDropdown:r},s),(m||f)&&u.default.createElement(ae,{$loading:d,hasText:!!o,size:o||"sm"===i?"base":"md"},l&&l,void 0!==o&&o,r&&u.default.createElement(ge,null)),d&&u.default.createElement(pe,null,u.default.createElement(le,null)))})),ve=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${N.md};padding-right:${N.md};padding-left:${N.md};margin-bottom:${N.md};& > * + *{margin-top:${N.xs};}`,xe=m.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${N.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ye=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:N.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),we=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Ce=({id:e,title:t,subtitle:n,headerVariant:o="headingSmall",action:l,ActionSlot:a,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>u.default.createElement(ve,null,u.default.createElement(xe,null,u.default.createElement(R,{id:e,variant:o},t),l&&u.default.createElement(be,{variant:"link",onClick:l.onClick},l.title),a,r&&u.default.createElement(be,{variant:"flat",icon:i?u.default.createElement(ye,null):u.default.createElement(V,null),onClick:r}),d&&u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,null),onClick:d,"aria-label":"Close"})),n&&u.default.createElement(R,{variant:"subheadingSmall"},n)),{grey:Ee}=y.neutral,$e={0:"none",1:E.sm,2:E.base,3:E.md,4:E.lg},ke={info:y.secondary.blue.base,success:y.secondary.green.base,error:y.secondary.red.base},Se=m.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${N.base};padding:${N.md};z-index:2;`,Ne=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${N.md};padding-left:${N.md};margin-top:${N.md};margin-bottom:${N.md};font-family:${L.body.fontFamily};font-size:${L.body.fontSize};font-weight:${L.body.fontWeight};line-height:${L.body.lineHeight};color:${L.body.color};& + &{border-top:${N.line} solid ${Ee.base};padding-top:${N.md};}`,Ie=m.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${N.md};margin-right:-${N.md};`,Le=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ne}:first-child{margin-top:0;}`,ze=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${N.line} solid ${Ee.base};box-shadow:${e=>void 0!==e.elevation?$e[e.elevation]:E.sm};border-radius:${C.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${N.xs};\n background-color: ${ke[e]};\n }\n `}`,Fe={expanded:{height:"auto"},collapsed:{height:0}},Be=({className:t,style:n,title:o,subtitle:l,HeaderActionSlot:a,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:m,renderFooter:f})=>{const[p,g]=e.useState(!1),h=o&&u.default.createElement(Ce,{title:o,subtitle:l,ActionSlot:a,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:r?()=>{g(!p)}:void 0}),b=r&&!p||!r,v=u.default.createElement(Le,{animate:b?"expanded":"collapsed",variants:Fe,transition:{duration:.3,ease:"easeOut"}},u.default.createElement(Ne,null,c)),x=void 0!==f&&u.default.createElement(Se,null,f());return u.default.createElement(ze,{className:t,style:n,elevation:d,accent:s},h,v,x)};Be.Surface=ze,Be.Section=Ne,Be.FullBleed=Ie,Be.Footer=Se;const{sizes:De,colors:Re,text:Me}=z,je=m.default(Be.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${De.base} 0;display:flex;flex-direction:column;`,Te=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Re.neutral.grey.base};margin-top:${De.base};padding-top:${De.base};}`,He=m.default(R).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${De.sm} ${De.base} ${De.sm};`,Oe=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${De.lg};padding:${De.xs} ${De.base};display:flex;align-items:center;white-space:nowrap;font-family:${Me.body.fontFamily};font-size:${Me.body.fontSize};font-weight:${Me.body.fontWeight};&:hover{background-color:${Re.neutral.grey.light};color:${Re.secondary.blue.base};}& > * + *{margin-left:${De[3]};}`,Ae={item:Oe,action:m.default(Oe).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Re.secondary.blue.base};`,link:m.default(Oe).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Re.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:n=[],sections:o,buttonVariant:l,buttonSize:a})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Ae[e.variant||"item"];return u.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,u.default.createElement("span",null,e.title))},m=o?o.map((e=>u.default.createElement(Te,{key:e.title},e.title&&u.default.createElement(He,null,e.title),e.items.map(c)))):n.map(c);return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{dropdown:!0,variant:l,size:a,onClick:()=>r(!i),ref:s},t),i&&u.default.createElement(ee,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},u.default.createElement(je,null,m)))},Pe=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${z.text.link.fontFamily};font-style:${z.text.link.fontStyle};font-weight:${z.text.link.fontWeight};font-size:${z.text.link.fontSize};line-height:${z.text.link.lineHeight};color:${z.colors.secondary.blue.base};text-decoration:${z.text.link.textDecoration};&:hover{color:${z.colors.secondary.blue.dark};}`,Ve=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Ze=e.forwardRef(((e,t)=>{const{children:n,className:o,role:l}=e;return u.default.createElement(Ve,{className:o,ref:t,role:l},n)})),qe=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Xe=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ke=m.default(Ze).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${z.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,Ge=({cta:t,shouldShowDropdown:n,children:o,className:l="animated-dropdown",reversed:a=!1,onClickAway:r=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:m,onMouseLeave:f})=>{const p=e.useRef(null);return((t,n)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,n])})(p,(e=>{n&&r(e)})),u.default.createElement(qe,{className:`${l}-container ${l}`,onClick:c,onMouseEnter:m,onMouseLeave:f,ref:p},!a&&t,u.default.createElement(Xe,{className:`${l}-wrap ${l}`},u.default.createElement(i.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},u.default.createElement(Ke,{role:"dialog",reversed:a,className:`${l}-basic-dropdown ${l}`},o))),a&&t)},Ue=m.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${z.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${z.text.bodySmallBold.fontFamily};font-weight:${z.text.bodySmallBold.fontWeight};font-size:${z.text.bodySmallBold.fontSize};line-height:${z.text.bodySmallBold.lineHeight};}`,_e=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,Ye=m.default(_e).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,Je=m.default(R).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${z.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,Qe=m.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,et=m.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,tt=m.default(_e).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 nt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(nt||(nt={}));const ot={duration:400,side:nt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},lt=({content:t,text:n,hoverableElement:l,config:a,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),m=Object.assign(Object.assign({},ot),a),{duration:f,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=m,{styles:v,attributes:x}=o.usePopper(l,s,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:z.layers.tooltip});return u.default.createElement(et,Object.assign({className:d.tip,ref:c,duration:f,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),u.default.createElement(tt,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:u.default.createElement(Je,null,n)),r&&u.default.createElement(Qe,{id:"veeqo-components-triangle",className:d.triangle}))},at=({children:t,text:n,content:o,config:l,reversed:a=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,m]=e.useState(d),[f,g]=e.useState(null),h=!!n&&n.trim().length>0,b={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!o&&!h);if(!v)return t;const x=c&&v&&u.default.createElement(lt,{classNames:b,hoverableElement:f,config:l,reversed:a,withTriangle:r,text:n,content:o});return u.default.createElement(_e,{className:b.container},s?p.default.createPortal(x,document.body):x,u.default.createElement(Ye,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},t))},it=m.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${L.bodySmall.fontFamily};font-weight:${L.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${N.base};height:${N.base};}`,rt={default:m.default(it).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${y.secondary.blue.base};color:${y.secondary.blue.base};`,primary:m.default(it).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};color:${y.secondary.blue.base};`,warning:m.default(it).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${y.secondary.yellow.base};background-color:${y.secondary.yellow.lightest};color:${y.secondary.orange.dark};`},dt=m.default(b).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,st=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,ct=m.default(b).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ut=m.default(ct).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${N.md};height:${N.md};color:${({accentColor:e})=>e};}`,mt=m.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,ft=m.default(ct).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,pt=m.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,gt={help:y.secondary.blue.base,info:y.neutral.ink.base,error:y.secondary.red.base,success:y.secondary.green.base},ht=m.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${L.body.fontFamily};font-weight:${L.body.fontWeight};font-size:${L.body.fontSize};line-height:${L.body.lineHeight};`,bt=m.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,vt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),xt=({children:e,title:t,LinkComponent:n,href:o})=>n?u.default.createElement(bt,{className:"breadcrumb"},u.default.createElement(n,{href:o},t),e):u.default.createElement(bt,{className:"breadcrumb"},t,e),yt=()=>u.default.createElement(vt,{className:"separator",width:N.base,height:N.base}),wt=({children:e,href:t})=>u.default.createElement("a",{href:t},e),Ct=({children:e})=>u.default.createElement("span",null,e);var Et;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Et||(Et={}));const $t=m.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:l="base"}=e;let a,i,r,d,s="",c="";return"vertical"===t?(a=n&&Et[n],i=o&&Et[o],s=z.sizes[l],r="column"):(a=o&&Et[o],i=n&&Et[n],c=z.sizes[l],r="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${a};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;$t.displayName="Stack";const kt={top:"flex-start",center:"center"},St=m.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${z.sizes.base};}`,Nt=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>kt[e.align]};width:24px;height:24px;`,It=m.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Lt=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${z.sizes.sm};}`,zt=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.sizes.md};color:${z.text.body.color};`,Ft=m.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,Bt=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};`,Dt=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Rt=m.default(Dt).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${z.colors.neutral.grey.dark};border-radius:${z.radius.md};padding:${z.sizes.base} 0.75rem;&:hover{border-color:${z.colors.secondary.blue.base};}& ${zt}{font-weight:${z.text.bodyBold.fontWeight};}`,Mt=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,jt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Tt=({id:e,label:t,hint:n,tooltip:o,error:l,bordered:a,Badge:i,Accessory:r,Footer:d,children:s,disabled:c=!1})=>{const m=u.default.createElement(St,null,u.default.createElement(Nt,{align:r?"center":"top"},s),r&&u.default.createElement(It,null,r),t||n||l||i||d?u.default.createElement(Lt,null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&u.default.createElement(zt,null,t),o&&u.default.createElement(Mt,{text:o},u.default.createElement(jt,{name:"help",width:z.sizes.base,color:z.colors.neutral.ink.lightest}))),n&&u.default.createElement(Ft,null,n),l&&u.default.createElement(Bt,null,l),d):null);return a?u.default.createElement(Rt,{disabled:c,htmlFor:e},m):u.default.createElement(Dt,{disabled:c,htmlFor:e},m)},{colors:Ht,sizes:Ot,radius:At}=z,Wt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Ht.neutral.ink.lightest};border-radius:${At.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Ht.secondary.blue.base};border-color:${Ht.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${Ot[4]};background-position:center;}&:hover{border-color:${Ht.secondary.blue.base};}&:active{border-color:${Ht.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Ht.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Ht.secondary.blue.base};border-color:${Ht.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${Ot[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Ht.neutral.grey.base};border-color:${Ht.neutral.grey.base};color:${Ht.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,Pt=t=>{var{checked:n,indeterminate:o,value:l,name:a,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=Z(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const m=e.useMemo((()=>q("checkbox")),[]),f=e.useRef(null),p=e.useCallback((e=>{s(e.currentTarget.checked,l)}),[s,l]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===o)}),[o]),u.default.createElement(Tt,Object.assign({id:m,disabled:i},c),u.default.createElement(Wt,{ref:f,id:m,type:"checkbox",checked:n,value:l,name:a,disabled:i,"aria-label":r,className:d,onChange:p}))},Vt=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Zt=e.forwardRef(((t,n)=>{var{checked:o,value:l,name:a,disabled:i,onChange:r,id:d}=t,s=Z(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{r(e.currentTarget.checked,l)}),[r,l]),m=null!=d?d:q("radio");return u.default.createElement(Tt,Object.assign({id:m,disabled:i},s),u.default.createElement(Vt,{id:m,type:"radio",checked:o,value:l,name:a,disabled:i,onChange:c,ref:n}))})),qt=m.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Xt=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-style:${z.text.inputLabel.fontStyle};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};text-decoration:${z.text.inputLabel.textDecoration};color:${z.text.inputLabel.color};`;class Kt extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let l=[];l=t?[...n,e]:n.filter((t=>t!==e)),o(l)}}render(){const{allowMultiple:e,options:t,selected:n,title:o,disabled:l,bordered:a}=this.props,i=e?Pt:Zt;return u.default.createElement(qt,{disabled:l},o&&u.default.createElement(Xt,null,o),t.map((e=>u.default.createElement(i,Object.assign({key:e.value,bordered:a,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Gt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Ut=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{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"})),_t={width:N.base,height:N.base},Yt=m.default(be).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${N.base};width:${N.base};top:unset;}`;function Jt(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Qt(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Qt(e.min,"max-content")}, ${Qt(e.max)})`;default:return t||"1fr"}}function en({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:l,stripingMode:a}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==o&&"none"!==o,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${z.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${z.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${l.map((e=>Qt(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===a?f:m}\n `}var tn;!function(e){e.ascending="ascending",e.descending="descending"}(tn||(tn={}));const nn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),on=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),an=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===tn.ascending?u.default.createElement(on,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(ln,{color:z.colors.neutral.ink.dark,size:n}):u.default.createElement(nn,{size:n});function rn(t,n){const[o,l]=e.useState([]),a=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));l(n)};return e.useEffect((()=>{a()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=g.default(a,50),t=new f.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),o}function dn(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),l=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...l,...o],pinnedLeft:n,pinnedRight:o}}function sn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,o={left:0,x:0},l=t=>{if(!n)return;const l=t.clientX-o.x;n.scrollLeft=o.left-l,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},a=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",l),document.addEventListener("mouseup",a))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function cn(t){const[n,o]=e.useState("start"),l=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:l}=t.current;o(l<e?"none":0!==n?n+e>=l?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",l),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",l)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=g.default(l,50),n=new f.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const un="56px",mn=m.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${un};display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};border-bottom:1px solid ${z.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function fn(e){var{selected:t,indeterminate:n,onChange:o,selectionMode:l}=e,a=Z(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===l?u.default.createElement(mn,Object.assign({},a)):u.default.createElement(mn,Object.assign({},a),u.default.createElement(Pt,{checked:t,indeterminate:n,onChange:o}))}const pn=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Jt(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>z.sizes[e]};padding-right:${({spacing:e=3})=>z.sizes[e]};color:${z.text.bodySmall.color};font-family:${z.text.bodySmall.fontFamily};font-size:${z.text.bodySmall.fontSize};font-style:${z.text.bodySmall.fontStyle};font-weight:${z.text.bodySmall.fontWeight};line-height:${z.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${z.colors.secondary.blue.base};background-color:${z.colors.neutral.grey.lightest};}`;function gn(e){var{selected:t,rowId:n,onChange:o,selectionMode:l,disabled:a}=e,i=Z(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===l?u.default.createElement(pn,Object.assign({},i),u.default.createElement(Zt,{value:n,checked:t,disabled:a,onChange:o})):u.default.createElement(pn,Object.assign({},i),u.default.createElement(Pt,{value:n,checked:t,disabled:a,onChange:o}))}const hn=[[],()=>{}];function bn({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const o=!!t,[l,a]=t||hn,i=()=>{l.length!==n.length?a(n):a([])};return{selectionEnabled:o,selectedRowIds:l,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,o)=>u.default.createElement(fn,Object.assign({},o,{selected:l.length===n.length,indeterminate:l.length>0&&l.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,o,l)=>u.default.createElement(gn,Object.assign({},n,{rowId:t.id,selected:l.selected,onChange:o.setSelected,selectionMode:e,disabled:l.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)a([n]);else if(t){if(l.includes(n))return;const e=[...l,n];a(e)}else{const e=l.findIndex((e=>e===n));if(e<0)return;const t=[...l];t.splice(e,1),a(t)}}}}const vn=m.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${z.colors.neutral.ink.lightest};`,xn=m.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${z.text.headingTable.color};font-family:${z.text.headingTable.fontFamily};font-size:${z.text.headingTable.fontSize};font-style:${z.text.headingTable.fontStyle};font-weight:${z.text.headingTable.fontWeight};line-height:${z.text.headingTable.lineHeight};`,yn=m.default(xn).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${vn}{background-color:${z.colors.neutral.grey.light};color:${z.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${z.colors.secondary.blue.light};}`;function wn({column:e,sortState:t,onChangeSort:n}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const o={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,o);const l=e.sortable?yn:xn,a=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const o=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===tn.ascending;let l=tn.ascending;return n&&o&&(l=tn.descending),{columnId:t,direction:l}}({sortState:t,columnId:e.id});n?n(o):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return u.default.createElement(mn,Object.assign({},o),u.default.createElement(at,{text:e.tooltip},u.default.createElement(l,Object.assign({},a),e.icon&&e.icon,e.title&&u.default.createElement("span",null,e.title),e.sortable&&u.default.createElement(vn,null,u.default.createElement(an,{sortState:t,columnId:e.id,size:5})))))}const Cn=z.colors.neutral.grey.base,En=z.colors.neutral.grey.dark,$n=m.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${z.radius.base};background:${Cn};background-image:linear-gradient(\n to right,\n ${Cn} 0%,\n ${En} 20%,\n ${Cn} 40%,\n ${Cn} 100%\n );background-repeat:no-repeat;background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear;@keyframes placeholderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}`;const kn=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${un};background-color:white;`,Sn=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${z.colors.neutral.grey.base};& > *{flex:1;}`;function Nn({selectionColumn:t,intersectionTargetRef:n,containerRef:o,children:l}){var a;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(a=o.current)||void 0===a?void 0:a.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return u.default.createElement(kn,{style:c},wn({column:t}),u.default.createElement(Sn,null,l))}const In=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Ln=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),zn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Fn=m.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${z.sizes.lg};padding-bottom:${z.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${z.sizes.md};`,Bn=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${z.sizes.md};background-color:${z.colors.neutral.grey.light};border-radius:${z.radius.full};`,Dn=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Rn=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${z.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Mn=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,jn=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${z.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Tn=m.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Hn={full:`border-width: 1px; border-radius: ${z.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},On=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${z.colors.neutral.grey.dark};${({borderMode:e="full"})=>Hn[e]} &,& *{box-sizing:border-box;}`;function An({children:t,intersectionTargetRef:n,containerRef:o,cellWidths:l,tableCss:a}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),m=()=>{var e;const t=null===(e=o.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};c(n)},p=()=>{var e;if(!o.current)return;const t=o.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&o.current&&m()}),[o.current,r]),e.useEffect((()=>{if(!r)return;if(!o.current)return;const e=g.default(m,33),t=new f.default(e);return t.observe(o.current),()=>t.disconnect()}),[o.current,r]),e.useEffect((()=>{p()}),[r]),e.useEffect((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",p)}}),[o.current]),!r)return null;const h=Object.assign(Object.assign({},s),{height:un,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${z.colors.neutral.grey.base}`}),b=a+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return u.default.createElement("div",{style:h,ref:i},u.default.createElement(jn,{css:b},u.default.createElement("thead",null,t)))}const Wn=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),Pn=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),u.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),u.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Vn={icon:u.default.createElement(Pn,{width:48,height:48}),heading:"No results"},Zn=()=>{},qn=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:l=Vn,expandedRowIds:a,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:m,selectionState:f,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),x=e.useRef(null),y=e.useRef(null);sn(v);const w=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=bn({selectionMode:m,selectionState:f,enabledRowIds:w}),S={setSelected:k||Zn,setExpanded:p||Zn},N=[$,...o],I=C?N:o,L=rn(x,v),{visible:z,pinnedLeft:F,pinnedRight:B}=dn(I),{scrollPosition:D}=cn(v),M=en({pinnedLeft:F,pinnedRight:B,cellWidths:L,scrollPosition:D,visible:z,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return u.default.createElement(On,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(jn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Rn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(Rn,{key:e.id},z.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return u.default.createElement(pn,Object.assign({},n),u.default.createElement($n,null))}(e,t))))))))))}if(0===s.length)return u.default.createElement(On,{borderMode:n},u.default.createElement(Mn,{ref:v},u.default.createElement(jn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Rn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d}))))),u.default.createElement("tbody",{role:"rowgroup"},u.default.createElement(Fn,{columnCount:z.length},u.default.createElement(Bn,null,l.icon),u.default.createElement($t,{spacing:"sm",alignX:"center"},u.default.createElement(R,{variant:"headingMedium"},l.heading),l.subheading&&u.default.createElement(R,{variant:"subheadingMedium"},l.subheading)))))));const j=e=>{const{e2eClassName:t="",accentColor:n}=e,o=Wn(e.id,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Rn,Object.assign({role:"row",key:e.id,accentColor:n,className:t},o),z.map((t=>function(e,t,n,o){if(t.hidden)return null;const l={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,l,n,o)}(e,t,S,o))))},T=(e,t)=>{var n,o;const l=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row,i=Wn(t,{selectedRowIds:E,expandedRowIds:a,disabledRowIds:c});return u.default.createElement(Rn,{role:"row",key:e.id,className:l},z.map((t=>function(e,t,n){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,o,n):u.default.createElement(pn,Object.assign({},o))}(e,t,i))))},H=e=>{var t;const n=null==a?void 0:a.includes(e.id);return u.default.createElement("tbody",{role:"rowgroup",key:e.id},j(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id)))))},O=u.default.createElement(Rn,{role:"row"},z.map((e=>wn({column:e,sortState:g,onChangeSort:d})))),A=o.some((e=>!!e.renderFooter)),W=E.length>0&&!!t;return u.default.createElement(On,{borderMode:n},W&&u.default.createElement(Nn,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),u.default.createElement(Mn,{ref:v},b&&u.default.createElement(An,{tableCss:M,intersectionTargetRef:y,containerRef:v,cellWidths:L},O),u.default.createElement("div",{ref:y,style:{height:0}}),u.default.createElement(jn,{css:M,ref:x,role:"table"},u.default.createElement("thead",{role:"rowgroup"},O),(()=>{const e=!!a;return e&&"nested"===h?s.map(H):e?u.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[j(e),...(null==a?void 0:a.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>T(t,e.id))))||[]]}))):u.default.createElement("tbody",{role:"rowgroup"},s.map(j))})(),A&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(Rn,{role:"row"},z.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):u.default.createElement(pn,Object.assign({},t))}({column:e}))))))))};qn.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},qn.Cell=pn,qn.ColumnMenu=function({columns:t,columnGroups:n,setColumns:o}){const[l,a]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),m=(e,n)=>{const l=c[e].map((e=>e.id)),a=[...t];l.forEach((e=>{const t=a.findIndex((t=>t.id===e));t<0||(a[t]=Object.assign(Object.assign({},a[t]),{hidden:n}))})),o(a)};return u.default.createElement(u.default.Fragment,null,u.default.createElement(be,{ref:a,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&u.default.createElement(ee,{anchorElement:l,onShouldClose:()=>r(!1)},u.default.createElement(Be,{style:{width:600}},u.default.createElement($t,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>u.default.createElement($t,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},u.default.createElement(be,{variant:"flat",icon:u.default.createElement(zn,null)}),u.default.createElement($t,{spacing:"sm",style:{flex:1}},e.map((e=>u.default.createElement("div",{key:e.id},e.title)))),u.default.createElement($t,{direction:"horizontal",spacing:"sm"},e[0].hidden?u.default.createElement(be,{variant:"flat",icon:u.default.createElement(Ln,null),onClick:()=>m(t,!1),style:{color:z.colors.neutral.ink.lightest}}):u.default.createElement(be,{variant:"flat",icon:u.default.createElement(In,null),onClick:()=>m(t,!0)})))))))))},qn.SelectionCell=gn,qn.SelectionHeader=fn,qn.Header=mn,qn.Truncate=Tn,qn.NoWrap=Dn;const Xn=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${z.sizes.base};}`,Kn=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${z.sizes.xs};}`,Gn=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${z.sizes.base};}`,Un=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${z.sizes.xs};}`,_n=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${z.text.bodyBold.fontFamily};font-size:${z.text.bodyBold.fontSize};font-weight:${z.text.bodyBold.fontWeight};line-height:${z.text.bodyBold.lineHeight};color:${z.text.bodyBold.color};`,Yn=m.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${z.text.body.fontFamily};font-size:${z.text.body.fontSize};font-weight:${z.text.body.fontWeight};line-height:${z.text.body.lineHeight};color:${z.text.body.color};`,{sizes:Jn,colors:Qn}=z,eo=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Jn.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Jn.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,to=m.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Jn.md};overflow-x:hidden;background-color:${Qn.neutral.grey.lightest};`,no=m.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var oo;!function(e){e.base="base",e.sm="sm"}(oo||(oo={}));const lo=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${z.text.inputLabel.fontFamily};font-size:${z.text.inputLabel.fontSize};font-weight:${z.text.inputLabel.fontWeight};line-height:${z.text.inputLabel.lineHeight};color:${z.text.inputLabel.color};`,ao=m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`,io=m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,ro=m.default($t).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,so=m.default(at).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,co=t=>n=>{var{label:o,hint:l,error:a,tooltip:i}=n,r=Z(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>q(t.name)),[]);return o?u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement("div",null,u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},u.default.createElement(lo,{htmlFor:d},o),i&&u.default.createElement(so,{text:i},u.default.createElement(jt,{width:z.sizes.base,height:z.sizes.base,color:z.colors.neutral.ink.light}))),l&&u.default.createElement(ao,null,l)),u.default.createElement(t,Object.assign({id:d,hasError:!!a},r)),a&&u.default.createElement(io,null,a)):u.default.createElement(t,Object.assign({hasError:!!a},r))},uo=({hasError:e,inputSize:t})=>n.css`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,mo=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${z.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${uo} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,fo=m.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${uo}`,po=/^-?[0-9]*\.?[0-9]+$/,go=co(e.forwardRef(((t,n)=>{var{id:o,className:l,disabled:a=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:m,pattern:f,placeholder:p,rows:g="3",size:h=oo.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Z(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=e.useCallback((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(po).test(t)&&m(t)}),[m,v]),E=null!=o?o:q("textfield");return"text"===v&&s?u.default.createElement(fo,Object.assign({className:l,disabled:a,hasError:i,id:E,name:c,onChange:C,placeholder:p,rows:g,value:x,spellCheck:y,ref:n},w)):u.default.createElement(mo,Object.assign({className:l,disabled:a,hasError:i,id:E,inputSize:h,max:r,min:d,name:c,"aria-label":c,onChange:C,placeholder:p,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));go.displayName="TextField";const ho=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,bo=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,vo=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${z.colors.neutral.ink.lightest};}`,xo=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${z.colors.neutral.ink.lightest};`;m.default(R).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${z.text.error.fontFamily};font-size:${z.text.error.fontSize};font-weight:${z.text.error.fontWeight};line-height:${z.text.error.lineHeight};color:${z.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${z.sizes[2]} * -1);width:2px;background-color:${z.colors.secondary.red.base};}`,m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${z.fontFamily};font-size:${z.sizes[3]};line-height:${z.sizes[4]};color:${z.colors.neutral.ink.light};`;const yo=(e,t)=>{t.includes(e.key)&&e.preventDefault()},wo=["-","+","E","e"],Co=e=>yo(e,wo),Eo=co((e=>{var{size:t=oo.base,handleChangeHeight:n,handleChangeWidth:o,handleChangeLength:l,className:a,height:i,width:r,length:d,unit:s}=e,c=Z(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return u.default.createElement(ho,{className:a},u.default.createElement(bo,null,u.default.createElement(vo,Object.assign({onChange:l,size:t,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Co},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(vo,Object.assign({onChange:o,size:t,name:"width",type:"number",placeholder:"W",value:r,min:"0",step:"any",onKeyDown:Co},c)),u.default.createElement(we,{height:z.sizes.base,width:z.sizes.base}),u.default.createElement(no,null,u.default.createElement(vo,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:Co},c)),u.default.createElement(xo,{size:t},s))))}));Eo.displayName="DimensionsInput";const $o=(t,n)=>{const o=e.useRef(null),l=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),a=e.useCallback((e=>{o.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",a),document.addEventListener("keyup",l),()=>{document.removeEventListener("click",a),document.removeEventListener("keyup",l)}}),[a,l,t]),o};function ko(){const[t,n]=e.useState(!1),o=e.useCallback((()=>n(!t)),[t,n]),l=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:l}}const So=u.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const No=(t=!1)=>{const[n,o]=e.useState(t);return[n,e.useCallback((()=>o(!0)),[o]),e.useCallback((()=>o(!1)),[o])]},Io=t=>{const[n,o]=e.useState(!1),[l,a]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;o(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!l,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:o,clientHeight:l}=e.target;a(o-n-l<=0)}}},Lo=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${y.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${N.base};height:${N.base};}`,zo=m.default(R).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Fo=m.default(zo).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Bo=m.default(ye).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Do=m.default(we).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Ro=m.default(b).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Mo=m.default(b).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${y.neutral.grey.base};svg{color:${({color:e})=>e};width:${N[5]};height:${N[5]};margin-right:10px;}`,jo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),To=m.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?N[e]:0};`,Ho=e=>u.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Oo=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Ao=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Wo=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Po=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Vo=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}),Zo={width:64,height:64},qo={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},Zo)),title:"No data found"},Xo={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},Zo)),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 Ko;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Ko||(Ko={}));const{text:Go,sizes:Uo}=z,{blue:_o}=z.colors.secondary,{grey:Yo}=z.colors.neutral,{scrollbar:Jo}=z.colors.system,Qo='\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',el=m.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,tl=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Yo.dark};border-bottom:1px solid ${Yo.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${Jo.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Jo.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Qo};\n\n ${o===Ko.middle||o===Ko.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 ${Qo};\n\n ${o===Ko.start||o===Ko.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,nl=m.default(tl).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Yo.dark};border-radius:4px;`,ol=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,ll=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Yo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;m.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Yo.lightest};padding:1.5rem 1rem;border-top:1px solid ${_o.base};}`;const al=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,il=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${Go.bodySmall.fontFamily};font-size:${Go.bodySmall.fontSize};font-weight:${Go.bodySmall.fontWeight};color:${Go.bodySmall.color};line-height:${Uo.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,rl=m.default(il).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Yo.dark};font-family:${Go.bodySmallBold.fontFamily};font-size:${Go.bodySmallBold.fontSize};font-weight:${Go.bodySmallBold.fontWeight};color:${Go.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Yo.light};}`,dl={left:"flex-start",center:"center",right:"flex-end"},sl=m.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?dl[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,cl=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${ll}:nth-child(even) td {\n background-color: ${Yo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${rl}, & ${rl} span {\n white-space: nowrap;\n }\n `}`,ul=m.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${il}{border-top:1px solid ${Yo.dark};background-color:${Yo.lightest};padding-top:${Uo.base};padding-bottom:${Uo.base};line-height:2rem;}`,ml=m.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,fl=m.default(cl).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,pl=m.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,gl=m.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${z.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,hl=m.default(R).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,bl=m.default(R).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,vl=({height:e,icon:t,title:n,subTitle:o})=>u.default.createElement(pl,{height:e},u.default.createElement(gl,null,t),u.default.createElement(hl,{variant:"headingLarge"},n),o&&u.default.createElement(bl,{variant:"subheadingMedium"},o)),xl=m.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${z.sizes.base};border-radius:${z.radius.base};&:hover{cursor:pointer;background-color:${z.colors.secondary.blue.lightest};}`,yl=m.default(xl).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${z.text.link.color};text-decoration:${z.text.link.textDecoration};`,wl=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Cl}=z.colors.neutral,El=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,$l=m.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${Cl.base} 8%, ${Cl.dark} 15%, ${Cl.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,kl=({isLoading:e,style:t})=>u.default.createElement(El,{style:t},u.default.createElement($l,{isLoading:e})),Sl=e=>{var{style:t}=e,n=Z(e,["style"]);return u.default.createElement(il,Object.assign({},n),u.default.createElement(kl,{style:t}))};Sl.defaultProps={style:{}};const Nl=({renderHeader:t,tableRef:n,wrapperRef:o,isFixedLayout:l,wrapperStyle:a})=>{var i;const[r,s]=e.useState(null),{isSticky:c}=((t,n)=>{const[o,l]=e.useState(!1),a=e.useCallback((({top:e,bottom:t})=>{let a=o;a=e<=(n||0)&&t>0?!o||a:!o&&a,a!==o&&l(a)}),[o,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&a(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[a,t]),{isSticky:o}})(n,parseInt("string"==typeof(null==a?void 0:a.top)?null==a?void 0:a.top:`${null==a?void 0:a.top}`,10)),m=((null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;d.useScroll(o);const f=e=>{var t;const n=(null===(t=o.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return f(),c?u.default.createElement(ml,{ref:e=>{s(e),f(e)},style:Object.assign({width:m},a)},u.default.createElement(fl,{style:{tableLayout:l?"fixed":"auto"}},t())):null},Il=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")},Ll=e=>{var{style:t,width:n,isLoading:o}=e,l=Z(e,["style","width","isLoading"]);return u.default.createElement(rl,Object.assign({},l,{style:{width:n}}),u.default.createElement(kl,{style:t,isLoading:o}))},zl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Fl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Bl=()=>u.default.createElement(nn,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Dl=()=>u.default.createElement(zl,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Rl=()=>u.default.createElement(Fl,{width:z.sizes.base,height:z.sizes.base,color:"lightgrey"}),Ml=({borderless:t=!1,striped:n=!0,noWrap:o=!1,showScrollbar:l=!1,headers:a,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:m,renderFooterLoadingRow:f,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:x,sortDirection:y,onChangeSort:w,isError:C=!1,isLoading:E=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:N,bodyHeightInSpecificStates:I=375,startFixedColumnsNumber:L,endFixedColumnsNumber:z})=>{const F=t?tl:nl,B=!!i&&0===i.length,D=Boolean(L||z),R=!L&&!z,M=e.useRef(null),j=e.useRef(null),[T,H]=e.useState(Ko.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!j.current||R)return;const e=j.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),l=n+o;t===o?H(Ko.none):0===n?H(Ko.start):n>0&&l<t?H(Ko.middle):l===t&&H(Ko.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)}}),[M,R]);const O=e.useCallback((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),A=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!a||E)return null;const e=[],t=[];let n=0,o=0;if(L){g&&(e.push(A(1,n,"left")),n+=58);for(let t=0;t<L;t+=1){const o=O(a[t].width);o&&(e.push(A(g?t+2:t+1,n,"left")),n+=o)}}if(z)for(let e=0;e<z;e+=1){const n=O(a.slice(-e-1)[0].width);n&&(t.push(A(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[E,O,z,A,a,L,g]),P=e.useMemo((()=>W()),[W]),V=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],o=n.findIndex((e=>e===t.id));n.splice(o,1),v(n)}),[v,g,b]),Z=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),q=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),X=e.useCallback(((e,t)=>{let n="",o=()=>{},l=u.default.createElement(Bl,null);const{tooltip:a,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",o=()=>q(c),x===c&&(l="ascending"===y?u.default.createElement(Dl,null):u.default.createElement(Rl,null)));const m=u.default.createElement(sl,{align:i},r&&r,d&&u.default.createElement("span",null,d),s&&l);return u.default.createElement(rl,{key:c,id:`data-table-header-${c}`,className:n,onClick:o,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},a?u.default.createElement(at,{text:a},u.default.createElement(el,null,m)):m)}),[q,x,y]),K=e.useCallback(((e,t)=>u.default.createElement(Ll,{key:e.id,width:e.width||"auto",style:t,isLoading:E})),[E]),G=e.useCallback((()=>{if(!a)return null;const e=W(),t=e?e[0].style:{};return u.default.createElement(ol,null,u.default.createElement(al,null,g&&u.default.createElement(rl,{style:Object.assign({width:58},t)},"multiple"===b&&u.default.createElement(Pt,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:Z,disabled:h&&h.length>0||E||B,ariaLabel:"Select all"})),a.map(((t,n)=>{const o=g?n+2:n+1,l=n-a.length,i=null==e?void 0:e.find((e=>e.index===o||e.index===l));return t.skeleton&&(E||C||B)?K(t,t.skeletonStyle||{}):X(t,(null==i?void 0:i.style)||{})}))))}),[W,Z,a,B,C,E,K,X,i.length,g,b,h]),U=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>V(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?u.default.createElement(Zt,Object.assign({},n)):u.default.createElement(Pt,Object.assign({},n))}),[V,b,h]),_=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?u.default.createElement(Sl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):u.default.createElement(Sl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),Y=e.useCallback(((e,t)=>{var n,o;if(!d)return null;const l=d(e);if(!l)return null;const a=(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===o?void 0:o.row)||"";return u.default.createElement(al,{key:e.id,className:`${a} ${t?"hidden":""}`},g&&u.default.createElement(il,null),l)}),[d,g]),J=e.useCallback((e=>{if(!a)return u.default.createElement(Sl,null);const t=a.map((t=>u.default.createElement(Sl,{key:`${e}-${t.id}`})));return g&&t.unshift(_(e)),t}),[a,_,g]),Q=()=>m?E&&!f||!E&&B?null:u.default.createElement(ul,{fixedColumnsStyle:Il(P||[])},u.default.createElement(al,null,g&&!p&&u.default.createElement(il,null),!E&&m(i),E&&f&&f())):null;let ee=L;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,o;const{data:l}=e,a=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==l?void 0:l.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(o=null===(n=null==l?void 0:l.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==o?o:"",m=a?`selected ${c}`:`${c}`;return u.default.createElement(ll,{key:e.id,className:d,fixedColumnsStyle:Il(P||[])},u.default.createElement(al,{key:e.id,className:m,accentColor:e.accentColor},g&&u.default.createElement(il,null,U(a,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>Y(e,!i))))}))),[i,s,P,Y,r,U,g]);if(E){const e=[];for(let t=0;t<$;t+=1)e.push(u.default.createElement(ll,{key:`loading-row-${t}`,fixedColumnsStyle:Il(P||[])},u.default.createElement(al,null,c?u.default.createElement(u.default.Fragment,null,g&&_(),c()):J(t))));return u.default.createElement(F,{ref:j,scrollDisabled:!0,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&a&&u.default.createElement(Nl,{renderHeader:G,tableRef:M,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(cl,{ref:M,striped:n,noWrap:o,tableLoading:!0,isFixedLayout:D},G(),e,Q()))}if(B||C){let e=qo;return N?e=N:C&&(e=Xo),u.default.createElement(F,{scrollDisabled:!0},u.default.createElement(cl,{ref:M,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},G(),Q()),u.default.createElement(vl,Object.assign({height:I},e)))}return u.default.createElement(F,{scrollDisabled:!1,ref:j,scrollPosition:T,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:l},k&&a&&u.default.createElement(Nl,{renderHeader:G,tableRef:M,wrapperRef:j,isFixedLayout:D,wrapperStyle:S}),u.default.createElement(cl,{ref:M,striped:n,noWrap:o,tableLoading:!1,isFixedLayout:D},G(),te,Q()))};Ml.Cell=il,Ml.ClickableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(il,Object.assign({},o),u.default.createElement(yl,{onClick:t},n))},Ml.EditableCell=e=>{var{onClick:t,children:n}=e,o=Z(e,["onClick","children"]);return u.default.createElement(il,Object.assign({},o),u.default.createElement(xl,{onClick:t},u.default.createElement(wl,null,n)))},Ml.SkeletonCell=Sl,Ml.SkeletonContent=kl;const jl=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Tl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Hl="Log in with Amazon",Ol=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Al=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${z.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Be.Footer} {\n box-shadow: 0px 10px 15px 0px ${z.colors.neutral.ink.dark};\n }\n `}`,Wl=e=>!!e.footerSlot,Pl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Vl={[w.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[w.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[w.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Zl={xs:w.mobile,sm:w.mobile,base:w.tablet,lg:w.lgTablet},{breakpoints:ql}=z,Xl=m.default(t.motion.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${z.sizes.sm};box-shadow:${z.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Be.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Pl[e]};`} ${Al}{padding-bottom:${z.sizes.md};}${Be.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${ql.mobile} + 1px))and (max-width: ${ql.tablet}){max-width:${({variant:e})=>Vl[ql.tablet][e]};}@media (min-width: ${ql.tablet})and (max-width: ${ql.lgTablet}){max-width:${({variant:e})=>Vl[ql.lgTablet][e]};}@media (min-width: ${ql.lgTablet})and (max-width: ${ql.desktop}){max-width:${({variant:e})=>Vl[ql.desktop][e]};}@media (min-width: ${ql.desktop}){max-width:${({variant:e})=>Vl[ql.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Zl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Be.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Y(z.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Kl=u.default.forwardRef(((e,t)=>{var n=Z(e,[]);return u.default.createElement(Xl,Object.assign({ref:t},n))})),{sizes:Gl,text:Ul,shadows:_l}=z,{grey:Yl}=z.colors.neutral,Jl=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Gl.base} ${Gl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&_l[e]};`,Ql=m.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Ul.headingXL.fontFamily};font-size:${Ul.headingXL.fontSize};font-weight:${Ul.headingXL.fontWeight};margin:unset;line-height:1;`,ea=m.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Ul.subheadingLarge.fontFamily};font-weight:${Ul.subheadingLarge.fontWeight};font-size:${Ul.subheadingLarge.fontSize};line-height:${Ul.subheadingLarge.lineHeight};`,ta=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${z.radius.base};border:${Gl.line} solid ${Yl.base};object-fit:cover;`,na=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,oa=m.default(be).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${z.text.link.fontFamily};font-size:${z.text.link.fontSize};font-weight:${z.text.link.fontWeight};line-height:${z.text.link.lineHeight};color:${z.text.link.color};&:hover{text-decoration:${z.text.link.textDecoration};}& > * + *{margin-left:${z.sizes.xs};}`,la=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${Gl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,aa=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),ia=m.default($t).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${z.sizes.lg};height:30px;background-color:${z.colors.neutral.grey.light};border:1px solid ${z.colors.neutral.grey.base};border-radius:${z.sizes.xs};`,ra=m.default(be).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${z.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,da=m.default(go).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,sa=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(R,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(ia,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(R,{variant:"bodySmall"},e))),ca=({currentPage:t,totalPagesCount:n,handleChangePage:o})=>{const[l,a]=e.useState(`${t}`);e.useEffect((()=>{a(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(l||a(`${t}`),l===`${t}`)return;const e=parseInt(l,10);i(e)&&o(e)};return{pageInputValue:l,handleIncrement:()=>{i(t+1)&&o(t+1)},handleDecrement:()=>{i(t-1)&&o(t-1)},handleInputChange:e=>{e||a(e);const t=parseInt(e,10);var n;i(n=t)&&a(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},ua=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),ma=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),fa=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],pa=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ga=m.default(Ge).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,ha=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${y.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,ba=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,va=m.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${y.secondary.blue.base};background:${y.neutral.grey.lightest};}`,xa=({item:t,handleRangeListChange:n})=>{const o=e.useCallback((()=>n(t)),[n,t]);return u.default.createElement(ba,{onClick:o},u.default.createElement(va,{variant:"bodySmall"},t.label))},ya=t=>{const{handleRangeListChange:n,paginationRange:o=fa}=t;return u.default.createElement(u.default.Fragment,null,o.map((t=>u.default.createElement(e.Fragment,{key:t.label},u.default.createElement(xa,{item:t,handleRangeListChange:n})))))};class wa extends e.Component{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=fa[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=fa,reversedDropdown:n}=this.props,{shouldShowDropdown:o,dropdownValue:l}=this.state;return u.default.createElement(pa,{className:e},u.default.createElement(ga,{cta:u.default.createElement(ha,{onClick:this.toggleShouldShow},u.default.createElement(R,{variant:"bodySmall"},l.label),u.default.createElement(ge,{color:z.colors.neutral.ink.base})),shouldShowDropdown:o,onClickAway:this.toggleShouldShow,reversed:n},u.default.createElement(ya,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const Ca=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Ea=m.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,$a=({onIncrement:e,onDecrement:t,disabled:n=!1,size:o})=>u.default.createElement(Ca,{size:o},u.default.createElement(Ea,{type:"button",onClick:e,disabled:n},u.default.createElement(V,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base})),u.default.createElement(Ea,{type:"button",onClick:t,disabled:n},u.default.createElement(ye,{height:z.sizes.base,width:z.sizes.base,color:z.colors.neutral.ink.base}))),ka=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${z.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${z.colors.neutral.ink.lightest};}`,Sa=m.default(b).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${z.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?z.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Na=m.default(R).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Ia=m.default(no).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${z.colors.secondary.red.light};\n\n > * {\n border-top-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${z.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${z.colors.secondary.red.base};\n border-right-color: ${z.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${z.colors.secondary.red.base};\n border-bottom-color: ${z.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${z.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?z.colors.secondary.red.base:z.colors.secondary.blue.base};}}`;const La=co((e=>{var{className:t="",hasError:n,currency:o,disabled:l=!1,onChange:a,onPriceChange:i,priceValue:r,step:d="0.1",size:s=oo.base}=e,c=Z(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},f=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return u.default.createElement(Ia,{className:t,hasError:n},u.default.createElement(Sa,{disabled:l,size:s},u.default.createElement(Na,{variant:"hintText"},o)),u.default.createElement(ka,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>a(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const o=parseFloat(n.replace(",",".")).toFixed(2);i(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(a),"ArrowDown"===t&&f(a)},disabled:l,size:s},c)),u.default.createElement($a,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:l,size:s}))}));La.displayName="PriceInput";const za=m.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Fa=m.default(go).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Ba=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Da=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Fa} {\n ${t}\n }\n\n & ${Ba} {\n ${n}\n }\n `}}`,Ra=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),Ma=z.colors.neutral.grey.lightest,ja=z.colors.neutral.grey.dark,Ta=z.colors.secondary.blue.dark,Ha=m.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Ma};border-color:${ja};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Ta};border-color:${Ta};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${z.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Oa=m.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,Aa=co(e.forwardRef(((t,n)=>{var{className:o,options:l,value:a,onChange:i,size:r,disabled:d,hasError:s}=t,c=Z(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return u.default.createElement(Oa,Object.assign({className:o,sizeVariant:r,value:null!=a?a:void 0,onChange:m,disabled:d,hasError:s,ref:n},c),!!l&&l.map((e=>u.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Aa.displayName="Select";const Wa=m.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${z.colors.neutral.ink.base});font-family:${z.text.bodySmall.fontFamily};font-style:${z.text.bodySmall.fontStyle};font-size:${z.text.bodySmall.fontSize};line-height:${z.text.bodySmall.lineHeight};font-weight:${z.text.bodySmall.fontWeight};text-decoration:${z.text.bodySmall.textDecoration};letter-spacing:${z.text.bodySmall.letterSpacing};`,Pa=m.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${z.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${z.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${z.text.bodySmall.fontFamily};font-style:${z.text.bodySmall.fontStyle};`,Va={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Za={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:qa}=y.secondary,{grey:Xa}=y.neutral,Ka=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Ga=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${qa.lightest};}`,Ua=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,_a=m.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${L.bodySmall.fontFamily};font-size:${L.bodySmall.fontSize};font-weight:${L.bodySmall.fontWeight};color:${L.bodySmall.color};line-height:${N.base};& > *{vertical-align:middle;}`,Ya=m.default(_a).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Xa.dark};font-family:${L.bodySmallBold.fontFamily};font-size:${L.bodySmallBold.fontSize};font-weight:${L.bodySmallBold.fontWeight};color:${L.bodySmallBold.color};`,Ja=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Ga} tr:nth-child(even) td {\n background-color: ${Xa.lightest};\n }\n `}`,Qa=({striped:e=!0,className:t,children:n})=>u.default.createElement(Ja,{striped:e,className:t},n);Qa.Header=Ka,Qa.Body=Ga,Qa.Row=Ua,Qa.HeaderCell=Ya,Qa.Cell=_a;const ei=m.default(b).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;}}`;ei.displayName="Skeleton";const ti=m.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,ni=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${z.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,oi=m.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${z.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${z.colors.secondary.blue.light};}`,li=m.default(ni).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${z.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,ai=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}),ii=m.default(b).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:y.neutral.ink.base};\n background-color: ${null!=e?e:y.neutral.grey.base};\n `}`,ri=m.default($t).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,di=m.default($t).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${z.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${z.shadows.lg};border-radius:${z.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,si=m.default(b).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${z.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${N.md};height:${N.md};}`,ci=m.default($t).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,ui=m.default(R).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,mi={info:{accentColor:y.brand.blue.base,icon:u.default.createElement(Pn,null)},success:{accentColor:y.secondary.green.base,icon:u.default.createElement(Gt,null)},error:{accentColor:y.secondary.red.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:y.secondary.purple.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},fi=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),pi=({className:e,e2eClassName:t,type:n,iconSlot:o,text:l,last:a,minWidth:i,cta:r,onClose:d})=>{const s=fi(e),c=fi(t);return u.default.createElement(di,{className:U([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:a},u.default.createElement(si,{color:mi[n].accentColor,className:U([s.icon,c.icon])},null!=o?o:mi[n].icon),u.default.createElement(ci,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(ui,{variant:"body"},l),r),u.default.createElement(be,{variant:"flat",icon:u.default.createElement(we,{color:"white"}),onClick:d,"aria-label":"Close"}))},gi=m.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?z.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,hi=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${gi}{box-shadow:0 0 0 4px ${z.colors.brand.blue.light};}&:checked + ${gi}{background-color:#0079d1;}&:disabled + ${gi}{background-color:${z.colors.neutral.grey.base};}&:checked:disabled + ${gi}{background-color:${z.colors.secondary.blue.light};}`,bi=m.default.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${gi}: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"};}${hi}:checked + ${gi}{&: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"});}}`,vi=m.default(b).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,xi=e.forwardRef((({id:e,className:t,name:n,switched:o,small:l,onClick:a=(()=>{}),disabled:i,ariaLabel:r},d)=>u.default.createElement(vi,{className:t,disabled:i},u.default.createElement(bi,{small:l,disabled:i,role:"switch"},u.default.createElement(hi,{id:e,type:"checkbox",name:n,"aria-label":r,checked:!!o,onChange:i?void 0:a,disabled:i,ref:d}),u.default.createElement(gi,{switched:o,disabled:i}))))),yi=m.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${z.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",l="24px",a="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",l="16px",a="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${l};\n border-radius: ${a};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,wi=m.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${N.md};border-radius:${C.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${y.neutral.ink.lightest};background-color:${y.neutral.grey.lightest};:hover{border:2px dashed ${y.secondary.blue.base};background-color:${y.secondary.blue.lightest};}:active{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}:focus-within{border:2px dashed ${y.secondary.blue.base};box-shadow:0 0 0 4px ${y.secondary.blue.light};background-color:${y.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${y.secondary.red.base};:hover{border:2px dashed ${y.secondary.red.base};background-color:${y.secondary.red.lightest};}:active{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}:focus-within{border:2px dashed ${y.secondary.red.base};box-shadow:0 0 0 4px ${y.secondary.red.light};background-color:${y.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${y.neutral.grey.light};border-color:${y.neutral.ink.lightest};color:${y.neutral.ink.light};}`;var Ci,Ei,$i;exports.AcceptedFileTypes=void 0,(Ci=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",Ci.JPEG=".jpeg",Ci.JPG=".jpg",Ci.GIF=".gif",Ci.PNG=".png",exports.FileSizeUnit=void 0,(Ei=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",Ei.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}($i||($i={}));const ki=()=>u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},u.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),u.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),Si=()=>u.default.createElement($t,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},u.default.createElement(ki,null),u.default.createElement(R,{variant:"subheadingSmall",style:{paddingTop:N.sm}},"Browse files or drag them here")),Ni=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?u.default.createElement($t,{alignX:"start",spacing:"xs"},e&&u.default.createElement(R,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(R,{variant:"errorSmall"},"File is too big (",t,")")):null,Ii=m.default(R).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Li=m.default($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${y.neutral.ink.lightest};border-radius:${C.base};padding:${N.xs};${R}{padding-left:${N.xs};}`,zi=({file:e,resetSelection:t,disabled:n})=>e?u.default.createElement(Li,{alignX:"between",direction:"horizontal",alignY:"center"},u.default.createElement(Ii,{variant:"body"},null==e?void 0:e.name),u.default.createElement(be,{size:"sm",variant:"flat",onClick:t,icon:u.default.createElement(we,null),"aria-label":"Remove file",disabled:n})):null,Fi=e.forwardRef(((t,n)=>{var{id:o,name:l,maxBytes:a=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:r,label:d="Upload file",required:s,disabled:c}=t,m=Z(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=e.useRef(null);e.useImperativeHandle(n,(()=>f.current),[]);const[p,g]=e.useState(),[h,b]=e.useState($i.VALID),v=h===$i.INVALID_FORMAT||h===$i.INVALID_FORMAT_AND_SIZE,x=h===$i.INVALID_SIZE||h===$i.INVALID_FORMAT_AND_SIZE,y=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${o}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:a,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const l=o.length>1,a=t===o.length-1&&l,i=t===o.length-2&&l;switch(a&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!a&&o.length>2&&(n+=", ")})),n})({fileTypes:r}),C=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const l=o.length-1===n&&o.length>1;t+=l?`${e}`:`${e}, `})),t.trim()})({fileTypes:r}),E=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let o=$i.VALID;t&&!e?o=$i.INVALID_FORMAT:!t&&e?o=$i.INVALID_SIZE:t&&e&&(o=$i.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(o),b(o)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>a,[,l]=t.type.split("/"),i=!r.find((e=>e.substring(1)===l));n||i?E():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:o}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[r,o,a]),S=e.useCallback((()=>{E(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),I=e.useCallback((()=>{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?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",I),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",I),null==e||e.removeEventListener("cancel",S)}}),[I,S]),u.default.createElement(ro,{spacing:"sm",alignX:"stretch"},u.default.createElement(lo,{htmlFor:o},d,u.default.createElement($t,{spacing:3,alignX:"stretch",style:{paddingTop:N.sm}},u.default.createElement(ao,null,u.default.createElement("div",null,w),u.default.createElement("div",null,y)),u.default.createElement(wi,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(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()}},u.default.createElement(Si,null),u.default.createElement("input",Object.assign({ref:f,id:o,type:"file",accept:C,name:l,required:s,disabled:c},m))))),u.default.createElement($t,{alignX:"stretch",spacing:"sm"},u.default.createElement(zi,{file:p,resetSelection:S,disabled:c}),u.default.createElement(Ni,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:x?y:void 0})))})),Bi="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Di=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Bi} display:${e=>e.shouldShow?"initial":"none"};z-index:${z.layers.modal};`,Ri=m.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Bi} background-color:rgba(55,66,77,0.5);`,Mi=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,ji=({usePortal:e,children:t})=>u.default.createElement(u.default.Fragment,null,e?u.default.createElement(X,null,t):t),Ti=({className:e,children:t=null,shouldShow:n=!1,usePortal:o=!0})=>u.default.createElement(ji,{usePortal:o},u.default.createElement(Di,{className:U([`${e}-container`,e]),shouldShow:n},u.default.createElement(Ri,null),u.default.createElement(h.default,{isActive:n},u.default.createElement(Mi,{className:U([`${e}-wrap`,e])},t)))),Hi=m.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Oi=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Ai=m.default(be).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Wi;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Wi||(Wi={}));const Pi=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Vi=m.default(R).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Zi=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${R} {\n color: ${null!=t?t:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,qi=m.default(R).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 & > ${Vi} {\n color: #fff;\n }\n `}`,Xi={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},Ki=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,Gi=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Ui=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0});var _i;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(_i||(_i={}));const Yi=e=>u.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),u.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Ji=m.default(R).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Qi=m.default(Yi).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,er=m.default(we).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,tr=m.default(R).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 & > ${Ji} {\n color: ${y.neutral.grey.lightest};\n }\n `}`,nr=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${y.neutral.grey.base};\n & > ${tr} {\n background-color: ${y.neutral.grey.base};\n & > ${Ji} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${R} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Qi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${er} {\n color: ${y.neutral.ink.dark};\n }\n }\n\n & > ${R} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Qi} {\n color: ${t.dark};\n }\n & > ${er} {\n color: ${t.dark};\n }\n\n & > ${R} {\n color: ${null!=n?n:t.dark};\n }\n `}`,or=m.default(ue).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${nr} {\n background-color: ${y.neutral.grey.base};\n & > ${tr} {\n background-color: ${y.neutral.grey.base};\n & > ${Ji} {\n color: ${y.neutral.ink.base};\n }\n }\n & > ${R} {\n color: ${null!=e?e:y.neutral.ink.dark};\n }\n & > ${Qi} {\n color: ${y.neutral.ink.dark};\n }\n & > ${er} {\n color: ${y.neutral.ink.dark};\n }\n }\n `}`,lr={style:{marginLeft:N.xs,padding:N.xs,height:N.base,width:N.base}},ar=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${N.sm};svg{height:${N.base};width:${N.base};}`,ir=u.default.forwardRef(((e,t)=>{var{id:n,iconSlot:o,name:l,type:a,className:i,colourPalette:r=y.secondary.blue,customTextColour:d,count:s,active:c=!1,onClick:m,subAction:f,ariaContext:p}=e,g=Z(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,x,w]=No(),C=c&&f?f:m,E=a===_i.draft,$=a===_i.saved;return u.default.createElement(or,Object.assign({className:U([null==h?void 0:h.container]),onClick:()=>C(n),role:"tab","aria-selected":c,"aria-label":`${c&&E?"Delete":c&&$?"Edit":""} ${l} view ${s?`with ${s} ${p}`:""}`,customTextColour:d,ref:t},g),u.default.createElement(nr,{active:c,onMouseEnter:x,onMouseLeave:w,colourPalette:r,customTextColour:d},o&&u.default.createElement(ar,null,o),u.default.createElement(R,{variant:"bodyBold"},l),null!=s&&u.default.createElement(tr,{"data-testid":"countContainer",active:c||v,colourPalette:r,customTextColour:d},u.default.createElement(Ji,{variant:"subheadingSmall"},s)),E&&u.default.createElement(er,Object.assign({},lr,{"aria-label":"delete icon"})),$&&c&&u.default.createElement(Qi,Object.assign({},lr,{"aria-label":"edit icon"}))))})),rr=m.default($t).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;`,dr=m.default($t).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${y.neutral.grey.lightest};`,sr=m.default(aa).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${y.neutral.ink.base};`,cr=m.default(vt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${y.neutral.ink.base};`,ur=m.default(Yi).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${y.neutral.ink.base};`,mr=m.default(be).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${y.neutral.grey.lightest};}`,fr=m.default(be).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${sr}{color:${y.neutral.ink.lightest};}}&:hover{background-color:${y.neutral.grey.lightest};}`,pr=m.default(be).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${cr}{color:${y.neutral.ink.lightest};}}&:hover{background-color:${y.neutral.grey.lightest};}`,gr=m.default(no).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,hr=(t,n)=>{const[o,l]=e.useState(!0),[a,i]=e.useState(!1),[r,d]=e.useState([]),s=e.useCallback((()=>{var e,n;t.current.scrollLeft>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(e=document.getElementById("right-arrow"))||void 0===e||e.focus()),l(!0));const o=t.current.scrollWidth-t.current.clientWidth;t.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),i(!0)):i(!1)}),[t]),c=e.useCallback((()=>{t.current.scrollWidth-t.current.getBoundingClientRect().width<5?i(!0):i(!1)}),[t]),u=e.useCallback((()=>{const e=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(r,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,r]),m=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(r,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,r]);return e.useEffect((()=>{var e,o,l,a,i,u,m,f;if(t)return(null===(o=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.children)||void 0===o?void 0:o.length)&&(null===(a=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.children)||void 0===a?void 0:a.length)!==r.length&&r.length>0&&r.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),d([...r,r[r.length-1]+(null!==(u=null===(i=t.current.children[r.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==u?u:0)-20])),(null===(f=null===(m=null==t?void 0:t.current)||void 0===m?void 0:m.children)||void 0===f?void 0:f.length)&&0===r.length&&d((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c(),window.addEventListener("resize",(()=>c())),t.current.addEventListener("scroll",(()=>s())),()=>{window.removeEventListener("resize",(()=>c()))}}),[t,n,c,s,r]),{rightDisabled:a,leftDisabled:o,toNextScrollPosition:u,toPrevScrollPosition:m}},br=u.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:l},a)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=hr(i,t);return u.default.createElement(dr,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(rr,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),u.default.createElement(gr,null,(!d||!r)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(fr,{id:"left-arrow",icon:u.default.createElement(sr,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),u.default.createElement(pr,{id:"right-arrow",icon:u.default.createElement(cr,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),u.default.createElement(mr,{icon:u.default.createElement(ur,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":l,"aria-haspopup":o?"dialog":void 0,ref:a})))})),vr=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,xr=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,yr=m.default(go).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,wr=m.default(be).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${z.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${z.colors.secondary.red.base};\n `};`,Cr=e=>yo(e,wo),Er=co((e=>{var{size:t=oo.base,hasError:n,className:o}=e,l=Z(e,["size","hasError","className"]);return u.default.createElement(vr,{className:o},u.default.createElement(xr,null,"g"===l.weightUnit&&u.default.createElement(no,null,u.default.createElement(yr,Object.assign({size:t,onChange:l.handleChangeGram,name:"gram",type:"number",value:l.gram,hasError:n,min:"0",step:"any",onKeyDown:Cr},l)),u.default.createElement(wr,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(l)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(no,null,u.default.createElement(yr,Object.assign({size:t,onChange:l.handleChangePound,name:"pound",type:"number",value:l.pound,hasError:n,step:"any",min:"0",onKeyDown:Cr},l)),u.default.createElement(wr,{hasError:n,size:t},"lb")),u.default.createElement(no,null,u.default.createElement(yr,Object.assign({size:t,onChange:l.handleChangeOunce,name:"ounce",type:"number",value:l.ounce,hasError:n,min:"0",step:"any",onKeyDown:Cr},l)),u.default.createElement(wr,{hasError:n,size:t},"oz")))))}));Er.displayName="WeightInput",Er.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:o,label:l,iconSlot:a,glyphColor:i=y.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[c,m]=e.useState(!!s);return u.default.createElement(P,{open:!!s,className:n},u.default.createElement(H,{onClick:()=>m(!c)},u.default.createElement(O,null,u.default.createElement(j,{glyphColor:i},a,u.default.createElement(R,{variant:"body"},l)),u.default.createElement(T,null,u.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},u.default.createElement(V,{name:c?"downArrow":"upArrow"})))),!!d&&u.default.createElement(A,{variant:"hintText"},d)),c&&u.default.createElement(W,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},o))},exports.ActionList=We,exports.Anchor=({children:e,className:t,text:n,href:o,target:l})=>u.default.createElement(Pe,{href:o,target:l,className:t},e||n),exports.AnimatedDropdown=Ge,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=z.colors.secondary.blue.base,textColor:o="#ffffff"})=>{const l=t.toUpperCase().match(/\b(\w)/g);return u.default.createElement(Ue,{width:e,bgColor:n,textColor:o,className:"avatar"},null==l?void 0:l.slice(0,2).map(((e,t)=>u.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:o,className:l,e2eClassName:a,children:i})=>{const r=rt[e];return u.default.createElement(at,{text:o},u.default.createElement(r,{className:U([l,a]),hideBorder:t},n&&n,i&&u.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:o,onClose:l,className:a,header:i,children:r,backgroundColor:d="white"}=e,s=Z(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=gt[t];return u.default.createElement(dt,Object.assign({accentColor:c,className:a,backgroundColor:d},s),u.default.createElement(st,null,o&&u.default.createElement(ut,{style:{marginRight:N.md},accentColor:c},o),r?u.default.createElement(mt,null,r):u.default.createElement(u.default.Fragment,null,u.default.createElement(ft,null,i||u.default.createElement(pt,{variant:"headingSmall"},n)),u.default.createElement(ct,null,l&&u.default.createElement(be,{variant:"flat","aria-label":"Close",icon:u.default.createElement(we,null),onClick:l})))))},exports.BaseContainer=b,exports.Breadcrumbs=({items:e,Separator:t=u.default.createElement(yt,null),LinkComponent:n=wt})=>u.default.createElement(ht,{className:"breadcrumbs"},e.map(((o,l)=>u.default.createElement(xt,{key:o.title,title:o.title,href:o.pathname,LinkComponent:l!==e.length-1?n:Ct},e.length!==l+1&&t)))),exports.Button=be,exports.Card=Be,exports.CardHeader=Ce,exports.Checkbox=Pt,exports.Choice=Tt,exports.ChoiceList=Kt,exports.CopyToClipboard=({className:t,text:n,onCopy:o})=>{const[l,a]=u.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),o&&o(),a(!0),setTimeout((()=>a(!1)),2500)}),[o,n]);return u.default.createElement(at,{text:l?"Copied!":"Copy to clipboard"},u.default.createElement(Yt,{variant:"flat",size:"sm",className:t,"aria-label":`${l?"Copied":"Copy"} "${n}" to clipboard`,icon:l?u.default.createElement(Gt,Object.assign({color:y.secondary.green.base},_t)):u.default.createElement(Ut,Object.assign({color:y.secondary.blue.base},_t)),onClick:i}))},exports.DataTable=qn,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>u.default.createElement(Yn,{key:e},e))):u.default.createElement(Yn,null,e);return u.default.createElement(Xn,null,e.map((e=>t?u.default.createElement(Gn,{key:e.term},u.default.createElement(_n,null,e.term),u.default.createElement(Un,null,n(e.description))):u.default.createElement(Kn,{key:e.term},u.default.createElement(_n,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[o,l]=e.useState(!0);return u.default.createElement("main",null,t((()=>l(!o)),o),u.default.createElement(to,null,u.default.createElement(eo,{showSidebar:o},n)))},exports.DimensionsInput=Eo,exports.FilterTag=({className:t,e2eClassName:n,label:o,text:l,iconSlot:a,fill:i=y.secondary.blue.base,content:r,footer:d,header:s,onClickAway:c,onClick:m,shouldCloseOnClickAway:f=!0})=>{const p=jo(t),g=jo(n),{shouldShowDropdown:h,toggleShouldShowDropdown:b,closeDropdown:v}=ko(),x=e.useCallback((e=>{b(),c&&h&&c(e)}),[b,c,h]),w=e.useCallback((e=>{c&&c(e,v),f&&v()}),[v,c,f]);return!r?u.default.createElement(Lo,{className:U([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:m},o&&u.default.createElement(Fo,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(R,null,l),u.default.createElement(Do,{className:U([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:y.neutral.ink.base})):u.default.createElement(Ge,{className:p.filterTagDropdown,shouldShowDropdown:h,onClickAway:w,cta:u.default.createElement(Lo,{className:p.container,onClick:x},o&&u.default.createElement(Fo,{variant:"subheadingSmallBold"},`${o}:`),u.default.createElement(R,null,l),u.default.createElement(Bo,{color:y.neutral.ink.base,name:"downArrow",$shouldShow:h}))},u.default.createElement(Ro,null,u.default.createElement(Mo,{color:i},s||u.default.createElement(u.default.Fragment,null,a,u.default.createElement(R,{variant:"bodyBold"},o))),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,o]=e.useState(!0);return e.useEffect((()=>{function e(){o(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(o(!1),l())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function l(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function a(e){e.metaKey||e.altKey||e.ctrlKey||o(!0)}function i(){"hidden"===document.visibilityState&&(o(!0),n())}return document.addEventListener("keydown",a,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),l()}}),[o]),u.default.createElement(So.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=To,exports.Image=({src:t,alt:n="",className:l,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Vo(l),x=Vo(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=u.default.useState(null),[S,N]=u.default.useState(null),{styles:I,attributes:L}=o.usePopper($,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>f?w(!0):{}),[f]),F=e.useCallback((()=>f?w(!1):{}),[f]),B=!C.isLoaded||C.isError;return u.default.createElement(Oo,{className:U([null==v?void 0:v.container,null==x?void 0:x.container,l])},u.default.createElement(Ao,{src:t,alt:n,className:U([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:f,onMouseEnter:z,onMouseLeave:F,style:B?{display:"none"}:{},ref:k}),!b&&B&&(p||u.default.createElement(Ho,{className:U([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&a.createPortal(u.default.createElement(Wo,Object.assign({ref:N,style:I.popper},L.popper,{className:U([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),u.default.createElement(Po,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=no,exports.LegacyDataTable=Ml,exports.Loader=le,exports.LoginWithAmazonButton=t=>{const[n,o]=e.useState(Tl);return u.default.createElement(jl,Object.assign({onMouseDown:()=>{o("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{o(Tl)},"aria-label":Hl},t),u.default.createElement("img",{src:n,alt:Hl}))},exports.Modal=n=>{const{shouldShow:o,showHeaderCloseButton:l=!0,fullBleed:a=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,m]=e.useState(null);e.useEffect((()=>{var e,t;o&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[o]);const{isOverflowing:f,onScroll:p}=Io(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return u.default.createElement(t.AnimatePresence,null,o&&u.default.createElement("div",{"data-testid":"dialog-wrapper"},u.default.createElement(Ol,null),u.default.createElement(Kl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Be.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:u.default.createElement(Ce,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},l&&{onClickClose:g})),u.default.createElement(Al,{onScroll:p,ref:m,isScrollable:f,fullBleed:a},d),Wl(n)&&n.footerSlot,!Wl(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(Be.Footer,null,u.default.createElement($t,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&u.default.createElement($t,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&u.default.createElement($t,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(be,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:o,quickActions:l,backAction:a,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const m=o&&u.default.createElement(We,{buttonVariant:l?"default":"primary",title:"Actions",sections:o}),f=null==l?void 0:l.map((e=>u.default.createElement(be,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=a&&u.default.createElement(be,{onClick:a.onClick,icon:u.default.createElement(aa,null),variant:"link"},a.title),g=c&&u.default.createElement($t,{direction:"horizontal",alignX:"end"},u.default.createElement(oa,{onClick:c},u.default.createElement("span",null,"Toggle sidebar"),u.default.createElement(vt,{width:N.md})));return u.default.createElement(Jl,{shadow:r},u.default.createElement($t,null,p,u.default.createElement(la,null,u.default.createElement($t,{direction:"horizontal",spacing:"md"},n&&u.default.createElement(ta,{src:n,alt:"",width:"72",height:"72"}),u.default.createElement("div",{style:{flex:1}},u.default.createElement($t,{alignX:"stretch"},u.default.createElement(Ql,null,e),i,t&&u.default.createElement(ea,null,t)))),u.default.createElement(na,null,u.default.createElement($t,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,d&&u.default.createElement(be,{icon:u.default.createElement(aa,null),onClick:d}),s&&u.default.createElement(be,{icon:u.default.createElement(vt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:o,handleChangePage:l})=>{const{pageInputValue:a,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=ca({currentPage:n,totalPagesCount:o,handleChangePage:l});return u.default.createElement($t,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},u.default.createElement(ra,{onClick:()=>{1!==n&&l(1)},icon:u.default.createElement(ua,null),size:"sm","aria-label":"go to first page"}),u.default.createElement(ra,{onClick:r,icon:u.default.createElement(aa,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),u.default.createElement("form",{onSubmit:d},u.default.createElement(da,{"aria-live":"polite","aria-label":`page ${n} of ${o}`,size:oo.sm,type:"number",value:a,min:"1",max:`${o}`,onChange:s,onBlur:c})),u.default.createElement(sa,{count:o}),u.default.createElement(ra,{onClick:i,icon:u.default.createElement(vt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=o}),u.default.createElement(ra,{onClick:()=>{n!==o&&l(o)},icon:u.default.createElement(ma,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=o}))},exports.PaginationRange=wa,exports.Popover=ee,exports.Popup=Ti,exports.Portal=X,exports.PriceInput=La,exports.Radio=Zt,exports.ScreenReaderOnly=({children:e})=>u.default.createElement(za,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:m="",className:f="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return u.default.createElement(Da,{className:f,iconPosition:b?"left":"right"},u.default.createElement(Fa,{size:x,type:e,value:s,onChange:o,onBlur:l,onFocus:a,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:m,name:p,disabled:t,error:c,autoComplete:v}),u.default.createElement(Ba,null,g?u.default.createElement(le,{height:24,color:h||z.colors.secondary.blue.base}):y&&n?u.default.createElement(be,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},u.default.createElement(we,{color:h||z.colors.neutral.ink.dark})):u.default.createElement(be,{variant:"unstyled",onClick:()=>o(s),style:{display:"flex"},"aria-label":"Search",type:"button"},u.default.createElement(Ra,{color:h||z.colors.neutral.ink.dark,height:N.md,width:N.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:o})=>u.default.createElement(Ha,{className:n?`${n}-container`:void 0},e.map((e=>u.default.createElement(be,{variant:e.value===t?"primary":"default",key:e.key,onClick:()=>o(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Aa,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:o=!1,displayLabel:l=!1}=e,a=Z(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Va[e]?u.default.createElement(Pa,{key:`Key: ${e}`,"aria-label":Za[e]},Va[e]):u.default.createElement(Pa,{key:`Key: ${e}`},e))).reduce(((e,t)=>u.default.createElement(u.default.Fragment,null,e,"+",t)));return u.default.createElement(Wa,Object.assign({"aria-label":n,$inverse:o},a),i," ",l?u.default.createElement("span",null,n):null)},exports.SimpleTable=Qa,exports.Skeleton=ei,exports.Slider=({id:t,value:n,min:o,max:l,step:a=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[m,f]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=ai(r),y=ai(d),w=e.useCallback((e=>{var t;if(!m||!h.current)return;const r=p>-1?n[p]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(l-o)+o;const c=r-s;if(c>0&&(s=r+Math.ceil(s/a-r/a)*a),c<0&&(s=r+Math.floor(s/a-r/a)*a),r===s)return;s>l&&(s=l),s<o&&(s=o),Array.isArray(n)&&(0===p&&s>n[1]&&([,s]=n),1===p&&s<n[0]&&([s]=n));const u=a.toString().includes(".")?null===(t=a.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;s=Number(s.toFixed(u)),f=Array.isArray(n)?0===p?[s,n[1]]:[n[0],s]:s,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&g(1),1===p&&g(0))}),[p,m,l,o,i,a,n]),C=e.useCallback((()=>{f(!1),c()}),[c]),E=e.useCallback(((e,t)=>{f(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>E(e,Array.isArray(n)?0:1),t=e=>E(e,1),o=b.current,l=v.current;return null==o||o.addEventListener("mousedown",e),null==l||l.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),()=>{null==o||o.removeEventListener("mousedown",e),null==l||l.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let a;return a=U("number"==typeof n?0===n?[null==x?void 0:x.startSlider,null==y?void 0:y.startSlider]:[null==x?void 0:x.endSlider,null==y?void 0:y.endSlider]:[null==x?void 0:x.slider,null==y?void 0:y.slider]),u.default.createElement(oi,{role:"slider",ref:1===n?v:b,className:a,left:e,"aria-valuemin":o,"aria-valuemax":l,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<o?0:e[0]-o)/(l-o),n=100*(e[1]>l?100:e[1]-o)/(l-o),a=n-t;return u.default.createElement(u.default.Fragment,null,u.default.createElement(li,{className:U([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:a}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>l?100:n<o?0:100*(e-o)/(l-o),$(t,e)})(n),u.default.createElement(ti,{className:U([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},u.default.createElement(ni,null),S)},exports.Stack=$t,exports.Stepper=$a,exports.Tag=ii,exports.Text=R,exports.TextField=go,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:o,minWidth:l="50vw",max:r=3,onClose:d})=>(e.useEffect((()=>{r&&o.length>r&&d(o[0].key)}),[o,r,d]),a.createPortal(u.default.createElement(ri,{direction:"vertical",alignX:"center",spacing:4},u.default.createElement(i.TransitionGroup,{component:null},[...o].reverse().map(((e,a)=>u.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},u.default.createElement(pi,Object.assign({className:t,e2eClassName:n,minWidth:l,last:a===o.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=xi,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:o=!1,onChange:l})=>u.default.createElement(yi,{type:"button",checked:t,size:n,disabled:o,"aria-pressed":t,tabIndex:"0",onClick:()=>l(!t)},e),exports.Tooltip=at,exports.UploadFile=Fi,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:o})=>{const l=$o(n,o);return u.default.createElement(Ti,{shouldShow:n,className:`${e}-video`},u.default.createElement(Hi,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},u.default.createElement(Oi,{ref:l},u.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),u.default.createElement(Ai,{variant:"flat",onClick:o,"data-testid":"video-modal--close",icon:u.default.createElement(we,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:o,type:l,className:a,colourPalette:i=y.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:m,onEdit:f,e2eClassName:p})=>{const g=Ui(a),h=Ui(p),[b,v,x]=No(),w=e.useCallback((()=>c(t)),[t,c]),C=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=l===Wi.draft,k=l===Wi.saved,S=s?y.neutral.ink.dark:y.neutral.ink.base;return u.default.createElement(Pi,{className:`${U([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:w},u.default.createElement(Zi,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&u.default.createElement(Ki,null,n),u.default.createElement(R,{variant:"bodyBold"},o),d&&u.default.createElement(qi,{active:s||b,colourPalette:i,customTextColour:r},u.default.createElement(Vi,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&u.default.createElement(we,Object.assign({},Xi,{color:S,className:null==h?void 0:h.delete,onClick:C})),k&&s&&u.default.createElement(Gi,Object.assign({},Xi,{color:S,className:null==h?void 0:h.edit,onClick:E}))))},exports.ViewTab=ir,exports.ViewsContainer=br,exports.WeightInput=Er,exports.buildClassnames=U,exports.generateId=q,exports.getOpaqueHexColor=Y,exports.hexToRgb=_,exports.theme=z,exports.useCellWidths=rn,exports.useClickOutside=$o,exports.useColumns=dn,exports.useDebounce=(t,n)=>{const[o,l]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>l(t)),n);return()=>clearTimeout(e)}),[t,n]),o},exports.useDragToScroll=sn,exports.useDropdown=ko,exports.useFocusVisible=function(){const[e,t]=u.default.useState(!1),{hadKeyboardEvent:n,isInitialized:o}=u.default.useContext(So),l=u.default.useCallback((()=>{e||t(!0)}),[e]),a=u.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=o?n&&e:e,u.default.useMemo((()=>({focusVisible:i,onFocus:l,onBlur:a})),[i,a,l])},exports.useHover=No,exports.useIsOverflowing=Io,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,o)=>{if(o)if(e){if(t.includes(o))return;const e=[...t,o];n(e)}else{const e=t.findIndex((e=>e===o));if(e<0)return;const l=[...t];l.splice(e,1),n(l)}}}}},exports.useScrollPosition=cn,exports.useSelection=bn,exports.useTabs=(t,n)=>{const{defaultActiveIndex:o=0}=n||{},[l]=e.useState(t),[a,i]=e.useState(l[o]);return[a,e=>{const t=l.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),u.default.createElement(t,Object.assign({},n))),exports.withLabels=co;
1
+ "use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),a=require("react-popper"),o=require("resize-observer-polyfill"),r=require("react-dom"),i=require("react-transition-group"),l=require("lodash.throttle"),s=require("react-use"),d=require("react-scrolllock-configurable");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),m=c(n),f=c(o),p=c(r),g=c(l),h=c(d);const b=m.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,v={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},y=(e,t)=>e||(t?v[t]:void 0),x={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},w={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},E={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var C,$;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(C||(C={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}($||($={}));const k=function({increment:e,unit:t,count:n}){const a={};for(let o=0;o<=n;o++){const n=o*e;a[o]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),S={[$.none]:"0",[$.line]:"1px",[$.xs]:k[1],[$.sm]:k[2],[$.base]:k[4],[$.md]:k[6],[$.lg]:k[8],[$.xl]:k[12],[$.xxl]:k[16]},D=Object.assign(Object.assign({},S),k),I={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},L={headingXXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:x.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:I.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:x.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},N=Object.assign(Object.assign({},I),{breakpoints:w,colors:x,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:E,shadows:C,sizes:D,text:L}),{text:R,colors:M,fontFamily:T}=N,P=m.default.span.attrs((({as:e,variant:t})=>({as:y(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:${T};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?M.neutral.ink.lightest:R[e].color;return`\n font-family: ${R[e].fontFamily};\n font-style: ${R[e].fontStyle};\n font-weight: ${R[e].fontWeight};\n font-size: ${R[e].fontSize};\n line-height: ${R[e].lineHeight};\n color: ${n};\n text-decoration: ${R[e].textDecoration};\n letter-spacing: ${R[e].letterSpacing};\n `}}`,z=m.default(b).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,F=m.default(z).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${D.base};width:${D.base};color:${({glyphColor:e})=>e};}`,B=m.default(z).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,A=m.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${N.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${N.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${N.colors.secondary.blue.light};}`,O=m.default(b).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,j=m.default(P).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,H=m.default(t.motion(b)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,V=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,W=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:D.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"}));function Z(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;const K=e=>`${e}-${Math.floor(1e3*Math.random())}`;class U extends e.PureComponent{constructor(e){super(e),this.id=K("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?r.createPortal(e,this.portalNode):null}}const q=m.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Y=m.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,J=e=>e.filter(Boolean).join(" "),G=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},X=(e,t)=>{const n=G(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},_=["app.veeqo.com"];function Q(e,t=_){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const ee='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])',te=({popperElement:t,anchorElement:n,onClose:a,disableFocusLock:o=!1})=>{e.useEffect((()=>{if(!t||o)return;const e=t.querySelectorAll(ee);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,o]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const n=t.querySelectorAll(ee);if(n.length<1)return void a();n[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==n||n.addEventListener("keydown",e),()=>null==n?void 0:n.removeEventListener("keydown",e)}),[n,t,a]);return{handleKeyDown:e=>{t&&("Escape"===e.key?a():o||"Tab"!==e.key||(e=>{const n=t.querySelectorAll(ee),a=n[0],o=n[n.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),a.focus())})(e))}}},ne=t=>{var{id:n,children:o,zIndex:r=N.layers.popup,placement:i="bottom",anchorElement:l,rootElementRef:s,onShouldClose:d,style:c,disableFocusLock:m,removeBackdrop:p=!1}=t,g=Z(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[h,b]=e.useState(null),{styles:v,attributes:y,update:x}=a.usePopper(l,h,{placement:i}),w=e.useMemo((()=>n||K("popover")),[n]);(({anchorElement:t,popoverId:n})=>{e.useEffect((()=>{if(t){try{t.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",t),t.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{t.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",t),t.setAttribute("aria-controls",n))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${n}`)}try{t.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",t),t.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${n}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,n])})({anchorElement:l,popoverId:w});const E=()=>{null==l||l.focus(),null==d||d()},{handleKeyDown:C}=te({popperElement:h,anchorElement:l,onClose:E,disableFocusLock:m});return e.useEffect((()=>{if(!x||!h)return;const e=new f.default(x);return e.observe(h),()=>e.disconnect()}),[x,h]),e.useEffect((()=>{if(x)return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)}),[x]),u.default.createElement(U,{rootElementRef:s},!p&&u.default.createElement(Y,{onClick:E,zIndex:r}),u.default.createElement(q,Object.assign({open:!0,zIndex:r,ref:b,style:Object.assign(Object.assign({},v.popper),c),onKeyDown:C},y.popper,g),o))},ae=({width:e,height:t,className:n,color:a,label:o})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":o},u.default.createElement("defs",null,u.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},u.default.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),u.default.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),u.default.createElement("stop",{stopColor:a,offset:"100%"}))),u.default.createElement("g",{fill:"none",fillRule:"evenodd"},u.default.createElement("g",{transform:"translate(1 1)"},u.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),u.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},u.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),oe=({width:e,height:t,className:n,color:a,label:o})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:a,"aria-label":o},u.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},u.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),re=({width:e,height:t,className:n,color:a,label:o})=>u.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":o},u.default.createElement("circle",{cx:"15",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},u.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),u.default.createElement("circle",{cx:"105",cy:"15",r:"15"},u.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),u.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ie=({className:e,height:t=24,width:n=24,color:a="#588CB0",type:o="TailSpin"})=>{switch(o){case"Grid":return u.default.createElement(oe,{className:e,height:t,width:n,color:a});case"ThreeDots":return u.default.createElement(re,{className:e,height:t,width:n,color:a});default:return u.default.createElement(ae,{className:e,height:t,width:n,color:a})}},le=m.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>D[e]};height:${({size:e})=>D[e]};}`,se=m.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${N.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",o="8px",r="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",o="4px",r="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${o};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,de=m.default(se).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${N.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?N.colors.neutral.ink.base:N.colors.secondary.blue.base};&:hover{background-color:${N.colors.neutral.grey.lightest};}&:active{background-color:${N.colors.neutral.grey.lightest};border-color:${N.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${N.colors.neutral.grey.base} !important;border-color:${N.colors.neutral.grey.base} !important;color:${N.colors.neutral.ink.light} !important;}`,ce=m.default(de).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${N.colors.secondary.red.base};&:hover{color:${N.colors.secondary.red.dark};}&:active{border-color:${N.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.red.light};color:${N.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.red.light};}`,ue=m.default(de).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${N.colors.secondary.blue.base};border-color:${N.colors.secondary.blue.base};color:white;&:hover{background-color:${N.colors.secondary.blue.dark};border-color:${N.colors.secondary.blue.dark};}&:active{background-color:${N.colors.secondary.blue.dark};border-color:${N.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};}`,me=m.default(ue).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${N.colors.secondary.red.base};border-color:${N.colors.secondary.red.base};color:white;&:hover{background-color:${N.colors.secondary.red.dark};border-color:${N.colors.secondary.red.dark};}&:active{background-color:${N.colors.secondary.red.dark};border-color:${N.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.red.light};}`,fe=m.default(se).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${N.colors.neutral.ink.base};&:hover{background-color:${N.colors.neutral.grey.light};}&:active{background-color:${N.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,pe=m.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,ge=m.default(pe).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${N.text.link.fontFamily};font-size:${N.text.link.fontSize};line-height:${N.text.link.fontSize};font-weight:${N.text.link.fontWeight};line-height:${N.text.link.lineHeight};text-decoration:${N.text.link.textDecoration};color:${N.colors.secondary.blue.base};&:hover{color:${N.colors.secondary.blue.dark};}& > * + *{margin-left:${N.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${N.colors.secondary.blue.light};border-radius:4px;}`,he=m.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,be=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),ve={default:de,primary:ue,destructive:ce,primaryDestructive:me,flat:fe,link:ge,unstyled:pe},ye=e.forwardRef(((e,t)=>{var{className:n,children:a,icon:o,variant:r="default",size:i="base",dropdown:l=!1,loading:s=!1}=e,d=Z(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===r)return u.default.createElement(pe,Object.assign({ref:t,className:n},d),a);const c=ve[r],m=void 0!==a,f=!!o;return u.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:m,hasIcon:f,hasDropdown:l},d),(m||f)&&u.default.createElement(le,{$loading:s,hasText:!!a,size:a||"sm"===i?"base":"md"},o&&o,void 0!==a&&a,l&&u.default.createElement(be,null)),s&&u.default.createElement(he,null,u.default.createElement(ie,null)))})),xe=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${D.md};padding-right:${D.md};padding-left:${D.md};margin-bottom:${D.md};& > * + *{margin-top:${D.xs};}`,we=m.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${D.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ee=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:D.md},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),Ce=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),$e=({id:e,title:t,subtitle:n,headerVariant:a="headingSmall",action:o,ActionSlot:r,isCollapsed:i,onClickCollapse:l,onClickClose:s})=>u.default.createElement(xe,null,u.default.createElement(we,null,u.default.createElement(P,{id:e,variant:a},t),o&&u.default.createElement(ye,{variant:"link",onClick:o.onClick},o.title),r,l&&u.default.createElement(ye,{variant:"flat",icon:i?u.default.createElement(Ee,null):u.default.createElement(W,null),onClick:l}),s&&u.default.createElement(ye,{variant:"flat",icon:u.default.createElement(Ce,null),onClick:s,"aria-label":"Close"})),n&&u.default.createElement(P,{variant:"subheadingSmall"},n)),{grey:ke}=x.neutral,Se={0:"none",1:C.sm,2:C.base,3:C.md,4:C.lg},De={info:x.secondary.blue.base,success:x.secondary.green.base,error:x.secondary.red.base},Ie=m.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${D.base};padding:${D.md};z-index:2;`,Le=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${D.md};padding-left:${D.md};margin-top:${D.md};margin-bottom:${D.md};font-family:${L.body.fontFamily};font-size:${L.body.fontSize};font-weight:${L.body.fontWeight};line-height:${L.body.lineHeight};color:${L.body.color};& + &{border-top:${D.line} solid ${ke.base};padding-top:${D.md};}`,Ne=m.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${D.md};margin-right:-${D.md};`,Re=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Le}:first-child{margin-top:0;}`,Me=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${D.line} solid ${ke.base};box-shadow:${e=>void 0!==e.elevation?Se[e.elevation]:C.sm};border-radius:${E.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: ${D.xs};\n background-color: ${De[e]};\n }\n `}`,Te={expanded:{height:"auto"},collapsed:{height:0}},Pe=({className:t,style:n,title:a,subtitle:o,HeaderActionSlot:r,action:i,collapsable:l,elevation:s,accent:d,children:c,onClose:m,renderFooter:f})=>{const[p,g]=e.useState(!1),h=a&&u.default.createElement($e,{title:a,subtitle:o,ActionSlot:r,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:l?()=>{g(!p)}:void 0}),b=l&&!p||!l,v=u.default.createElement(Re,{animate:b?"expanded":"collapsed",variants:Te,transition:{duration:.3,ease:"easeOut"}},u.default.createElement(Le,null,c)),y=void 0!==f&&u.default.createElement(Ie,null,f());return u.default.createElement(Me,{className:t,style:n,elevation:s,accent:d},h,v,y)};Pe.Surface=Me,Pe.Section=Le,Pe.FullBleed=Ne,Pe.Footer=Ie;const{sizes:ze,colors:Fe,text:Be}=N,Ae=m.default(Pe.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${ze.base} 0;display:flex;flex-direction:column;`,Oe=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Fe.neutral.grey.base};margin-top:${ze.base};padding-top:${ze.base};}`,je=m.default(P).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${ze.sm} ${ze.base} ${ze.sm};`,He=m.default(ye).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:${Be.body.fontFamily};font-size:${Be.body.fontSize};font-weight:${Be.body.fontWeight};&:hover{background-color:${Fe.neutral.grey.light};color:${Fe.secondary.blue.base};}& > * + *{margin-left:${ze[3]};}`,Ve={item:He,action:m.default(He).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Fe.secondary.blue.base};`,link:m.default(He).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Fe.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:n=[],sections:a,buttonVariant:o,buttonSize:r})=>{const[i,l]=e.useState(!1),[s,d]=e.useState(null),c=e=>{const t=Ve[e.variant||"item"];return u.default.createElement(t,{onClick:()=>{return t=e.onClick,l(!1),void t();var t},key:e.title},e.icon&&e.icon,u.default.createElement("span",null,e.title))},m=a?a.map((e=>u.default.createElement(Oe,{key:e.title},e.title&&u.default.createElement(je,null,e.title),e.items.map(c)))):n.map(c);return u.default.createElement(u.default.Fragment,null,u.default.createElement(ye,{dropdown:!0,variant:o,size:r,onClick:()=>l(!i),ref:d},t),i&&u.default.createElement(ne,{anchorElement:s,placement:"bottom-start",onShouldClose:()=>l(!1)},u.default.createElement(Ae,null,m)))},Ze=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${N.text.link.fontFamily};font-style:${N.text.link.fontStyle};font-weight:${N.text.link.fontWeight};font-size:${N.text.link.fontSize};line-height:${N.text.link.lineHeight};color:${N.colors.secondary.blue.base};text-decoration:${N.text.link.textDecoration};&:hover{color:${N.colors.secondary.blue.dark};}`,Ke=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,Ue=e.forwardRef(((e,t)=>{const{children:n,className:a,role:o}=e;return u.default.createElement(Ke,{className:a,ref:t,role:o},n)})),qe=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,Ye=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Je=m.default(Ue).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${N.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);}`,Ge=({cta:t,shouldShowDropdown:n,children:a,className:o="animated-dropdown",reversed:r=!1,onClickAway:l=(()=>{}),timeout:s=350,transitionClassnames:d="dropdown",onClick:c,onMouseEnter:m,onMouseLeave:f})=>{const p=e.useRef(null);return((t,n)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,n])})(p,(e=>{n&&l(e)})),u.default.createElement(qe,{className:`${o}-container ${o}`,onClick:c,onMouseEnter:m,onMouseLeave:f,ref:p},!r&&t,u.default.createElement(Ye,{className:`${o}-wrap ${o}`},u.default.createElement(i.CSSTransition,{in:n,timeout:s,classNames:d,unmountOnExit:!0},u.default.createElement(Je,{role:"dialog",reversed:r,className:`${o}-basic-dropdown ${o}`},a))),r&&t)},Xe=m.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${N.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:${N.text.bodySmallBold.fontFamily};font-weight:${N.text.bodySmallBold.fontWeight};font-size:${N.text.bodySmallBold.fontSize};line-height:${N.text.bodySmallBold.lineHeight};}`,_e=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,Qe=m.default(_e).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,et=m.default(P).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${N.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,tt=m.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,nt=m.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--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;}`,at=m.default(_e).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 ot;!function(e){e.BOTTOM="bottom",e.TOP="top"}(ot||(ot={}));const rt={duration:400,side:ot.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},it=({content:t,text:n,hoverableElement:o,config:r,reversed:i,withTriangle:l,classNames:s})=>{const[d,c]=e.useState(null),m=Object.assign(Object.assign({},rt),r),{duration:f,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=m,{styles:v,attributes:y}=a.usePopper(o,d,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),x=Object.assign(Object.assign({},v.popper),{zIndex:N.layers.tooltip});return u.default.createElement(nt,Object.assign({className:s.tip,ref:c,duration:f,triangleOffsetSize:g,style:x},y.popper,{role:"tooltip"}),u.default.createElement(at,{className:s.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:u.default.createElement(et,null,n)),l&&u.default.createElement(tt,{id:"veeqo-components-triangle",className:s.triangle}))},lt=({children:t,text:n,content:a,config:o,reversed:r=!1,className:i,withTriangle:l,initialShouldShow:s=!1,useReactPortal:d=!0})=>{const[c,m]=e.useState(s),[f,g]=e.useState(null),h=!!n&&n.trim().length>0,b={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!a&&!h);if(!v)return t;const y=c&&v&&u.default.createElement(it,{classNames:b,hoverableElement:f,config:o,reversed:r,withTriangle:l,text:n,content:a});return u.default.createElement(_e,{className:b.container},d?p.default.createPortal(y,document.body):y,u.default.createElement(Qe,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},t))},st=m.default(b).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${L.bodySmall.fontFamily};font-weight:${L.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${D.base};height:${D.base};}`,dt={default:m.default(st).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${x.secondary.blue.base};color:${x.secondary.blue.base};`,primary:m.default(st).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};color:${x.secondary.blue.base};`,warning:m.default(st).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${x.secondary.yellow.base};background-color:${x.secondary.yellow.lightest};color:${x.secondary.orange.dark};`},ct=m.default(b).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,ut=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,mt=m.default(b).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,ft=m.default(mt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${D.md};height:${D.md};color:${({accentColor:e})=>e};}`,pt=m.default(b).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,gt=m.default(mt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,ht=m.default(P).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,bt={help:x.secondary.blue.base,info:x.neutral.ink.base,error:x.secondary.red.base,success:x.secondary.green.base},vt=m.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${L.body.fontFamily};font-weight:${L.body.fontWeight};font-size:${L.body.fontSize};line-height:${L.body.lineHeight};`,yt=m.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,xt=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),wt=({children:e,title:t,LinkComponent:n,href:a})=>n?u.default.createElement(yt,{className:"breadcrumb"},u.default.createElement(n,{href:a},t),e):u.default.createElement(yt,{className:"breadcrumb"},t,e),Et=()=>u.default.createElement(xt,{className:"separator",width:D.base,height:D.base}),Ct=({children:e,href:t})=>u.default.createElement("a",{href:t},e),$t=({children:e})=>u.default.createElement("span",null,e);function kt(e,t){return e-t*Math.floor(e/t)}const St=1721426;function Dt(e,t,n,a){let o=(t=Lt(e,t))-1,r=-2;return n<=2?r=0:It(t)&&(r=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+r+a)}function It(e){return e%4==0&&(e%100!=0||e%400==0)}function Lt(e,t){return"BC"===e?1-t:t}function Nt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Rt={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 Mt{fromJulianDay(e){let t=e,n=t-St,a=Math.floor(n/146097),o=kt(n,146097),r=Math.floor(o/36524),i=kt(o,36524),l=Math.floor(i/1461),s=kt(i,1461),d=Math.floor(s/365),c=400*a+100*r+4*l+d+(4!==r&&4!==d?1:0),[u,m]=Nt(c),f=t-Dt(u,m,1,1),p=2;t<Dt(u,m,3,1)?p=0:It(m)&&(p=1);let g=Math.floor((12*(f+p)+373)/367),h=t-Dt(u,m,g,1)+1;return new Mn(u,m,g,h)}toJulianDay(e){return Dt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Rt[It(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return It(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 Tt={"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 Pt(e,t){return t=dn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zt(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 Ft(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-function(e){let t=Ut(e);return t&&Tt[t]||0}(t))%7;return a<0&&(a+=7),a}function Bt(e){return ln(function(e){return rn(Date.now(),e)}(e))}function At(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Ot(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let jt=null;function Ht(){return null==jt&&(jt=(new Intl.DateTimeFormat).resolvedOptions().timeZone),jt}function Vt(e){return e.subtract({days:e.day-1})}function Wt(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Zt(e,t){let n=Ft(e,t);return e.subtract({days:n})}const Kt=new Map;function Ut(e){if(Intl.Locale){let t=Kt.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&Kt.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function qt(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Yt(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const Jt={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 Gt(e){return Xt(Lt((e=dn(e,new Mt)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Xt(e,t,n,a,o,r,i){let l=new Date;return l.setUTCHours(a,o,r,i),l.setUTCFullYear(e,t-1,n),l.getTime()}function _t(e,t){if("UTC"===t)return 0;if(e>0&&t===Ht())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:a,day:o,hour:r,minute:i,second:l}=en(e,t);return Xt(n,a,o,r,i,l,0)-1e3*Math.floor(e/1e3)}const Qt=new Map;function en(e,t){let n=Qt.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"}),Qt.set(t,n));let a=n.formatToParts(new Date(e)),o={};for(let e of a)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const tn=864e5;function nn(e,t,n,a){return(n===a?[n]:[n,a]).filter((n=>function(e,t,n){let a=en(n,t);return e.year===a.year&&e.month===a.month&&e.day===a.day&&e.hour===a.hour&&e.minute===a.minute&&e.second===a.second}(e,t,n)))}function an(e,t,n="compatible"){let a=sn(e);if("UTC"===t)return Gt(a);if(t===Ht()&&"compatible"===n){a=dn(a,new Mt);let e=new Date,t=Lt(a.era,a.year);return e.setFullYear(t,a.month-1,a.day),e.setHours(a.hour,a.minute,a.second,a.millisecond),e.getTime()}let o=Gt(a),r=_t(o-tn,t),i=_t(o+tn,t),l=nn(a,t,o-r,o-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(o-r,o-i);case"compatible":case"later":return Math.max(o-r,o-i);case"reject":throw new RangeError("No such absolute time found")}}function on(e,t,n="compatible"){return new Date(an(e,t,n))}function rn(e,t){let n=_t(e,t),a=new Date(e+n),o=a.getUTCFullYear(),r=a.getUTCMonth()+1,i=a.getUTCDate(),l=a.getUTCHours(),s=a.getUTCMinutes(),d=a.getUTCSeconds(),c=a.getUTCMilliseconds();return new Fn(o,r,i,t,n,l,s,d,c)}function ln(e){return new Mn(e.calendar,e.era,e.year,e.month,e.day)}function sn(e,t){let n=0,a=0,o=0,r=0;if("timeZone"in e)({hour:n,minute:a,second:o,millisecond:r}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:o,millisecond:r}=t),new Pn(e.calendar,e.era,e.year,e.month,e.day,n,a,o,r)}function dn(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),a=e.copy();return a.calendar=t,a.era=n.era,a.year=n.year,a.month=n.month,a.day=n.day,hn(a),a}function cn(e,t,n){if(e instanceof Fn)return e.timeZone===t?e:function(e,t){let n=Gt(e)-e.offset;return dn(rn(n,t),e.calendar)}(e,t);return rn(an(e,t,n),t)}const un=36e5;function mn(e,t){let n=e.copy(),a="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=wn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=wn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=wn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=wn(e.hour,24),t}(e)}(n,t):0;fn(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,pn(n),gn(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=a,function(e){for(;e.day<1;)e.month--,pn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,pn(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var r,i;let e=null===(r=(i=n.calendar).isInverseEra)||void 0===r?void 0:r.call(i,n);n.year=o,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 fn(e,t){var n,a;(null===(n=(a=e.calendar).isInverseEra)||void 0===n?void 0:n.call(a,e))&&(t=-t),e.year+=t}function pn(e){for(;e.month<1;)fn(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,fn(e,1)}function gn(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 hn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gn(e)}function bn(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function vn(e,t){return mn(e,bn(t))}function yn(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),hn(n),n}function xn(e,t){let n=e.copy();var a;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),(a=n).millisecond=Math.max(0,Math.min(a.millisecond,1e3)),a.second=Math.max(0,Math.min(a.second,59)),a.minute=Math.max(0,Math.min(a.minute,59)),a.hour=Math.max(0,Math.min(a.hour,23)),n}function wn(e,t){let n=e%t;return n<0&&(n+=t),n}function En(e,t,n,a){let o=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=$n(r,n,0,t.length-1,null==a?void 0:a.round),o.era=t[r],hn(o);break}case"year":var r,i;(null===(r=(i=o.calendar).isInverseEra)||void 0===r?void 0:r.call(i,o))&&(n=-n),o.year=$n(e.year,n,-1/0,9999,null==a?void 0:a.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=$n(e.month,n,1,e.calendar.getMonthsInYear(e),null==a?void 0:a.round);break;case"day":o.day=$n(e.day,n,1,e.calendar.getDaysInMonth(e),null==a?void 0:a.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),hn(o),o}function Cn(e,t,n,a){let o=e.copy();switch(t){case"hour":{let t=e.hour,r=0,i=23;if(12===(null==a?void 0:a.hourCycle)){let e=t>=12;r=e?12:0,i=e?23:11}o.hour=$n(t,n,r,i,null==a?void 0:a.round);break}case"minute":o.minute=$n(e.minute,n,0,59,null==a?void 0:a.round);break;case"second":o.second=$n(e.second,n,0,59,null==a?void 0:a.round);break;case"millisecond":o.millisecond=$n(e.millisecond,n,0,999,null==a?void 0:a.round);break;default:throw new Error("Unsupported field "+t)}return o}function $n(e,t,n,a,o=!1){if(o){(e+=Math.sign(t))<n&&(e=a);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>a&&(e=n)}else(e+=t)<n?e=a-(n-e-1):e>a&&(e=n+(e-a-1));return e}function kn(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=an(mn(sn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=Gt(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),dn(rn(n,e.timeZone),e.calendar)}function Sn(e){let t=dn(e,new Mt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Dn(e){return`${Sn(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 In(e){return`${Dn(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),a=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Ln(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 Nn(e){let t,n="object"==typeof e[0]?e.shift():new Mt;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 Rn=new WeakMap;class Mn{copy(){return this.era?new Mn(this.calendar,this.era,this.year,this.month,this.day):new Mn(this.calendar,this.year,this.month,this.day)}add(e){return mn(this,e)}subtract(e){return vn(this,e)}set(e){return yn(this,e)}cycle(e,t,n){return En(this,e,t,n)}toDate(e){return on(this,e)}toString(){return Sn(this)}compare(e){return At(this,e)}constructor(...e){Ln(this,Rn,{writable:!0,value:void 0});let[t,n,a,o,r]=Nn(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=r,hn(this)}}var Tn=new WeakMap;class Pn{copy(){return this.era?new Pn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Pn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return mn(this,e)}subtract(e){return vn(this,e)}set(e){return yn(xn(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return En(this,e,t,n);default:return Cn(this,e,t,n)}}toDate(e,t){return on(this,e,t)}toString(){return Dn(this)}compare(e){let t=At(this,e);return 0===t?function(e,t){return Ot(e)-Ot(t)}(this,sn(e)):t}constructor(...e){Ln(this,Tn,{writable:!0,value:void 0});let[t,n,a,o,r]=Nn(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=r,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,hn(this)}}var zn=new WeakMap;class Fn{copy(){return this.era?new Fn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Fn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return kn(this,e)}subtract(e){return function(e,t){return kn(e,bn(t))}(this,e)}set(e,t){return function(e,t,n){let a=sn(e),o=xn(yn(a,t),t);return 0===o.compare(a)?e:dn(rn(an(o,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,a){switch(t){case"hour":{let t=0,o=23;if(12===(null==a?void 0:a.hourCycle)){let n=e.hour>=12;t=n?12:0,o=n?23:11}let r=sn(e),i=dn(xn(r,{hour:t}),new Mt),l=[an(i,e.timeZone,"earlier"),an(i,e.timeZone,"later")].filter((t=>rn(t,e.timeZone).day===i.day))[0],s=dn(xn(r,{hour:o}),new Mt),d=[an(s,e.timeZone,"earlier"),an(s,e.timeZone,"later")].filter((t=>rn(t,e.timeZone).day===s.day)).pop(),c=Gt(e)-e.offset,u=Math.floor(c/un),m=c%un;return c=$n(u,n,Math.floor(l/un),Math.floor(d/un),null==a?void 0:a.round)*un+m,dn(rn(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Cn(e,t,n,a);case"era":case"year":case"month":case"day":return dn(rn(an(En(sn(e),t,n,a),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=Gt(e)-e.offset;return new Date(t)}(this)}toString(){return In(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-cn(e,this.timeZone).toDate().getTime()}constructor(...e){Ln(this,zn,{writable:!0,value:void 0});let[t,n,a,o,r]=Nn(e),i=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,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,hn(this)}}const Bn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],An=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],On=[1867,1911,1925,1988,2018],jn=["meiji","taisho","showa","heisei","reiwa"];function Hn(e){const t=Bn.findIndex((([t,n,a])=>e.year<t||(e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<a)));return-1===t?Bn.length-1:0===t?0:t-1}function Vn(e){let t=On[jn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Mn(e.year+t,e.month,e.day)}class Wn extends Mt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Hn(t);return new Mn(this,jn[n],t.year-On[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(Vn(e))}balanceDate(e){let t=Vn(e),n=Hn(t);jn[n]!==e.era&&(e.era=jn[n],e.year=t.year-On[n]),this.constrainDate(e)}constrainDate(e){let t=jn.indexOf(e.era),n=An[t];if(null!=n){let[a,o,r]=n,i=a-On[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(r,e.day)))}if(1===e.year&&t>=0){let[,n,a]=Bn[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(a,e.day))}}getEras(){return jn}getYearsInEra(e){let t=jn.indexOf(e.era),n=Bn[t],a=Bn[t+1];if(null==a)return 9999-n[0]+1;let o=a[0]-n[0];return(e.month<a[1]||e.month===a[1]&&e.day<a[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(Vn(e))}getMinimumMonthInYear(e){let t=Zn(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Zn(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Zn(e){if(1===e.year){let t=jn.indexOf(e.era);return Bn[t]}}class Kn extends Mt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Lt(t.era,t.year);return new Mn(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Un(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Un(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Un(e){let[t,n]=Nt(e.year+-543);return new Mn(t,n,e.month,e.day)}const qn=1911;function Yn(e){return"minguo"===e.era?e.year+qn:1-e.year+qn}function Jn(e){let t=e-qn;return t>0?["minguo",t]:["before_minguo",1-t]}class Gn extends Mt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Lt(t.era,t.year),[a,o]=Jn(n);return new Mn(this,a,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Xn(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Jn(Yn(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Xn(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-qn}constructor(...e){super(...e),this.identifier="roc"}}function Xn(e){let[t,n]=Nt(Yn(e));return new Mn(t,n,e.month,e.day)}const _n=1948320,Qn=[0,31,62,93,124,155,186,216,246,276,306,336];class ea{fromJulianDay(e){let t=e-_n,n=1+Math.floor((33*t+3)/12053),a=t-(365*(n-1)+Math.floor((8*n+21)/33)),o=a<216?Math.floor(a/31):Math.floor((a-6)/30);return new Mn(this,n,o+1,a-Qn[o]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=Qn[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 kt(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class ta extends Mt{fromJulianDay(e){let t,n,a,o=super.fromJulianDay(e),r=o.year-78,i=e-Dt(o.era,o.year,1,1);if(i<80?(r--,t=It(o.year-1)?31:30,i+=t+155+90+10):(t=It(o.year)?31:30,i-=80),i<t)n=1,a=i+1;else{let e=i-t;e<155?(n=Math.floor(e/31)+2,a=e%31+1):(e-=155,n=Math.floor(e/30)+7,a=e%30+1)}return new Mn(this,r,n,a)}toJulianDay(e){let t,n,a=e.year+78,[o,r]=Nt(a);return It(r)?(t=31,n=Dt(o,r,3,21)):(t=30,n=Dt(o,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&&It(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 na=1948440,aa=1948439,oa=1300,ra=1600,ia=460322;function la(e,t,n,a){return a+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function sa(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+la(t,a,1,1)))/29.5)+1),r=n-la(t,a,o,1)+1;return new Mn(e,a,o,r)}function da(e){return(14+11*e)%30<11}class ca{fromJulianDay(e){return sa(this,na,e)}toJulianDay(e){return la(na,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&da(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return da(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class ua extends ca{fromJulianDay(e){return sa(this,aa,e)}toJulianDay(e){return la(aa,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let ma,fa;function pa(e){return ia+fa[e-oa]}function ga(e,t){let n=1<<11-(t-1);return 0==(ma[e-oa]&n)?29:30}function ha(e,t){let n=pa(e);for(let a=1;a<t;a++)n+=ga(e,a);return n}function ba(e){return fa[e+1-oa]-fa[e-oa]}class va extends ca{fromJulianDay(e){let t=e-na,n=pa(oa),a=pa(ra);if(t<n||t>a)return super.fromJulianDay(e);{let e=oa-1,n=1,a=1;for(;a>0;){e++,a=t-pa(e)+1;let o=ba(e);if(a===o){n=12;break}if(a<o){let t=ga(e,n);for(n=1;a>t;)a-=t,n++,t=ga(e,n);break}}return new Mn(this,e,n,t-ha(e,n)+1)}}toJulianDay(e){return e.year<oa||e.year>ra?super.toJulianDay(e):na+ha(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<oa||e.year>ra?super.getDaysInMonth(e):ga(e.year,e.month)}getDaysInYear(e){return e.year<oa||e.year>ra?super.getDaysInYear(e):ba(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",ma||(ma=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!fa){fa=new Uint32Array(ra-oa+1);let e=0;for(let t=oa;t<=ra;t++){fa[t-oa]=e;for(let n=1;n<=12;n++)e+=ga(t,n)}}}}const ya=347997;function xa(e){return kt(7*e+1,19)<7}function wa(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=29*t+Math.floor(n/25920);return kt(3*(a+1),7)<3&&(a+=1),a}function Ea(e){return wa(e)+function(e){let t=wa(e-1),n=wa(e);return wa(e+1)-n==356?2:n-t==382?1:0}(e)}function Ca(e){return Ea(e+1)-Ea(e)}function $a(e,t){if(t>=6&&!xa(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=Ca(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?xa(e)?30:0:30}class ka{fromJulianDay(e){let t=e-ya,n=25920*t/765433,a=Math.floor((19*n+234)/235)+1,o=Ea(a),r=Math.floor(t-o);for(;r<1;)a--,o=Ea(a),r=Math.floor(t-o);let i=1,l=0;for(;l<r;)l+=$a(a,i),i++;return i--,l-=$a(a,i),new Mn(this,a,i,r-l)}toJulianDay(e){let t=Ea(e.year);for(let n=1;n<e.month;n++)t+=$a(e.year,n);return t+e.day+ya}getDaysInMonth(e){return $a(e.year,e.month)}getMonthsInYear(e){return xa(e.year)?13:12}getDaysInYear(e){return Ca(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(xa(t.year)&&!xa(e.year)&&t.month>6?e.month--:!xa(t.year)&&xa(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Sa=1723856,Da=1824665,Ia=5500;function La(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function Na(e,t){let n=Math.floor(4*(t-e)/1461),a=1+Math.floor((t-La(e,n,1,1))/30);return[n,a,t+1-La(e,n,a,1)]}function Ra(e){return Math.floor(e%4/3)}function Ma(e,t){return t%13!=0?30:Ra(e)+5}class Ta{fromJulianDay(e){let[t,n,a]=Na(Sa,e),o="AM";return t<=0&&(o="AA",t+=Ia),new Mn(this,o,t,n,a)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Ia),La(Sa,t,e.month,e.day)}getDaysInMonth(e){return Ma(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Ra(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Pa extends Ta{fromJulianDay(e){let[t,n,a]=Na(Sa,e);return t+=Ia,new Mn(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class za extends Ta{fromJulianDay(e){let[t,n,a]=Na(Da,e),o="CE";return t<=0&&(o="BCE",t=1-t),new Mn(this,o,t,n,a)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),La(Da,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Ma(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 Fa(e){switch(e){case"buddhist":return new Kn;case"ethiopic":return new Ta;case"ethioaa":return new Pa;case"coptic":return new za;case"hebrew":return new ka;case"indian":return new ta;case"islamic-civil":return new ca;case"islamic-tbla":return new ua;case"islamic-umalqura":return new va;case"japanese":return new Wn;case"persian":return new ea;case"roc":return new Gn;default:return new Mt}}let Ba=new Map;class Aa{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),a=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...a.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==Va&&(Va="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return Va}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=ja(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),a=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===a&&23===o)return"h23";if(24===a&&23===o)return"h24";if(0===a&&11===o)return"h11";if(12===a&&11===o)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=ja(e,t),this.options=t}}const Oa={true:{ja:"h11"},false:{}};function ja(e,t={}){if("boolean"==typeof t.hour12&&function(){null==Ha&&(Ha="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return Ha}()){t={...t};let n=Oa[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:a,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Ba.has(n))return Ba.get(n);let a=new Intl.DateTimeFormat(e,t);return Ba.set(n,a),a}let Ha=null;let Va=null;e.createContext(null),e.createContext(null),e.createContext(null),e.createContext(null),e.createContext(null);const Wa=e.createContext({}),Za="undefined"!=typeof document?u.default.useLayoutEffect:()=>{};function Ka(t){const n=e.useRef(null);return Za((()=>{n.current=t}),[t]),e.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}const Ua={prefix:String(Math.round(1e10*Math.random())),current:0},qa=u.default.createContext(Ua),Ya=u.default.createContext(!1);let Ja=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Ga=new WeakMap;const Xa="function"==typeof u.default.useId?function(t){let n=u.default.useId(),[a]=e.useState(to()),o=a||"test"===process.env.NODE_ENV?"react-aria":`react-aria${Ua.prefix}`;return t||`${o}-${n}`}:function(t){let n=e.useContext(qa);n!==Ua||Ja||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 a=function(t=!1){let n=e.useContext(qa),a=e.useRef(null);if(null===a.current&&!t){var o,r;let e=null===(r=u.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(o=r.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let t=Ga.get(e);null==t?Ga.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,Ga.delete(e))}a.current=++n.current}return a.current}(!!t),o=n===Ua&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return t||`${o}-${a}`};function _a(){return!1}function Qa(){return!0}function eo(e){return()=>{}}function to(){return"function"==typeof u.default.useSyncExternalStore?u.default.useSyncExternalStore(eo,_a,Qa):e.useContext(Ya)}let no=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),ao=new Map;function oo(t){let[n,a]=e.useState(t),o=e.useRef(null),r=Xa(n),i=e.useCallback((e=>{o.current=e}),[]);return no&&ao.set(r,i),Za((()=>{let e=r;return()=>{ao.delete(e)}}),[r]),e.useEffect((()=>{let e=o.current;e&&(o.current=null,a(e))})),r}function ro(e,t){if(e===t)return e;let n=ao.get(e);if(n)return n(t),t;let a=ao.get(t);return a?(a(e),e):t}function io(t=[]){let n=oo(),[a,o]=function(t){let[n,a]=e.useState(t),o=e.useRef(null),r=Ka((()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:n===e.value?r():a(e.value)}));Za((()=>{o.current&&r()}));let i=Ka((e=>{o.current=e(n),r()}));return[n,i]}(n),r=e.useCallback((()=>{o((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,o]);return Za(r,[n,r,...t]),a}function lo(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const so=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},co=e=>{if(e&&"window"in e&&e.window===e)return e;return so(e).defaultView||window};function uo(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uo(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function mo(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uo(e))&&(a&&(a+=" "),a+=t);return a}function fo(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],o=a[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=lo(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=ro(n,o):t[e]=void 0!==o?o:n:t[e]=mo(n,o)}}return t}const po=new Set(["id"]),go=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ho=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bo=/^(data-.*)$/;function vo(e,t={}){let{labelable:n,isLink:a,propNames:o}=t,r={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(po.has(t)||n&&go.has(t)||a&&ho.has(t)||(null==o?void 0:o.has(t))||bo.test(t))&&(r[t]=e[t]);return r}function yo(e){if(function(){if(null==xo){xo=!1;try{document.createElement("div").focus({get preventScroll(){return xo=!0,!0}})}catch(e){}}return xo}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}(t)}}let xo=null;function wo(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 Eo(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 Co(){return Eo(/^Mac/i)}function $o(){return Eo(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}function ko(){return Eo(/^iPhone/i)||$o()}function So(){return wo(/AppleWebKit/i)&&!wo(/Chrome/i)}function Do(){return wo(/Android/i)}function Io(e,t,n=!0){var a,o;let{metaKey:r,ctrlKey:i,altKey:l,shiftKey:s}=t;wo(/Firefox/i)&&(null===(o=window.event)||void 0===o||null===(a=o.type)||void 0===a?void 0:a.startsWith("key"))&&"_blank"===e.target&&(Co()?r=!0:i=!0);let d=So()&&Co()&&!$o()?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});Io.isOpening=n,yo(e),e.dispatchEvent(d),Io.isOpening=!1}Io.isOpening=!1;let Lo=new Map,No=new Set;function Ro(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let a=Lo.get(n.target);if(a&&(a.delete(n.propertyName),0===a.size&&(n.target.removeEventListener("transitioncancel",t),Lo.delete(n.target)),0===Lo.size)){for(let e of No)e();No.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let a=Lo.get(n.target);a||(a=new Set,Lo.set(n.target,a),n.target.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Mo(e){requestAnimationFrame((()=>{0===Lo.size?e():No.add(e)}))}function To(e,t){let{id:n,"aria-label":a,"aria-labelledby":o}=e;if(n=oo(n),o&&a){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return a||o||!t||(a=t),{id:n,"aria-label":a,"aria-labelledby":o}}function Po(t,n){const a=e.useRef(!0),o=e.useRef(null);e.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),e.useEffect((()=>{a.current?a.current=!1:o.current&&!n.some(((e,t)=>!Object.is(e,o[t])))||t(),o.current=n}),n)}function zo(e,t){Za((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Fo(e,t){let n=window.getComputedStyle(e),a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function Bo(e,t){let n=e;for(Fo(n,t)&&(n=n.parentElement);n&&!Fo(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?Ro():document.addEventListener("DOMContentLoaded",Ro));let Ao=0;const Oo=new Map;function jo(t,n,a,o){let r=Ka(a),i=null==a;e.useEffect((()=>{if(i||!t.current)return;let e=t.current;return e.addEventListener(n,r,o),()=>{e.removeEventListener(n,r,o)}}),[t,n,o,i,r])}function Ho(e,t){let n=Vo(e,t,"left"),a=Vo(e,t,"top"),o=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,f=u+e.clientHeight;n<=i?i=n-parseInt(d,10):n+o>m&&(i+=n+o-m),a<=u?l=a-parseInt(s,10):a+r>f&&(l+=a+r-f),e.scrollLeft=i,e.scrollTop=l}function Vo(e,t,n){const a="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[a],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[a];break}t=t.offsetParent}return o}function Wo(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;)Fo(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)Ho(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 a,o,r;if(Math.abs(i-s)>1||Math.abs(l-d)>1)null==t||null===(o=t.containingElement)||void 0===o||null===(a=o.scrollIntoView)||void 0===a||a.call(o,{block:"center",inline:"center"}),null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"})}}}function Zo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Do()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Ko(t,n){let a=e.useRef(null);return t&&a.current&&n(t,a.current)&&(t=a.current),a.current=t,t}function Uo(t,n,a){let[o,r]=e.useState(t||n),i=e.useRef(void 0!==t),l=void 0!==t;e.useEffect((()=>{let e=i.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l}),[l]);let s=l?t:o,d=e.useCallback(((e,...t)=>{let n=(e,...t)=>{a&&(Object.is(s,e)||a(e,...t)),l||(s=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"),r(((a,...o)=>{let r=e(l?s:a,...o);return n(r,...t),l?a:r}))}else l||r(e),n(e,...t)}),[l,s,a]);return[s,d]}let qo="default",Yo="",Jo=new WeakMap;function Go(e){if(ko()){if("default"===qo){const t=so(e);Yo=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}qo="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Jo.set(e,e.style.userSelect),e.style.userSelect="none")}function Xo(e){if(ko()){if("disabled"!==qo)return;qo="restoring",setTimeout((()=>{Mo((()=>{if("restoring"===qo){const t=so(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Yo||""),Yo="",qo="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Jo.has(e)){let t=Jo.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Jo.delete(e)}}const _o=u.default.createContext({register:()=>{}});function Qo(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function er(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,Qo(e,t,"set"),n),n}_o.displayName="PressResponderContext";var tr=new WeakMap;class nr{continuePropagation(){er(this,tr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,Qo(e,tr,"get"));var e}constructor(e,t,n){Ln(this,tr,{writable:!0,value:void 0}),er(this,tr,!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 ar=Symbol("linkClicked");function or(t){let{onPress:n,onPressChange:a,onPressStart:o,onPressEnd:r,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:m,...f}=function(t){let n=e.useContext(_o);if(n){let{register:e,...a}=n;t=fo(a,t),e()}return zo(n,t.ref),t}(t),[p,g]=e.useState(!1),h=e.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=function(){let t=e.useRef(new Map),n=e.useCallback(((e,n,a,o)=>{let r=(null==o?void 0:o.once)?(...e)=>{t.current.delete(a),a(...e)}:a;t.current.set(a,{type:n,eventTarget:e,fn:r,options:o}),e.addEventListener(n,a,o)}),[]),a=e.useCallback(((e,n,a,o)=>{var r;let i=(null===(r=t.current.get(a))||void 0===r?void 0:r.fn)||a;e.removeEventListener(n,i,o),t.current.delete(a)}),[]),o=e.useCallback((()=>{t.current.forEach(((e,t)=>{a(e.eventTarget,e.type,t,e.options)}))}),[a]);return e.useEffect((()=>o),[o]),{addGlobalListener:n,removeGlobalListener:a,removeAllGlobalListeners:o}}(),y=Ka(((e,t)=>{let n=h.current;if(l||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,o){let n=new nr("pressstart",t,e);o(n),r=n.shouldStopPropagation}return a&&a(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,g(!0),r})),x=Ka(((e,t,o=!0)=>{let i=h.current;if(!i.didFirePressStart)return!1;i.ignoreClickAfterPress=!0,i.didFirePressStart=!1,i.isTriggeringEvent=!0;let s=!0;if(r){let n=new nr("pressend",t,e);r(n),s=n.shouldStopPropagation}if(a&&a(!1),g(!1),n&&o&&!l){let a=new nr("press",t,e);n(a),s&&(s=a.shouldStopPropagation)}return i.isTriggeringEvent=!1,s})),w=Ka(((e,t)=>{let n=h.current;if(l)return!1;if(i){n.isTriggeringEvent=!0;let a=new nr("pressup",t,e);return i(a),n.isTriggeringEvent=!1,a.shouldStopPropagation}return!0})),E=Ka((e=>{let t=h.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&x(sr(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),u||Xo(t.target))})),C=Ka((e=>{c&&E(e)})),$=e.useMemo((()=>{let e=h.current,t={onKeyDown(t){if(ir(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var a;ur(t.target,t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,o=y(t,"keyboard");let a=t.currentTarget,r=t=>{ir(t,a)&&!t.repeat&&a.contains(t.target)&&e.target&&w(sr(e.target,t),"keyboard")};b(so(t.currentTarget),"keyup",lo(r,n),!0)}o&&t.stopPropagation(),t.metaKey&&Co()&&(null===(a=e.metaKeyEvents)||void 0===a||a.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&&!Io.isOpening){let n=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Zo(t.nativeEvent))){l||d||yo(t.currentTarget);let e=y(t,"virtual"),a=w(t,"virtual"),o=x(t,"virtual");n=e&&a&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&ir(t,e.target)){var a;ur(t.target,t.key)&&t.preventDefault();let n=t.target;x(sr(e.target,t),"keyboard",e.target.contains(n)),v(),"Enter"!==t.key&&rr(e.target)&&e.target.contains(n)&&!t[ar]&&(t[ar]=!0,Io(e.target,t,!1)),e.isPressed=!1,null===(a=e.metaKeyEvents)||void 0===a||a.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var o;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(o=e.target)||void 0===o||o.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,!Do()&&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,l||d||yo(t.currentTarget),u||Go(e.target),i=y(t,e.pointerType),b(so(t.currentTarget),"pointermove",n,!1),b(so(t.currentTarget),"pointerup",a,!1),b(so(t.currentTarget),"pointercancel",o,!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&&dr(t,t.currentTarget)&&w(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&dr(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,y(sr(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x(sr(e.target,t),e.pointerType,!1),C(t)))},a=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(dr(t,e.target)&&null!=e.pointerType?x(sr(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&x(sr(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,v(),u||Xo(e.target))},o=e=>{E(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(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=Zo(t.nativeEvent)?"virtual":"mouse",l||d||yo(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),b(so(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=y(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=x(t,e.pointerType,!1),C(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||w(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,v(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&dr(t,e.target)&&null!=e.pointerType?x(sr(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&x(sr(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",l||d||yo(t.currentTarget),u||Go(e.target),y(t,e.pointerType)&&t.stopPropagation(),b(co(t.currentTarget),"scroll",a,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=lr(t.nativeEvent,e.activePointerId),a=!0;n&&dr(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,a=y(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,a=x(t,e.pointerType,!1),C(t)),a&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=lr(t.nativeEvent,e.activePointerId),a=!0;n&&dr(n,t.currentTarget)&&null!=e.pointerType?(w(t,e.pointerType),a=x(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(a=x(t,e.pointerType,!1)),a&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!u&&Xo(e.target),v()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(t))};let a=t=>{e.isPressed&&t.target.contains(e.target)&&E({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}return t}),[b,l,d,v,u,E,C,x,y,w]);return e.useEffect((()=>()=>{var e;u||Xo(null!==(e=h.current.target)&&void 0!==e?e:void 0)}),[u]),{isPressed:s||p,pressProps:fo(f,$)}}function rr(e){return"A"===e.tagName&&e.hasAttribute("href")}function ir(e,t){const{key:n,code:a}=e,o=t,r=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==a||o instanceof co(o).HTMLInputElement&&!fr(o,n)||o instanceof co(o).HTMLTextAreaElement||o.isContentEditable||("link"===r||!r&&rr(o))&&"Enter"!==n)}function lr(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const a=n[e];if(a.identifier===t)return a}return null}function sr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function dr(e,t){let n=t.getBoundingClientRect(),a=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=a,!((o=n).left>r.right||r.left>o.right||o.top>r.bottom||r.top>o.bottom);var o,r}function cr(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function ur(e,t){return e instanceof HTMLInputElement?!fr(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!rr(e)}const mr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:mr.has(e.type)}class pr{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 gr(t){let n=e.useRef({isFocused:!1,observer:null});Za((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let a=Ka((e=>{null==t||t(e)}));return e.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,o=e=>{n.current.isFocused=!1,t.disabled&&a(new pr("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",o,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let a=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[a])}function hr(t){let{isDisabled:n,onFocus:a,onBlur:o,onFocusChange:r}=t;const i=e.useCallback((e=>{if(e.target===e.currentTarget)return o&&o(e),r&&r(!1),!0}),[o,r]),l=gr(i),s=e.useCallback((e=>{const t=so(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(a&&a(e),r&&r(!0),l(e))}),[r,a,l]);return{focusProps:{onFocus:!n&&(a||r||o)?s:void 0,onBlur:n||!o&&!r?void 0:i}}}let br=null,vr=new Set,yr=new Map,xr=!1,wr=!1;const Er={Tab:!0,Escape:!0};function Cr(e,t){for(let n of vr)n(e,t)}function $r(e){xr=!0,function(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(br="keyboard",Cr("keyboard",e))}function kr(e){br="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(xr=!0,Cr("pointer",e))}function Sr(e){Zo(e)&&(xr=!0,br="virtual")}function Dr(e){e.target!==window&&e.target!==document&&(xr||wr||(br="virtual",Cr("virtual",e)),xr=!1,wr=!1)}function Ir(){xr=!1,wr=!0}function Lr(e){if("undefined"==typeof window||yr.get(co(e)))return;const t=co(e),n=so(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xr=!0,a.apply(this,arguments)},n.addEventListener("keydown",$r,!0),n.addEventListener("keyup",$r,!0),n.addEventListener("click",Sr,!0),t.addEventListener("focus",Dr,!0),t.addEventListener("blur",Ir,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",kr,!0),n.addEventListener("pointermove",kr,!0),n.addEventListener("pointerup",kr,!0)):(n.addEventListener("mousedown",kr,!0),n.addEventListener("mousemove",kr,!0),n.addEventListener("mouseup",kr,!0)),t.addEventListener("beforeunload",(()=>{Nr(e)}),{once:!0}),yr.set(t,{focus:a})}const Nr=(e,t)=>{const n=co(e),a=so(e);t&&a.removeEventListener("DOMContentLoaded",t),yr.has(n)&&(n.HTMLElement.prototype.focus=yr.get(n).focus,a.removeEventListener("keydown",$r,!0),a.removeEventListener("keyup",$r,!0),a.removeEventListener("click",Sr,!0),n.removeEventListener("focus",Dr,!0),n.removeEventListener("blur",Ir,!1),"undefined"!=typeof PointerEvent?(a.removeEventListener("pointerdown",kr,!0),a.removeEventListener("pointermove",kr,!0),a.removeEventListener("pointerup",kr,!0)):(a.removeEventListener("mousedown",kr,!0),a.removeEventListener("mousemove",kr,!0),a.removeEventListener("mouseup",kr,!0)),yr.delete(n))};function Rr(){return"pointer"!==br}function Mr(){return br}"undefined"!=typeof document&&function(e){const t=so(e);let n;"loading"!==t.readyState?Lr(e):(n=()=>{Lr(e)},t.addEventListener("DOMContentLoaded",n))}();const Tr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pr(t,n,a){Lr(),e.useEffect((()=>{let e=(e,n)=>{(function(e,t,n){var a;const o="undefined"!=typeof window?co(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,r="undefined"!=typeof window?co(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?co(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?co(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!Tr.has(null==n||null===(a=n.target)||void 0===a?void 0:a.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&&!Er[n.key])})(!!(null==a?void 0:a.isTextInput),e,n)&&t(Rr())};return vr.add(e),()=>{vr.delete(e)}}),n)}function zr(t){let{isDisabled:n,onBlurWithin:a,onFocusWithin:o,onFocusWithinChange:r}=t,i=e.useRef({isFocusWithin:!1}),l=e.useCallback((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,a&&a(e),r&&r(!1))}),[a,r,i]),s=gr(l),d=e.useCallback((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),r&&r(!0),i.current.isFocusWithin=!0,s(e))}),[o,r,s]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}let Fr=!1,Br=0;function Ar(){Fr=!0,setTimeout((()=>{Fr=!1}),50)}function Or(e){"touch"===e.pointerType&&Ar()}function jr(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Or):document.addEventListener("touchend",Ar),Br++,()=>{Br--,Br>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Or):document.removeEventListener("touchend",Ar))}}function Hr(t){let{onHoverStart:n,onHoverChange:a,onHoverEnd:o,isDisabled:r}=t,[i,l]=e.useState(!1),s=e.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;e.useEffect(jr,[]);let{hoverProps:d,triggerHoverEnd:c}=e.useMemo((()=>{let e=(e,t)=>{if(s.pointerType=t,r||"touch"===t||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,n&&n({type:"hoverstart",target:o,pointerType:t}),a&&a(!0),l(!0)},t=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),a&&a(!1),l(!1)},i={};return"undefined"!=typeof PointerEvent?(i.onPointerEnter=t=>{Fr&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!r&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(i.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},i.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||Fr||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},i.onMouseLeave=e=>{!r&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:i,triggerHoverEnd:t}}),[n,a,o,r,s]);return e.useEffect((()=>{r&&c({currentTarget:s.target},s.pointerType)}),[r]),{hoverProps:d,isHovered:i}}function Vr(e){if(!e)return;let t=!0;return n=>{let a={...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(a),t&&n.stopPropagation()}}function Wr(t={}){let{autoFocus:n=!1,isTextInput:a,within:o}=t,r=e.useRef({isFocused:!1,isFocusVisible:n||Rr()}),[i,l]=e.useState(!1),[s,d]=e.useState((()=>r.current.isFocused&&r.current.isFocusVisible)),c=e.useCallback((()=>d(r.current.isFocused&&r.current.isFocusVisible)),[]),u=e.useCallback((e=>{r.current.isFocused=e,l(e),c()}),[c]);Pr((e=>{r.current.isFocusVisible=e,c()}),[],{isTextInput:a});let{focusProps:m}=hr({isDisabled:o,onFocusChange:u}),{focusWithinProps:f}=zr({isDisabled:!o,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:o?f:m}}let Zr=u.default.createContext(null);function Kr(t,n){let{focusProps:a}=hr(t),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Vr(e.onKeyDown),onKeyUp:Vr(e.onKeyUp)}}}(t),r=fo(a,o),i=function(t){let n=e.useContext(Zr)||{};zo(n,t);let{ref:a,...o}=n;return o}(n),l=t.isDisabled?{}:i,s=e.useRef(t.autoFocus);return e.useEffect((()=>{s.current&&n.current&&function(e){const t=so(e);if("virtual"===Mr()){let n=t.activeElement;Mo((()=>{t.activeElement===n&&e.isConnected&&yo(e)}))}else yo(e)}(n.current),s.current=!1}),[n]),{focusableProps:fo({...r,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},l)}}const Ur=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qr=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yr(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 Ur.has(t.script)}let t=e.split("-")[0];return qr.has(t)}const Jr=Symbol.for("react-aria.i18n.locale");function Gr(){let e="undefined"!=typeof window&&window[Jr]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Yr(e)?"rtl":"ltr"}}let Xr=Gr(),_r=new Set;function Qr(){Xr=Gr();for(let e of _r)e(Xr)}const ei=u.default.createContext(null);function ti(){let t=function(){let t=to(),[n,a]=e.useState(Xr);return e.useEffect((()=>(0===_r.size&&window.addEventListener("languagechange",Qr),_r.add(a),()=>{_r.delete(a),0===_r.size&&window.removeEventListener("languagechange",Qr)})),[]),t?{locale:"en-US",direction:"ltr"}:n}();return e.useContext(ei)||t}const ni=Symbol.for("react-aria.i18n.locale"),ai=Symbol.for("react-aria.i18n.strings");let oi;class ri{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 a=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))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[ni];if(void 0===oi){let e=window[ai];if(!e)return null;oi={};for(let n in e)oi[n]=new ri({[t]:e[n]},t)}let n=null==oi?void 0:oi[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 ii=new Map,li=new Map;class si{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 a=t["="+e];if(a)return"function"==typeof a?a():a;let o=this.locale+":"+n,r=ii.get(o);return r||(r=new Intl.PluralRules(this.locale,{type:n}),ii.set(o,r)),a=t[r.select(e)]||t.other,"function"==typeof a?a():a}number(e){let t=li.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),li.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 di=new WeakMap;function ci(e,t){return t&&ri.getGlobalDictionaryForPackage(t)||function(e){let t=di.get(e);return t||(t=new ri(e),di.set(e,t)),t}(e)}function ui(t,n){let{locale:a}=ti(),o=ci(t,n);return e.useMemo((()=>new si(a,o)),[a,o])}function mi(t){t=Ko(null!=t?t:{},fi);let{locale:n}=ti();return e.useMemo((()=>new Aa(n,t)),[n,t])}function fi(e,t){if(e===t)return!0;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let a of n)if(t[a]!==e[a])return!1;return!0}var pi={};function gi(e){return e&&e.__esModule?e.default:e}pi={"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 hi=new WeakMap;function bi(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function vi(t,n,a,o){let r=ui(gi(pi),"@react-aria/calendar"),i=bi(t)||bi(n),l=mi({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),s=mi({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return e.useMemo((()=>{if(Pt(t,Vt(t))){if(Pt(n,Wt(t)))return l.format(t.toDate(a));if(Pt(n,Wt(n)))return o?yi(l,r,t,n,a):l.formatRange(t.toDate(a),n.toDate(a))}return o?yi(s,r,t,n,a):s.formatRange(t.toDate(a),n.toDate(a))}),[t,n,l,s,r,a,o])}function yi(e,t,n,a,o){let r=e.formatRangeToParts(n.toDate(o),a.toDate(o)),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 xi=7e3;let wi=null;function Ei(e,t="assertive",n=xi){wi||(wi=new Ci),wi.announce(e,t,n)}class Ci{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=xi){if(!this.node)return;let a=document.createElement("div");a.textContent=e,"assertive"===t?this.assertiveLog.appendChild(a):this.politeLog.appendChild(a),""!==e&&setTimeout((()=>{a.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 $i(t,n){let a=ui((o=pi)&&o.__esModule?o.default:o,"@react-aria/calendar");var o;let r=vo(t),i=vi(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),l=vi(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Po((()=>{n.isFocused||Ei(l)}),[l]);let s=function(t){let n,a,o=ui(gi(pi),"@react-aria/calendar");"highlightedRange"in t?({start:n,end:a}=t.highlightedRange||{}):n=a=t.value;let r=mi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:bi(n)||bi(a),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return e.useMemo((()=>{if(!i&&n&&a){if(Pt(n,a)){let e=r.format(n.toDate(t.timeZone));return o.format("selectedDateDescription",{date:e})}{let e=yi(r,o,n,a,t.timeZone);return o.format("selectedRangeDescription",{dateRange:e})}}return""}),[n,a,i,t.timeZone,o,r])}(n);Po((()=>{s&&Ei(s,"polite",4e3)}),[s]);let d=io([Boolean(t.errorMessage),t.isInvalid,t.validationState]);hi.set(n,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:d,selectedDateDescription:s});let[c,u]=e.useState(!1),m=t.isDisabled||n.isNextVisibleRangeInvalid();m&&c&&(u(!1),n.setFocused(!0));let[f,p]=e.useState(!1),g=t.isDisabled||n.isPreviousVisibleRangeInvalid();return g&&f&&(p(!1),n.setFocused(!0)),{calendarProps:fo(r,To({id:t.id,"aria-label":[t["aria-label"],l].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":a.format("next"),isDisabled:m,onFocusChange:u},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:d},title:i}}function ki(t,n,a){let{date:o,isDisabled:r}=t,{errorMessageId:i,selectedDateDescription:l}=hi.get(n),s=ui((d=pi)&&d.__esModule?d.default:d,"@react-aria/calendar");var d;let c=mi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:bi(o),timeZone:n.timeZone}),u=n.isSelected(o),m=n.isCellFocused(o);r=r||n.isCellDisabled(o);let f=n.isCellUnavailable(o),p=!r&&!f,g=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&o.compare(n.highlightedRange.start)>=0&&o.compare(n.highlightedRange.end)<=0:n.value&&Pt(n.value,o));g&&(u=!0),o=Ko(o,zt);let h=e.useMemo((()=>o.toDate(n.timeZone)),[o,n.timeZone]),b=function(e,t){return Pt(e,Bt(t))}(o,n.timeZone),v=e.useMemo((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Pt(o,n.value.start)||Pt(o,n.value.end))&&(e=l+", "),e+=c.format(h),b?e=s.format(u?"todayDateSelected":"todayDate",{date:e}):u&&(e=s.format("dateSelected",{date:e})),n.minValue&&Pt(o,n.minValue)?e+=", "+s.format("minimumDate"):n.maxValue&&Pt(o,n.maxValue)&&(e+=", "+s.format("maximumDate")),e}),[c,h,s,u,b,o,n,l]),y="";"anchorDate"in n&&m&&!n.isReadOnly&&p&&(y=n.anchorDate?s.format("finishRangeSelectionPrompt"):s.format("startRangeSelectionPrompt"));let x=function(t){let[n,a]=e.useState();return Za((()=>{if(!t)return;let e=Oo.get(t);if(e)a(e.element.id);else{let n="react-aria-description-"+Ao++;a(n);let o=document.createElement("div");o.id=n,o.style.display="none",o.textContent=t,document.body.appendChild(o),e={refCount:0,element:o},Oo.set(t,e)}return e.refCount++,()=>{e&&0==--e.refCount&&(e.element.remove(),Oo.delete(t))}}),[t]),{"aria-describedby":t?n:void 0}}(y),w=e.useRef(!1),E=e.useRef(!1),C=e.useRef(null),{pressProps:$,isPressed:k}=or({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!p||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(o);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!g){if(Pt(o,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(o),n.setDragging(!0),void(E.current=!0);if(Pt(o,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(o),n.setDragging(!0),void(E.current=!0)}let t=()=>{n.setDragging(!0),C.current=null,n.selectDate(o),n.setFocusedDate(o),w.current=!0};"touch"===e.pointerType?C.current=setTimeout(t,200):t()}},onPressEnd(){E.current=!1,w.current=!1,clearTimeout(C.current),C.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(o),n.setFocusedDate(o))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&C.current&&(n.selectDate(o),n.setFocusedDate(o)),"anchorDate"in n))if(E.current)n.setAnchorDate(o);else if(n.anchorDate&&!w.current)n.selectDate(o),n.setFocusedDate(o);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(o),n.setFocusedDate(o));else{n.selectDate(o);let e=o.add({days:1});n.isInvalid(e)&&(e=o.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),S=null;r||(S=Pt(o,n.focusedDate)?0:-1),e.useEffect((()=>{m&&a.current&&(yo(a.current),"pointer"!==Mr()&&document.activeElement===a.current&&Wo(a.current,{containingElement:Bo(a.current)}))}),[m,a]);let D=mi({day:"numeric",timeZone:n.timeZone,calendar:o.calendar.identifier}),I=e.useMemo((()=>D.formatToParts(h).find((e=>"day"===e.type)).value),[D,h]);return{cellProps:{role:"gridcell","aria-disabled":!p||null,"aria-selected":u||null,"aria-invalid":g||null},buttonProps:fo($,{onFocus(){r||n.setFocusedDate(o)},tabIndex:S,role:"button","aria-disabled":!p||null,"aria-label":v,"aria-invalid":g||null,"aria-describedby":[g?i:null,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&p&&n.highlightDate(o)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:k,isFocused:m,isSelected:u,isDisabled:r,isUnavailable:f,isOutsideVisibleRange:o.compare(n.visibleRange.start)<0||o.compare(n.visibleRange.end)>0,isInvalid:g,formattedDate:I}}const Si={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 Di(t){let{children:n,elementType:a="div",isFocusable:o,style:r,...i}=t,{visuallyHiddenProps:l}=function(t={}){let{style:n,isFocusable:a}=t,[o,r]=e.useState(!1),{focusWithinProps:i}=zr({isDisabled:!a,onFocusWithinChange:e=>r(e)});return{visuallyHiddenProps:{...i,style:e.useMemo((()=>o?n:n?{...Si,...n}:Si),[o])}}}(t);return u.default.createElement(a,fo(i,l),n)}const Ii=Symbol("default");function Li({values:e,children:t}){for(let[n,a]of e)t=u.default.createElement(n.Provider,{value:a},t);return t}function Ni(t){let{className:n,style:a,children:o,defaultClassName:r,defaultChildren:i,defaultStyle:l,values:s}=t;return e.useMemo((()=>{let e,t,d;return e="function"==typeof n?n({...s,defaultClassName:r}):n,t="function"==typeof a?a({...s,defaultStyle:l||{}}):a,d="function"==typeof o?o({...s,defaultChildren:i}):null==o?i:o,{className:null!=e?e:r,style:t||l?{...l,...t}:void 0,children:null!=d?d:i,"data-rac":""}}),[n,a,o,r,i,l,s])}function Ri(t,n,a){let o=function(t,n){let a=e.useContext(t);if(null===n)return null;if(a&&"object"==typeof a&&"slots"in a&&a.slots){let e=(new Intl.ListFormat).format(Object.keys(a.slots).map((e=>`"${e}"`)));if(!n&&!a.slots[Ii])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let t=n||Ii;if(!a.slots[t])throw new Error(`Invalid slot "${n}". Valid slot names are ${e}.`);return a.slots[t]}return a}(a,t.slot)||{},{ref:r,...i}=o,l=function(t){const n=e.useRef(null);return e.useMemo((()=>({get current(){return n.current},set current(e){n.current=e,"function"==typeof t?t(e):t&&(t.current=e)}})),[t])}(e.useMemo((()=>function(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(n,r)),[n,r])),s=fo(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&("function"==typeof i.style||"function"==typeof t.style?s.style=e=>{let n="function"==typeof i.style?i.style(e):i.style,a={...e.defaultStyle,...n},o="function"==typeof t.style?t.style({...e,defaultStyle:a}):t.style;return{...a,...o}}:s.style={...i.style,...t.style}),[s,l]}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 Mi=e.createContext(!1);function Ti(t){let n=(n,a)=>e.useContext(Mi)?null:t(n,a);return n.displayName=t.displayName||t.name,u.default.forwardRef(n)}"undefined"!=typeof DocumentFragment&&new DocumentFragment;const Pi=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),zi=e.createContext({});function Fi(e,t){[e,t]=Ri(e,t,zi);let n=e,{buttonProps:a,isPressed:o}=function(e,t){let n,{elementType:a="button",isDisabled:o,onPress:r,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:m,href:f,target:p,rel:g,type:h="button"}=e;n="button"===a?{type:h,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===a&&o?void 0:f,target:"a"===a?p:void 0,type:"input"===a?h:void 0,disabled:"input"===a?o:void 0,"aria-disabled":o&&"input"!==a?o:void 0,rel:"a"===a?g:void 0};let{pressProps:b,isPressed:v}=or({onPressStart:i,onPressEnd:l,onPressChange:d,onPress:r,onPressUp:s,isDisabled:o,preventFocusOnPress:c,ref:t}),{focusableProps:y}=Kr(e,t);u&&(y.tabIndex=o?-1:y.tabIndex);let x=fo(y,b,vo(e,{labelable:!0}));return{isPressed:v,buttonProps:fo(n,x,{"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"))}})}}(e,t),{focusProps:r,isFocused:i,isFocusVisible:l}=Wr(e),{hoverProps:s,isHovered:d}=Hr(e),c=Ni({...e,values:{isHovered:d,isPressed:o,isFocused:i,isFocusVisible:l,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.default.createElement("button",{...vo(e,{propNames:Pi}),...fo(a,r,s),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":i||void 0,"data-focus-visible":l||void 0})}const Bi=Ti(Fi),Ai=e.createContext({});function Oi(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function ji(e,t,n,a,o){let r={};for(let e in t)r[e]=Math.floor(t[e]/2),r[e]>0&&t[e]%2==0&&r[e]--;return Wi(e,Hi(e,t,n).subtract(r),t,n,a,o)}function Hi(e,t,n,a,o){let r=e;return t.years?r=function(e){return Vt(e.subtract({months:e.month-1}))}(e):t.months?r=Vt(e):t.weeks&&(r=Zt(e,n)),Wi(e,r,t,n,a,o)}function Vi(e,t,n,a,o){let r={...t};return t.days?r.days--:t.weeks?r.weeks--:t.months?r.months--:t.years&&r.years--,Wi(e,Hi(e,t,n).subtract(r),t,n,a,o)}function Wi(e,t,n,a,o,r){return o&&e.compare(o)>=0&&(t=Yt(t,Hi(ln(o),n,a))),r&&e.compare(r)<=0&&(t=qt(t,Vi(ln(r),n,a))),t}function Zi(e,t,n){return t&&(e=Yt(e,ln(t))),n&&(e=qt(e,ln(n))),e}function Ki(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 Ui(t){let n=e.useMemo((()=>new Aa(t.locale)),[t.locale]),a=e.useMemo((()=>n.resolvedOptions()),[n]),{locale:o,createCalendar:r,visibleDuration:i={months:1},minValue:l,maxValue:s,selectionAlignment:d,isDateUnavailable:c,pageBehavior:u="visible"}=t,m=e.useMemo((()=>r(a.calendar)),[r,a.calendar]),[f,p]=Uo(t.value,t.defaultValue,t.onChange),g=e.useMemo((()=>f?dn(ln(f),m):null),[f,m]),h=e.useMemo((()=>f&&"timeZone"in f?f.timeZone:a.timeZone),[f,a.timeZone]),b=e.useMemo((()=>t.focusedValue?Zi(dn(ln(t.focusedValue),m),l,s):void 0),[t.focusedValue,m,l,s]),v=e.useMemo((()=>Zi(t.defaultFocusedValue?dn(ln(t.defaultFocusedValue),m):g||dn(Bt(h),m),l,s)),[t.defaultFocusedValue,g,h,m,l,s]),[y,x]=Uo(b,v,t.onFocusChange),[w,E]=e.useState((()=>{switch(d){case"start":return Hi(y,i,o,l,s);case"end":return Vi(y,i,o,l,s);default:return ji(y,i,o,l,s)}})),[C,$]=e.useState(t.autoFocus||!1),k=e.useMemo((()=>{let e={...i};return e.days?e.days--:e.days=-1,w.add(e)}),[w,i]),[S,D]=e.useState(m.identifier);if(m.identifier!==S){let e=dn(y,m);E(ji(e,i,o,l,s)),x(e),D(m.identifier)}function I(e){e=Zi(e,l,s),x(e)}function L(e){if(!t.isDisabled&&!t.isReadOnly){if(null===e)return void p(null);if(!(e=Ki(e=Zi(e,l,s),w,c)))return;e=dn(e,(null==f?void 0:f.calendar)||new Mt),p(f&&"hour"in f?f.set(e):e)}}Oi(y,l,s)?x(Zi(y,l,s)):y.compare(w)<0?E(Vi(y,i,o,l,s)):y.compare(k)>0&&E(Hi(y,i,o,l,s));let N=e.useMemo((()=>!!g&&(!(!c||!c(g))||Oi(g,l,s))),[g,c,l,s]),R=t.isInvalid||"invalid"===t.validationState||N,M=R?"invalid":null,T=e.useMemo((()=>"visible"===u?i:qi(i)),[u,i]);return{isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,value:g,setValue:L,visibleRange:{start:w,end:k},minValue:l,maxValue:s,focusedDate:y,timeZone:h,validationState:M,isValueInvalid:R,setFocusedDate(e){I(e),$(!0)},focusNextDay(){I(y.add({days:1}))},focusPreviousDay(){I(y.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&I(y.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&I(y.subtract({weeks:1}))},focusNextPage(){let e=w.add(T);x(Zi(y.add(T),l,s)),E(Hi(Wi(y,e,T,o,l,s),T,o))},focusPreviousPage(){let e=w.subtract(T);x(Zi(y.subtract(T),l,s)),E(Hi(Wi(y,e,T,o,l,s),T,o))},focusSectionStart(){i.days?I(w):i.weeks?I(Zt(y,o)):(i.months||i.years)&&I(Vt(y))},focusSectionEnd(){i.days?I(k):i.weeks?I(function(e,t){return Zt(e,t).add({days:6})}(y,o)):(i.months||i.years)&&I(Wt(y))},focusNextSection(e){e||i.days?i.days?this.focusNextPage():i.weeks?I(y.add({months:1})):(i.months||i.years)&&I(y.add({years:1})):I(y.add(qi(i)))},focusPreviousSection(e){e||i.days?i.days?this.focusPreviousPage():i.weeks?I(y.subtract({months:1})):(i.months||i.years)&&I(y.subtract({years:1})):I(y.subtract(qi(i)))},selectFocusedDate(){L(y)},selectDate(e){L(e)},isFocused:C,setFocused:$,isInvalid:e=>Oi(e,l,s),isSelected(e){return null!=g&&Pt(e,g)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>C&&y&&Pt(e,y),isCellDisabled(e){return t.isDisabled||e.compare(w)<0||e.compare(k)>0||this.isInvalid(e,l,s)},isCellUnavailable:e=>t.isDateUnavailable&&t.isDateUnavailable(e),isPreviousVisibleRangeInvalid(){let e=w.subtract({days:1});return Pt(e,w)||this.isInvalid(e,l,s)},isNextVisibleRangeInvalid(){let e=k.add({days:1});return Pt(e,k)||this.isInvalid(e,l,s)},getDatesInWeek(e,t=w){let n=t.add({weeks:e}),a=[];n=Zt(n,o);let r=Ft(n,o);for(let e=0;e<r;e++)a.push(null);for(;a.length<7;){a.push(n);let e=n.add({days:1});if(Pt(n,e))break;n=e}for(;a.length<7;)a.push(null);return a}}}function qi(e){let t={...e};for(let n in e)t[n]=1;return t}function Yi(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:ln(e),end:ln(t)}):null}function Ji(e,t){return e=dn(e,(null==t?void 0:t.calendar)||new Mt),t&&"hour"in t?t.set(e):e}function Gi(e,t,n){let a=e.add({days:n});for(;(n<0?a.compare(t.visibleRange.start)>=0:a.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(a);)a=a.add({days:n});return t.isCellUnavailable(a)?a.add({days:-n}):null}const Xi=e.createContext({}),_i=e.createContext(null),Qi=e.createContext(null);function el(t,n){[t,n]=Ri(t,n,Xi);let{locale:a}=ti(),o=function(t){let{value:n,defaultValue:a,onChange:o,createCalendar:r,locale:i,visibleDuration:l={months:1},minValue:s,maxValue:d,...c}=t,[u,m]=Uo(n,a||null,o),[f,p]=e.useState(null),g="center";if(u&&u.start&&u.end){let e=ji(ln(u.start),l,i,s,d).add(l).subtract({days:1});u.end.compare(e)>0&&(g="start")}let h=e.useRef(null),[b,v]=e.useState(null),y=e.useMemo((()=>Yt(s,null==b?void 0:b.start)),[s,b]),x=e.useMemo((()=>qt(d,null==b?void 0:b.end)),[d,b]),w=Ui({...c,value:u&&u.start,createCalendar:r,locale:i,visibleDuration:l,minValue:y,maxValue:x,selectionAlignment:g}),E=e=>{e&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(h.current={start:Gi(e,w,-1),end:Gi(e,w,1)},v(h.current)):(h.current=null,v(null))},[C,$]=e.useState(w.visibleRange);zt(w.visibleRange.start,C.start)&&zt(w.visibleRange.end,C.end)||(E(f),$(w.visibleRange));let k=e=>{e?(p(e),E(e)):(p(null),E(null))},S=f?Yi(f,w.focusedDate):u&&Yi(u.start,u.end),D=e=>{if(!t.isReadOnly&&(e=Ki(e=Zi(e,y,x),w.visibleRange.start,t.isDateUnavailable)))if(f){let t=Yi(f,e);m({start:Ji(t.start,null==u?void 0:u.start),end:Ji(t.end,null==u?void 0:u.end)}),k(null)}else k(e)},[I,L]=e.useState(!1),{isDateUnavailable:N}=t,R=e.useMemo((()=>!(!u||f)&&(!(!N||!N(u.start)&&!N(u.end))||Oi(u.start,s,d)||Oi(u.end,s,d))),[N,u,f,s,d]),M=t.isInvalid||"invalid"===t.validationState||R,T=M?"invalid":null;return{...w,value:u,setValue:m,anchorDate:f,setAnchorDate:k,highlightedRange:S,validationState:T,isValueInvalid:M,selectFocusedDate(){D(w.focusedDate)},selectDate:D,highlightDate(e){f&&w.setFocusedDate(e)},isSelected:e=>S&&e.compare(S.start)>=0&&e.compare(S.end)<=0&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e),isInvalid(e){var t,n;return w.isInvalid(e)||Oi(e,null===(t=h.current)||void 0===t?void 0:t.start,null===(n=h.current)||void 0===n?void 0:n.end)},isDragging:I,setDragging:L}}({...t,locale:a,createCalendar:Fa}),{calendarProps:r,prevButtonProps:i,nextButtonProps:l,errorMessageProps:s,title:d}=function(t,n,a){let o=$i(t,n),r=e.useRef(!1),i=e.useRef("undefined"!=typeof window?window:null);return jo(i,"pointerdown",(e=>{r.current=0===e.width&&0===e.height})),jo(i,"pointerup",(e=>{if(r.current)return void(r.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!a.current||!a.current.contains(document.activeElement)||a.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),o.calendarProps.onBlur=e=>{a.current&&(e.relatedTarget&&a.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},jo(a,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(t,o,n),c=Ni({...t,values:{state:o,isDisabled:t.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return u.default.createElement("div",{...c,...r,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},u.default.createElement(Li,{values:[[zi,{slots:{previous:i,next:l}}],[Wa,{"aria-hidden":!0,level:2,children:d}],[Qi,o],[Ai,{slots:{errorMessage:s}}]]},u.default.createElement(Di,null,u.default.createElement("h2",null,r["aria-label"])),c.children,u.default.createElement(Di,null,u.default.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const tl=e.forwardRef(el),nl=e.createContext(null);function al(t,n){let a=e.useContext(_i),o=e.useContext(Qi),r=null!=a?a:o,i=r.visibleRange.start;t.offset&&(i=i.add(t.offset));let{gridProps:l,headerProps:s,weekDays:d}=function(t,n){let{startDate:a=n.visibleRange.start,endDate:o=n.visibleRange.end}=t,{direction:r}=ti(),i=vi(a,o,n.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=hi.get(n),d=To({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),c=mi({weekday:t.weekdayStyle||"narrow",timeZone:n.timeZone}),{locale:u}=ti(),m=e.useMemo((()=>{let e=Zt(Bt(n.timeZone),u);return[...new Array(7).keys()].map((t=>{let a=e.add({days:t}).toDate(n.timeZone);return c.format(a)}))}),[u,n.timeZone,c]);return{gridProps:fo(d,{role:"grid","aria-readonly":n.isReadOnly||null,"aria-disabled":n.isDisabled||null,"aria-multiselectable":"highlightedRange"in n||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),n.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),n.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),n.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),n.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===r?n.focusNextDay():n.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===r?n.focusPreviousDay():n.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n.focusNextRow();break;case"Escape":"setAnchorDate"in n&&(e.preventDefault(),n.setAnchorDate(null))}},onFocus:()=>n.setFocused(!0),onBlur:()=>n.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}({startDate:i,endDate:Wt(i),weekdayStyle:t.weekdayStyle},r);var c;return u.default.createElement(nl.Provider,{value:{headerProps:s,weekDays:d,startDate:i}},u.default.createElement("table",{...vo(t),...l,ref:n,style:t.style,className:null!==(c=t.className)&&void 0!==c?c:"react-aria-CalendarGrid"},"function"!=typeof t.children?t.children:u.default.createElement(u.default.Fragment,null,u.default.createElement(il,null,(e=>u.default.createElement(sl,null,e))),u.default.createElement(cl,null,t.children))))}const ol=e.forwardRef(al);function rl(t,n){let{children:a,style:o,className:r}=t,{headerProps:i,weekDays:l}=e.useContext(nl);return u.default.createElement("thead",{...vo(t),...i,ref:n,style:o,className:r||"react-aria-CalendarGridHeader"},u.default.createElement("tr",null,l.map(((e,t)=>u.default.cloneElement(a(e),{key:t})))))}const il=e.forwardRef(rl);function ll(e,t){let{children:n,style:a,className:o}=e;return u.default.createElement("th",{...vo(e),ref:t,style:a,className:o||"react-aria-CalendarHeaderCell"},n)}const sl=e.forwardRef(ll);function dl(t,n){let{children:a,style:o,className:r}=t,i=e.useContext(_i),l=e.useContext(Qi),s=null!=i?i:l,{startDate:d}=e.useContext(nl),{locale:c}=ti(),m=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ft(Vt(e),t)+n)/7)}(d,c);return u.default.createElement("tbody",{...vo(t),ref:n,style:o,className:r||"react-aria-CalendarGridBody"},[...new Array(m).keys()].map((e=>u.default.createElement("tr",{key:e},s.getDatesInWeek(e,d).map(((e,t)=>e?u.default.cloneElement(a(e),{key:t}):u.default.createElement("td",{key:t})))))))}const cl=e.forwardRef(dl);function ul({date:t,...n},a){let o=e.useContext(_i),r=e.useContext(Qi),i=null!=o?o:r;var l;let{startDate:s}=null!==(l=e.useContext(nl))&&void 0!==l?l:{startDate:i.visibleRange.start},d=e.useRef(null),{cellProps:c,buttonProps:m,...f}=ki({date:t},i,d),{hoverProps:p,isHovered:g}=Hr({...n,isDisabled:f.isDisabled}),{focusProps:h,isFocusVisible:b}=Wr();b&&(b=f.isFocused);let v=(x=dn(x=t,(y=s).calendar),y=Vt(y),x=Vt(x),!(y.era===x.era&&y.year===x.year&&y.month===x.month));var y,x;let w=!1,E=!1;"highlightedRange"in i&&i.highlightedRange&&(w=Pt(t,i.highlightedRange.start),E=Pt(t,i.highlightedRange.end));let C=Ni({...n,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:v,isFocusVisible:b,isSelectionStart:w,isSelectionEnd:E,...f}}),$={"data-focused":f.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":w||void 0,"data-selection-end":E||void 0,"data-invalid":f.isInvalid||void 0};return u.default.createElement("td",{...c,ref:a},u.default.createElement("div",{...fo(vo(n),m,h,p,$,C),ref:d}))}const ml=e.forwardRef(ul);function fl(e,t){[e,t]=Ri(e,t,Wa);let{children:n,level:a=3,className:o,...r}=e,i=`h${a}`;return u.default.createElement(i,{...r,ref:t,className:null!=o?o:"react-aria-Heading"},n)}const pl=e.forwardRef(fl),gl=e=>u.default.createElement(ol,Object.assign({weekdayStyle:"short"},e),u.default.createElement(il,null,(e=>u.default.createElement(sl,null,e.slice(0,2)))),u.default.createElement(cl,null,(e=>u.default.createElement(ml,{date:e})))),hl=n.css`.react-aria-Button{color:${N.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:${N.sizes.base};height:${N.sizes.base};}&:not[disabled]:active,&:not[disabled]:focus-visible{box-shadow:0 0 0 var(--outline-width)${N.colors.secondary.blue.light};}&:not[disabled]:active,&:not[disabled]:hover{background-color:${N.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${N.colors.neutral.grey.base};cursor:default;}}`,bl=n.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${N.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${N.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${N.colors.secondary.blue.light};}&[data-selected]{background:${N.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${N.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:${N.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${N.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${N.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${N.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;}}`,vl=n.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${yl=N.text.headingSmall,`\n font-family: ${yl.fontFamily};\n font-style: ${yl.fontStyle};\n font-weight: ${yl.fontWeight};\n font-size: ${yl.fontSize};\n line-height: ${yl.lineHeight};\n color: ${yl.color};\n text-decoration: ${yl.textDecoration};\n letter-spacing: ${yl.letterSpacing};\n`}}}.react-aria-CalendarHeaderCell{padding-bottom:${N.sizes.sm};}`;var yl;const xl=m.default(tl).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${N.colors.neutral.ink.base};font-size:14px;font-family:${N.fontFamily};${vl} ${hl} ${bl} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,wl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"}));var El;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(El||(El={}));const Cl=m.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:o="base"}=e;let r,i,l,s,d="",c="";return"vertical"===t?(r=n&&El[n],i=a&&El[a],d=N.sizes[o],l="column"):(r=a&&El[a],i=n&&El[n],c=N.sizes[o],l="row"),("vertical"===t&&"stretch"===a||"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 `}}`;Cl.displayName="Stack";const $l={top:"flex-start",center:"center"},kl=m.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${N.sizes.base};}`,Sl=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>$l[e.align]};width:24px;height:24px;`,Dl=m.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Il=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${N.sizes.sm};}`,Ll=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${N.text.body.fontFamily};font-size:${N.text.body.fontSize};font-weight:${N.text.body.fontWeight};line-height:${N.sizes.md};color:${N.text.body.color};`,Nl=m.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${N.fontFamily};font-size:${N.sizes[3]};line-height:${N.sizes[4]};color:${N.colors.neutral.ink.light};`,Rl=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${N.text.error.fontFamily};font-size:${N.text.error.fontSize};font-weight:${N.text.error.fontWeight};line-height:${N.text.error.lineHeight};color:${N.text.error.color};`,Ml=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Tl=m.default(Ml).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${N.colors.neutral.grey.dark};border-radius:${N.radius.md};padding:${N.sizes.base} 0.75rem;&:hover{border-color:${N.colors.secondary.blue.base};}& ${Ll}{font-weight:${N.text.bodyBold.fontWeight};}`,Pl=m.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,zl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Fl=({id:e,label:t,hint:n,tooltip:a,error:o,bordered:r,Badge:i,Accessory:l,Footer:s,children:d,disabled:c=!1})=>{const m=u.default.createElement(kl,null,u.default.createElement(Sl,{align:l?"center":"top"},d),l&&u.default.createElement(Dl,null,l),t||n||o||i||s?u.default.createElement(Il,null,u.default.createElement(Cl,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&u.default.createElement(Ll,null,t),a&&u.default.createElement(Pl,{text:a},u.default.createElement(zl,{name:"help",width:N.sizes.base,color:N.colors.neutral.ink.lightest}))),n&&u.default.createElement(Nl,null,n),o&&u.default.createElement(Rl,null,o),s):null);return r?u.default.createElement(Tl,{disabled:c,htmlFor:e},m):u.default.createElement(Ml,{disabled:c,htmlFor:e},m)},{colors:Bl,sizes:Al,radius:Ol}=N,jl=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Bl.neutral.ink.lightest};border-radius:${Ol.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Bl.secondary.blue.base};border-color:${Bl.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:${Al[4]};background-position:center;}&:hover{border-color:${Bl.secondary.blue.base};}&:active{border-color:${Bl.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Bl.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Bl.secondary.blue.base};border-color:${Bl.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:${Al[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Bl.neutral.grey.base};border-color:${Bl.neutral.grey.base};color:${Bl.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>");}`,Hl=t=>{var{checked:n,indeterminate:a,value:o,name:r,disabled:i,ariaLabel:l,className:s,onChange:d}=t,c=Z(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const m=e.useMemo((()=>K("checkbox")),[]),f=e.useRef(null),p=e.useCallback((e=>{d(e.currentTarget.checked,o)}),[d,o]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===a)}),[a]),u.default.createElement(Fl,Object.assign({id:m,disabled:i},c),u.default.createElement(jl,{ref:f,id:m,type:"checkbox",checked:n,value:o,name:r,disabled:i,"aria-label":l,className:s,onChange:p}))},Vl=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,Wl=e.forwardRef(((t,n)=>{var{checked:a,value:o,name:r,disabled:i,onChange:l,id:s}=t,d=Z(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{l(e.currentTarget.checked,o)}),[l,o]),m=null!=s?s:K("radio");return u.default.createElement(Fl,Object.assign({id:m,disabled:i},d),u.default.createElement(Vl,{id:m,type:"radio",checked:a,value:o,name:r,disabled:i,onChange:c,ref:n}))})),Zl=m.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Kl=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${N.text.inputLabel.fontFamily};font-size:${N.text.inputLabel.fontSize};font-style:${N.text.inputLabel.fontStyle};font-weight:${N.text.inputLabel.fontWeight};line-height:${N.text.inputLabel.lineHeight};text-decoration:${N.text.inputLabel.textDecoration};color:${N.text.inputLabel.color};`;class Ul extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:a}=this.props;let o=[];o=t?[...n,e]:n.filter((t=>t!==e)),a(o)}}render(){const{allowMultiple:e,options:t,selected:n,title:a,disabled:o,bordered:r}=this.props,i=e?Hl:Wl;return u.default.createElement(Zl,{disabled:o},a&&u.default.createElement(Kl,null,a),t.map((e=>u.default.createElement(i,Object.assign({key:e.value,bordered:r,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const ql=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Yl=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),Jl={width:D.base,height:D.base},Gl=m.default(ye).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${D.base};width:${D.base};top:unset;}`;function Xl(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function _l(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${_l(e.min,"max-content")}, ${_l(e.max)})`;default:return t||"1fr"}}function Ql({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:o,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"!==a&&"none"!==a,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"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${N.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${N.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${N.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${N.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${o.map((e=>_l(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?f:m}\n `}var es;!function(e){e.ascending="ascending",e.descending="descending"}(es||(es={}));const ts=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),ns=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),as=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),os=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===es.ascending?u.default.createElement(ns,{color:N.colors.neutral.ink.dark,size:n}):u.default.createElement(as,{color:N.colors.neutral.ink.dark,size:n}):u.default.createElement(ts,{size:n});function rs(t,n){const[a,o]=e.useState([]),r=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));o(n)};return e.useEffect((()=>{r()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=g.default(r,50),t=new f.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}function is(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),a=t.filter((e=>"right"===e.pinned)),o=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...o,...a],pinnedLeft:n,pinnedRight:a}}function ls(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,a={left:0,x:0},o=t=>{if(!n)return;const o=t.clientX-a.x;n.scrollLeft=a.left-o,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function ss(t){const[n,a]=e.useState("start"),o=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=t.current;a(o<e?"none":0!==n?n+e>=o?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",o)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=g.default(o,50),n=new f.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const ds="56px",cs=m.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ds};display:flex;align-items:center;justify-content:${({align:e="left"})=>Xl(e)};background-color:white;padding-left:${({spacing:e=3})=>N.sizes[e]};padding-right:${({spacing:e=3})=>N.sizes[e]};border-bottom:1px solid ${N.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function us(e){var{selected:t,indeterminate:n,onChange:a,selectionMode:o}=e,r=Z(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===o?u.default.createElement(cs,Object.assign({},r)):u.default.createElement(cs,Object.assign({},r),u.default.createElement(Hl,{checked:t,indeterminate:n,onChange:a}))}const ms=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Xl(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>N.sizes[e]};padding-right:${({spacing:e=3})=>N.sizes[e]};color:${N.text.bodySmall.color};font-family:${N.text.bodySmall.fontFamily};font-size:${N.text.bodySmall.fontSize};font-style:${N.text.bodySmall.fontStyle};font-weight:${N.text.bodySmall.fontWeight};line-height:${N.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${N.colors.secondary.blue.base};background-color:${N.colors.neutral.grey.lightest};}`;function fs(e){var{selected:t,rowId:n,onChange:a,selectionMode:o,disabled:r}=e,i=Z(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===o?u.default.createElement(ms,Object.assign({},i),u.default.createElement(Wl,{value:n,checked:t,disabled:r,onChange:a})):u.default.createElement(ms,Object.assign({},i),u.default.createElement(Hl,{value:n,checked:t,disabled:r,onChange:a}))}const ps=[[],()=>{}];function gs({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const a=!!t,[o,r]=t||ps,i=()=>{o.length!==n.length?r(n):r([])};return{selectionEnabled:a,selectedRowIds:o,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,a)=>u.default.createElement(us,Object.assign({},a,{selected:o.length===n.length,indeterminate:o.length>0&&o.length<n.length,onChange:i,selectionMode:e})),renderCell:(t,n,a,o)=>u.default.createElement(fs,Object.assign({},n,{rowId:t.id,selected:o.selected,onChange:a.setSelected,selectionMode:e,disabled:o.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)r([n]);else if(t){if(o.includes(n))return;const e=[...o,n];r(e)}else{const e=o.findIndex((e=>e===n));if(e<0)return;const t=[...o];t.splice(e,1),r(t)}}}}const hs=m.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${N.colors.neutral.ink.lightest};`,bs=m.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${N.text.headingTable.color};font-family:${N.text.headingTable.fontFamily};font-size:${N.text.headingTable.fontSize};font-style:${N.text.headingTable.fontStyle};font-weight:${N.text.headingTable.fontWeight};line-height:${N.text.headingTable.lineHeight};`,vs=m.default(bs).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 ${hs}{background-color:${N.colors.neutral.grey.light};color:${N.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${N.colors.secondary.blue.light};}`;function ys({column:e,sortState:t,onChangeSort:n}){if(e.sortable&&!t)throw new Error(`Column '${e.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(e.hidden)return null;const a={key:e.id.toString(),id:`datatable-header-${e.id}`,role:"columnheader",align:e.align,spacing:e.spacing,className:e.sortable?"sortable":void 0};if(e.renderHeader)return e.renderHeader(e,a);const o=e.sortable?vs:bs,r=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const a=function({sortState:e,columnId:t}){const n=e.columnId===t,a=e.direction===es.ascending;let o=es.ascending;return n&&a&&(o=es.descending),{columnId:t,direction:o}}({sortState:t,columnId:e.id});n?n(a):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return u.default.createElement(cs,Object.assign({},a),u.default.createElement(lt,{text:e.tooltip},u.default.createElement(o,Object.assign({},r),e.icon&&e.icon,e.title&&u.default.createElement("span",null,e.title),e.sortable&&u.default.createElement(hs,null,u.default.createElement(os,{sortState:t,columnId:e.id,size:5})))))}const xs=N.colors.neutral.grey.base,ws=N.colors.neutral.grey.dark,Es=m.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${N.radius.base};background:${xs};background-image:linear-gradient(\n to right,\n ${xs} 0%,\n ${ws} 20%,\n ${xs} 40%,\n ${xs} 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 Cs=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${ds};background-color:white;`,$s=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${N.colors.neutral.grey.base};& > *{flex:1;}`;function ks({selectionColumn:t,intersectionTargetRef:n,containerRef:a,children:o}){var r;const[i,l]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{l(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const s=null===(r=a.current)||void 0===r?void 0:r.getBoundingClientRect(),d={position:"fixed",top:0,left:null==s?void 0:s.left,width:null==s?void 0:s.width},c=i?d:{position:"absolute",top:0,left:0,right:0};return u.default.createElement(Cs,{style:c},ys({column:t}),u.default.createElement($s,null,o))}const Ss=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Ds=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Is=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Ls=m.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${N.sizes.lg};padding-bottom:${N.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${N.sizes.md};`,Ns=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${N.sizes.md};background-color:${N.colors.neutral.grey.light};border-radius:${N.radius.full};`,Rs=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ms=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${N.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 `}`,Ts=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Ps=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${N.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,zs=m.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,Fs={full:`border-width: 1px; border-radius: ${N.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Bs=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${N.colors.neutral.grey.dark};${({borderMode:e="full"})=>Fs[e]} &,& *{box-sizing:border-box;}`;function As({children:t,intersectionTargetRef:n,containerRef:a,cellWidths:o,tableCss:r}){const i=e.useRef(null),[l,s]=e.useState(!1),[d,c]=e.useState({top:0,left:0,width:0,height:0}),m=()=>{var e;const t=null===(e=a.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};c(n)},p=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{s(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{l&&a.current&&m()}),[a.current,l]),e.useEffect((()=>{if(!l)return;if(!a.current)return;const e=g.default(m,33),t=new f.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,l]),e.useEffect((()=>{p()}),[l]),e.useEffect((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",p)}}),[a.current]),!l)return null;const h=Object.assign(Object.assign({},d),{height:ds,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${N.colors.neutral.grey.base}`}),b=r+o.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return u.default.createElement("div",{style:h,ref:i},u.default.createElement(Ps,{css:b},u.default.createElement("thead",null,t)))}const Os=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:a})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==a?void 0:a.includes(e))||!1}),js=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),u.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),u.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Hs={icon:u.default.createElement(js,{width:48,height:48}),heading:"No results"},Vs=()=>{},Ws=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:o=Hs,expandedRowIds:r,loading:i,loadingRowCount:l,onChangeSort:s,rows:d,disabledRowIds:c,selectionMode:m,selectionState:f,setExpanded:p,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),y=e.useRef(null),x=e.useRef(null);ls(v);const w=d.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:E,selectedRowIds:C,selectionColumn:$,setSelected:k}=gs({selectionMode:m,selectionState:f,enabledRowIds:w}),S={setSelected:k||Vs,setExpanded:p||Vs},D=[$,...a],I=E?D:a,L=rs(y,v),{visible:N,pinnedLeft:R,pinnedRight:M}=is(I),{scrollPosition:T}=ss(v),z=Ql({pinnedLeft:R,pinnedRight:M,cellWidths:L,scrollPosition:T,visible:N,stripingMode:h});if(i){const e=new Array(l).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return u.default.createElement(Bs,{borderMode:n},u.default.createElement(Ts,{ref:v},u.default.createElement(Ps,{css:z,ref:y,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Ms,{role:"row"},N.map((e=>ys({column:e,sortState:g,onChangeSort:s}))))),u.default.createElement("tbody",{role:"rowgroup"},e.map((e=>u.default.createElement(Ms,{key:e.id},N.map((t=>function(e,t){if(!0===t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return u.default.createElement(ms,Object.assign({},n),u.default.createElement(Es,null))}(e,t))))))))))}if(0===d.length)return u.default.createElement(Bs,{borderMode:n},u.default.createElement(Ts,{ref:v},u.default.createElement(Ps,{css:z,ref:y,role:"table"},u.default.createElement("thead",{role:"rowgroup"},u.default.createElement(Ms,{role:"row"},N.map((e=>ys({column:e,sortState:g,onChangeSort:s}))))),u.default.createElement("tbody",{role:"rowgroup"},u.default.createElement(Ls,{columnCount:N.length},u.default.createElement(Ns,null,o.icon),u.default.createElement(Cl,{spacing:"sm",alignX:"center"},u.default.createElement(P,{variant:"headingMedium"},o.heading),o.subheading&&u.default.createElement(P,{variant:"subheadingMedium"},o.subheading)))))));const F=e=>{const{e2eClassName:t="",accentColor:n}=e,a=Os(e.id,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:c});return u.default.createElement(Ms,Object.assign({role:"row",key:e.id,accentColor:n,className:t},a),N.map((t=>function(e,t,n,a){if(t.hidden)return null;const o={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,o,n,a)}(e,t,S,a))))},B=(e,t)=>{var n,a;const o=null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row,i=Os(t,{selectedRowIds:C,expandedRowIds:r,disabledRowIds:c});return u.default.createElement(Ms,{role:"row",key:e.id,className:o},N.map((t=>function(e,t,n){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,a,n):u.default.createElement(ms,Object.assign({},a))}(e,t,i))))},A=e=>{var t;const n=null==r?void 0:r.includes(e.id);return u.default.createElement("tbody",{role:"rowgroup",key:e.id},F(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>B(t,e.id)))))},O=u.default.createElement(Ms,{role:"row"},N.map((e=>ys({column:e,sortState:g,onChangeSort:s})))),j=a.some((e=>!!e.renderFooter)),H=C.length>0&&!!t;return u.default.createElement(Bs,{borderMode:n},H&&u.default.createElement(ks,{selectionColumn:$,intersectionTargetRef:x,containerRef:v},t),u.default.createElement(Ts,{ref:v},b&&u.default.createElement(As,{tableCss:z,intersectionTargetRef:x,containerRef:v,cellWidths:L},O),u.default.createElement("div",{ref:x,style:{height:0}}),u.default.createElement(Ps,{css:z,ref:y,role:"table"},u.default.createElement("thead",{role:"rowgroup"},O),(()=>{const e=!!r;return e&&"nested"===h?d.map(A):e?u.default.createElement("tbody",{role:"rowgroup"},d.map((e=>{var t;return[F(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>B(t,e.id))))||[]]}))):u.default.createElement("tbody",{role:"rowgroup"},d.map(F))})(),j&&u.default.createElement("tfoot",{role:"rowgroup"},u.default.createElement(Ms,{role:"row"},N.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):u.default.createElement(ms,Object.assign({},t))}({column:e}))))))))};Ws.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ws.Cell=ms,Ws.ColumnMenu=function({columns:t,columnGroups:n,setColumns:a}){const[o,r]=e.useState(null),[i,l]=e.useState(!1),s=t.map((e=>[e.id,e])),d=Object.fromEntries(s),c=n.map((e=>e.map((e=>d[e])))),m=(e,n)=>{const o=c[e].map((e=>e.id)),r=[...t];o.forEach((e=>{const t=r.findIndex((t=>t.id===e));t<0||(r[t]=Object.assign(Object.assign({},r[t]),{hidden:n}))})),a(r)};return u.default.createElement(u.default.Fragment,null,u.default.createElement(ye,{ref:r,dropdown:!0,onClick:()=>l(!0)},"Columns"),i&&u.default.createElement(ne,{anchorElement:o,onShouldClose:()=>l(!1)},u.default.createElement(Pe,{style:{width:600}},u.default.createElement(Cl,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>u.default.createElement(Cl,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},u.default.createElement(ye,{variant:"flat",icon:u.default.createElement(Is,null)}),u.default.createElement(Cl,{spacing:"sm",style:{flex:1}},e.map((e=>u.default.createElement("div",{key:e.id},e.title)))),u.default.createElement(Cl,{direction:"horizontal",spacing:"sm"},e[0].hidden?u.default.createElement(ye,{variant:"flat",icon:u.default.createElement(Ds,null),onClick:()=>m(t,!1),style:{color:N.colors.neutral.ink.lightest}}):u.default.createElement(ye,{variant:"flat",icon:u.default.createElement(Ss,null),onClick:()=>m(t,!0)})))))))))},Ws.SelectionCell=fs,Ws.SelectionHeader=us,Ws.Header=cs,Ws.Truncate=zs,Ws.NoWrap=Rs;const Zs=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${N.sizes.base};}`,Ks=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${N.sizes.xs};}`,Us=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${N.sizes.base};}`,qs=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${N.sizes.xs};}`,Ys=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${N.text.bodyBold.fontFamily};font-size:${N.text.bodyBold.fontSize};font-weight:${N.text.bodyBold.fontWeight};line-height:${N.text.bodyBold.lineHeight};color:${N.text.bodyBold.color};`,Js=m.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${N.text.body.fontFamily};font-size:${N.text.body.fontSize};font-weight:${N.text.body.fontWeight};line-height:${N.text.body.lineHeight};color:${N.text.body.color};`,{sizes:Gs,colors:Xs}=N,_s=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Gs.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Gs.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Qs=m.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Gs.md};overflow-x:hidden;background-color:${Xs.neutral.grey.lightest};`,ed=m.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var td;!function(e){e.base="base",e.sm="sm"}(td||(td={}));const nd=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${N.text.inputLabel.fontFamily};font-size:${N.text.inputLabel.fontSize};font-weight:${N.text.inputLabel.fontWeight};line-height:${N.text.inputLabel.lineHeight};color:${N.text.inputLabel.color};`,ad=m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${N.fontFamily};font-size:${N.sizes[3]};line-height:${N.sizes[4]};color:${N.colors.neutral.ink.light};`,od=m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${N.text.error.fontFamily};font-size:${N.text.error.fontSize};font-weight:${N.text.error.fontWeight};line-height:${N.text.error.lineHeight};color:${N.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${N.sizes[2]} * -1);width:2px;background-color:${N.colors.secondary.red.base};}`,rd=m.default(Cl).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,id=m.default(lt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,ld=t=>n=>{var{label:a,hint:o,error:r,tooltip:i}=n,l=Z(n,["label","hint","error","tooltip"]);const s=e.useMemo((()=>K(t.name)),[]);return a?u.default.createElement(rd,{spacing:"sm",alignX:"stretch"},u.default.createElement("div",null,u.default.createElement(Cl,{direction:"horizontal",alignY:"center",spacing:"sm"},u.default.createElement(nd,{htmlFor:s},a),i&&u.default.createElement(id,{text:i},u.default.createElement(zl,{width:N.sizes.base,height:N.sizes.base,color:N.colors.neutral.ink.light}))),o&&u.default.createElement(ad,null,o)),u.default.createElement(t,Object.assign({id:s,hasError:!!r},l)),r&&u.default.createElement(od,null,r)):u.default.createElement(t,Object.assign({hasError:!!r},l))},sd=({hasError:e,inputSize:t})=>n.css`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,dd=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${N.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 `}} ${sd} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,cd=m.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${sd}`,ud=/^-?[0-9]*\.?[0-9]+$/,md=ld(e.forwardRef(((t,n)=>{var{id:a,className:o,disabled:r=!1,hasError:i,max:l,min:s,multiline:d=!1,name:c,onChange:m,pattern:f,placeholder:p,rows:g="3",size:h=td.base,step:b,type:v="text",value:y,spellCheck:x=!1}=t,w=Z(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=e.useCallback((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(ud).test(t)&&m(t)}),[m,v]),C=null!=a?a:K("textfield");return"text"===v&&d?u.default.createElement(cd,Object.assign({className:o,disabled:r,hasError:i,id:C,name:c,onChange:E,placeholder:p,rows:g,value:y,spellCheck:x,ref:n},w)):u.default.createElement(dd,Object.assign({className:o,disabled:r,hasError:i,id:C,inputSize:h,max:l,min:s,name:c,"aria-label":c,onChange:E,placeholder:p,step:b,type:v,value:y,spellCheck:x,ref:n},w))})));md.displayName="TextField";const fd=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,pd=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,gd=m.default(md).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${N.colors.neutral.ink.lightest};}`,hd=m.default(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${N.colors.neutral.ink.lightest};`;m.default(P).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${N.text.error.fontFamily};font-size:${N.text.error.fontSize};font-weight:${N.text.error.fontWeight};line-height:${N.text.error.lineHeight};color:${N.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${N.sizes[2]} * -1);width:2px;background-color:${N.colors.secondary.red.base};}`,m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${N.fontFamily};font-size:${N.sizes[3]};line-height:${N.sizes[4]};color:${N.colors.neutral.ink.light};`;const bd=(e,t)=>{t.includes(e.key)&&e.preventDefault()},vd=["-","+","E","e"],yd=e=>bd(e,vd),xd=ld((e=>{var{size:t=td.base,handleChangeHeight:n,handleChangeWidth:a,handleChangeLength:o,className:r,height:i,width:l,length:s,unit:d}=e,c=Z(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return u.default.createElement(fd,{className:r},u.default.createElement(pd,null,u.default.createElement(gd,Object.assign({onChange:o,size:t,name:"length",type:"number",placeholder:"L",value:s,min:"0",step:"any",onKeyDown:yd},c)),u.default.createElement(Ce,{height:N.sizes.base,width:N.sizes.base}),u.default.createElement(gd,Object.assign({onChange:a,size:t,name:"width",type:"number",placeholder:"W",value:l,min:"0",step:"any",onKeyDown:yd},c)),u.default.createElement(Ce,{height:N.sizes.base,width:N.sizes.base}),u.default.createElement(ed,null,u.default.createElement(gd,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:yd},c)),u.default.createElement(hd,{size:t},d))))}));xd.displayName="DimensionsInput";const wd=(t,n)=>{const a=e.useRef(null),o=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),r=e.useCallback((e=>{a.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",r),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",o)}}),[r,o,t]),a};function Ed(){const[t,n]=e.useState(!1),a=e.useCallback((()=>n(!t)),[t,n]),o=e.useCallback((()=>n(!1)),[n]);return{shouldShowDropdown:t,toggleShouldShowDropdown:a,setShouldShowDropdown:n,closeDropdown:o}}const Cd=u.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const $d=(t=!1)=>{const[n,a]=e.useState(t);return[n,e.useCallback((()=>a(!0)),[a]),e.useCallback((()=>a(!1)),[a])]},kd=t=>{const[n,a]=e.useState(!1),[o,r]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;a(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!o,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:a,clientHeight:o}=e.target;r(a-n-o<=0)}}},Sd=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${x.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${D.base};height:${D.base};}`,Dd=m.default(P).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Id=m.default(Dd).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Ld=m.default(Ee).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Nd=m.default(Ce).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Rd=m.default(b).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Md=m.default(b).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${x.neutral.grey.base};svg{color:${({color:e})=>e};width:${D[5]};height:${D[5]};margin-right:10px;}`,Td=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Pd=m.default(b).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?D[e]:0};`,zd=e=>u.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Fd=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Bd=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Ad=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Od=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,jd=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}),Hd={width:64,height:64},Vd={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},Hd)),title:"No data found"},Wd={icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},Hd)),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 Zd;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Zd||(Zd={}));const{text:Kd,sizes:Ud}=N,{blue:qd}=N.colors.secondary,{grey:Yd}=N.colors.neutral,{scrollbar:Jd}=N.colors.system,Gd='\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',Xd=m.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,_d=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Yd.dark};border-bottom:1px solid ${Yd.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: ${Jd.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Jd.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:a})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Gd};\n\n ${a===Zd.middle||a===Zd.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 ${Gd};\n\n ${a===Zd.start||a===Zd.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Qd=m.default(_d).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Yd.dark};border-radius:4px;`,ec=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,tc=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Yd.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;m.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Yd.lightest};padding:1.5rem 1rem;border-top:1px solid ${qd.base};}`;const nc=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,ac=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${Kd.bodySmall.fontFamily};font-size:${Kd.bodySmall.fontSize};font-weight:${Kd.bodySmall.fontWeight};color:${Kd.bodySmall.color};line-height:${Ud.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,oc=m.default(ac).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Yd.dark};font-family:${Kd.bodySmallBold.fontFamily};font-size:${Kd.bodySmallBold.fontSize};font-weight:${Kd.bodySmallBold.fontWeight};color:${Kd.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Yd.light};}`,rc={left:"flex-start",center:"center",right:"flex-end"},ic=m.default.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;}`,lc=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${tc}:nth-child(even) td {\n background-color: ${Yd.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${oc}, & ${oc} span {\n white-space: nowrap;\n }\n `}`,sc=m.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${ac}{border-top:1px solid ${Yd.dark};background-color:${Yd.lightest};padding-top:${Ud.base};padding-bottom:${Ud.base};line-height:2rem;}`,dc=m.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,cc=m.default(lc).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,uc=m.default(b).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,mc=m.default(b).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${N.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,fc=m.default(P).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,pc=m.default(P).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,gc=({height:e,icon:t,title:n,subTitle:a})=>u.default.createElement(uc,{height:e},u.default.createElement(mc,null,t),u.default.createElement(fc,{variant:"headingLarge"},n),a&&u.default.createElement(pc,{variant:"subheadingMedium"},a)),hc=m.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${N.sizes.base};border-radius:${N.radius.base};&:hover{cursor:pointer;background-color:${N.colors.secondary.blue.lightest};}`,bc=m.default(hc).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${N.text.link.color};text-decoration:${N.text.link.textDecoration};`,vc=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:yc}=N.colors.neutral,xc=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,wc=m.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${yc.base} 8%, ${yc.dark} 15%, ${yc.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Ec=({isLoading:e,style:t})=>u.default.createElement(xc,{style:t},u.default.createElement(wc,{isLoading:e})),Cc=e=>{var{style:t}=e,n=Z(e,["style"]);return u.default.createElement(ac,Object.assign({},n),u.default.createElement(Ec,{style:t}))};Cc.defaultProps={style:{}};const $c=({renderHeader:t,tableRef:n,wrapperRef:a,isFixedLayout:o,wrapperStyle:r})=>{var i;const[l,d]=e.useState(null),{isSticky:c}=((t,n)=>{const[a,o]=e.useState(!1),r=e.useCallback((({top:e,bottom:t})=>{let r=a;r=e<=(n||0)&&t>0?!a||r:!a&&r,r!==a&&o(r)}),[a,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&r(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[r,t]),{isSticky:a}})(n,parseInt("string"==typeof(null==r?void 0:r.top)?null==r?void 0:r.top:`${null==r?void 0:r.top}`,10)),m=((null===(i=a.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;s.useScroll(a);const f=e=>{var t;const n=(null===(t=a.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:l&&(l.scrollLeft=n)};return f(),c?u.default.createElement(dc,{ref:e=>{d(e),f(e)},style:Object.assign({width:m},r)},u.default.createElement(cc,{style:{tableLayout:o?"fixed":"auto"}},t())):null},kc=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")},Sc=e=>{var{style:t,width:n,isLoading:a}=e,o=Z(e,["style","width","isLoading"]);return u.default.createElement(oc,Object.assign({},o,{style:{width:n}}),u.default.createElement(Ec,{style:t,isLoading:a}))},Dc=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Ic=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Lc=()=>u.default.createElement(ts,{width:N.sizes.base,height:N.sizes.base,color:"lightgrey"}),Nc=()=>u.default.createElement(Dc,{width:N.sizes.base,height:N.sizes.base,color:"lightgrey"}),Rc=()=>u.default.createElement(Ic,{width:N.sizes.base,height:N.sizes.base,color:"lightgrey"}),Mc=({borderless:t=!1,striped:n=!0,noWrap:a=!1,showScrollbar:o=!1,headers:r,rows:i,renderRow:l,renderNestedRow:s,expandedRowIds:d,renderLoadingRow:c,renderFooterRow:m,renderFooterLoadingRow:f,omitFooterSelectionCell:p=!1,selectedRowIds:g,disabledSelectionInputRowIds:h,selectionMode:b="multiple",onChangeSelectedRowIds:v,sortColumnId:y,sortDirection:x,onChangeSort:w,isError:E=!1,isLoading:C=!1,skeletonRowsNumber:$=5,isHeaderSticky:k=!0,stickyHeaderStyle:S,customSpecificState:D,bodyHeightInSpecificStates:I=375,startFixedColumnsNumber:L,endFixedColumnsNumber:N})=>{const R=t?_d:Qd,M=!!i&&0===i.length,T=Boolean(L||N),P=!L&&!N,z=e.useRef(null),F=e.useRef(null),[B,A]=e.useState(Zd.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!F.current||P)return;const e=F.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),o=n+a;t===a?A(Zd.none):0===n?A(Zd.start):n>0&&o<t?A(Zd.middle):o===t&&A(Zd.end)};return F.current&&(t=F.current,n(),null===(e=F.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[z,P]);const O=e.useCallback((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),j=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),H=e.useCallback((()=>{if(!r||C)return null;const e=[],t=[];let n=0,a=0;if(L){g&&(e.push(j(1,n,"left")),n+=58);for(let t=0;t<L;t+=1){const a=O(r[t].width);a&&(e.push(j(g?t+2:t+1,n,"left")),n+=a)}}if(N)for(let e=0;e<N;e+=1){const n=O(r.slice(-e-1)[0].width);n&&(t.push(j(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[C,O,N,j,r,L,g]),V=e.useMemo((()=>H()),[H]),W=e.useCallback(((e,t)=>{if(!g||!v)return;if(e)return"single"===b?void v([t.id]):void v([...g,t.id]);const n=[...g],a=n.findIndex((e=>e===t.id));n.splice(a,1),v(n)}),[v,g,b]),Z=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),K=e.useCallback((e=>{if(void 0===y||void 0===w)return;let t=y,n="ascending";"ascending"===x&&(n="descending"),e!==y&&(t=e,n="ascending"),w(t,n)}),[w,y,x]),U=e.useCallback(((e,t)=>{let n="",a=()=>{},o=u.default.createElement(Lc,null);const{tooltip:r,align:i,icon:l,title:s,sortable:d,id:c}=e;d&&(n="sortable",a=()=>K(c),y===c&&(o="ascending"===x?u.default.createElement(Nc,null):u.default.createElement(Rc,null)));const m=u.default.createElement(ic,{align:i},l&&l,s&&u.default.createElement("span",null,s),d&&o);return u.default.createElement(oc,{key:c,id:`data-table-header-${c}`,className:n,onClick:a,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},r?u.default.createElement(lt,{text:r},u.default.createElement(Xd,null,m)):m)}),[K,y,x]),q=e.useCallback(((e,t)=>u.default.createElement(Sc,{key:e.id,width:e.width||"auto",style:t,isLoading:C})),[C]),Y=e.useCallback((()=>{if(!r)return null;const e=H(),t=e?e[0].style:{};return u.default.createElement(ec,null,u.default.createElement(nc,null,g&&u.default.createElement(oc,{style:Object.assign({width:58},t)},"multiple"===b&&u.default.createElement(Hl,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:Z,disabled:h&&h.length>0||C||M,ariaLabel:"Select all"})),r.map(((t,n)=>{const a=g?n+2:n+1,o=n-r.length,i=null==e?void 0:e.find((e=>e.index===a||e.index===o));return t.skeleton&&(C||E||M)?q(t,t.skeletonStyle||{}):U(t,(null==i?void 0:i.style)||{})}))))}),[H,Z,r,M,E,C,q,U,i.length,g,b,h]),J=e.useCallback(((e,t)=>{const n={checked:e,onChange:e=>W(e,t),disabled:(null==h?void 0:h.includes(t.id))||!1};return"single"===b?u.default.createElement(Wl,Object.assign({},n)):u.default.createElement(Hl,Object.assign({},n))}),[W,b,h]),G=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?u.default.createElement(Cc,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):u.default.createElement(Cc,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),X=e.useCallback(((e,t)=>{var n,a;if(!s)return null;const o=s(e);if(!o)return null;const r=(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row)||"";return u.default.createElement(nc,{key:e.id,className:`${r} ${t?"hidden":""}`},g&&u.default.createElement(ac,null),o)}),[s,g]),_=e.useCallback((e=>{if(!r)return u.default.createElement(Cc,null);const t=r.map((t=>u.default.createElement(Cc,{key:`${e}-${t.id}`})));return g&&t.unshift(G(e)),t}),[r,G,g]),Q=()=>m?C&&!f||!C&&M?null:u.default.createElement(sc,{fixedColumnsStyle:kc(V||[])},u.default.createElement(nc,null,g&&!p&&u.default.createElement(ac,null),!C&&m(i),C&&f&&f())):null;let ee=L;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,a;const{data:o}=e,r=!!g&&g.includes(e.id),i=!d||d.includes(e.id),s=null===(t=null==o?void 0:o.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(a=null===(n=null==o?void 0:o.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==a?a:"",m=r?`selected ${c}`:`${c}`;return u.default.createElement(tc,{key:e.id,className:s,fixedColumnsStyle:kc(V||[])},u.default.createElement(nc,{key:e.id,className:m,accentColor:e.accentColor},g&&u.default.createElement(ac,null,J(r,e)),l(e)),e.nestedRows&&e.nestedRows.map((e=>X(e,!i))))}))),[i,d,V,X,l,J,g]);if(C){const e=[];for(let t=0;t<$;t+=1)e.push(u.default.createElement(tc,{key:`loading-row-${t}`,fixedColumnsStyle:kc(V||[])},u.default.createElement(nc,null,c?u.default.createElement(u.default.Fragment,null,g&&G(),c()):_(t))));return u.default.createElement(R,{ref:F,scrollDisabled:!0,scrollPosition:B,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:N},k&&r&&u.default.createElement($c,{renderHeader:Y,tableRef:z,wrapperRef:F,isFixedLayout:T,wrapperStyle:S}),u.default.createElement(lc,{ref:z,striped:n,noWrap:a,tableLoading:!0,isFixedLayout:T},Y(),e,Q()))}if(M||E){let e=Vd;return D?e=D:E&&(e=Wd),u.default.createElement(R,{scrollDisabled:!0},u.default.createElement(lc,{ref:z,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:T},Y(),Q()),u.default.createElement(gc,Object.assign({height:I},e)))}return u.default.createElement(R,{scrollDisabled:!1,ref:F,scrollPosition:B,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:N,showScrollbar:o},k&&r&&u.default.createElement($c,{renderHeader:Y,tableRef:z,wrapperRef:F,isFixedLayout:T,wrapperStyle:S}),u.default.createElement(lc,{ref:z,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:T},Y(),te,Q()))};Mc.Cell=ac,Mc.ClickableCell=e=>{var{onClick:t,children:n}=e,a=Z(e,["onClick","children"]);return u.default.createElement(ac,Object.assign({},a),u.default.createElement(bc,{onClick:t},n))},Mc.EditableCell=e=>{var{onClick:t,children:n}=e,a=Z(e,["onClick","children"]);return u.default.createElement(ac,Object.assign({},a),u.default.createElement(hc,{onClick:t},u.default.createElement(vc,null,n)))},Mc.SkeletonCell=Cc,Mc.SkeletonContent=Ec;const Tc=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,Pc="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",zc="Log in with Amazon",Fc=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Bc=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${N.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Pe.Footer} {\n box-shadow: 0px 10px 15px 0px ${N.colors.neutral.ink.dark};\n }\n `}`,Ac=e=>!!e.footerSlot,Oc={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},jc={[w.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[w.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[w.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[w.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Hc={xs:w.mobile,sm:w.mobile,base:w.tablet,lg:w.lgTablet},{breakpoints:Vc}=N,Wc=m.default(t.motion.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${N.sizes.sm};box-shadow:${N.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Pe.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Oc[e]};`} ${Bc}{padding-bottom:${N.sizes.md};}${Pe.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Vc.mobile} + 1px))and (max-width: ${Vc.tablet}){max-width:${({variant:e})=>jc[Vc.tablet][e]};}@media (min-width: ${Vc.tablet})and (max-width: ${Vc.lgTablet}){max-width:${({variant:e})=>jc[Vc.lgTablet][e]};}@media (min-width: ${Vc.lgTablet})and (max-width: ${Vc.desktop}){max-width:${({variant:e})=>jc[Vc.desktop][e]};}@media (min-width: ${Vc.desktop}){max-width:${({variant:e})=>jc[Vc.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Hc[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Pe.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${X(N.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Zc=u.default.forwardRef(((e,t)=>{var n=Z(e,[]);return u.default.createElement(Wc,Object.assign({ref:t},n))})),{sizes:Kc,text:Uc,shadows:qc}=N,{grey:Yc}=N.colors.neutral,Jc=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Kc.base} ${Kc.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&qc[e]};`,Gc=m.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Uc.headingXL.fontFamily};font-size:${Uc.headingXL.fontSize};font-weight:${Uc.headingXL.fontWeight};margin:unset;line-height:1;`,Xc=m.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Uc.subheadingLarge.fontFamily};font-weight:${Uc.subheadingLarge.fontWeight};font-size:${Uc.subheadingLarge.fontSize};line-height:${Uc.subheadingLarge.lineHeight};`,_c=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${N.radius.base};border:${Kc.line} solid ${Yc.base};object-fit:cover;`,Qc=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,eu=m.default(ye).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${N.text.link.fontFamily};font-size:${N.text.link.fontSize};font-weight:${N.text.link.fontWeight};line-height:${N.text.link.lineHeight};color:${N.text.link.color};&:hover{text-decoration:${N.text.link.textDecoration};}& > * + *{margin-left:${N.sizes.xs};}`,tu=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${Kc.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,nu=m.default(Cl).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${N.sizes.lg};height:30px;background-color:${N.colors.neutral.grey.light};border:1px solid ${N.colors.neutral.grey.base};border-radius:${N.sizes.xs};`,au=m.default(ye).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${N.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,ou=m.default(md).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,ru=({count:e})=>u.default.createElement(u.default.Fragment,null,u.default.createElement("div",null,u.default.createElement(P,{variant:"bodySmall","aria-hidden":!0},"/")),u.default.createElement(nu,{alignX:"center",alignY:"center","aria-hidden":!0},u.default.createElement(P,{variant:"bodySmall"},e))),iu=({currentPage:t,totalPagesCount:n,handleChangePage:a})=>{const[o,r]=e.useState(`${t}`);e.useEffect((()=>{r(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,l=()=>{if(o||r(`${t}`),o===`${t}`)return;const e=parseInt(o,10);i(e)&&a(e)};return{pageInputValue:o,handleIncrement:()=>{i(t+1)&&a(t+1)},handleDecrement:()=>{i(t-1)&&a(t-1)},handleInputChange:e=>{e||r(e);const t=parseInt(e,10);var n;i(n=t)&&r(`${n}`)},handleSubmit:l,handleFormSubmit:e=>{e.preventDefault(),l()}}},lu=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),su=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),du=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],cu=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,uu=m.default(Ge).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,mu=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${x.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,fu=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,pu=m.default(P).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${x.secondary.blue.base};background:${x.neutral.grey.lightest};}`,gu=({item:t,handleRangeListChange:n})=>{const a=e.useCallback((()=>n(t)),[n,t]);return u.default.createElement(fu,{onClick:a},u.default.createElement(pu,{variant:"bodySmall"},t.label))},hu=t=>{const{handleRangeListChange:n,paginationRange:a=du}=t;return u.default.createElement(u.default.Fragment,null,a.map((t=>u.default.createElement(e.Fragment,{key:t.label},u.default.createElement(gu,{item:t,handleRangeListChange:n})))))};class bu extends e.Component{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=du[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=du,reversedDropdown:n}=this.props,{shouldShowDropdown:a,dropdownValue:o}=this.state;return u.default.createElement(cu,{className:e},u.default.createElement(uu,{cta:u.default.createElement(mu,{onClick:this.toggleShouldShow},u.default.createElement(P,{variant:"bodySmall"},o.label),u.default.createElement(be,{color:N.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:n},u.default.createElement(hu,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const vu=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,yu=m.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,xu=({onIncrement:e,onDecrement:t,disabled:n=!1,size:a})=>u.default.createElement(vu,{size:a},u.default.createElement(yu,{type:"button",onClick:e,disabled:n},u.default.createElement(W,{height:N.sizes.base,width:N.sizes.base,color:N.colors.neutral.ink.base})),u.default.createElement(yu,{type:"button",onClick:t,disabled:n},u.default.createElement(Ee,{height:N.sizes.base,width:N.sizes.base,color:N.colors.neutral.ink.base}))),wu=m.default(md).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${N.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${N.colors.neutral.ink.lightest};}`,Eu=m.default(b).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${N.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?N.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;}}`,Cu=m.default(P).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,$u=m.default(ed).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 ${N.colors.secondary.red.light};\n\n > * {\n border-top-color: ${N.colors.secondary.red.base};\n border-bottom-color: ${N.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${N.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${N.colors.secondary.red.base};\n border-right-color: ${N.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${N.colors.secondary.red.base};\n border-bottom-color: ${N.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${N.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?N.colors.secondary.red.base:N.colors.secondary.blue.base};}}`;const ku=ld((e=>{var{className:t="",hasError:n,currency:a,disabled:o=!1,onChange:r,onPriceChange:i,priceValue:l,step:s="0.1",size:d=td.base}=e,c=Z(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=i)=>{e(((parseFloat(l)||0)+parseFloat(s)).toFixed(2))},f=(e=i)=>{e(((parseFloat(l)||0)-parseFloat(s)).toFixed(2))};return u.default.createElement($u,{className:t,hasError:n},u.default.createElement(Eu,{disabled:o,size:d},u.default.createElement(Cu,{variant:"hintText"},a)),u.default.createElement(wu,Object.assign({placeholder:"0.00",type:"currency",value:l,step:s,onChange:e=>r(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const a=parseFloat(n.replace(",",".")).toFixed(2);i(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(r),"ArrowDown"===t&&f(r)},disabled:o,size:d},c)),u.default.createElement(xu,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:o,size:d}))}));ku.displayName="PriceInput";const Su=m.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Du=m.default(md).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Iu=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Lu=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Du} {\n ${t}\n }\n\n & ${Iu} {\n ${n}\n }\n `}}`,Nu=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),Ru=N.colors.neutral.grey.lightest,Mu=N.colors.neutral.grey.dark,Tu=N.colors.secondary.blue.dark,Pu=m.default(b).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Ru};border-color:${Mu};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Tu};border-color:${Tu};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${N.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,zu=m.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,Fu=ld(e.forwardRef(((t,n)=>{var{className:a,options:o,value:r,onChange:i,size:l,disabled:s,hasError:d}=t,c=Z(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return u.default.createElement(zu,Object.assign({className:a,sizeVariant:l,value:null!=r?r:void 0,onChange:m,disabled:s,hasError:d,ref:n},c),!!o&&o.map((e=>u.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled},e.label))))})));Fu.displayName="Select";const Bu=m.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${N.colors.neutral.ink.base});font-family:${N.text.bodySmall.fontFamily};font-style:${N.text.bodySmall.fontStyle};font-size:${N.text.bodySmall.fontSize};line-height:${N.text.bodySmall.lineHeight};font-weight:${N.text.bodySmall.fontWeight};text-decoration:${N.text.bodySmall.textDecoration};letter-spacing:${N.text.bodySmall.letterSpacing};`,Au=m.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${N.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${N.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${N.text.bodySmall.fontFamily};font-style:${N.text.bodySmall.fontStyle};`,Ou={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},ju={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:Hu}=x.secondary,{grey:Vu}=x.neutral,Wu=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Zu=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Hu.lightest};}`,Ku=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Uu=m.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${L.bodySmall.fontFamily};font-size:${L.bodySmall.fontSize};font-weight:${L.bodySmall.fontWeight};color:${L.bodySmall.color};line-height:${D.base};& > *{vertical-align:middle;}`,qu=m.default(Uu).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Vu.dark};font-family:${L.bodySmallBold.fontFamily};font-size:${L.bodySmallBold.fontSize};font-weight:${L.bodySmallBold.fontWeight};color:${L.bodySmallBold.color};`,Yu=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Zu} tr:nth-child(even) td {\n background-color: ${Vu.lightest};\n }\n `}`,Ju=({striped:e=!0,className:t,children:n})=>u.default.createElement(Yu,{striped:e,className:t},n);Ju.Header=Wu,Ju.Body=Zu,Ju.Row=Ku,Ju.HeaderCell=qu,Ju.Cell=Uu;const Gu=m.default(b).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;}}`;Gu.displayName="Skeleton";const Xu=m.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,_u=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${N.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Qu=m.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${N.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 ${N.colors.secondary.blue.light};}`,em=m.default(_u).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${N.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,tm=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}),nm=m.default(b).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:x.neutral.ink.base};\n background-color: ${null!=e?e:x.neutral.grey.base};\n `}`,am=m.default(Cl).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,om=m.default(Cl).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${N.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${N.shadows.lg};border-radius:${N.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;}`,rm=m.default(b).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${N.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${D.md};height:${D.md};}`,im=m.default(Cl).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,lm=m.default(P).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,sm={info:{accentColor:x.brand.blue.base,icon:u.default.createElement(js,null)},success:{accentColor:x.secondary.green.base,icon:u.default.createElement(ql,null)},error:{accentColor:x.secondary.red.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:x.secondary.purple.base,icon:u.default.createElement((e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},dm=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),cm=({className:e,e2eClassName:t,type:n,iconSlot:a,text:o,last:r,minWidth:i,cta:l,onClose:s})=>{const d=dm(e),c=dm(t);return u.default.createElement(om,{className:J([null==d?void 0:d.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:r},u.default.createElement(rm,{color:sm[n].accentColor,className:J([d.icon,c.icon])},null!=a?a:sm[n].icon),u.default.createElement(im,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(lm,{variant:"body"},o),l),u.default.createElement(ye,{variant:"flat",icon:u.default.createElement(Ce,{color:"white"}),onClick:s,"aria-label":"Close"}))},um=m.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?N.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,mm=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${um}{box-shadow:0 0 0 4px ${N.colors.brand.blue.light};}&:checked + ${um}{background-color:#0079d1;}&:disabled + ${um}{background-color:${N.colors.neutral.grey.base};}&:checked:disabled + ${um}{background-color:${N.colors.secondary.blue.light};}`,fm=m.default.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${um}: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"};}${mm}:checked + ${um}{&: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"});}}`,pm=m.default(b).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,gm=e.forwardRef((({id:e,className:t,name:n,switched:a,small:o,onClick:r=(()=>{}),disabled:i,ariaLabel:l},s)=>u.default.createElement(pm,{className:t,disabled:i},u.default.createElement(fm,{small:o,disabled:i,role:"switch"},u.default.createElement(mm,{id:e,type:"checkbox",name:n,"aria-label":l,checked:!!a,onChange:i?void 0:r,disabled:i,ref:s}),u.default.createElement(um,{switched:a,disabled:i}))))),hm=m.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${N.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",a="24px",o="24px",r="8px",i="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",o="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: ${a};\n padding-right: ${o};\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;}`,bm=m.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${D.md};border-radius:${E.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${x.neutral.ink.lightest};background-color:${x.neutral.grey.lightest};:hover{border:2px dashed ${x.secondary.blue.base};background-color:${x.secondary.blue.lightest};}:active{border:2px dashed ${x.secondary.blue.base};box-shadow:0 0 0 4px ${x.secondary.blue.light};background-color:${x.secondary.blue.lightest};}:focus-within{border:2px dashed ${x.secondary.blue.base};box-shadow:0 0 0 4px ${x.secondary.blue.light};background-color:${x.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${x.secondary.red.base};:hover{border:2px dashed ${x.secondary.red.base};background-color:${x.secondary.red.lightest};}:active{border:2px dashed ${x.secondary.red.base};box-shadow:0 0 0 4px ${x.secondary.red.light};background-color:${x.secondary.red.lightest};}:focus-within{border:2px dashed ${x.secondary.red.base};box-shadow:0 0 0 4px ${x.secondary.red.light};background-color:${x.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${x.neutral.grey.light};border-color:${x.neutral.ink.lightest};color:${x.neutral.ink.light};}`;var vm,ym,xm;exports.AcceptedFileTypes=void 0,(vm=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",vm.JPEG=".jpeg",vm.JPG=".jpg",vm.GIF=".gif",vm.PNG=".png",exports.FileSizeUnit=void 0,(ym=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",ym.MB="MB",function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(xm||(xm={}));const wm=()=>u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},u.default.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),u.default.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),Em=()=>u.default.createElement(Cl,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},u.default.createElement(wm,null),u.default.createElement(P,{variant:"subheadingSmall",style:{paddingTop:D.sm}},"Browse files or drag them here")),Cm=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?u.default.createElement(Cl,{alignX:"start",spacing:"xs"},e&&u.default.createElement(P,{variant:"errorSmall"},"Invalid format (",e,")"),t&&u.default.createElement(P,{variant:"errorSmall"},"File is too big (",t,")")):null,$m=m.default(P).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,km=m.default(Cl).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${x.neutral.ink.lightest};border-radius:${E.base};padding:${D.xs};${P}{padding-left:${D.xs};}`,Sm=({file:e,resetSelection:t,disabled:n})=>e?u.default.createElement(km,{alignX:"between",direction:"horizontal",alignY:"center"},u.default.createElement($m,{variant:"body"},null==e?void 0:e.name),u.default.createElement(ye,{size:"sm",variant:"flat",onClick:t,icon:u.default.createElement(Ce,null),"aria-label":"Remove file",disabled:n})):null,Dm=e.forwardRef(((t,n)=>{var{id:a,name:o,maxBytes:r=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:l,label:s="Upload file",required:d,disabled:c}=t,m=Z(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=e.useRef(null);e.useImperativeHandle(n,(()=>f.current),[]);const[p,g]=e.useState(),[h,b]=e.useState(xm.VALID),v=h===xm.INVALID_FORMAT||h===xm.INVALID_FORMAT_AND_SIZE,y=h===xm.INVALID_SIZE||h===xm.INVALID_FORMAT_AND_SIZE,x=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${a}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:r,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const o=a.length>1,r=t===a.length-1&&o,i=t===a.length-2&&o;switch(r&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!r&&a.length>2&&(n+=", ")})),n})({fileTypes:l}),E=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const o=a.length-1===n&&a.length>1;t+=o?`${e}`:`${e}, `})),t.trim()})({fileTypes:l}),C=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let a=xm.VALID;t&&!e?a=xm.INVALID_FORMAT:!t&&e?a=xm.INVALID_SIZE:t&&e&&(a=xm.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(a),b(a)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>r,[,o]=t.type.split("/"),i=!l.find((e=>e.substring(1)===o));n||i?C():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:a}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[l,a,r]),S=e.useCallback((()=>{C(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),I=e.useCallback((()=>{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?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",I),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",I),null==e||e.removeEventListener("cancel",S)}}),[I,S]),u.default.createElement(rd,{spacing:"sm",alignX:"stretch"},u.default.createElement(nd,{htmlFor:a},s,u.default.createElement(Cl,{spacing:3,alignX:"stretch",style:{paddingTop:D.sm}},u.default.createElement(ad,null,u.default.createElement("div",null,w),u.default.createElement("div",null,x)),u.default.createElement(bm,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(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()}},u.default.createElement(Em,null),u.default.createElement("input",Object.assign({ref:f,id:a,type:"file",accept:E,name:o,required:d,disabled:c},m))))),u.default.createElement(Cl,{alignX:"stretch",spacing:"sm"},u.default.createElement(Sm,{file:p,resetSelection:S,disabled:c}),u.default.createElement(Cm,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:y?x:void 0})))})),Im="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Lm=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${Im} display:${e=>e.shouldShow?"initial":"none"};z-index:${N.layers.modal};`,Nm=m.default(b).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${Im} background-color:rgba(55,66,77,0.5);`,Rm=m.default(b).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Mm=({usePortal:e,children:t})=>u.default.createElement(u.default.Fragment,null,e?u.default.createElement(U,null,t):t),Tm=({className:e,children:t=null,shouldShow:n=!1,usePortal:a=!0})=>u.default.createElement(Mm,{usePortal:a},u.default.createElement(Lm,{className:J([`${e}-container`,e]),shouldShow:n},u.default.createElement(Nm,null),u.default.createElement(h.default,{isActive:n},u.default.createElement(Rm,{className:J([`${e}-wrap`,e])},t)))),Pm=m.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,zm=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Fm=m.default(ye).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Bm;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Bm||(Bm={}));const Am=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Om=m.default(P).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,jm=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${P} {\n color: ${null!=t?t:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Hm=m.default(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 & > ${Om} {\n color: #fff;\n }\n `}`,Vm={style:{marginLeft:D.xs,padding:D.xs,height:D.base,width:D.base}},Wm=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${D.sm};svg{height:${D.base};width:${D.base};}`,Zm=e=>u.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Km=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0});var Um;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Um||(Um={}));const qm=e=>u.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},e),u.default.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Ym=m.default(P).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Jm=m.default(qm).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Gm=m.default(Ce).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Xm=m.default(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 & > ${Ym} {\n color: ${x.neutral.grey.lightest};\n }\n `}`,_m=m.default(b).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${x.neutral.grey.base};\n & > ${Xm} {\n background-color: ${x.neutral.grey.base};\n & > ${Ym} {\n color: ${x.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n & > ${Jm} {\n color: ${x.neutral.ink.dark};\n }\n & > ${Gm} {\n color: ${x.neutral.ink.dark};\n }\n }\n\n & > ${P} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Jm} {\n color: ${t.dark};\n }\n & > ${Gm} {\n color: ${t.dark};\n }\n\n & > ${P} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Qm=m.default(fe).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 ${_m} {\n background-color: ${x.neutral.grey.base};\n & > ${Xm} {\n background-color: ${x.neutral.grey.base};\n & > ${Ym} {\n color: ${x.neutral.ink.base};\n }\n }\n & > ${P} {\n color: ${null!=e?e:x.neutral.ink.dark};\n }\n & > ${Jm} {\n color: ${x.neutral.ink.dark};\n }\n & > ${Gm} {\n color: ${x.neutral.ink.dark};\n }\n }\n `}`,ef={style:{marginLeft:D.xs,padding:D.xs,height:D.base,width:D.base}},tf=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${D.sm};svg{height:${D.base};width:${D.base};}`,nf=u.default.forwardRef(((e,t)=>{var{id:n,iconSlot:a,name:o,type:r,className:i,colourPalette:l=x.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:m,subAction:f,ariaContext:p}=e,g=Z(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,y,w]=$d(),E=c&&f?f:m,C=r===Um.draft,$=r===Um.saved;return u.default.createElement(Qm,Object.assign({className:J([null==h?void 0:h.container]),onClick:()=>E(n),role:"tab","aria-selected":c,"aria-label":`${c&&C?"Delete":c&&$?"Edit":""} ${o} view ${d?`with ${d} ${p}`:""}`,customTextColour:s,ref:t},g),u.default.createElement(_m,{active:c,onMouseEnter:y,onMouseLeave:w,colourPalette:l,customTextColour:s},a&&u.default.createElement(tf,null,a),u.default.createElement(P,{variant:"bodyBold"},o),null!=d&&u.default.createElement(Xm,{"data-testid":"countContainer",active:c||v,colourPalette:l,customTextColour:s},u.default.createElement(Ym,{variant:"subheadingSmall"},d)),C&&u.default.createElement(Gm,Object.assign({},ef,{"aria-label":"delete icon"})),$&&c&&u.default.createElement(Jm,Object.assign({},ef,{"aria-label":"edit icon"}))))})),af=m.default(Cl).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;`,of=m.default(Cl).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${x.neutral.grey.lightest};`,rf=m.default(wl).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${x.neutral.ink.base};`,lf=m.default(xt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${x.neutral.ink.base};`,sf=m.default(qm).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${x.neutral.ink.base};`,df=m.default(ye).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${x.neutral.grey.lightest};}`,cf=m.default(ye).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${rf}{color:${x.neutral.ink.lightest};}}&:hover{background-color:${x.neutral.grey.lightest};}`,uf=m.default(ye).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${lf}{color:${x.neutral.ink.lightest};}}&:hover{background-color:${x.neutral.grey.lightest};}`,mf=m.default(ed).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,ff=(t,n)=>{const[a,o]=e.useState(!0),[r,i]=e.useState(!1),[l,s]=e.useState([]),d=e.useCallback((()=>{var e,n;t.current.scrollLeft>0?o(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(e=document.getElementById("right-arrow"))||void 0===e||e.focus()),o(!0));const a=t.current.scrollWidth-t.current.clientWidth;t.current.scrollLeft>=a-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),i(!0)):i(!1)}),[t]),c=e.useCallback((()=>{t.current.scrollWidth-t.current.getBoundingClientRect().width<5?i(!0):i(!1)}),[t]),u=e.useCallback((()=>{const e=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(l,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,l]),m=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(l,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,l]);return e.useEffect((()=>{var e,a,o,r,i,u,m,f;if(t)return(null===(a=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.children)||void 0===a?void 0:a.length)&&(null===(r=null===(o=null==t?void 0:t.current)||void 0===o?void 0:o.children)||void 0===r?void 0:r.length)!==l.length&&l.length>0&&l.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),s([...l,l[l.length-1]+(null!==(u=null===(i=t.current.children[l.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==u?u:0)-20])),(null===(f=null===(m=null==t?void 0:t.current)||void 0===m?void 0:m.children)||void 0===f?void 0:f.length)&&0===l.length&&s((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c(),window.addEventListener("resize",(()=>c())),t.current.addEventListener("scroll",(()=>d())),()=>{window.removeEventListener("resize",(()=>c()))}}),[t,n,c,d,l]),{rightDisabled:r,leftDisabled:a,toNextScrollPosition:u,toPrevScrollPosition:m}},pf=u.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:o},r)=>{const i=e.useRef(null),{rightDisabled:l,leftDisabled:s,toNextScrollPosition:d,toPrevScrollPosition:c}=ff(i,t);return u.default.createElement(of,{direction:"horizontal",alignY:"center",alignX:"between"},u.default.createElement(af,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),u.default.createElement(mf,null,(!s||!l)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(cf,{id:"left-arrow",icon:u.default.createElement(rf,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the left"}),u.default.createElement(uf,{id:"right-arrow",icon:u.default.createElement(lf,null),disabled:l,onClick:d,variant:"flat","aria-label":"move views to the right"})),u.default.createElement(df,{icon:u.default.createElement(sf,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":o,"aria-haspopup":a?"dialog":void 0,ref:r})))})),gf=m.default(b).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,hf=m.default(b).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,bf=m.default(md).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,vf=m.default(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${N.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${N.colors.secondary.red.base};\n `};`,yf=e=>bd(e,vd),xf=ld((e=>{var{size:t=td.base,hasError:n,className:a}=e,o=Z(e,["size","hasError","className"]);return u.default.createElement(gf,{className:a},u.default.createElement(hf,null,"g"===o.weightUnit&&u.default.createElement(ed,null,u.default.createElement(bf,Object.assign({size:t,onChange:o.handleChangeGram,name:"gram",type:"number",value:o.gram,hasError:n,min:"0",step:"any",onKeyDown:yf},o)),u.default.createElement(vf,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(o)&&u.default.createElement(u.default.Fragment,null,u.default.createElement(ed,null,u.default.createElement(bf,Object.assign({size:t,onChange:o.handleChangePound,name:"pound",type:"number",value:o.pound,hasError:n,step:"any",min:"0",onKeyDown:yf},o)),u.default.createElement(vf,{hasError:n,size:t},"lb")),u.default.createElement(ed,null,u.default.createElement(bf,Object.assign({size:t,onChange:o.handleChangeOunce,name:"ounce",type:"number",value:o.ounce,hasError:n,min:"0",step:"any",onKeyDown:yf},o)),u.default.createElement(vf,{hasError:n,size:t},"oz")))))}));xf.displayName="WeightInput",xf.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:a,label:o,iconSlot:r,glyphColor:i=x.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[c,m]=e.useState(!!d);return u.default.createElement(V,{open:!!d,className:n},u.default.createElement(A,{onClick:()=>m(!c)},u.default.createElement(O,null,u.default.createElement(F,{glyphColor:i},r,u.default.createElement(P,{variant:"body"},o)),u.default.createElement(B,null,u.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},u.default.createElement(W,{name:c?"downArrow":"upArrow"})))),!!s&&u.default.createElement(j,{variant:"hintText"},s)),c&&u.default.createElement(H,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},a))},exports.ActionList=We,exports.Anchor=e=>{var{children:t,href:n,rel:a,allowedHostnames:o=_}=e,r=Z(e,["children","href","rel","allowedHostnames"]);const i=Q(n,o),l=a||(i?"noopener noreferrer":void 0);return u.default.createElement(Ze,Object.assign({href:n,rel:l},r),t)},exports.AnimatedDropdown=Ge,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=N.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const o=t.toUpperCase().match(/\b(\w)/g);return u.default.createElement(Xe,{width:e,bgColor:n,textColor:a,className:"avatar"},null==o?void 0:o.slice(0,2).map(((e,t)=>u.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:a,className:o,e2eClassName:r,children:i})=>{const l=dt[e];return u.default.createElement(lt,{text:a},u.default.createElement(l,{className:J([o,r]),hideBorder:t},n&&n,i&&u.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:a,onClose:o,className:r,header:i,children:l,backgroundColor:s="white"}=e,d=Z(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=bt[t];return u.default.createElement(ct,Object.assign({accentColor:c,className:r,backgroundColor:s},d),u.default.createElement(ut,null,a&&u.default.createElement(ft,{style:{marginRight:D.md},accentColor:c},a),l?u.default.createElement(pt,null,l):u.default.createElement(u.default.Fragment,null,u.default.createElement(gt,null,i||u.default.createElement(ht,{variant:"headingSmall"},n)),u.default.createElement(mt,null,o&&u.default.createElement(ye,{variant:"flat","aria-label":"Close",icon:u.default.createElement(Ce,null),onClick:o})))))},exports.BaseContainer=b,exports.Breadcrumbs=({items:e,Separator:t=u.default.createElement(Et,null),LinkComponent:n=Ct})=>u.default.createElement(vt,{className:"breadcrumbs"},e.map(((a,o)=>u.default.createElement(wt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:o!==e.length-1?n:$t},e.length!==o+1&&t)))),exports.Button=ye,exports.Card=Pe,exports.CardHeader=$e,exports.Checkbox=Hl,exports.Choice=Fl,exports.ChoiceList=Ul,exports.CopyToClipboard=({className:t,text:n,onCopy:a})=>{const[o,r]=u.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),a&&a(),r(!0),setTimeout((()=>r(!1)),2500)}),[a,n]);return u.default.createElement(lt,{text:o?"Copied!":"Copy to clipboard"},u.default.createElement(Gl,{variant:"flat",size:"sm",className:t,"aria-label":`${o?"Copied":"Copy"} "${n}" to clipboard`,icon:o?u.default.createElement(ql,Object.assign({color:x.secondary.green.base},Jl)):u.default.createElement(Yl,Object.assign({color:x.secondary.blue.base},Jl)),onClick:i}))},exports.DataTable=Ws,exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>u.default.createElement(Js,{key:e},e))):u.default.createElement(Js,null,e);return u.default.createElement(Zs,null,e.map((e=>t?u.default.createElement(Us,{key:e.term},u.default.createElement(Ys,null,e.term),u.default.createElement(qs,null,n(e.description))):u.default.createElement(Ks,{key:e.term},u.default.createElement(Ys,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[a,o]=e.useState(!0);return u.default.createElement("main",null,t((()=>o(!a)),a),u.default.createElement(Qs,null,u.default.createElement(_s,{showSidebar:a},n)))},exports.DimensionsInput=xd,exports.FilterTag=({className:t,e2eClassName:n,label:a,text:o,iconSlot:r,fill:i=x.secondary.blue.base,content:l,footer:s,header:d,onClickAway:c,onClick:m,shouldCloseOnClickAway:f=!0})=>{const p=Td(t),g=Td(n),{shouldShowDropdown:h,toggleShouldShowDropdown:b,closeDropdown:v}=Ed(),y=e.useCallback((e=>{b(),c&&h&&c(e)}),[b,c,h]),w=e.useCallback((e=>{c&&c(e,v),f&&v()}),[v,c,f]);return!l?u.default.createElement(Sd,{className:J([null==p?void 0:p.container,null==g?void 0:g.container]),onClick:m},a&&u.default.createElement(Id,{variant:"subheadingSmallBold"},`${a}:`),u.default.createElement(P,null,o),u.default.createElement(Nd,{className:J([null==p?void 0:p.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:x.neutral.ink.base})):u.default.createElement(Ge,{className:p.filterTagDropdown,shouldShowDropdown:h,onClickAway:w,cta:u.default.createElement(Sd,{className:p.container,onClick:y},a&&u.default.createElement(Id,{variant:"subheadingSmallBold"},`${a}:`),u.default.createElement(P,null,o),u.default.createElement(Ld,{color:x.neutral.ink.base,name:"downArrow",$shouldShow:h}))},u.default.createElement(Rd,null,u.default.createElement(Md,{color:i},d||u.default.createElement(u.default.Fragment,null,r,u.default.createElement(P,{variant:"bodyBold"},a))),l,s))},exports.FocusVisibleManager=function({children:t}){const[n,a]=e.useState(!0);return e.useEffect((()=>{function e(){a(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(a(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function r(e){e.metaKey||e.altKey||e.ctrlKey||a(!0)}function i(){"hidden"===document.visibilityState&&(a(!0),n())}return document.addEventListener("keydown",r,!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",r,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[a]),u.default.createElement(Cd.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=Pd,exports.Image=({src:t,alt:n="",className:o,e2eClassName:i,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=jd(o),y=jd(i),[x,w]=e.useState(!1),[E,C]=e.useState({isLoaded:!1,isError:!1}),[$,k]=u.default.useState(null),[S,D]=u.default.useState(null),{styles:I,attributes:L}=a.usePopper($,S,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),N=e.useCallback((()=>f?w(!0):{}),[f]),R=e.useCallback((()=>f?w(!1):{}),[f]),M=!E.isLoaded||E.isError;return u.default.createElement(Fd,{className:J([null==v?void 0:v.container,null==y?void 0:y.container,o])},u.default.createElement(Bd,{src:t,alt:n,className:J([null==v?void 0:v.image,null==y?void 0:y.image]),width:l,height:s,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:f,onMouseEnter:N,onMouseLeave:R,style:M?{display:"none"}:{},ref:k}),!b&&M&&(p||u.default.createElement(zd,{className:J([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:g||l,height:h||s})),x&&r.createPortal(u.default.createElement(Ad,Object.assign({ref:D,style:I.popper},L.popper,{className:J([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),u.default.createElement(Od,{src:t,alt:"",width:d,height:c})),document.body))},exports.InputGroup=ed,exports.LegacyDataTable=Mc,exports.Loader=ie,exports.LoginWithAmazonButton=t=>{const[n,a]=e.useState(Pc);return u.default.createElement(Tc,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(Pc)},"aria-label":zc},t),u.default.createElement("img",{src:n,alt:zc}))},exports.Modal=n=>{const{shouldShow:a,showHeaderCloseButton:o=!0,fullBleed:r=!1,variant:i="base",onClose:l,children:s}=n,d=e.useRef(null),[c,m]=e.useState(null);e.useEffect((()=>{var e,t;a&&(null===(e=d.current)||void 0===e||e.removeAttribute("open"),null===(t=d.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:f,onScroll:p}=kd(c),g=()=>{var e;null===(e=d.current)||void 0===e||e.close(),l()};return u.default.createElement(t.AnimatePresence,null,a&&u.default.createElement("div",{"data-testid":"dialog-wrapper"},u.default.createElement(Fc,null),u.default.createElement(Zc,{ref:d,onClose:g,variant:i,"aria-describedby":"modal_title"},u.default.createElement(Pe.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:u.default.createElement($e,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},o&&{onClickClose:g})),u.default.createElement(Bc,{onScroll:p,ref:m,isScrollable:f,fullBleed:r},s),Ac(n)&&n.footerSlot,!Ac(n)&&(n.leftActions||n.rightActions)&&u.default.createElement(Pe.Footer,null,u.default.createElement(Cl,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&u.default.createElement(Cl,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(ye,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&u.default.createElement(Cl,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Z(e,["label"]);return u.default.createElement(ye,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:a,quickActions:o,backAction:r,Accessory:i,shadow:l="none",onClickPrevious:s,onClickNext:d,onClickToggleSidebar:c})=>{const m=a&&u.default.createElement(We,{buttonVariant:o?"default":"primary",title:"Actions",sections:a}),f=null==o?void 0:o.map((e=>u.default.createElement(ye,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=r&&u.default.createElement(ye,{onClick:r.onClick,icon:u.default.createElement(wl,null),variant:"link"},r.title),g=c&&u.default.createElement(Cl,{direction:"horizontal",alignX:"end"},u.default.createElement(eu,{onClick:c},u.default.createElement("span",null,"Toggle sidebar"),u.default.createElement(xt,{width:D.md})));return u.default.createElement(Jc,{shadow:l},u.default.createElement(Cl,null,p,u.default.createElement(tu,null,u.default.createElement(Cl,{direction:"horizontal",spacing:"md"},n&&u.default.createElement(_c,{src:n,alt:"",width:"72",height:"72"}),u.default.createElement("div",{style:{flex:1}},u.default.createElement(Cl,{alignX:"stretch"},u.default.createElement(Gc,null,e),i,t&&u.default.createElement(Xc,null,t)))),u.default.createElement(Qc,null,u.default.createElement(Cl,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,s&&u.default.createElement(ye,{icon:u.default.createElement(wl,null),onClick:s}),d&&u.default.createElement(ye,{icon:u.default.createElement(xt,null),onClick:d})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:a,handleChangePage:o})=>{const{pageInputValue:r,handleIncrement:i,handleDecrement:l,handleFormSubmit:s,handleInputChange:d,handleSubmit:c}=iu({currentPage:n,totalPagesCount:a,handleChangePage:o});return u.default.createElement(Cl,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},u.default.createElement(au,{onClick:()=>{1!==n&&o(1)},icon:u.default.createElement(lu,null),size:"sm","aria-label":"go to first page"}),u.default.createElement(au,{onClick:l,icon:u.default.createElement(wl,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),u.default.createElement("form",{onSubmit:s},u.default.createElement(ou,{"aria-live":"polite","aria-label":`page ${n} of ${a}`,size:td.sm,type:"number",value:r,min:"1",max:`${a}`,onChange:d,onBlur:c})),u.default.createElement(ru,{count:a}),u.default.createElement(au,{onClick:i,icon:u.default.createElement(xt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=a}),u.default.createElement(au,{onClick:()=>{n!==a&&o(a)},icon:u.default.createElement(su,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=a}))},exports.PaginationRange=bu,exports.Popover=ne,exports.Popup=Tm,exports.Portal=U,exports.PriceInput=ku,exports.Radio=Wl,exports.RangeCalendar=t=>{var{disabledRanges:n=[],disallowWeekends:a=!1,isMultiMonth:o=!1}=t,r=Z(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const{locale:i}=ti(),l=e.useCallback((e=>!!a&&function(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1)%7;a<0&&(a+=7);let o=Ut(t),[r,i]=Jt[o]||[6,0];return a===r||a===i}(e,i)||n.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[n,a,i]);return u.default.createElement(xl,Object.assign({isDateUnavailable:l,visibleDuration:o?{months:2}:void 0},r),u.default.createElement("header",null,u.default.createElement(Bi,{slot:"previous"},u.default.createElement(wl,null)),u.default.createElement(pl,null),u.default.createElement(Bi,{slot:"next"},u.default.createElement(xt,null))),o?u.default.createElement("div",{style:{display:"flex",gap:N.sizes.sm,overflow:"auto"}},u.default.createElement(gl,null),u.default.createElement(gl,{offset:{months:1}})):u.default.createElement(gl,null))},exports.ScreenReaderOnly=({children:e})=>u.default.createElement(Su,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:a,onBlur:o,onFocus:r,onKeyUp:i,onKeyDown:l,onKeyPress:s,value:d="",error:c,placeholder:m="",className:f="",name:p,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:y="base"})=>{const x=d&&d.length>0;return u.default.createElement(Lu,{className:f,iconPosition:b?"left":"right"},u.default.createElement(Du,{size:y,type:e,value:d,onChange:a,onBlur:o,onFocus:r,onKeyUp:i,onKeyDown:l,onKeyPress:s,placeholder:m,name:p,disabled:t,error:c,autoComplete:v}),u.default.createElement(Iu,null,g?u.default.createElement(ie,{height:24,color:h||N.colors.secondary.blue.base}):x&&n?u.default.createElement(ye,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},u.default.createElement(Ce,{color:h||N.colors.neutral.ink.dark})):u.default.createElement(ye,{variant:"unstyled",onClick:()=>a(d),style:{display:"flex"},"aria-label":"Search",type:"button"},u.default.createElement(Nu,{color:h||N.colors.neutral.ink.dark,height:D.md,width:D.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:a})=>u.default.createElement(Pu,{className:n?`${n}-container`:void 0},e.map((e=>u.default.createElement(ye,{variant:e.value===t?"primary":"default",key:e.key,onClick:()=>a(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Fu,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:a=!1,displayLabel:o=!1}=e,r=Z(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Ou[e]?u.default.createElement(Au,{key:`Key: ${e}`,"aria-label":ju[e]},Ou[e]):u.default.createElement(Au,{key:`Key: ${e}`},e))).reduce(((e,t)=>u.default.createElement(u.default.Fragment,null,e,"+",t)));return u.default.createElement(Bu,Object.assign({"aria-label":n,$inverse:a},r),i," ",o?u.default.createElement("span",null,n):null)},exports.SimpleTable=Ju,exports.Skeleton=Gu,exports.Slider=({id:t,value:n,min:a,max:o,step:r=1,onChange:i,className:l,e2eClassName:s,onSlideStart:d=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[m,f]=e.useState(!1),[p,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),y=tm(l),x=tm(s),w=e.useCallback((e=>{var t;if(!m||!h.current)return;const l=p>-1?n[p]:n,s=h.current.getBoundingClientRect();let d=100*(e.pageX-s.x)/s.width/100*(o-a)+a;const c=l-d;if(c>0&&(d=l+Math.ceil(d/r-l/r)*r),c<0&&(d=l+Math.floor(d/r-l/r)*r),l===d)return;d>o&&(d=o),d<a&&(d=a),Array.isArray(n)&&(0===p&&d>n[1]&&([,d]=n),1===p&&d<n[0]&&([d]=n));const u=r.toString().includes(".")?null===(t=r.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;d=Number(d.toFixed(u)),f=Array.isArray(n)?0===p?[d,n[1]]:[n[0],d]:d,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&g(1),1===p&&g(0))}),[p,m,o,a,i,r,n]),E=e.useCallback((()=>{f(!1),c()}),[c]),C=e.useCallback(((e,t)=>{f(!0),d(),"number"==typeof t&&g(t),e.preventDefault()}),[d]);e.useEffect((()=>{const e=e=>C(e,Array.isArray(n)?0:1),t=e=>C(e,1),a=b.current,o=v.current;return null==a||a.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),()=>{null==a||a.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)}}),[C,w,E,n]);const $=(e,t,n)=>{let r;return r=J("number"==typeof n?0===n?[null==y?void 0:y.startSlider,null==x?void 0:x.startSlider]:[null==y?void 0:y.endSlider,null==x?void 0:x.endSlider]:[null==y?void 0:y.slider,null==x?void 0:x.slider]),u.default.createElement(Qu,{role:"slider",ref:1===n?v:b,className:r,left:e,"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<a?0:e[0]-a)/(o-a),n=100*(e[1]>o?100:e[1]-a)/(o-a),r=n-t;return u.default.createElement(u.default.Fragment,null,u.default.createElement(em,{className:J([null==y?void 0:y.sliderRange,null==x?void 0:x.sliderRange]),left:t,width:r}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>o?100:n<a?0:100*(e-a)/(o-a),$(t,e)})(n),u.default.createElement(Xu,{className:J([null==y?void 0:y.container,null==x?void 0:x.container]),id:t,ref:h},u.default.createElement(_u,null),S)},exports.Stack=Cl,exports.Stepper=xu,exports.Tag=nm,exports.Text=P,exports.TextField=md,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:a,minWidth:o="50vw",max:l=3,onClose:s})=>(e.useEffect((()=>{l&&a.length>l&&s(a[0].key)}),[a,l,s]),r.createPortal(u.default.createElement(am,{direction:"vertical",alignX:"center",spacing:4},u.default.createElement(i.TransitionGroup,{component:null},[...a].reverse().map(((e,r)=>u.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},u.default.createElement(cm,Object.assign({className:t,e2eClassName:n,minWidth:o,last:r===a.length-1,onClose:()=>s(e.key)},e))))))),document.body)),exports.Toggle=gm,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:a=!1,onChange:o})=>u.default.createElement(hm,{type:"button",checked:t,size:n,disabled:a,"aria-pressed":t,tabIndex:"0",onClick:()=>o(!t)},e),exports.Tooltip=lt,exports.UploadFile=Dm,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:a})=>{const o=wd(n,a);return u.default.createElement(Tm,{shouldShow:n,className:`${e}-video`},u.default.createElement(Pm,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},u.default.createElement(zm,{ref:o},u.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),u.default.createElement(Fm,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:u.default.createElement(Ce,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:a,type:o,className:r,colourPalette:i=x.secondary.blue,customTextColour:l,count:s,active:d=!1,onClick:c,onDelete:m,onEdit:f,e2eClassName:p})=>{const g=Km(r),h=Km(p),[b,v,y]=$d(),w=e.useCallback((()=>c(t)),[t,c]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),C=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=o===Bm.draft,k=o===Bm.saved,S=d?x.neutral.ink.dark:x.neutral.ink.base;return u.default.createElement(Am,{className:`${J([null==g?void 0:g.container,null==h?void 0:h.container])} ${d&&(null==h?void 0:h.active)||""}`,onClick:w},u.default.createElement(jm,{active:d,onMouseEnter:v,onMouseLeave:y,colourPalette:i,customTextColour:l},n&&u.default.createElement(Wm,null,n),u.default.createElement(P,{variant:"bodyBold"},a),s&&u.default.createElement(Hm,{active:d||b,colourPalette:i,customTextColour:l},u.default.createElement(Om,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},s)),$&&u.default.createElement(Ce,Object.assign({},Vm,{color:S,className:null==h?void 0:h.delete,onClick:E})),k&&d&&u.default.createElement(Zm,Object.assign({},Vm,{color:S,className:null==h?void 0:h.edit,onClick:C}))))},exports.ViewTab=nf,exports.ViewsContainer=pf,exports.WeightInput=xf,exports.buildClassnames=J,exports.generateId=K,exports.getOpaqueHexColor=X,exports.hexToRgb=G,exports.isExternalLink=Q,exports.theme=N,exports.useCellWidths=rs,exports.useClickOutside=wd,exports.useColumns=is,exports.useDebounce=(t,n)=>{const[a,o]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>o(t)),n);return()=>clearTimeout(e)}),[t,n]),a},exports.useDragToScroll=ls,exports.useDropdown=Ed,exports.useFocusVisible=function(){const[e,t]=u.default.useState(!1),{hadKeyboardEvent:n,isInitialized:a}=u.default.useContext(Cd),o=u.default.useCallback((()=>{e||t(!0)}),[e]),r=u.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=a?n&&e:e,u.default.useMemo((()=>({focusVisible:i,onFocus:o,onBlur:r})),[i,r,o])},exports.useHover=$d,exports.useIsOverflowing=kd,exports.useNested=function(){const[t,n]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,a)=>{if(a)if(e){if(t.includes(a))return;const e=[...t,a];n(e)}else{const e=t.findIndex((e=>e===a));if(e<0)return;const o=[...t];o.splice(e,1),n(o)}}}}},exports.useScrollPosition=ss,exports.useSelection=gs,exports.useTabs=(t,n)=>{const{defaultActiveIndex:a=0}=n||{},[o]=e.useState(t),[r,i]=e.useState(o[a]);return[r,e=>{const t=o.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),u.default.createElement(t,Object.assign({},n))),exports.withLabels=ld;
2
2
  //# sourceMappingURL=index.js.map