@veeqo/ui 5.12.1 → 5.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown/types.d.ts +1 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("framer-motion"),a=require("styled-components"),n=require("react-popper"),r=require("resize-observer-polyfill"),o=require("react-dom"),i=require("react-transition-group"),l=require("lodash.throttle"),s=require("react-use"),d=require("react-scrolllock-configurable");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(e),m=u(a),f=u(r),p=u(o),h=u(l),g=u(d);const v=m.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,b={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},y=(e,t)=>e||(t?b[t]:void 0),w={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"}}},x={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 D,$;!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)"}(D||(D={})),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 C=function({increment:e,unit:t,count:a}){const n={};for(let r=0;r<=a;r++){const a=r*e;n[r]=`${a}${t}`}return n}({increment:.25,unit:"rem",count:20}),k={[$.none]:"0",[$.line]:"1px",[$.xs]:C[1],[$.sm]:C[2],[$.base]:C[4],[$.md]:C[6],[$.lg]:C[8],[$.xl]:C[12],[$.xxl]:C[16]},S=Object.assign(Object.assign({},k),C),R={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},I={headingXXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:w.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:w.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:w.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:w.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:w.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:w.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:w.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:w.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:w.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:w.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:R.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:w.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},L=Object.assign(Object.assign({},R),{breakpoints:x,colors:w,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:E,shadows:D,sizes:S,text:I}),{text:N,colors:P,fontFamily:T}=L,M=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 a=t?P.neutral.ink.lightest:N[e].color;return`\n font-family: ${N[e].fontFamily};\n font-style: ${N[e].fontStyle};\n font-weight: ${N[e].fontWeight};\n font-size: ${N[e].fontSize};\n line-height: ${N[e].lineHeight};\n color: ${a};\n text-decoration: ${N[e].textDecoration};\n letter-spacing: ${N[e].letterSpacing};\n `}}`,z=m.default(v).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:${S.base};width:${S.base};color:${({glyphColor:e})=>e};}`,V=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 ${L.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${L.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${L.colors.secondary.blue.light};}`,O=m.default(v).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,j=m.default(M).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,B=m.default(t.motion(v)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,H=m.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,W=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"}));function Z(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}"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?o.createPortal(e,this.portalNode):null}}const _=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};`,q=e=>e.filter(Boolean).join(" "),G=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,a,n)=>t+t+a+a+n+n)),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null},J=(e,t)=>{const a=G(e);return a?`rgba(${a.r}, ${a.g}, ${a.b}, ${t})`:e},X=["app.veeqo.com"];function Q(e,t=X){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:a}=new URL(e);return!t.some((e=>a.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:a}=new URL(`http:${e}`);return!t.some((e=>a.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:a,onClose:n,disableFocusLock:r=!1})=>{e.useEffect((()=>{if(!t||r)return;const e=t.querySelectorAll(ee);e.length<1||setTimeout((()=>{e[0].focus()}),0)}),[t,r]),e.useEffect((()=>{if(!t||!t)return;const e=e=>{if("Tab"===e.key&&!e.shiftKey){const a=t.querySelectorAll(ee);if(a.length<1)return void n();a[0].focus(),e.stopPropagation(),e.preventDefault()}};return null==a||a.addEventListener("keydown",e),()=>null==a?void 0:a.removeEventListener("keydown",e)}),[a,t,n]);return{handleKeyDown:e=>{t&&("Escape"===e.key?n():r||"Tab"!==e.key||(e=>{const a=t.querySelectorAll(ee),n=a[0],r=a[a.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())})(e))}}},ae=t=>{var{id:a,children:r,zIndex:o=L.layers.popup,placement:i="bottom",anchorElement:l,rootElementRef:s,onShouldClose:d,style:u,disableFocusLock:m,removeBackdrop:p=!1,useAnchorWidth:h}=t,g=Z(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[v,b]=e.useState(null),{styles:y,attributes:w,update:x}=n.usePopper(l,v,{placement:i}),E=e.useMemo((()=>a||K("popover")),[a]);(({anchorElement:t,popoverId:a})=>{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",a))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${a}`)}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: ${a}`)}return()=>{try{t.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[t,a])})({anchorElement:l,popoverId:E});const D=()=>{null==l||l.focus(),null==d||d()},{handleKeyDown:$}=te({popperElement:v,anchorElement:l,onClose:D,disableFocusLock:m});return e.useEffect((()=>{if(!x||!v)return;const e=new f.default(x);return e.observe(v),()=>e.disconnect()}),[x,v]),e.useEffect((()=>{if(x)return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)}),[x]),c.default.createElement(U,{rootElementRef:s},!p&&c.default.createElement(Y,{onClick:D,zIndex:o,"data-testid":"popover-backdrop"}),c.default.createElement(_,Object.assign({open:!0,id:E,zIndex:o,ref:b,style:Object.assign(Object.assign(Object.assign({},y.popper),u),h?{width:null==l?void 0:l.clientWidth}:{}),onKeyDown:$},w.popper,g),r))},ne=({width:e,height:t,className:a,color:n,label:r})=>c.default.createElement("svg",{width:e,height:t,className:a,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},c.default.createElement("defs",null,c.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},c.default.createElement("stop",{stopColor:n,stopOpacity:"0",offset:"0%"}),c.default.createElement("stop",{stopColor:n,stopOpacity:".631",offset:"63.146%"}),c.default.createElement("stop",{stopColor:n,offset:"100%"}))),c.default.createElement("g",{fill:"none",fillRule:"evenodd"},c.default.createElement("g",{transform:"translate(1 1)"},c.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:n,strokeWidth:"2"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),c.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},c.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),re=({width:e,height:t,className:a,color:n,label:r})=>c.default.createElement("svg",{width:e,height:t,className:a,viewBox:"0 0 105 105",fill:n,"aria-label":r},c.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},c.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),oe=({width:e,height:t,className:a,color:n,label:r})=>c.default.createElement("svg",{width:e,height:t,className:a,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n,"aria-label":r},c.default.createElement("circle",{cx:"15",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},c.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),c.default.createElement("circle",{cx:"105",cy:"15",r:"15"},c.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),c.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ie=({className:e,height:t=24,width:a=24,color:n="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return c.default.createElement(re,{className:e,height:t,width:a,color:n});case"ThreeDots":return c.default.createElement(oe,{className:e,height:t,width:a,color:n});default:return c.default.createElement(ne,{className:e,height:t,width:a,color:n})}},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})=>S[e]};height:${({size:e})=>S[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:${L.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",a="24px",n="24px",r="8px",o="16px",i="4px";return e.hasIcon&&(a="16px"),e.hasDropdown&&(n="16px"),"sm"===e.size&&(t="32px",a="16px",n="16px",r="4px",o="14px",i="2px",e.hasIcon&&(a="8px"),e.hasDropdown&&(n="8px")),e.hasText||(a="8px",n="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${a};\n padding-right: ${n};\n border-radius: ${r};\n font-size: ${o};\n line-height: ${o};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,de=m.default(se).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${L.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?L.colors.neutral.ink.base:L.colors.secondary.blue.base};&:hover{background-color:${L.colors.neutral.grey.lightest};}&:active{background-color:${L.colors.neutral.grey.lightest};border-color:${L.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${L.colors.neutral.grey.base} !important;border-color:${L.colors.neutral.grey.base} !important;color:${L.colors.neutral.ink.light} !important;}`,ue=m.default(de).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${L.colors.secondary.red.base};&:hover{color:${L.colors.secondary.red.dark};}&:active{border-color:${L.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.red.light};color:${L.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.red.light};}`,ce=m.default(de).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${L.colors.secondary.blue.base};border-color:${L.colors.secondary.blue.base};color:white;&:hover{background-color:${L.colors.secondary.blue.dark};border-color:${L.colors.secondary.blue.dark};}&:active{background-color:${L.colors.secondary.blue.dark};border-color:${L.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};}`,me=m.default(ce).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${L.colors.secondary.red.base};border-color:${L.colors.secondary.red.base};color:white;&:hover{background-color:${L.colors.secondary.red.dark};border-color:${L.colors.secondary.red.dark};}&:active{background-color:${L.colors.secondary.red.dark};border-color:${L.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.red.light};}`,fe=m.default(se).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${L.colors.neutral.ink.base};&:hover{background-color:${L.colors.neutral.grey.light};}&:active{background-color:${L.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.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;}`,he=m.default(pe).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${L.text.link.fontFamily};font-size:${L.text.link.fontSize};line-height:${L.text.link.fontSize};font-weight:${L.text.link.fontWeight};line-height:${L.text.link.lineHeight};text-decoration:${L.text.link.textDecoration};color:${L.colors.secondary.blue.base};&:hover{color:${L.colors.secondary.blue.dark};}& > * + *{margin-left:${L.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${L.colors.secondary.blue.light};border-radius:4px;}`,ge=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;`,ve=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),be={default:de,primary:ce,destructive:ue,primaryDestructive:me,flat:fe,link:he,unstyled:pe},ye=e.forwardRef(((e,t)=>{var{className:a,children:n,icon:r,variant:o="default",size:i="base",dropdown:l=!1,loading:s=!1}=e,d=Z(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===o)return c.default.createElement(pe,Object.assign({ref:t,className:a},d),n);const u=be[o],m=void 0!==n,f=!!r;return c.default.createElement(u,Object.assign({ref:t,className:a,size:i,hasText:m,hasIcon:f,hasDropdown:l},d),(m||f)&&c.default.createElement(le,{$loading:s,hasText:!!n,size:n||"sm"===i?"base":"md"},r&&r,void 0!==n&&n,l&&c.default.createElement(ve,null)),s&&c.default.createElement(ge,null,c.default.createElement(ie,null)))})),we=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${S.md};padding-right:${S.md};padding-left:${S.md};margin-bottom:${S.md};& > * + *{margin-top:${S.xs};}`,xe=m.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${S.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Ee=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:S.md},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),De=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),$e=({id:e,title:t,subtitle:a,headerVariant:n="headingSmall",action:r,ActionSlot:o,isCollapsed:i,onClickCollapse:l,onClickClose:s})=>c.default.createElement(we,null,c.default.createElement(xe,null,c.default.createElement(M,{id:e,variant:n},t),r&&c.default.createElement(ye,{variant:"link",onClick:r.onClick},r.title),o,l&&c.default.createElement(ye,{variant:"flat",icon:i?c.default.createElement(Ee,null):c.default.createElement(W,null),onClick:l}),s&&c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(De,null),onClick:s,"aria-label":"Close"})),a&&c.default.createElement(M,{variant:"subheadingSmall"},a)),{grey:Ce}=w.neutral,ke={0:"none",1:D.sm,2:D.base,3:D.md,4:D.lg},Se={info:w.secondary.blue.base,success:w.secondary.green.base,error:w.secondary.red.base},Re=m.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${S.base};padding:${S.md};z-index:2;`,Ie=m.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${S.md};padding-left:${S.md};margin-top:${S.md};margin-bottom:${S.md};font-family:${I.body.fontFamily};font-size:${I.body.fontSize};font-weight:${I.body.fontWeight};line-height:${I.body.lineHeight};color:${I.body.color};& + &{border-top:${S.line} solid ${Ce.base};padding-top:${S.md};}`,Le=m.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${S.md};margin-right:-${S.md};`,Ne=m.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ie}:first-child{margin-top:0;}`,Pe=m.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${S.line} solid ${Ce.base};box-shadow:${e=>void 0!==e.elevation?ke[e.elevation]:D.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: ${S.xs};\n background-color: ${Se[e]};\n }\n `}`,Te={expanded:{height:"auto"},collapsed:{height:0}},Me=({className:t,style:a,title:n,subtitle:r,HeaderActionSlot:o,action:i,collapsable:l,elevation:s,accent:d,children:u,onClose:m,renderFooter:f})=>{const[p,h]=e.useState(!1),g=n&&c.default.createElement($e,{title:n,subtitle:r,ActionSlot:o,action:i,onClickClose:m,isCollapsed:p,onClickCollapse:l?()=>{h(!p)}:void 0}),v=l&&!p||!l,b=c.default.createElement(Ne,{animate:v?"expanded":"collapsed",variants:Te,transition:{duration:.3,ease:"easeOut"}},c.default.createElement(Ie,null,u)),y=void 0!==f&&c.default.createElement(Re,null,f());return c.default.createElement(Pe,{className:t,style:a,elevation:s,accent:d},g,b,y)};Me.Surface=Pe,Me.Section=Ie,Me.FullBleed=Le,Me.Footer=Re;const{sizes:ze,colors:Fe,text:Ve}=L,Ae=m.default(Me.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(M).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${ze.sm} ${ze.base} ${ze.sm};`,Be=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:${Ve.body.fontFamily};font-size:${Ve.body.fontSize};font-weight:${Ve.body.fontWeight};&:hover{background-color:${Fe.neutral.grey.light};color:${Fe.secondary.blue.base};}& > * + *{margin-left:${ze[3]};}`,He={item:Be,action:m.default(Be).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Fe.secondary.blue.base};`,link:m.default(Be).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Fe.secondary.blue.base};text-decoration:underline;`},We=({title:t,items:a=[],sections:n,buttonVariant:r,buttonSize:o})=>{const[i,l]=e.useState(!1),[s,d]=e.useState(null),u=e=>{const t=He[e.variant||"item"];return c.default.createElement(t,{onClick:()=>{return t=e.onClick,l(!1),void t();var t},key:e.title},e.icon&&e.icon,c.default.createElement("span",null,e.title))},m=n?n.map((e=>c.default.createElement(Oe,{key:e.title},e.title&&c.default.createElement(je,null,e.title),e.items.map(u)))):a.map(u);return c.default.createElement(c.default.Fragment,null,c.default.createElement(ye,{dropdown:!0,variant:r,size:o,onClick:()=>l(!i),ref:d},t),i&&c.default.createElement(ae,{anchorElement:s,placement:"bottom-start",onShouldClose:()=>l(!1)},c.default.createElement(Ae,null,m)))};var Ze;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ze||(Ze={}));const Ke=m.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:a="start",alignY:n="start",spacing:r="base"}=e;let o,i,l,s,d="",u="";return"vertical"===t?(o=a&&Ze[a],i=n&&Ze[n],d=L.sizes[r],l="column"):(o=n&&Ze[n],i=a&&Ze[a],u=L.sizes[r],l="row"),("vertical"===t&&"stretch"===n||"horizontal"===t&&"stretch"===a)&&(s=1),`\n align-items: ${o};\n justify-content: ${i};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${u};\n }\n `}}`;Ke.displayName="Stack";const Ue=m.default(Ke).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${L.radius.base};background-color:${({colours:{background:e}})=>e};`,_e=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})),Ye=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),qe=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),c.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),c.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Ge=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Je={base:L.sizes.base,sm:L.sizes[3],xs:L.sizes.sm},Xe={base:L.sizes.md,sm:L.sizes[5],xs:L.sizes[5]},Qe={default:qe,error:_e,success:Ge,info:Ye,warning:e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),c.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),c.default.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),c.default.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},et={default:{primary:L.colors.neutral.ink.base,background:L.colors.neutral.grey.lightest},error:{primary:L.colors.secondary.red.base,background:L.colors.secondary.red.lightest},success:{primary:L.colors.secondary.green.base,background:L.colors.secondary.green.lightest},info:{primary:L.colors.secondary.blue.base,background:L.colors.secondary.blue.lightest},warning:{primary:L.colors.secondary.orange.base,background:L.colors.secondary.orange.lightest},recommend:{primary:L.colors.secondary.purple.dark,background:L.colors.secondary.purple.lightest}},tt=m.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${L.text.link.fontFamily};font-style:${L.text.link.fontStyle};font-weight:${L.text.link.fontWeight};font-size:${L.text.link.fontSize};line-height:${L.text.link.lineHeight};color:${L.colors.secondary.blue.base};text-decoration:${L.text.link.textDecoration};&:hover{color:${L.colors.secondary.blue.dark};}`,at=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,nt=e.forwardRef(((e,t)=>{const{children:a,className:n,role:r}=e;return c.default.createElement(at,{className:n,ref:t,role:r},a)})),rt=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,ot=m.default(v).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,it=m.default(nt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${L.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);}`,lt=({cta:t,shouldShowDropdown:a,children:n,className:r="animated-dropdown",reversed:o=!1,onClickAway:l=(()=>{}),timeout:s=350,transitionClassnames:d="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:f})=>{const p=e.useRef(null);return((t,a)=>{e.useEffect((()=>{const e=e=>{t.current&&!t.current.contains(e.target)&&a(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t,a])})(p,(e=>{a&&l(e)})),c.default.createElement(rt,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:f,ref:p},!o&&t,c.default.createElement(ot,{className:`${r}-wrap ${r}`},c.default.createElement(i.CSSTransition,{in:a,timeout:s,classNames:d,unmountOnExit:!0},c.default.createElement(it,{role:"dialog",reversed:o,className:`${r}-basic-dropdown ${r}`},n))),o&&t)},st=m.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${L.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:${L.text.bodySmallBold.fontFamily};font-weight:${L.text.bodySmallBold.fontWeight};font-size:${L.text.bodySmallBold.fontSize};line-height:${L.text.bodySmallBold.lineHeight};}`,dt=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,ut=m.default(dt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,ct=m.default(M).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${L.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,mt=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;`,ft=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;}`,pt=m.default(dt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var ht;!function(e){e.BOTTOM="bottom",e.TOP="top"}(ht||(ht={}));const gt={duration:400,side:ht.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},vt=({content:t,text:a,hoverableElement:r,config:o,reversed:i,withTriangle:l,classNames:s})=>{const[d,u]=e.useState(null),m=Object.assign(Object.assign({},gt),o),{duration:f,side:p,triangleOffset:h,tipMinWidth:g,tipMaxWidth:v}=m,{styles:b,attributes:y}=n.usePopper(r,d,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),w=Object.assign(Object.assign({},b.popper),{zIndex:L.layers.tooltip});return c.default.createElement(ft,Object.assign({className:s.tip,ref:u,duration:f,triangleOffsetSize:h,style:w},y.popper,{role:"tooltip"}),c.default.createElement(pt,{className:s.wrap,tipMinWidth:g,tipMaxWidth:v},null!=t?t:c.default.createElement(ct,null,a)),l&&c.default.createElement(mt,{id:"veeqo-components-triangle",className:s.triangle}))},bt=({children:t,text:a,content:n,config:r,reversed:o=!1,className:i,withTriangle:l,initialShouldShow:s=!1,useReactPortal:d=!0})=>{const[u,m]=e.useState(s),[f,h]=e.useState(null),g=!!a&&a.trim().length>0,v={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},b=!(!n&&!g);if(!b)return t;const y=u&&b&&c.default.createElement(vt,{classNames:v,hoverableElement:f,config:r,reversed:o,withTriangle:l,text:a,content:n});return c.default.createElement(dt,{className:v.container},d?p.default.createPortal(y,document.body):y,c.default.createElement(ut,{ref:h,className:v.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},t))},yt=m.default(v).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:${I.bodySmall.fontFamily};font-weight:${I.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${S.base};height:${S.base};}`,wt={default:m.default(yt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${w.secondary.blue.base};color:${w.secondary.blue.base};`,primary:m.default(yt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${w.secondary.blue.base};background-color:${w.secondary.blue.lightest};color:${w.secondary.blue.base};`,warning:m.default(yt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${w.secondary.yellow.base};background-color:${w.secondary.yellow.lightest};color:${w.secondary.orange.dark};`},xt=m.default(v).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"};`,Et=m.default(v).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Dt=m.default(v).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,$t=m.default(Dt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${S.md};height:${S.md};color:${({accentColor:e})=>e};}`,Ct=m.default(v).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,kt=m.default(Dt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,St=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Rt={help:w.secondary.blue.base,info:w.neutral.ink.base,error:w.secondary.red.base,success:w.secondary.green.base},It=m.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${I.body.fontFamily};font-weight:${I.body.fontWeight};font-size:${I.body.fontSize};line-height:${I.body.lineHeight};`,Lt=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;}`,Nt=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),Pt=({children:e,title:t,LinkComponent:a,href:n})=>a?c.default.createElement(Lt,{className:"breadcrumb"},c.default.createElement(a,{href:n},t),e):c.default.createElement(Lt,{className:"breadcrumb"},t,e),Tt=()=>c.default.createElement(Nt,{className:"separator",width:S.base,height:S.base}),Mt=({children:e,href:t})=>c.default.createElement("a",{href:t},e),zt=({children:e})=>c.default.createElement("span",null,e);function Ft(e,t){return e-t*Math.floor(e/t)}const Vt=1721426;function At(e,t,a,n){let r=(t=jt(e,t))-1,o=-2;return a<=2?o=0:Ot(t)&&(o=-1),1721425+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*a-362)/12+o+n)}function Ot(e){return e%4==0&&(e%100!=0||e%400==0)}function jt(e,t){return"BC"===e?1-t:t}function Bt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Ht={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 Wt{fromJulianDay(e){let t=e,a=t-Vt,n=Math.floor(a/146097),r=Ft(a,146097),o=Math.floor(r/36524),i=Ft(r,36524),l=Math.floor(i/1461),s=Ft(i,1461),d=Math.floor(s/365),u=400*n+100*o+4*l+d+(4!==o&&4!==d?1:0),[c,m]=Bt(u),f=t-At(c,m,1,1),p=2;t<At(c,m,3,1)?p=0:Ot(m)&&(p=1);let h=Math.floor((12*(f+p)+373)/367),g=t-At(c,m,h,1)+1;return new Ua(c,m,h,g)}toJulianDay(e){return At(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Ht[Ot(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Ot(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 Zt={"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 Kt(e,t){return t=Da(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Ut(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 _t(e,t){let a=e.calendar.toJulianDay(e),n=Math.ceil(a+1-function(e){let t=la(e);return t&&Zt[t]||0}(t))%7;return n<0&&(n+=7),n}function Yt(e){return wa(Date.now(),e)}function qt(e){return xa(Yt(e))}function Gt(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Jt(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let Xt=null;function Qt(){return null==Xt&&(Xt=(new Intl.DateTimeFormat).resolvedOptions().timeZone),Xt}function ea(e){return e.subtract({days:e.day-1})}function ta(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function aa(e){return ea(e.subtract({months:e.month-1}))}function na(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function ra(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function oa(e,t){let a=_t(e,t);return e.subtract({days:a})}const ia=new Map;function la(e){if(Intl.Locale){let t=ia.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&ia.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function sa(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function da(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const ua={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 ca(e){return ma(jt((e=Da(e,new Wt)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ma(e,t,a,n,r,o,i){let l=new Date;return l.setUTCHours(n,r,o,i),l.setUTCFullYear(e,t-1,a),l.getTime()}function fa(e,t){if("UTC"===t)return 0;if(e>0&&t===Qt())return-6e4*new Date(e).getTimezoneOffset();let{year:a,month:n,day:r,hour:o,minute:i,second:l}=ha(e,t);return ma(a,n,r,o,i,l,0)-1e3*Math.floor(e/1e3)}const pa=new Map;function ha(e,t){let a=pa.get(t);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),pa.set(t,a));let n=a.formatToParts(new Date(e)),r={};for(let e of n)"literal"!==e.type&&(r[e.type]=e.value);return{year:"BC"===r.era||"B"===r.era?1-r.year:+r.year,month:+r.month,day:+r.day,hour:"24"===r.hour?0:+r.hour,minute:+r.minute,second:+r.second}}const ga=864e5;function va(e,t,a,n){return(a===n?[a]:[a,n]).filter((a=>function(e,t,a){let n=ha(a,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}(e,t,a)))}function ba(e,t,a="compatible"){let n=Ea(e);if("UTC"===t)return ca(n);if(t===Qt()&&"compatible"===a){n=Da(n,new Wt);let e=new Date,t=jt(n.era,n.year);return e.setFullYear(t,n.month-1,n.day),e.setHours(n.hour,n.minute,n.second,n.millisecond),e.getTime()}let r=ca(n),o=fa(r-ga,t),i=fa(r+ga,t),l=va(n,t,r-o,r-i);if(1===l.length)return l[0];if(l.length>1)switch(a){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(a){case"earlier":return Math.min(r-o,r-i);case"compatible":case"later":return Math.max(r-o,r-i);case"reject":throw new RangeError("No such absolute time found")}}function ya(e,t,a="compatible"){return new Date(ba(e,t,a))}function wa(e,t){let a=fa(e,t),n=new Date(e+a),r=n.getUTCFullYear(),o=n.getUTCMonth()+1,i=n.getUTCDate(),l=n.getUTCHours(),s=n.getUTCMinutes(),d=n.getUTCSeconds(),u=n.getUTCMilliseconds();return new Ga(r,o,i,t,a,l,s,d,u)}function xa(e){return new Ua(e.calendar,e.era,e.year,e.month,e.day)}function Ea(e,t){let a=0,n=0,r=0,o=0;if("timeZone"in e)({hour:a,minute:n,second:r,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:a,minute:n,second:r,millisecond:o}=t),new Ya(e.calendar,e.era,e.year,e.month,e.day,a,n,r,o)}function Da(e,t){if(e.calendar.identifier===t.identifier)return e;let a=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=a.era,n.year=a.year,n.month=a.month,n.day=a.day,La(n),n}function $a(e,t,a){if(e instanceof Ga)return e.timeZone===t?e:function(e,t){let a=ca(e)-e.offset;return Da(wa(a,t),e.calendar)}(e,t);return wa(ba(e,t,a),t)}const Ca=36e5;function ka(e,t){let a=e.copy(),n="hour"in a?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=za(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=za(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=za(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=za(e.hour,24),t}(e)}(a,t):0;Sa(a,t.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e),a.month+=t.months||0,Ra(a),Ia(a),a.day+=7*(t.weeks||0),a.day+=t.days||0,a.day+=n,function(e){for(;e.day<1;)e.month--,Ra(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ra(e)}(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let r=a.calendar.getYearsInEra(a);if(a.year>r){var o,i;let e=null===(o=(i=a.calendar).isInverseEra)||void 0===o?void 0:o.call(i,a);a.year=r,a.month=e?1:a.calendar.getMonthsInYear(a),a.day=e?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Sa(e,t){var a,n;(null===(a=(n=e.calendar).isInverseEra)||void 0===a?void 0:a.call(n,e))&&(t=-t),e.year+=t}function Ra(e){for(;e.month<1;)Sa(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sa(e,1)}function Ia(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 La(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Ia(e)}function Na(e){let t={};for(let a in e)"number"==typeof e[a]&&(t[a]=-e[a]);return t}function Pa(e,t){return ka(e,Na(t))}function Ta(e,t){let a=e.copy();return null!=t.era&&(a.era=t.era),null!=t.year&&(a.year=t.year),null!=t.month&&(a.month=t.month),null!=t.day&&(a.day=t.day),La(a),a}function Ma(e,t){let a=e.copy();var n;return null!=t.hour&&(a.hour=t.hour),null!=t.minute&&(a.minute=t.minute),null!=t.second&&(a.second=t.second),null!=t.millisecond&&(a.millisecond=t.millisecond),(n=a).millisecond=Math.max(0,Math.min(n.millisecond,1e3)),n.second=Math.max(0,Math.min(n.second,59)),n.minute=Math.max(0,Math.min(n.minute,59)),n.hour=Math.max(0,Math.min(n.hour,23)),a}function za(e,t){let a=e%t;return a<0&&(a+=t),a}function Fa(e,t,a,n){let r=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=Aa(o,a,0,t.length-1,null==n?void 0:n.round),r.era=t[o],La(r);break}case"year":var o,i;(null===(o=(i=r.calendar).isInverseEra)||void 0===o?void 0:o.call(i,r))&&(a=-a),r.year=Aa(e.year,a,-1/0,9999,null==n?void 0:n.round),r.year===-1/0&&(r.year=1),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e);break;case"month":r.month=Aa(e.month,a,1,e.calendar.getMonthsInYear(e),null==n?void 0:n.round);break;case"day":r.day=Aa(e.day,a,1,e.calendar.getDaysInMonth(e),null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(r),La(r),r}function Va(e,t,a,n){let r=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if(12===(null==n?void 0:n.hourCycle)){let e=t>=12;o=e?12:0,i=e?23:11}r.hour=Aa(t,a,o,i,null==n?void 0:n.round);break}case"minute":r.minute=Aa(e.minute,a,0,59,null==n?void 0:n.round);break;case"second":r.second=Aa(e.second,a,0,59,null==n?void 0:n.round);break;case"millisecond":r.millisecond=Aa(e.millisecond,a,0,999,null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return r}function Aa(e,t,a,n,r=!1){if(r){(e+=Math.sign(t))<a&&(e=n);let r=Math.abs(t);(e=t>0?Math.ceil(e/r)*r:Math.floor(e/r)*r)>n&&(e=a)}else(e+=t)<a?e=n-(a-e-1):e>n&&(e=a+(e-n-1));return e}function Oa(e,t){let a;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){a=ba(ka(Ea(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else a=ca(e)-e.offset;return a+=t.milliseconds||0,a+=1e3*(t.seconds||0),a+=6e4*(t.minutes||0),a+=36e5*(t.hours||0),Da(wa(a,e.timeZone),e.calendar)}function ja(e){let t=Da(e,new Wt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ba(e){return`${ja(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 Ha(e){return`${Ba(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let a=Math.floor(e/36e5),n=e%36e5/6e4;return`${t}${String(a).padStart(2,"0")}:${String(n).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Wa(e,t,a){!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,a)}function Za(e){let t,a="object"==typeof e[0]?e.shift():new Wt;if("string"==typeof e[0])t=e.shift();else{let e=a.getEras();t=e[e.length-1]}return[a,t,e.shift(),e.shift(),e.shift()]}var Ka=new WeakMap;class Ua{copy(){return this.era?new Ua(this.calendar,this.era,this.year,this.month,this.day):new Ua(this.calendar,this.year,this.month,this.day)}add(e){return ka(this,e)}subtract(e){return Pa(this,e)}set(e){return Ta(this,e)}cycle(e,t,a){return Fa(this,e,t,a)}toDate(e){return ya(this,e)}toString(){return ja(this)}compare(e){return Gt(this,e)}constructor(...e){Wa(this,Ka,{writable:!0,value:void 0});let[t,a,n,r,o]=Za(e);this.calendar=t,this.era=a,this.year=n,this.month=r,this.day=o,La(this)}}var _a=new WeakMap;class Ya{copy(){return this.era?new Ya(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ya(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return ka(this,e)}subtract(e){return Pa(this,e)}set(e){return Ta(Ma(this,e),e)}cycle(e,t,a){switch(e){case"era":case"year":case"month":case"day":return Fa(this,e,t,a);default:return Va(this,e,t,a)}}toDate(e,t){return ya(this,e,t)}toString(){return Ba(this)}compare(e){let t=Gt(this,e);return 0===t?function(e,t){return Jt(e)-Jt(t)}(this,Ea(e)):t}constructor(...e){Wa(this,_a,{writable:!0,value:void 0});let[t,a,n,r,o]=Za(e);this.calendar=t,this.era=a,this.year=n,this.month=r,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,La(this)}}var qa=new WeakMap;class Ga{copy(){return this.era?new Ga(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ga(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Oa(this,e)}subtract(e){return function(e,t){return Oa(e,Na(t))}(this,e)}set(e,t){return function(e,t,a){let n=Ea(e),r=Ma(Ta(n,t),t);return 0===r.compare(n)?e:Da(wa(ba(r,e.timeZone,a),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,a){return function(e,t,a,n){switch(t){case"hour":{let t=0,r=23;if(12===(null==n?void 0:n.hourCycle)){let a=e.hour>=12;t=a?12:0,r=a?23:11}let o=Ea(e),i=Da(Ma(o,{hour:t}),new Wt),l=[ba(i,e.timeZone,"earlier"),ba(i,e.timeZone,"later")].filter((t=>wa(t,e.timeZone).day===i.day))[0],s=Da(Ma(o,{hour:r}),new Wt),d=[ba(s,e.timeZone,"earlier"),ba(s,e.timeZone,"later")].filter((t=>wa(t,e.timeZone).day===s.day)).pop(),u=ca(e)-e.offset,c=Math.floor(u/Ca),m=u%Ca;return u=Aa(c,a,Math.floor(l/Ca),Math.floor(d/Ca),null==n?void 0:n.round)*Ca+m,Da(wa(u,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Va(e,t,a,n);case"era":case"year":case"month":case"day":return Da(wa(ba(Fa(Ea(e),t,a,n),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,a)}toDate(){return function(e){let t=ca(e)-e.offset;return new Date(t)}(this)}toString(){return Ha(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-$a(e,this.timeZone).toDate().getTime()}constructor(...e){Wa(this,qa,{writable:!0,value:void 0});let[t,a,n,r,o]=Za(e),i=e.shift(),l=e.shift();this.calendar=t,this.era=a,this.year=n,this.month=r,this.day=o,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,La(this)}}const Ja=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Xa=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qa=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function tn(e){const t=Ja.findIndex((([t,a,n])=>e.year<t||(e.year===t&&e.month<a||e.year===t&&e.month===a&&e.day<n)));return-1===t?Ja.length-1:0===t?0:t-1}function an(e){let t=Qa[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ua(e.year+t,e.month,e.day)}class nn extends Wt{fromJulianDay(e){let t=super.fromJulianDay(e),a=tn(t);return new Ua(this,en[a],t.year-Qa[a],t.month,t.day)}toJulianDay(e){return super.toJulianDay(an(e))}balanceDate(e){let t=an(e),a=tn(t);en[a]!==e.era&&(e.era=en[a],e.year=t.year-Qa[a]),this.constrainDate(e)}constrainDate(e){let t=en.indexOf(e.era),a=Xa[t];if(null!=a){let[n,r,o]=a,i=n-Qa[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(r,e.month),e.month===r&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,a,n]=Ja[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(n,e.day))}}getEras(){return en}getYearsInEra(e){let t=en.indexOf(e.era),a=Ja[t],n=Ja[t+1];if(null==n)return 9999-a[0]+1;let r=n[0]-a[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&r++,r}getDaysInMonth(e){return super.getDaysInMonth(an(e))}getMinimumMonthInYear(e){let t=rn(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=rn(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function rn(e){if(1===e.year){let t=en.indexOf(e.era);return Ja[t]}}class on extends Wt{fromJulianDay(e){let t=super.fromJulianDay(e),a=jt(t.era,t.year);return new Ua(this,a- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(ln(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(ln(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function ln(e){let[t,a]=Bt(e.year+-543);return new Ua(t,a,e.month,e.day)}const sn=1911;function dn(e){return"minguo"===e.era?e.year+sn:1-e.year+sn}function un(e){let t=e-sn;return t>0?["minguo",t]:["before_minguo",1-t]}class cn extends Wt{fromJulianDay(e){let t=super.fromJulianDay(e),a=jt(t.era,t.year),[n,r]=un(a);return new Ua(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(mn(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,a]=un(dn(e));e.era=t,e.year=a}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(mn(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-sn}constructor(...e){super(...e),this.identifier="roc"}}function mn(e){let[t,a]=Bt(dn(e));return new Ua(t,a,e.month,e.day)}const fn=1948320,pn=[0,31,62,93,124,155,186,216,246,276,306,336];class hn{fromJulianDay(e){let t=e-fn,a=1+Math.floor((33*t+3)/12053),n=t-(365*(a-1)+Math.floor((8*a+21)/33)),r=n<216?Math.floor(n/31):Math.floor((n-6)/30);return new Ua(this,a,r+1,n-pn[r]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=pn[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 Ft(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class gn extends Wt{fromJulianDay(e){let t,a,n,r=super.fromJulianDay(e),o=r.year-78,i=e-At(r.era,r.year,1,1);if(i<80?(o--,t=Ot(r.year-1)?31:30,i+=t+155+90+10):(t=Ot(r.year)?31:30,i-=80),i<t)a=1,n=i+1;else{let e=i-t;e<155?(a=Math.floor(e/31)+2,n=e%31+1):(e-=155,a=Math.floor(e/30)+7,n=e%30+1)}return new Ua(this,o,a,n)}toJulianDay(e){let t,a,n=e.year+78,[r,o]=Bt(n);return Ot(o)?(t=31,a=At(r,o,3,21)):(t=30,a=At(r,o,3,22)),1===e.month?a+e.day-1:(a+=t+31*Math.min(e.month-2,5),e.month>=8&&(a+=30*(e.month-7)),a+=e.day-1,a)}getDaysInMonth(e){return 1===e.month&&Ot(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 vn=1948440,bn=1948439,yn=1300,wn=1600,xn=460322;function En(e,t,a,n){return n+Math.ceil(29.5*(a-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function Dn(e,t,a){let n=Math.floor((30*(a-t)+10646)/10631),r=Math.min(12,Math.ceil((a-(29+En(t,n,1,1)))/29.5)+1),o=a-En(t,n,r,1)+1;return new Ua(e,n,r,o)}function $n(e){return(14+11*e)%30<11}class Cn{fromJulianDay(e){return Dn(this,vn,e)}toJulianDay(e){return En(vn,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&$n(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return $n(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class kn extends Cn{fromJulianDay(e){return Dn(this,bn,e)}toJulianDay(e){return En(bn,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Sn,Rn;function In(e){return xn+Rn[e-yn]}function Ln(e,t){let a=1<<11-(t-1);return 0==(Sn[e-yn]&a)?29:30}function Nn(e,t){let a=In(e);for(let n=1;n<t;n++)a+=Ln(e,n);return a}function Pn(e){return Rn[e+1-yn]-Rn[e-yn]}class Tn extends Cn{fromJulianDay(e){let t=e-vn,a=In(yn),n=In(wn);if(t<a||t>n)return super.fromJulianDay(e);{let e=yn-1,a=1,n=1;for(;n>0;){e++,n=t-In(e)+1;let r=Pn(e);if(n===r){a=12;break}if(n<r){let t=Ln(e,a);for(a=1;n>t;)n-=t,a++,t=Ln(e,a);break}}return new Ua(this,e,a,t-Nn(e,a)+1)}}toJulianDay(e){return e.year<yn||e.year>wn?super.toJulianDay(e):vn+Nn(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<yn||e.year>wn?super.getDaysInMonth(e):Ln(e.year,e.month)}getDaysInYear(e){return e.year<yn||e.year>wn?super.getDaysInYear(e):Pn(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Sn||(Sn=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Rn){Rn=new Uint32Array(wn-yn+1);let e=0;for(let t=yn;t<=wn;t++){Rn[t-yn]=e;for(let a=1;a<=12;a++)e+=Ln(t,a)}}}}const Mn=347997;function zn(e){return Ft(7*e+1,19)<7}function Fn(e){let t=Math.floor((235*e-234)/19),a=12084+13753*t,n=29*t+Math.floor(a/25920);return Ft(3*(n+1),7)<3&&(n+=1),n}function Vn(e){return Fn(e)+function(e){let t=Fn(e-1),a=Fn(e);return Fn(e+1)-a==356?2:a-t==382?1:0}(e)}function An(e){return Vn(e+1)-Vn(e)}function On(e,t){if(t>=6&&!zn(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let a=function(e){let t=An(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===a?30:29:3===t?0===a?29:30:6===t?zn(e)?30:0:30}class jn{fromJulianDay(e){let t=e-Mn,a=25920*t/765433,n=Math.floor((19*a+234)/235)+1,r=Vn(n),o=Math.floor(t-r);for(;o<1;)n--,r=Vn(n),o=Math.floor(t-r);let i=1,l=0;for(;l<o;)l+=On(n,i),i++;return i--,l-=On(n,i),new Ua(this,n,i,o-l)}toJulianDay(e){let t=Vn(e.year);for(let a=1;a<e.month;a++)t+=On(e.year,a);return t+e.day+Mn}getDaysInMonth(e){return On(e.year,e.month)}getMonthsInYear(e){return zn(e.year)?13:12}getDaysInYear(e){return An(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(zn(t.year)&&!zn(e.year)&&t.month>6?e.month--:!zn(t.year)&&zn(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Bn=1723856,Hn=1824665,Wn=5500;function Zn(e,t,a,n){return e+365*t+Math.floor(t/4)+30*(a-1)+n-1}function Kn(e,t){let a=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-Zn(e,a,1,1))/30);return[a,n,t+1-Zn(e,a,n,1)]}function Un(e){return Math.floor(e%4/3)}function _n(e,t){return t%13!=0?30:Un(e)+5}class Yn{fromJulianDay(e){let[t,a,n]=Kn(Bn,e),r="AM";return t<=0&&(r="AA",t+=Wn),new Ua(this,r,t,a,n)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Wn),Zn(Bn,t,e.month,e.day)}getDaysInMonth(e){return _n(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Un(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class qn extends Yn{fromJulianDay(e){let[t,a,n]=Kn(Bn,e);return t+=Wn,new Ua(this,"AA",t,a,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Gn extends Yn{fromJulianDay(e){let[t,a,n]=Kn(Hn,e),r="CE";return t<=0&&(r="BCE",t=1-t),new Ua(this,r,t,a,n)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Zn(Hn,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_n(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 Jn(e){switch(e){case"buddhist":return new on;case"ethiopic":return new Yn;case"ethioaa":return new qn;case"coptic":return new Gn;case"hebrew":return new jn;case"indian":return new gn;case"islamic-civil":return new Cn;case"islamic-tbla":return new kn;case"islamic-umalqura":return new Tn;case"japanese":return new nn;case"persian":return new hn;case"roc":return new cn;default:return new Wt}}let Xn=new Map;class Qn{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 a=this.formatter.formatToParts(e),n=this.formatter.formatToParts(t);return[...a.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...n.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==nr&&(nr="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return nr}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let a=tr(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),n=parseInt(a.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),r=parseInt(a.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===n&&23===r)return"h23";if(24===n&&23===r)return"h24";if(0===n&&11===r)return"h11";if(12===n&&11===r)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=tr(e,t),this.options=t}}const er={true:{ja:"h11"},false:{}};function tr(e,t={}){if("boolean"==typeof t.hour12&&function(){null==ar&&(ar="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return ar}()){t={...t};let a=er[String(t.hour12)][e.split("-")[0]],n=t.hour12?"h12":"h23";t.hourCycle=null!=a?a:n,delete t.hour12}let a=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Xn.has(a))return Xn.get(a);let n=new Intl.DateTimeFormat(e,t);return Xn.set(a,n),n}let ar=null;let nr=null;e.createContext(null),e.createContext(null),e.createContext(null),e.createContext(null),e.createContext(null);const rr=e.createContext({}),or="undefined"!=typeof document?c.default.useLayoutEffect:()=>{};function ir(t){const a=e.useRef(null);return or((()=>{a.current=t}),[t]),e.useCallback(((...e)=>{const t=a.current;return null==t?void 0:t(...e)}),[])}const lr={prefix:String(Math.round(1e10*Math.random())),current:0},sr=c.default.createContext(lr),dr=c.default.createContext(!1);let ur=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),cr=new WeakMap;const mr="function"==typeof c.default.useId?function(t){let a=c.default.useId(),[n]=e.useState(gr()),r=n||"test"===process.env.NODE_ENV?"react-aria":`react-aria${lr.prefix}`;return t||`${r}-${a}`}:function(t){let a=e.useContext(sr);a!==lr||ur||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 n=function(t=!1){let a=e.useContext(sr),n=e.useRef(null);if(null===n.current&&!t){var r,o;let e=null===(o=c.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(r=o.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let t=cr.get(e);null==t?cr.set(e,{id:a.current,state:e.memoizedState}):e.memoizedState!==t.state&&(a.current=t.id,cr.delete(e))}n.current=++a.current}return n.current}(!!t),r=a===lr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${a.prefix}`;return t||`${r}-${n}`};function fr(){return!1}function pr(){return!0}function hr(e){return()=>{}}function gr(){return"function"==typeof c.default.useSyncExternalStore?c.default.useSyncExternalStore(hr,fr,pr):e.useContext(dr)}let vr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),br=new Map;function yr(t){let[a,n]=e.useState(t),r=e.useRef(null),o=mr(a),i=e.useCallback((e=>{r.current=e}),[]);return vr&&br.set(o,i),or((()=>{let e=o;return()=>{br.delete(e)}}),[o]),e.useEffect((()=>{let e=r.current;e&&(r.current=null,n(e))})),o}function wr(e,t){if(e===t)return e;let a=br.get(e);if(a)return a(t),t;let n=br.get(t);return n?(n(e),e):t}function xr(t=[]){let a=yr(),[n,r]=function(t){let[a,n]=e.useState(t),r=e.useRef(null),o=ir((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:a===e.value?o():n(e.value)}));or((()=>{r.current&&o()}));let i=ir((e=>{r.current=e(a),o()}));return[a,i]}(a),o=e.useCallback((()=>{r((function*(){yield a,yield document.getElementById(a)?a:void 0}))}),[a,r]);return or(o,[a,o,...t]),n}function Er(...e){return(...t)=>{for(let a of e)"function"==typeof a&&a(...t)}}const Dr=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},$r=e=>{if(e&&"window"in e&&e.window===e)return e;return Dr(e).defaultView||window};function Cr(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=Cr(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function kr(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=Cr(e))&&(n&&(n+=" "),n+=t);return n}function Sr(...e){let t={...e[0]};for(let a=1;a<e.length;a++){let n=e[a];for(let e in n){let a=t[e],r=n[e];"function"==typeof a&&"function"==typeof r&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Er(a,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof a||"string"!=typeof r?"id"===e&&a&&r?t.id=wr(a,r):t[e]=void 0!==r?r:a:t[e]=kr(a,r)}}return t}const Rr=new Set(["id"]),Ir=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Lr=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Nr=/^(data-.*)$/;function Pr(e,t={}){let{labelable:a,isLink:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Rr.has(t)||a&&Ir.has(t)||n&&Lr.has(t)||(null==r?void 0:r.has(t))||Nr.test(t))&&(o[t]=e[t]);return o}function Tr(e){if(function(){if(null==Mr){Mr=!1;try{document.createElement("div").focus({get preventScroll(){return Mr=!0,!0}})}catch(e){}}return Mr}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,a=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;n instanceof HTMLElement&&a.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft});return a}(e);e.focus(),function(e){for(let{element:t,scrollTop:a,scrollLeft:n}of e)t.scrollTop=a,t.scrollLeft=n}(t)}}let Mr=null;function zr(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 Fr(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 Vr(){return Fr(/^Mac/i)}function Ar(){return Fr(/^iPad/i)||Vr()&&navigator.maxTouchPoints>1}function Or(){return Fr(/^iPhone/i)||Ar()}function jr(){return zr(/AppleWebKit/i)&&!zr(/Chrome/i)}function Br(){return zr(/Android/i)}function Hr(e,t,a=!0){var n,r;let{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}=t;zr(/Firefox/i)&&(null===(r=window.event)||void 0===r||null===(n=r.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&(Vr()?o=!0:i=!0);let d=jr()&&Vr()&&!Ar()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Hr.isOpening=a,Tr(e),e.dispatchEvent(d),Hr.isOpening=!1}Hr.isOpening=!1;let Wr=new Map,Zr=new Set;function Kr(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=a=>{if(!e(a)||!a.target)return;let n=Wr.get(a.target);if(n&&(n.delete(a.propertyName),0===n.size&&(a.target.removeEventListener("transitioncancel",t),Wr.delete(a.target)),0===Wr.size)){for(let e of Zr)e();Zr.clear()}};document.body.addEventListener("transitionrun",(a=>{if(!e(a)||!a.target)return;let n=Wr.get(a.target);n||(n=new Set,Wr.set(a.target,n),a.target.addEventListener("transitioncancel",t,{once:!0})),n.add(a.propertyName)})),document.body.addEventListener("transitionend",t)}function Ur(e){requestAnimationFrame((()=>{0===Wr.size?e():Zr.add(e)}))}function _r(){let t=e.useRef(new Map),a=e.useCallback(((e,a,n,r)=>{let o=(null==r?void 0:r.once)?(...e)=>{t.current.delete(n),n(...e)}:n;t.current.set(n,{type:a,eventTarget:e,fn:o,options:r}),e.addEventListener(a,n,r)}),[]),n=e.useCallback(((e,a,n,r)=>{var o;let i=(null===(o=t.current.get(n))||void 0===o?void 0:o.fn)||n;e.removeEventListener(a,i,r),t.current.delete(n)}),[]),r=e.useCallback((()=>{t.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return e.useEffect((()=>r),[r]),{addGlobalListener:a,removeGlobalListener:n,removeAllGlobalListeners:r}}function Yr(e,t){let{id:a,"aria-label":n,"aria-labelledby":r}=e;if(a=yr(a),r&&n){let e=new Set([a,...r.trim().split(/\s+/)]);r=[...e].join(" ")}else r&&(r=r.trim().split(/\s+/).join(" "));return n||r||!t||(n=t),{id:a,"aria-label":n,"aria-labelledby":r}}function qr(t){const a=e.useRef(null);return e.useMemo((()=>({get current(){return a.current},set current(e){a.current=e,"function"==typeof t?t(e):t&&(t.current=e)}})),[t])}function Gr(t,a){const n=e.useRef(!0),r=e.useRef(null);e.useEffect((()=>(n.current=!0,()=>{n.current=!1})),[]),e.useEffect((()=>{n.current?n.current=!1:r.current&&!a.some(((e,t)=>!Object.is(e,r[t])))||t(),r.current=a}),a)}function Jr(e,t){or((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Xr(e,t){let a=window.getComputedStyle(e),n=/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Qr(e,t){let a=e;for(Xr(a,t)&&(a=a.parentElement);a&&!Xr(a,t);)a=a.parentElement;return a||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?Kr():document.addEventListener("DOMContentLoaded",Kr));let eo=0;const to=new Map;function ao(t){let[a,n]=e.useState();return or((()=>{if(!t)return;let e=to.get(t);if(e)n(e.element.id);else{let a="react-aria-description-"+eo++;n(a);let r=document.createElement("div");r.id=a,r.style.display="none",r.textContent=t,document.body.appendChild(r),e={refCount:0,element:r},to.set(t,e)}return e.refCount++,()=>{e&&0==--e.refCount&&(e.element.remove(),to.delete(t))}}),[t]),{"aria-describedby":t?a:void 0}}function no(t,a,n,r){let o=ir(n),i=null==n;e.useEffect((()=>{if(i||!t.current)return;let e=t.current;return e.addEventListener(a,o,r),()=>{e.removeEventListener(a,o,r)}}),[t,a,r,i,o])}function ro(e,t){let a=oo(e,t,"left"),n=oo(e,t,"top"),r=t.offsetWidth,o=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d}=getComputedStyle(e),u=e.scrollLeft+parseInt(d,10),c=e.scrollTop+parseInt(s,10),m=u+e.clientWidth,f=c+e.clientHeight;a<=i?i=a-parseInt(d,10):a+r>m&&(i+=a+r-m),n<=c?l=n-parseInt(s,10):n+o>f&&(l+=n+o-f),e.scrollLeft=i,e.scrollTop=l}function oo(e,t,a){const n="left"===a?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[n];break}t=t.offsetParent}return r}function io(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow){let t=function(e,t){const a=[];for(;e&&e!==document.documentElement;)Xr(e,t)&&a.push(e),e=e.parentElement;return a}(e);for(let a of t)ro(a,e)}else{var a;let{left:i,top:l}=e.getBoundingClientRect();null==e||null===(a=e.scrollIntoView)||void 0===a||a.call(e,{block:"nearest"});let{left:s,top:d}=e.getBoundingClientRect();var n,r,o;if(Math.abs(i-s)>1||Math.abs(l-d)>1)null==t||null===(r=t.containingElement)||void 0===r||null===(n=r.scrollIntoView)||void 0===n||n.call(r,{block:"center",inline:"center"}),null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"})}}}function lo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Br()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function so(t,a){let n=e.useRef(null);return t&&n.current&&a(t,n.current)&&(t=n.current),n.current=t,t}function uo(t,a,n){let[r,o]=e.useState(t||a),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:r,d=e.useCallback(((e,...t)=>{let a=(e,...t)=>{n&&(Object.is(s,e)||n(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"),o(((n,...r)=>{let o=e(l?s:n,...r);return a(o,...t),l?n:o}))}else l||o(e),a(e,...t)}),[l,s,n]);return[s,d]}let co="default",mo="",fo=new WeakMap;function po(e){if(Or()){if("default"===co){const t=Dr(e);mo=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}co="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(fo.set(e,e.style.userSelect),e.style.userSelect="none")}function ho(e){if(Or()){if("disabled"!==co)return;co="restoring",setTimeout((()=>{Ur((()=>{if("restoring"===co){const t=Dr(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=mo||""),mo="",co="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fo.has(e)){let t=fo.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),fo.delete(e)}}const go=c.default.createContext({register:()=>{}});function vo(e,t,a){if(!t.has(e))throw new TypeError("attempted to "+a+" private field on non-instance");return t.get(e)}function bo(e,t,a){return function(e,t,a){if(t.set)t.set.call(e,a);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=a}}(e,vo(e,t,"set"),a),a}go.displayName="PressResponderContext";var yo=new WeakMap;class wo{continuePropagation(){bo(this,yo,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,vo(e,yo,"get"));var e}constructor(e,t,a){Wa(this,yo,{writable:!0,value:void 0}),bo(this,yo,!0),this.type=e,this.pointerType=t,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey}}const xo=Symbol("linkClicked");function Eo(t){let{onPress:a,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:m,...f}=function(t){let a=e.useContext(go);if(a){let{register:e,...n}=a;t=Sr(n,t),e()}return Jr(a,t.ref),t}(t),[p,h]=e.useState(!1),g=e.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:b}=_r(),y=ir(((e,t)=>{let a=g.current;if(l||a.didFirePressStart)return!1;let o=!0;if(a.isTriggeringEvent=!0,r){let a=new wo("pressstart",t,e);r(a),o=a.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),o})),w=ir(((e,t,r=!0)=>{let i=g.current;if(!i.didFirePressStart)return!1;i.ignoreClickAfterPress=!0,i.didFirePressStart=!1,i.isTriggeringEvent=!0;let s=!0;if(o){let a=new wo("pressend",t,e);o(a),s=a.shouldStopPropagation}if(n&&n(!1),h(!1),a&&r&&!l){let n=new wo("press",t,e);a(n),s&&(s=n.shouldStopPropagation)}return i.isTriggeringEvent=!1,s})),x=ir(((e,t)=>{let a=g.current;if(l)return!1;if(i){a.isTriggeringEvent=!0;let n=new wo("pressup",t,e);return i(n),a.isTriggeringEvent=!1,n.shouldStopPropagation}return!0})),E=ir((e=>{let t=g.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&w(ko(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),c||ho(t.target))})),D=ir((e=>{u&&E(e)})),$=e.useMemo((()=>{let e=g.current,t={onKeyDown(t){if($o(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var n;Io(t.target,t.key)&&t.preventDefault();let r=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,r=y(t,"keyboard");let n=t.currentTarget,o=t=>{$o(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&x(ko(e.target,t),"keyboard")};v(Dr(t.currentTarget),"keyup",Er(o,a),!0)}r&&t.stopPropagation(),t.metaKey&&Vr()&&(null===(n=e.metaKeyEvents)||void 0===n||n.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&&!Hr.isOpening){let a=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||lo(t.nativeEvent))){l||d||Tr(t.currentTarget);let e=y(t,"virtual"),n=x(t,"virtual"),r=w(t,"virtual");a=e&&n&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,a&&t.stopPropagation()}}},a=t=>{var a;if(e.isPressed&&e.target&&$o(t,e.target)){var n;Io(t.target,t.key)&&t.preventDefault();let a=t.target;w(ko(e.target,t),"keyboard",e.target.contains(a)),b(),"Enter"!==t.key&&Do(e.target)&&e.target.contains(a)&&!t[xo]&&(t[xo]=!0,Hr(e.target,t,!1)),e.isPressed=!1,null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(a=e.metaKeyEvents)||void 0===a?void 0:a.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let a of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",a))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(o=t.nativeEvent,!Br()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType)return void(e.pointerType="virtual");var o;Ro(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||Tr(t.currentTarget),c||po(e.target),i=y(t,e.pointerType),v(Dr(t.currentTarget),"pointermove",a,!1),v(Dr(t.currentTarget),"pointerup",n,!1),v(Dr(t.currentTarget),"pointercancel",r,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ro(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&So(t,t.currentTarget)&&x(t,e.pointerType||t.pointerType)};let a=t=>{t.pointerId===e.activePointerId&&(e.target&&So(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,y(ko(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,w(ko(e.target,t),e.pointerType,!1),D(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(So(t,e.target)&&null!=e.pointerType?w(ko(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&w(ko(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),c||ho(e.target))},r=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(Ro(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=lo(t.nativeEvent)?"virtual":"mouse",l||d||Tr(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),v(Dr(t.currentTarget),"mouseup",a,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let a=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,a=y(t,e.pointerType)),a&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let a=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,a=w(t,e.pointerType,!1),D(t)),a&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||x(t,e.pointerType||"mouse"))};let a=t=>{0===t.button&&(e.isPressed=!1,b(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&So(t,e.target)&&null!=e.pointerType?w(ko(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&w(ko(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let a=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);a&&(e.activePointerId=a.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||d||Tr(t.currentTarget),c||po(e.target),y(t,e.pointerType)&&t.stopPropagation(),v($r(t.currentTarget),"scroll",n,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let a=Co(t.nativeEvent,e.activePointerId),n=!0;a&&So(a,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=y(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=w(t,e.pointerType,!1),D(t)),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let a=Co(t.nativeEvent,e.activePointerId),n=!0;a&&So(a,t.currentTarget)&&null!=e.pointerType?(x(t,e.pointerType),n=w(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=w(t,e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!c&&ho(e.target),b()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(t))};let n=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}),[v,l,d,b,c,E,D,w,y,x]);return e.useEffect((()=>()=>{var e;c||ho(null!==(e=g.current.target)&&void 0!==e?e:void 0)}),[c]),{isPressed:s||p,pressProps:Sr(f,$)}}function Do(e){return"A"===e.tagName&&e.hasAttribute("href")}function $o(e,t){const{key:a,code:n}=e,r=t,o=r.getAttribute("role");return!("Enter"!==a&&" "!==a&&"Spacebar"!==a&&"Space"!==n||r instanceof $r(r).HTMLInputElement&&!No(r,a)||r instanceof $r(r).HTMLTextAreaElement||r.isContentEditable||("link"===o||!o&&Do(r))&&"Enter"!==a)}function Co(e,t){const a=e.changedTouches;for(let e=0;e<a.length;e++){const n=a[e];if(n.identifier===t)return n}return null}function ko(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function So(e,t){let a=t.getBoundingClientRect(),n=function(e){let t=0,a=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?a=e.height/2:void 0!==e.radiusY&&(a=e.radiusY),{top:e.clientY-a,right:e.clientX+t,bottom:e.clientY+a,left:e.clientX-t}}(e);return o=n,!((r=a).left>o.right||o.left>r.right||r.top>o.bottom||o.top>r.bottom);var r,o}function Ro(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function Io(e,t){return e instanceof HTMLInputElement?!No(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!Do(e)}const Lo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function No(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Lo.has(e.type)}class Po{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 To(t){let a=e.useRef({isFocused:!1,observer:null});or((()=>{const e=a.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=ir((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){a.current.isFocused=!0;let t=e.target,r=e=>{a.current.isFocused=!1,t.disabled&&n(new Po("blur",e)),a.current.observer&&(a.current.observer.disconnect(),a.current.observer=null)};t.addEventListener("focusout",r,{once:!0}),a.current.observer=new MutationObserver((()=>{if(a.current.isFocused&&t.disabled){var e;null===(e=a.current.observer)||void 0===e||e.disconnect();let n=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),a.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function Mo(t){let{isDisabled:a,onFocus:n,onBlur:r,onFocusChange:o}=t;const i=e.useCallback((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),l=To(i),s=e.useCallback((e=>{const t=Dr(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),l(e))}),[o,n,l]);return{focusProps:{onFocus:!a&&(n||o||r)?s:void 0,onBlur:a||!r&&!o?void 0:i}}}let zo=null,Fo=new Set,Vo=new Map,Ao=!1,Oo=!1;const jo={Tab:!0,Escape:!0};function Bo(e,t){for(let a of Fo)a(e,t)}function Ho(e){Ao=!0,function(e){return!(e.metaKey||!Vr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(zo="keyboard",Bo("keyboard",e))}function Wo(e){zo="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ao=!0,Bo("pointer",e))}function Zo(e){lo(e)&&(Ao=!0,zo="virtual")}function Ko(e){e.target!==window&&e.target!==document&&(Ao||Oo||(zo="virtual",Bo("virtual",e)),Ao=!1,Oo=!1)}function Uo(){Ao=!1,Oo=!0}function _o(e){if("undefined"==typeof window||Vo.get($r(e)))return;const t=$r(e),a=Dr(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ao=!0,n.apply(this,arguments)},a.addEventListener("keydown",Ho,!0),a.addEventListener("keyup",Ho,!0),a.addEventListener("click",Zo,!0),t.addEventListener("focus",Ko,!0),t.addEventListener("blur",Uo,!1),"undefined"!=typeof PointerEvent?(a.addEventListener("pointerdown",Wo,!0),a.addEventListener("pointermove",Wo,!0),a.addEventListener("pointerup",Wo,!0)):(a.addEventListener("mousedown",Wo,!0),a.addEventListener("mousemove",Wo,!0),a.addEventListener("mouseup",Wo,!0)),t.addEventListener("beforeunload",(()=>{Yo(e)}),{once:!0}),Vo.set(t,{focus:n})}const Yo=(e,t)=>{const a=$r(e),n=Dr(e);t&&n.removeEventListener("DOMContentLoaded",t),Vo.has(a)&&(a.HTMLElement.prototype.focus=Vo.get(a).focus,n.removeEventListener("keydown",Ho,!0),n.removeEventListener("keyup",Ho,!0),n.removeEventListener("click",Zo,!0),a.removeEventListener("focus",Ko,!0),a.removeEventListener("blur",Uo,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",Wo,!0),n.removeEventListener("pointermove",Wo,!0),n.removeEventListener("pointerup",Wo,!0)):(n.removeEventListener("mousedown",Wo,!0),n.removeEventListener("mousemove",Wo,!0),n.removeEventListener("mouseup",Wo,!0)),Vo.delete(a))};function qo(){return"pointer"!==zo}function Go(){return zo}"undefined"!=typeof document&&function(e){const t=Dr(e);let a;"loading"!==t.readyState?_o(e):(a=()=>{_o(e)},t.addEventListener("DOMContentLoaded",a))}();const Jo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xo(t,a,n){_o(),e.useEffect((()=>{let e=(e,a)=>{(function(e,t,a){var n;const r="undefined"!=typeof window?$r(null==a?void 0:a.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?$r(null==a?void 0:a.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?$r(null==a?void 0:a.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?$r(null==a?void 0:a.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==a?void 0:a.target)instanceof r&&!Jo.has(null==a||null===(n=a.target)||void 0===n?void 0:n.type)||(null==a?void 0:a.target)instanceof o||(null==a?void 0:a.target)instanceof i&&(null==a?void 0:a.target.isContentEditable))&&"keyboard"===t&&a instanceof l&&!jo[a.key])})(!!(null==n?void 0:n.isTextInput),e,a)&&t(qo())};return Fo.add(e),()=>{Fo.delete(e)}}),a)}function Qo(t){let{isDisabled:a,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,i=e.useRef({isFocusWithin:!1}),l=e.useCallback((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=To(l),d=e.useCallback((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}let ei=!1,ti=0;function ai(){ei=!0,setTimeout((()=>{ei=!1}),50)}function ni(e){"touch"===e.pointerType&&ai()}function ri(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ni):document.addEventListener("touchend",ai),ti++,()=>{ti--,ti>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ni):document.removeEventListener("touchend",ai))}}function oi(t){let{onHoverStart:a,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[i,l]=e.useState(!1),s=e.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;e.useEffect(ri,[]);let{hoverProps:d,triggerHoverEnd:u}=e.useMemo((()=>{let e=(e,t)=>{if(s.pointerType=t,o||"touch"===t||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let r=e.currentTarget;s.target=r,a&&a({type:"hoverstart",target:r,pointerType:t}),n&&n(!0),l(!0)},t=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let a=e.currentTarget;r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),l(!1)},i={};return"undefined"!=typeof PointerEvent?(i.onPointerEnter=t=>{ei&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(i.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},i.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||ei||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},i.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:i,triggerHoverEnd:t}}),[a,n,r,o,s]);return e.useEffect((()=>{o&&u({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:d,isHovered:i}}function ii(e){if(!e)return;let t=!0;return a=>{let n={...a,preventDefault(){a.preventDefault()},isDefaultPrevented:()=>a.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(n),t&&a.stopPropagation()}}function li(e){const t=Dr(e);if("virtual"===Go()){let a=t.activeElement;Ur((()=>{t.activeElement===a&&e.isConnected&&Tr(e)}))}else Tr(e)}function si(e,t){return"#comment"!==e.nodeName&&function(e){const t=$r(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:a,visibility:n}=e.style,r="none"!==a&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:a,visibility:n}=t(e);r="none"!==a&&"hidden"!==n&&"collapse"!==n}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||si(e.parentElement,e))}const di=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ui=di.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";di.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ci=di.join(':not([hidden]):not([tabindex="-1"]),');function mi(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function fi(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{li(e)}catch(e){}}function pi(e,t,a){let n=(null==t?void 0:t.tabbable)?ci:ui,r=Dr(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(n)||!si(e)||a&&!mi(e,a)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}function hi(e,t={}){return{focusNext(a={}){let n=e.current;if(!n)return null;let{from:r,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=a,s=r||Dr(n).activeElement,d=pi(n,{tabbable:o,accept:l});n.contains(s)&&(d.currentNode=s);let u=d.nextNode();return!u&&i&&(d.currentNode=n,u=d.nextNode()),u&&fi(u,!0),u},focusPrevious(a=t){let n=e.current;if(!n)return null;let{from:r,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=a,s=r||Dr(n).activeElement,d=pi(n,{tabbable:o,accept:l});if(!n.contains(s)){let e=gi(d);return e&&fi(e,!0),null!=e?e:null}d.currentNode=s;let u=d.previousNode();if(!u&&i){d.currentNode=n;let e=gi(d);if(!e)return null;u=e}return u&&fi(u,!0),null!=u?u:null},focusFirst(a=t){let n=e.current;if(!n)return null;let{tabbable:r=t.tabbable,accept:o=t.accept}=a,i=pi(n,{tabbable:r,accept:o}).nextNode();return i&&fi(i,!0),i},focusLast(a=t){let n=e.current;if(!n)return null;let{tabbable:r=t.tabbable,accept:o=t.accept}=a,i=gi(pi(n,{tabbable:r,accept:o}));return i&&fi(i,!0),null!=i?i:null}}}function gi(e){let t,a;do{a=e.lastChild(),a&&(t=a)}while(a);return t}class vi{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,a){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let r=new bi({scopeRef:e});n.addChild(r),r.parent=n,this.fastMap.set(e,r),a&&(r.nodeToRestore=a)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let a=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&mi(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;a&&(a.removeChild(t),n.size>0&&n.forEach((e=>a&&a.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new vi;var a;for(let n of this.traverse())t.addTreeNode(n.scopeRef,null!==(a=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==a?a:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new bi({scopeRef:null}),this.fastMap.set(null,this.root)}}class bi{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function yi(t={}){let{autoFocus:a=!1,isTextInput:n,within:r}=t,o=e.useRef({isFocused:!1,isFocusVisible:a||qo()}),[i,l]=e.useState(!1),[s,d]=e.useState((()=>o.current.isFocused&&o.current.isFocusVisible)),u=e.useCallback((()=>d(o.current.isFocused&&o.current.isFocusVisible)),[]),c=e.useCallback((e=>{o.current.isFocused=e,l(e),u()}),[u]);Xo((e=>{o.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:m}=Mo({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Qo({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?f:m}}new vi;let wi=c.default.createContext(null);function xi(t,a){let{focusProps:n}=Mo(t),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ii(e.onKeyDown),onKeyUp:ii(e.onKeyUp)}}}(t),o=Sr(n,r),i=function(t){let a=e.useContext(wi)||{};Jr(a,t);let{ref:n,...r}=a;return r}(a),l=t.isDisabled?{}:i,s=e.useRef(t.autoFocus);return e.useEffect((()=>{s.current&&a.current&&li(a.current),s.current=!1}),[a]),{focusableProps:Sr({...o,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},l)}}const Ei=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Di=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),a="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(a)return"rtl"===a.direction;if(t.script)return Ei.has(t.script)}let t=e.split("-")[0];return Di.has(t)}const Ci=Symbol.for("react-aria.i18n.locale");function ki(){let e="undefined"!=typeof window&&window[Ci]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:$i(e)?"rtl":"ltr"}}let Si=ki(),Ri=new Set;function Ii(){Si=ki();for(let e of Ri)e(Si)}const Li=c.default.createContext(null);function Ni(){let t=function(){let t=gr(),[a,n]=e.useState(Si);return e.useEffect((()=>(0===Ri.size&&window.addEventListener("languagechange",Ii),Ri.add(n),()=>{Ri.delete(n),0===Ri.size&&window.removeEventListener("languagechange",Ii)})),[]),t?{locale:"en-US",direction:"ltr"}:a}();return e.useContext(Li)||t}const Pi=Symbol.for("react-aria.i18n.locale"),Ti=Symbol.for("react-aria.i18n.strings");let Mi;class zi{getStringForLocale(e,t){let a=this.getStringsForLocale(t)[e];if(!a)throw new Error(`Could not find intl message ${e} in ${t} locale`);return a}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,a="en-US"){if(t[e])return t[e];let n=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[a]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Pi];if(void 0===Mi){let e=window[Ti];if(!e)return null;Mi={};for(let a in e)Mi[a]=new zi({[t]:e[a]},t)}let a=null==Mi?void 0:Mi[e];if(!a)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Fi=new Map,Vi=new Map;class Ai{format(e,t){let a=this.strings.getStringForLocale(e,this.locale);return"function"==typeof a?a(t,this):a}plural(e,t,a="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let r=this.locale+":"+a,o=Fi.get(r);return o||(o=new Intl.PluralRules(this.locale,{type:a}),Fi.set(r,o)),n=t[o.select(e)]||t.other,"function"==typeof n?n():n}number(e){let t=Vi.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Vi.set(this.locale,t)),t.format(e)}select(e,t){let a=e[t]||e.other;return"function"==typeof a?a():a}constructor(e,t){this.locale=e,this.strings=t}}const Oi=new WeakMap;function ji(e,t){return t&&zi.getGlobalDictionaryForPackage(t)||function(e){let t=Oi.get(e);return t||(t=new zi(e),Oi.set(e,t)),t}(e)}function Bi(t,a){let{locale:n}=Ni(),r=ji(t,a);return e.useMemo((()=>new Ai(n,r)),[n,r])}function Hi(t){t=so(null!=t?t:{},Wi);let{locale:a}=Ni();return e.useMemo((()=>new Qn(a,t)),[a,t])}function Wi(e,t){if(e===t)return!0;let a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let n of a)if(t[n]!==e[n])return!1;return!0}let Zi=new Map,Ki=!1;try{Ki="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let Ui=!1;try{Ui="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const _i={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Yi{format(e){let t="";if(t=Ki||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,a){if("auto"===t)return e.format(a);if("never"===t)return e.format(Math.abs(a));{let n=!1;if("always"===t?n=a>0||Object.is(a,0):"exceptZero"===t&&(Object.is(a,-0)||Object.is(a,0)?a=Math.abs(a):n=a>0),n){let t=e.format(-a),n=e.format(a),r=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...r].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(r,"+").replace("!!!",n)}return e.format(a)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Ui){var a;let{unit:e,unitDisplay:n="short",locale:r}=this.resolvedOptions();if(!e)return t;let o=null===(a=_i[e])||void 0===a?void 0:a[n];t+=o[r]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let a=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...a.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...n.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Ki||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Ui||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:a}=t;a&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${a}`);if("unit"===t.style&&!Ui){var n;let{unit:e,unitDisplay:a="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(n=_i[e])||void 0===n?void 0:n[a]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Zi.has(r))return Zi.get(r);let o=new Intl.NumberFormat(e,t);return Zi.set(r,o),o}(e,t),this.options=t}}const qi=new RegExp("^.*\\(.*\\).*$"),Gi=["latn","arab","hanidec"];class Ji{parse(e){return Qi(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,a){return Qi(this.locale,this.options,e).isValidPartialNumber(e,t,a)}getNumberingSystem(e){return Qi(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const Xi=new Map;function Qi(e,t,a){let n=el(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(a))for(let r of Gi)if(r!==n.options.numberingSystem){let n=el(e+(e.includes("-u-")?"-nu-":"-u-nu-")+r,t);if(n.isValidPartialNumber(a))return n}return n}function el(e,t){let a=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),n=Xi.get(a);return n||(n=new tl(e,t),Xi.set(a,n)),n}class tl{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=rl(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let a=t.indexOf(".");-1===a&&(a=t.length),t=t.replace(".",""),t=a-2==0?`0.${t}`:a-2==-1?`0.0${t}`:a-2==-2?"0.00":`${t.slice(0,a-2)}.${t.slice(a-2)}`,e>-1&&(t=`-${t}`)}let a=t?+t:NaN;if(isNaN(a))return NaN;if("percent"===this.options.style){var n,r;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)+2,20),maximumFractionDigits:Math.min((null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)+2,20)};return new Ji(this.locale,e).parse(new Yi(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&qi.test(e)&&(a*=-1),a}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=rl(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=rl(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,a=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&a>0&&(e=e.slice(this.symbols.plusSign.length)),(!this.symbols.group||!e.startsWith(this.symbols.group))&&(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=rl(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length))}constructor(e,t={}){var a,n;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,a,n){var r,o,i,l;let s=new Intl.NumberFormat(e,{...a,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=s.formatToParts(-10000.111),u=s.formatToParts(10000.111),c=nl.map((e=>s.formatToParts(e)));var m;let f=null!==(m=null===(r=d.find((e=>"minusSign"===e.type)))||void 0===r?void 0:r.value)&&void 0!==m?m:"-",p=null===(o=u.find((e=>"plusSign"===e.type)))||void 0===o?void 0:o.value;p||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(p="+");let h=new Intl.NumberFormat(e,{...a,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),g=null===(i=h.find((e=>"decimal"===e.type)))||void 0===i?void 0:i.value,v=null===(l=d.find((e=>"group"===e.type)))||void 0===l?void 0:l.value,b=d.filter((e=>!al.has(e.type))).map((e=>ol(e.value))),y=c.flatMap((e=>e.filter((e=>!al.has(e.type))).map((e=>ol(e.value))))),w=[...new Set([...b,...y])].sort(((e,t)=>t.length-e.length)),x=0===w.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(a.locale,{useGrouping:!1}).format(9876543210)].reverse(),D=new Map(E.map(((e,t)=>[e,t]))),$=new RegExp(`[${E.join("")}]`,"g");return{minusSign:f,plusSign:p,decimal:g,group:v,literals:x,numeral:$,index:e=>String(D.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(a=this.options.minimumFractionDigits)&&void 0!==a?a:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const al=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),nl=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function rl(e,t,a){return e.replaceAll?e.replaceAll(t,a):e.split(t).join(a)}function ol(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let il=new Map;function ll(t){let a=function(e){let{locale:t}=Ni(),a=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(il.has(a))return il.get(a);let n=new Intl.Collator(t,e);return il.set(a,n),n}({usage:"search",...t}),n=e.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===a.compare(e.slice(0,t.length),t))),[a]),r=e.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===a.compare(e.slice(-t.length),t))),[a]),o=e.useCallback(((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,r=(t=t.normalize("NFC")).length;for(;n+r<=e.length;n++){let o=e.slice(n,n+r);if(0===a.compare(t,o))return!0}return!1}),[a]);return e.useMemo((()=>({startsWith:n,endsWith:r,contains:o})),[n,r,o])}var sl={};function dl(e){return e&&e.__esModule?e.default:e}sl={"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 ul=new WeakMap;function cl(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function ml(t,a,n,r){let o=Bi(dl(sl),"@react-aria/calendar"),i=cl(t)||cl(a),l=Hi({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:n}),s=Hi({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:n});return e.useMemo((()=>{if(Kt(t,ea(t))){if(Kt(a,ta(t)))return l.format(t.toDate(n));if(Kt(a,ta(a)))return r?fl(l,o,t,a,n):l.formatRange(t.toDate(n),a.toDate(n))}return r?fl(s,o,t,a,n):s.formatRange(t.toDate(n),a.toDate(n))}),[t,a,l,s,o,n,r])}function fl(e,t,a,n,r){let o=e.formatRangeToParts(a.toDate(r),n.toDate(r)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let l="",s="";for(let e=0;e<o.length;e++)e<i?l+=o[e].value:e>i&&(s+=o[e].value);return t.format("dateRange",{startDate:l,endDate:s})}const pl=7e3;let hl=null;function gl(e,t="assertive",a=pl){hl||(hl=new vl),hl.announce(e,t,a)}class vl{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",a=pl){if(!this.node)return;let n=document.createElement("div");n.textContent=e,"assertive"===t?this.assertiveLog.appendChild(n):this.politeLog.appendChild(n),""!==e&&setTimeout((()=>{n.remove()}),a)}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 bl(t,a){let n=Bi((r=sl)&&r.__esModule?r.default:r,"@react-aria/calendar");var r;let o=Pr(t),i=ml(a.visibleRange.start,a.visibleRange.end,a.timeZone,!1),l=ml(a.visibleRange.start,a.visibleRange.end,a.timeZone,!0);Gr((()=>{a.isFocused||gl(l)}),[l]);let s=function(t){let a,n,r=Bi(dl(sl),"@react-aria/calendar");"highlightedRange"in t?({start:a,end:n}=t.highlightedRange||{}):a=n=t.value;let o=Hi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:cl(a)||cl(n),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return e.useMemo((()=>{if(!i&&a&&n){if(Kt(a,n)){let e=o.format(a.toDate(t.timeZone));return r.format("selectedDateDescription",{date:e})}{let e=fl(o,r,a,n,t.timeZone);return r.format("selectedRangeDescription",{dateRange:e})}}return""}),[a,n,i,t.timeZone,r,o])}(a);Gr((()=>{s&&gl(s,"polite",4e3)}),[s]);let d=xr([Boolean(t.errorMessage),t.isInvalid,t.validationState]);ul.set(a,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:d,selectedDateDescription:s});let[u,c]=e.useState(!1),m=t.isDisabled||a.isNextVisibleRangeInvalid();m&&u&&(c(!1),a.setFocused(!0));let[f,p]=e.useState(!1),h=t.isDisabled||a.isPreviousVisibleRangeInvalid();return h&&f&&(p(!1),a.setFocused(!0)),{calendarProps:Sr(o,Yr({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:()=>a.focusNextPage(),"aria-label":n.format("next"),isDisabled:m,onFocusChange:c},prevButtonProps:{onPress:()=>a.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:d},title:i}}function yl(t,a,n){let{date:r,isDisabled:o}=t,{errorMessageId:i,selectedDateDescription:l}=ul.get(a),s=Bi((d=sl)&&d.__esModule?d.default:d,"@react-aria/calendar");var d;let u=Hi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:cl(r),timeZone:a.timeZone}),c=a.isSelected(r),m=a.isCellFocused(r);o=o||a.isCellDisabled(r);let f=a.isCellUnavailable(r),p=!o&&!f,h=a.isValueInvalid&&("highlightedRange"in a?!a.anchorDate&&a.highlightedRange&&r.compare(a.highlightedRange.start)>=0&&r.compare(a.highlightedRange.end)<=0:a.value&&Kt(a.value,r));h&&(c=!0),r=so(r,Ut);let g=e.useMemo((()=>r.toDate(a.timeZone)),[r,a.timeZone]),v=function(e,t){return Kt(e,qt(t))}(r,a.timeZone),b=e.useMemo((()=>{let e="";return"highlightedRange"in a&&a.value&&!a.anchorDate&&(Kt(r,a.value.start)||Kt(r,a.value.end))&&(e=l+", "),e+=u.format(g),v?e=s.format(c?"todayDateSelected":"todayDate",{date:e}):c&&(e=s.format("dateSelected",{date:e})),a.minValue&&Kt(r,a.minValue)?e+=", "+s.format("minimumDate"):a.maxValue&&Kt(r,a.maxValue)&&(e+=", "+s.format("maximumDate")),e}),[u,g,s,c,v,r,a,l]),y="";"anchorDate"in a&&m&&!a.isReadOnly&&p&&(y=a.anchorDate?s.format("finishRangeSelectionPrompt"):s.format("startRangeSelectionPrompt"));let w=ao(y),x=e.useRef(!1),E=e.useRef(!1),D=e.useRef(null),{pressProps:$,isPressed:C}=Eo({shouldCancelOnPointerExit:"anchorDate"in a&&!!a.anchorDate,preventFocusOnPress:!0,isDisabled:!p||a.isReadOnly,onPressStart(e){if(a.isReadOnly)a.setFocusedDate(r);else if("highlightedRange"in a&&!a.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(a.highlightedRange&&!h){if(Kt(r,a.highlightedRange.start))return a.setAnchorDate(a.highlightedRange.end),a.setFocusedDate(r),a.setDragging(!0),void(E.current=!0);if(Kt(r,a.highlightedRange.end))return a.setAnchorDate(a.highlightedRange.start),a.setFocusedDate(r),a.setDragging(!0),void(E.current=!0)}let t=()=>{a.setDragging(!0),D.current=null,a.selectDate(r),a.setFocusedDate(r),x.current=!0};"touch"===e.pointerType?D.current=setTimeout(t,200):t()}},onPressEnd(){E.current=!1,x.current=!1,clearTimeout(D.current),D.current=null},onPress(){"anchorDate"in a||a.isReadOnly||(a.selectDate(r),a.setFocusedDate(r))},onPressUp(e){if(!a.isReadOnly&&("anchorDate"in a&&D.current&&(a.selectDate(r),a.setFocusedDate(r)),"anchorDate"in a))if(E.current)a.setAnchorDate(r);else if(a.anchorDate&&!x.current)a.selectDate(r),a.setFocusedDate(r);else if("keyboard"!==e.pointerType||a.anchorDate)"virtual"===e.pointerType&&(a.selectDate(r),a.setFocusedDate(r));else{a.selectDate(r);let e=r.add({days:1});a.isInvalid(e)&&(e=r.subtract({days:1})),a.isInvalid(e)||a.setFocusedDate(e)}}}),k=null;o||(k=Kt(r,a.focusedDate)?0:-1),e.useEffect((()=>{m&&n.current&&(Tr(n.current),"pointer"!==Go()&&document.activeElement===n.current&&io(n.current,{containingElement:Qr(n.current)}))}),[m,n]);let S=Hi({day:"numeric",timeZone:a.timeZone,calendar:r.calendar.identifier}),R=e.useMemo((()=>S.formatToParts(g).find((e=>"day"===e.type)).value),[S,g]);return{cellProps:{role:"gridcell","aria-disabled":!p||null,"aria-selected":c||null,"aria-invalid":h||null},buttonProps:Sr($,{onFocus(){o||a.setFocusedDate(r)},tabIndex:k,role:"button","aria-disabled":!p||null,"aria-label":b,"aria-invalid":h||null,"aria-describedby":[h?i:null,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in a&&("touch"!==e.pointerType||a.isDragging)&&p&&a.highlightDate(r)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:C,isFocused:m,isSelected:c,isDisabled:o,isUnavailable:f,isOutsideVisibleRange:r.compare(a.visibleRange.start)<0||r.compare(a.visibleRange.end)>0,isInvalid:h,formattedDate:R}}function wl(t,a,n){let{validationBehavior:r,focus:o}=t;or((()=>{if("native"===r&&(null==n?void 0:n.current)){let t=a.realtimeValidation.isInvalid?a.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(t),n.current.hasAttribute("title")||(n.current.title=""),a.realtimeValidation.isInvalid||a.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:xl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let i=ir((()=>{a.resetValidation()})),l=ir((e=>{var t;a.displayValidation.isInvalid||a.commitValidation();let r=null==n||null===(t=n.current)||void 0===t?void 0:t.form;var i,l;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let a=e.elements[t];if(!a.validity.valid)return a}return null}(r)===n.current&&(o?o():null===(i=n.current)||void 0===i||i.focus(),zo=l="keyboard",Bo(l,null));e.preventDefault()})),s=ir((()=>{a.commitValidation()}));e.useEffect((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",l),e.addEventListener("change",s),null==t||t.addEventListener("reset",i),()=>{e.removeEventListener("invalid",l),e.removeEventListener("change",s),null==t||t.removeEventListener("reset",i)}}),[n,l,s,i,r])}function xl(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}const El={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Dl={...El,customError:!0,valid:!1},$l={isInvalid:!1,validationDetails:El,validationErrors:[]},Cl=e.createContext({}),kl="__formValidationState"+Date.now();function Sl(t){if(t[kl]){let{realtimeValidation:e,displayValidation:a,updateValidation:n,resetValidation:r,commitValidation:o}=t[kl];return{realtimeValidation:e,displayValidation:a,updateValidation:n,resetValidation:r,commitValidation:o}}return function(t){let{isInvalid:a,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=t;n&&(a||(a="invalid"===n));let d=void 0!==a?{isInvalid:a,validationErrors:[],validationDetails:Dl}:null,u=e.useMemo((()=>Il(function(e,t){if("function"==typeof e){let a=e(t);if(a&&"boolean"!=typeof a)return Rl(a)}return[]}(l,o))),[l,o]);(null==i?void 0:i.validationDetails.valid)&&(i=null);let c=e.useContext(Cl),m=e.useMemo((()=>r?Array.isArray(r)?r.flatMap((e=>Rl(c[e]))):Rl(c[r]):[]),[c,r]),[f,p]=e.useState(c),[h,g]=e.useState(!1);c!==f&&(p(c),g(!1));let v=e.useMemo((()=>Il(h?[]:m)),[h,m]),b=e.useRef($l),[y,w]=e.useState($l),x=e.useRef($l),E=()=>{if(!D)return;$(!1);let e=u||i||b.current;Ll(e,x.current)||(x.current=e,w(e))},[D,$]=e.useState(!1);return e.useEffect(E),{realtimeValidation:d||v||u||i||$l,displayValidation:"native"===s?d||v||y:d||v||u||i||y,updateValidation(e){"aria"!==s||Ll(y,e)?b.current=e:w(e)},resetValidation(){let e=$l;Ll(e,x.current)||(x.current=e,w(e)),"native"===s&&$(!1),g(!0)},commitValidation(){"native"===s&&$(!0),g(!0)}}}(t)}function Rl(e){return e?Array.isArray(e)?e:[e]:[]}function Il(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Dl}:null}function Ll(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,a)=>e===t.validationErrors[a]))&&Object.entries(e.validationDetails).every((([e,a])=>t.validationDetails[e]===a))}function Nl(e){let{description:t,errorMessage:a,isInvalid:n,validationState:r}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:a,"aria-labelledby":n,"aria-label":r,labelElementType:o="label"}=e;t=yr(t);let i=yr(),l={};return a?(n=n?`${i} ${n}`:i,l={id:i,htmlFor:"label"===o?t:void 0}):n||r||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:Yr({id:t,"aria-label":r,"aria-labelledby":n})}}(e),l=xr([Boolean(t),Boolean(a),n,r]),s=xr([Boolean(t),Boolean(a),n,r]);return i=Sr(i,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:s}}}const Pl={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 Tl(t){let{children:a,elementType:n="div",isFocusable:r,style:o,...i}=t,{visuallyHiddenProps:l}=function(t={}){let{style:a,isFocusable:n}=t,[r,o]=e.useState(!1),{focusWithinProps:i}=Qo({isDisabled:!n,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...i,style:e.useMemo((()=>r?a:a?{...Pl,...a}:Pl),[r])}}}(t);return c.default.createElement(n,Sr(i,l),a)}var Ml={};Ml={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"},"et-EE":{calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"},"tr-TR":{calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};const zl=new WeakMap,Fl="__role_"+Date.now(),Vl="__focusManager_"+Date.now();function Al(t,a,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:l}=a.displayValidation,{labelProps:s,fieldProps:d,descriptionProps:u,errorMessageProps:c}=Nl({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||i}),m=e.useRef(null),{focusWithinProps:f}=Qo({...t,onFocusWithin(e){var n;m.current=a.value,null===(n=t.onFocus)||void 0===n||n.call(t,e)},onBlurWithin:e=>{var n;a.confirmPlaceholder(),a.value!==m.current&&a.commitValidation(),null===(n=t.onBlur)||void 0===n||n.call(t,e)},onFocusWithinChange:t.onFocusChange}),p=Bi((h=Ml)&&h.__esModule?h.default:h,"@react-aria/datepicker");var h;let g="hour"===a.maxGranularity?"selectedTimeDescription":"selectedDateDescription",v="hour"===a.maxGranularity?"time":"date",b=ao(a.value?p.format(g,{[v]:a.formatValue({month:"long"})}):""),y="presentation"===t[Fl]?d["aria-describedby"]:[b["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=t[Vl],x=e.useMemo((()=>w||hi(n)),[w,n]),E=function(t,a,n){let{direction:r}=Ni(),o=e.useMemo((()=>hi(a)),[a]),i=()=>{var e;let t=null===(e=window.event)||void 0===e?void 0:e.target,n=pi(a.current,{tabbable:!0});if(t&&(n.currentNode=t,t=n.previousNode()),!t){let e;do{e=n.lastChild(),e&&(t=e)}while(e)}for(;null==t?void 0:t.hasAttribute("data-placeholder");){let e=n.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;t=e}t&&t.focus()},{pressProps:l}=Eo({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&i()},onPress(e){"mouse"!==e.pointerType&&i()}});return Sr(l,{onKeyDown:e=>{if(e.currentTarget.contains(e.target)&&(e.altKey&&("ArrowDown"===e.key||"ArrowUp"===e.key)&&"setOpen"in t&&(e.preventDefault(),e.stopPropagation(),t.setOpen(!0)),!n))switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===r?o.focusNext():o.focusPrevious();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===r?o.focusPrevious():o.focusNext()}}})}(a,n,"presentation"===t[Fl]);zl.set(a,{ariaLabel:t["aria-label"],ariaLabelledBy:[s.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:x});let D,$=e.useRef(t.autoFocus);D="presentation"===t[Fl]?{role:"presentation"}:Sr(d,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":y}),e.useEffect((()=>{$.current&&x.focusFirst(),$.current=!1}),[x]),function(t,a,n){let r=e.useRef(a),o=ir((()=>{n&&n(r.current)}));e.useEffect((()=>{var e;let a=null==t||null===(e=t.current)||void 0===e?void 0:e.form;return null==a||a.addEventListener("reset",o),()=>{null==a||a.removeEventListener("reset",o)}}),[t,o])}(t.inputRef,a.value,a.setValue),wl({...t,focus(){x.focusFirst()}},a,t.inputRef);let C={type:"hidden",name:t.name,value:(null===(r=a.value)||void 0===r?void 0:r.toString())||""};"native"===t.validationBehavior&&(C.type="text",C.hidden=!0,C.required=t.isRequired,C.onChange=()=>{});let k=Pr(t);return{labelProps:{...s,onClick:()=>{x.focusFirst()}},fieldProps:Sr(k,D,E,f,{onKeyDown(e){t.onKeyDown&&t.onKeyDown(e)},onKeyUp(e){t.onKeyUp&&t.onKeyUp(e)}}),inputProps:C,descriptionProps:u,errorMessageProps:c,isInvalid:o,validationErrors:i,validationDetails:l}}class Ol{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}var jl={};function Bl(t){const a=e.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:l,isReadOnly:s,isRequired:d,onIncrement:u,onIncrementPage:c,onDecrement:m,onDecrementPage:f,onDecrementToMin:p,onIncrementToMax:h}=t;const g=Bi((v=jl)&&v.__esModule?v.default:v,"@react-aria/spinbutton");var v;const b=()=>clearTimeout(a.current);e.useEffect((()=>()=>b()),[]);let y=e.useRef(!1),w=()=>{y.current=!0},x=()=>{y.current=!1},E=""===r?g.format("Empty"):(r||`${n}`).replace("-","−");e.useEffect((()=>{var e;y.current&&(e="assertive",hl&&hl.clear(e),gl(E,"assertive"))}),[E]);const D=ir((e=>{b(),null==u||u(),a.current=window.setTimeout((()=>{(void 0===i||isNaN(i)||void 0===n||isNaN(n)||n<i)&&D(60)}),e)})),$=ir((e=>{b(),null==m||m(),a.current=window.setTimeout((()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n>o)&&$(60)}),e)}));let C=e=>{e.preventDefault()},{addGlobalListener:k,removeAllGlobalListeners:S}=_r();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":E,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":l||void 0,"aria-readonly":s||void 0,"aria-required":d||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||s))switch(e.key){case"PageUp":if(c){e.preventDefault(),null==c||c();break}case"ArrowUp":case"Up":u&&(e.preventDefault(),null==u||u());break;case"PageDown":if(f){e.preventDefault(),null==f||f();break}case"ArrowDown":case"Down":m&&(e.preventDefault(),null==m||m());break;case"Home":p&&(e.preventDefault(),null==p||p());break;case"End":h&&(e.preventDefault(),null==h||h())}},onFocus:w,onBlur:x},incrementButtonProps:{onPressStart:()=>{D(400),k(window,"contextmenu",C)},onPressEnd:()=>{b(),S()},onFocus:w,onBlur:x},decrementButtonProps:{onPressStart:()=>{$(400),k(window,"contextmenu",C)},onPressEnd:()=>{b(),S()},onFocus:w,onBlur:x}}}function Hl(t,a,n){let r=e.useRef(""),{locale:o}=Ni(),i=function(){let{locale:t}=Ni(),a=ji((n=Ml)&&n.__esModule?n.default:n,"@react-aria/datepicker");var n;return e.useMemo((()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch(e){return new Ol(t,a)}}),[t,a])}(),{ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:u}=zl.get(a),m=t.isPlaceholder?"":t.text,f=e.useMemo((()=>a.dateFormatter.resolvedOptions()),[a.dateFormatter]),p=Hi({month:"long",timeZone:f.timeZone}),h=Hi({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if("month"!==t.type||t.isPlaceholder)"hour"!==t.type||t.isPlaceholder||(m=h.format(a.dateValue));else{let e=p.format(a.dateValue);m=e!==m?`${m} – ${e}`:e}let{spinButtonProps:g}=Bl({value:t.value,textValue:m,minValue:t.minValue,maxValue:t.maxValue,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly||!t.isEditable,isRequired:a.isRequired,onIncrement:()=>{r.current="",a.increment(t.type)},onDecrement:()=>{r.current="",a.decrement(t.type)},onIncrementPage:()=>{r.current="",a.incrementPage(t.type)},onDecrementPage:()=>{r.current="",a.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",a.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",a.setSegment(t.type,t.minValue)}}),v=e.useMemo((()=>new Ji(o,{maximumFractionDigits:0})),[o]),b=()=>{if(t.text===t.placeholder&&u.focusPrevious(),!v.isValidPartialNumber(t.text)||a.isReadOnly||t.isPlaceholder)"dayPeriod"===t.type&&a.clearSegment(t.type);else{let e=t.text.slice(0,-1),n=v.parse(e);e=0===n?"":e,0===e.length||0===n?a.clearSegment(t.type):a.setSegment(t.type,n),r.current=e}},{startsWith:y}=ll({sensitivity:"base"}),w=Hi({hour:"numeric",hour12:!0}),x=e.useMemo((()=>{let e=new Date;return e.setHours(0),w.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[w]),E=e.useMemo((()=>{let e=new Date;return e.setHours(12),w.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[w]),D=Hi({year:"numeric",era:"narrow",timeZone:"UTC"}),$=e.useMemo((()=>{if("era"!==t.type)return[];let e=Da(new Ua(1,1,1),a.calendar),n=a.calendar.getEras().map((t=>{let a=e.set({year:1,month:1,day:1,era:t}).toDate("UTC");return{era:t,formatted:D.formatToParts(a).find((e=>"era"===e.type)).value}})),r=function(e){e.sort();let t=e[0],a=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==a[e])return e;return 0}(n.map((e=>e.formatted)));if(r)for(let e of n)e.formatted=e.formatted.slice(r);return n}),[D,a.calendar,t.type]),C=e=>{if(a.isDisabled||a.isReadOnly)return;let n=r.current+e;switch(t.type){case"dayPeriod":if(y(x,e))a.setSegment("dayPeriod",0);else{if(!y(E,e))break;a.setSegment("dayPeriod",12)}u.focusNext();break;case"era":{let t=$.find((t=>y(t.formatted,e)));t&&(a.setSegment("era",t.era),u.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(n))return;let o=v.parse(n),i=o,l=0===t.minValue;if("hour"===t.type&&a.dateFormatter.resolvedOptions().hour12){switch(a.dateFormatter.resolvedOptions().hourCycle){case"h11":o>11&&(i=v.parse(e));break;case"h12":l=!1,o>12&&(i=v.parse(e))}t.value>=12&&o>1&&(o+=12)}else o>t.maxValue&&(i=v.parse(e));if(isNaN(o))return;let s=0!==i||l;s&&a.setSegment(t.type,i),Number(o+"0")>t.maxValue||n.length>=String(t.maxValue).length?(r.current="",s&&u.focusNext()):r.current=n;break}}},k=e.useRef("");no(n,"beforeinput",(e=>{switch(e.preventDefault(),e.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!a.isReadOnly&&b();break;case"insertCompositionText":k.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=e.data&&C(e.data)}})),no(n,"input",(e=>{let{inputType:t,data:a}=e;if("insertCompositionText"===t)n.current.textContent=k.current,(y(x,a)||y(E,a))&&C(a)})),or((()=>{let e=n.current;return()=>{if(document.activeElement===e){u.focusPrevious()||u.focusNext()}}}),[n,u]);let S=Or()||"timeZoneName"===t.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=e.useMemo((()=>a.segments.find((e=>e.isEditable))),[a.segments]);t===R||a.isInvalid||(d=void 0);let I=yr(),L=!a.isDisabled&&!a.isReadOnly&&t.isEditable,N=Yr({"aria-label":`${"literal"===t.type?"":i.of(t.type)}${l?`, ${l}`:""}${s?", ":""}`,"aria-labelledby":s});return"literal"===t.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Sr(g,N,{id:I,...S,"aria-invalid":a.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":a.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:L,suppressContentEditableWarning:L,spellCheck:L?"false":void 0,autoCapitalize:L?"off":void 0,autoCorrect:L?"off":void 0,[parseInt(c.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:L?"next":void 0,inputMode:a.isDisabled||"dayPeriod"===t.type||"era"===t.type||!L?void 0:"numeric",tabIndex:a.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Vr()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),b()}},onFocus:()=>{r.current="",io(n.current,{containingElement:Qr(n.current)}),window.getSelection().collapse(n.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}jl={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};const Wl=Symbol("default");function Zl({values:e,children:t}){for(let[a,n]of e)t=c.default.createElement(a.Provider,{value:n},t);return t}function Kl(t){let{className:a,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s}=t;return e.useMemo((()=>{let e,t,d;return e="function"==typeof a?a({...s,defaultClassName:o}):a,t="function"==typeof n?n({...s,defaultStyle:l||{}}):n,d="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:null!=e?e:o,style:t||l?{...l,...t}:void 0,children:null!=d?d:i,"data-rac":""}}),[a,n,r,o,i,l,s])}function Ul(t,a){let n=e.useContext(t);if(null===a)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));if(!a&&!n.slots[Wl])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let t=a||Wl;if(!n.slots[t])throw new Error(`Invalid slot "${a}". Valid slot names are ${e}.`);return n.slots[t]}return n}function _l(t,a,n){let r=Ul(n,t.slot)||{},{ref:o,...i}=r,l=qr(e.useMemo((()=>function(...e){return 1===e.length?e[0]:t=>{for(let a of e)"function"==typeof a?a(t):null!=a&&(a.current=t)}}(a,o)),[a,o])),s=Sr(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 a="function"==typeof i.style?i.style(e):i.style,n={...e.defaultStyle,...a},r="function"==typeof t.style?t.style({...e,defaultStyle:n}):t.style;return{...n,...r}}: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 Yl=e.createContext(!1);function ql(t){let a=(a,n)=>e.useContext(Yl)?null:t(a,n);return a.displayName=t.displayName||t.name,c.default.forwardRef(a)}function Gl(e){const t=/^(data-.*)$/;let a={};for(const n in e)t.test(n)||(a[n]=e[n]);return a}"undefined"!=typeof DocumentFragment&&new DocumentFragment;const Jl=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Xl=e.createContext({});function Ql(e,t){[e,t]=_l(e,t,Xl);let a=e,{buttonProps:n,isPressed:r}=function(e,t){let a,{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:m,href:f,target:p,rel:h,type:g="button"}=e;a="button"===n?{type:g,disabled:r}:{role:"button",tabIndex:r?void 0:0,href:"a"===n&&r?void 0:f,target:"a"===n?p:void 0,type:"input"===n?g:void 0,disabled:"input"===n?r:void 0,"aria-disabled":r&&"input"!==n?r:void 0,rel:"a"===n?h:void 0};let{pressProps:v,isPressed:b}=Eo({onPressStart:i,onPressEnd:l,onPressChange:d,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:y}=xi(e,t);c&&(y.tabIndex=r?-1:y.tabIndex);let w=Sr(y,v,Pr(e,{labelable:!0}));return{isPressed:b,buttonProps:Sr(a,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:o,isFocused:i,isFocusVisible:l}=yi(e),{hoverProps:s,isHovered:d}=oi(e),u=Kl({...e,values:{isHovered:d,isPressed:r,isFocused:i,isFocusVisible:l,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return c.default.createElement("button",{...Pr(e,{propNames:Jl}),...Sr(n,o,s),...u,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":a.isPressed||r||void 0,"data-hovered":d||void 0,"data-focused":i||void 0,"data-focus-visible":l||void 0})}const es=ql(Ql),ts=e.createContext({});function as(e,t,a){return null!=t&&e.compare(t)<0||null!=a&&e.compare(a)>0}function ns(e,t,a,n,r){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;return is(e,rs(e,t,a).subtract(o),t,a,n,r)}function rs(e,t,a,n,r){let o=e;return t.years?o=aa(e):t.months?o=ea(e):t.weeks&&(o=oa(e,a)),is(e,o,t,a,n,r)}function os(e,t,a,n,r){let o={...t};return t.days?o.days--:t.weeks?o.weeks--:t.months?o.months--:t.years&&o.years--,is(e,rs(e,t,a).subtract(o),t,a,n,r)}function is(e,t,a,n,r,o){return r&&e.compare(r)>=0&&(t=da(t,rs(xa(r),a,n))),o&&e.compare(o)<=0&&(t=sa(t,os(xa(o),a,n))),t}function ls(e,t,a){return t&&(e=da(e,xa(t))),a&&(e=sa(e,xa(a))),e}function ss(e,t,a){if(!a)return e;for(;e.compare(t)>=0&&a(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function ds(t){let a=e.useMemo((()=>new Qn(t.locale)),[t.locale]),n=e.useMemo((()=>a.resolvedOptions()),[a]),{locale:r,createCalendar:o,visibleDuration:i={months:1},minValue:l,maxValue:s,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible"}=t,m=e.useMemo((()=>o(n.calendar)),[o,n.calendar]),[f,p]=uo(t.value,t.defaultValue,t.onChange),h=e.useMemo((()=>f?Da(xa(f),m):null),[f,m]),g=e.useMemo((()=>f&&"timeZone"in f?f.timeZone:n.timeZone),[f,n.timeZone]),v=e.useMemo((()=>t.focusedValue?ls(Da(xa(t.focusedValue),m),l,s):void 0),[t.focusedValue,m,l,s]),b=e.useMemo((()=>ls(t.defaultFocusedValue?Da(xa(t.defaultFocusedValue),m):h||Da(qt(g),m),l,s)),[t.defaultFocusedValue,h,g,m,l,s]),[y,w]=uo(v,b,t.onFocusChange),[x,E]=e.useState((()=>{switch(d){case"start":return rs(y,i,r,l,s);case"end":return os(y,i,r,l,s);default:return ns(y,i,r,l,s)}})),[D,$]=e.useState(t.autoFocus||!1),C=e.useMemo((()=>{let e={...i};return e.days?e.days--:e.days=-1,x.add(e)}),[x,i]),[k,S]=e.useState(m.identifier);if(m.identifier!==k){let e=Da(y,m);E(ns(e,i,r,l,s)),w(e),S(m.identifier)}function R(e){e=ls(e,l,s),w(e)}function I(e){if(!t.isDisabled&&!t.isReadOnly){if(null===e)return void p(null);if(!(e=ss(e=ls(e,l,s),x,u)))return;e=Da(e,(null==f?void 0:f.calendar)||new Wt),p(f&&"hour"in f?f.set(e):e)}}as(y,l,s)?w(ls(y,l,s)):y.compare(x)<0?E(os(y,i,r,l,s)):y.compare(C)>0&&E(rs(y,i,r,l,s));let L=e.useMemo((()=>!!h&&(!(!u||!u(h))||as(h,l,s))),[h,u,l,s]),N=t.isInvalid||"invalid"===t.validationState||L,P=N?"invalid":null,T=e.useMemo((()=>"visible"===c?i:us(i)),[c,i]);return{isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,value:h,setValue:I,visibleRange:{start:x,end:C},minValue:l,maxValue:s,focusedDate:y,timeZone:g,validationState:P,isValueInvalid:N,setFocusedDate(e){R(e),$(!0)},focusNextDay(){R(y.add({days:1}))},focusPreviousDay(){R(y.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&R(y.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&R(y.subtract({weeks:1}))},focusNextPage(){let e=x.add(T);w(ls(y.add(T),l,s)),E(rs(is(y,e,T,r,l,s),T,r))},focusPreviousPage(){let e=x.subtract(T);w(ls(y.subtract(T),l,s)),E(rs(is(y,e,T,r,l,s),T,r))},focusSectionStart(){i.days?R(x):i.weeks?R(oa(y,r)):(i.months||i.years)&&R(ea(y))},focusSectionEnd(){i.days?R(C):i.weeks?R(function(e,t){return oa(e,t).add({days:6})}(y,r)):(i.months||i.years)&&R(ta(y))},focusNextSection(e){e||i.days?i.days?this.focusNextPage():i.weeks?R(y.add({months:1})):(i.months||i.years)&&R(y.add({years:1})):R(y.add(us(i)))},focusPreviousSection(e){e||i.days?i.days?this.focusPreviousPage():i.weeks?R(y.subtract({months:1})):(i.months||i.years)&&R(y.subtract({years:1})):R(y.subtract(us(i)))},selectFocusedDate(){I(y)},selectDate(e){I(e)},isFocused:D,setFocused:$,isInvalid:e=>as(e,l,s),isSelected(e){return null!=h&&Kt(e,h)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>D&&y&&Kt(e,y),isCellDisabled(e){return t.isDisabled||e.compare(x)<0||e.compare(C)>0||this.isInvalid(e,l,s)},isCellUnavailable:e=>t.isDateUnavailable&&t.isDateUnavailable(e),isPreviousVisibleRangeInvalid(){let e=x.subtract({days:1});return Kt(e,x)||this.isInvalid(e,l,s)},isNextVisibleRangeInvalid(){let e=C.add({days:1});return Kt(e,C)||this.isInvalid(e,l,s)},getDatesInWeek(e,t=x){let a=t.add({weeks:e}),n=[];a=oa(a,r);let o=_t(a,r);for(let e=0;e<o;e++)n.push(null);for(;n.length<7;){n.push(a);let e=a.add({days:1});if(Kt(a,e))break;a=e}for(;n.length<7;)n.push(null);return n}}}function us(e){let t={...e};for(let a in e)t[a]=1;return t}function cs(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:xa(e),end:xa(t)}):null}function ms(e,t){return e=Da(e,(null==t?void 0:t.calendar)||new Wt),t&&"hour"in t?t.set(e):e}function fs(e,t,a){let n=e.add({days:a});for(;(a<0?n.compare(t.visibleRange.start)>=0:n.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(n);)n=n.add({days:a});return t.isCellUnavailable(n)?n.add({days:-a}):null}const ps=new zi((hs={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}})&&hs.__esModule?hs.default:hs);var hs;function gs(e,t,a,n,r){let o=null!=e&&null!=a&&e.compare(a)>0,i=null!=e&&null!=t&&e.compare(t)<0,l=null!=e&&(null==n?void 0:n(e))||!1,s=o||i||l,d=[];if(s){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US",n=zi.getGlobalDictionaryForPackage("@react-stately/datepicker")||ps,s=new Ai(e,n),u=new Qn(e,ys({},r)),c=u.resolvedOptions().timeZone;i&&d.push(s.format("rangeUnderflow",{minValue:u.format(t.toDate(c))})),o&&d.push(s.format("rangeOverflow",{maxValue:u.format(a.toDate(c))})),l&&d.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const vs={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bs={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ys(e,t){let a=t.shouldForceLeadingZeros?bs:vs;e={...a,...e};let n=t.granularity||"minute",r=Object.keys(e);var o;let i=r.indexOf(null!==(o=t.maxGranularity)&&void 0!==o?o:"year");i<0&&(i=0);let l=r.indexOf(n);if(l<0&&(l=2),i>l)throw new Error("maxGranularity must be greater than granularity");let s=r.slice(i,l+1).reduce(((t,a)=>(t[a]=e[a],t)),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===n||"minute"===n||"second"===n)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===i&&(s.era="short"),s}function ws(e,t){return null===e?null:e?Da(e,t):void 0}function xs(e,t,a,n){if(e)return ws(e,a);let r=Da(Yt(n).set({hour:0,minute:0,second:0,millisecond:0}),a);return"year"===t||"month"===t||"day"===t?xa(r):n?r:Ea(r)}const Es=new zi({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");const Ds={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$s={year:5,month:2,day:7,hour:2,minute:15,second:15},Cs={dayperiod:"dayPeriod"};function ks(t){let{locale:a,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:l,minValue:s,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue,[m,f]=function(t,a){let n=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&a&&!(a in t))throw new Error("Invalid granularity "+a+" for value "+t.toString());let[o,i]=e.useState([r,n]);return!t||o[0]===r&&o[1]===n||i([r,n]),a||(a=t?r:o[0]),[a,t?n:o[1]]}(c,t.granularity),p=f||"UTC";if(c&&!(m in c))throw new Error("Invalid granularity "+m+" for value "+c.toString());let h=e.useMemo((()=>new Qn(a)),[a]),g=e.useMemo((()=>n(h.resolvedOptions().calendar)),[n,h]),[v,b]=uo(t.value,t.defaultValue,t.onChange),y=e.useMemo((()=>ws(v,g)),[v,g]),[w,x]=e.useState((()=>xs(t.placeholderValue,m,g,f))),E=y||w,D="gregory"===g.identifier&&"BC"===E.era,$=e.useMemo((()=>{var e;return{granularity:m,maxGranularity:null!==(e=t.maxGranularity)&&void 0!==e?e:"year",timeZone:f,hideTimeZone:r,hourCycle:t.hourCycle,showEra:D,shouldForceLeadingZeros:t.shouldForceLeadingZeros}}),[t.maxGranularity,m,t.hourCycle,t.shouldForceLeadingZeros,f,r,D]),C=e.useMemo((()=>ys({},$)),[$]),k=e.useMemo((()=>new Qn(a,C)),[a,C]),S=e.useMemo((()=>k.resolvedOptions()),[k]),R=e.useMemo((()=>k.formatToParts(new Date).filter((e=>Ds[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[k]),[I,L]=e.useState((()=>t.value||t.defaultValue?{...R}:{})),N=e.useRef(),P=e.useRef(g.identifier);e.useEffect((()=>{g.identifier!==P.current&&(P.current=g.identifier,x((e=>Object.keys(I).length>0?Da(e,g):xs(t.placeholderValue,m,g,f))))}),[g,m,I,f,t.placeholderValue]),v&&Object.keys(I).length<Object.keys(R).length&&(I={...R},L(I)),null==v&&Object.keys(I).length===Object.keys(R).length&&(I={},L(I),x(xs(t.placeholderValue,m,g,f)));let T=y&&Object.keys(I).length>=Object.keys(R).length?y:w,M=e=>{if(t.isDisabled||t.isReadOnly)return;let a=Object.keys(I),n=Object.keys(R);null==e?(b(null),x(xs(t.placeholderValue,m,g,f)),L({})):a.length>=n.length||a.length===n.length-1&&R.dayPeriod&&!I.dayPeriod&&"dayPeriod"!==N.current?(e=Da(e,(null==c?void 0:c.calendar)||new Wt),b(e)):x(e),N.current=null},z=e.useMemo((()=>T.toDate(p)),[T,p]),F=e.useMemo((()=>k.formatToParts(z).map((e=>{let t=Ds[e.type];"era"===e.type&&1===g.getEras().length&&(t=!1);let n=Ds[e.type]&&!I[e.type],r=Ds[e.type]?function(e,t,a){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?Es.getStringForLocale(e,a):"––"}(e.type,e.value,a):null;return{type:Cs[e.type]||e.type,text:n?r:e.value,...Ss(T,e.type,S),isPlaceholder:n,placeholder:r,isEditable:t}}))),[z,I,k,S,T,g,a]);R.era&&I.year&&!I.era?(I.era=!0,L({...I})):!R.era&&I.era&&(delete I.era,L({...I}));let V=e=>{I[e]=!0,"year"===e&&R.era&&(I.era=!0),L({...I})},A=(e,t)=>{if(I[e])M(function(e,t,a,n){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,a,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,a=t>=12;return e.set({hour:a?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,a,{round:"hour"!==t,hourCycle:n.hour12?12:24})}}(T,e,t,S));else{V(e);let t=Object.keys(I),a=Object.keys(R);(t.length>=a.length||t.length===a.length-1&&R.dayPeriod&&!I.dayPeriod)&&M(T)}},O=e.useMemo((()=>gs(v,s,d,u,$)),[v,s,d,u,$]),j=Sl({...t,value:v,builtinValidation:O}),B=j.displayValidation.isInvalid,H=t.validationState||(B?"invalid":null);var W;return{...j,value:y,dateValue:z,calendar:g,setValue:M,segments:F,dateFormatter:k,validationState:H,isInvalid:B,granularity:m,maxGranularity:null!==(W=t.maxGranularity)&&void 0!==W?W:"year",isDisabled:o,isReadOnly:i,isRequired:l,increment(e){A(e,1)},decrement(e){A(e,-1)},incrementPage(e){A(e,$s[e]||1)},decrementPage(e){A(e,-($s[e]||1))},setSegment(e,t){V(e),M(function(e,t,a,n){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:a})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return a>=12===n?e:e.set({hour:n?t-12:t+12})}case"hour":if(n.hour12){let t=e.hour>=12;t||12!==a||(a=0),t&&a<12&&(a+=12)}case"minute":case"second":return e.set({[t]:a})}}(T,e,t,S))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let e=Object.keys(I),a=Object.keys(R);e.length===a.length-1&&R.dayPeriod&&!I.dayPeriod&&(I={...R},L(I),M(T.copy()))},clearSegment(e){delete I[e],N.current=e,L({...I});let a=xs(t.placeholderValue,m,g,f),n=T;if("dayPeriod"===e&&"hour"in T&&"hour"in a){let e=T.hour>=12,t=a.hour>=12;e&&!t?n=T.set({hour:T.hour-12}):!e&&t&&(n=T.set({hour:T.hour+12}))}else e in T&&(n=T.set({[e]:a[e]}));b(null),M(n)},formatValue(e){if(!y)return"";let t=ys(e,$);return new Qn(a,t).format(z)}}}function Ss(e,t,a){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:na(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:ra(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}const Rs=e.createContext({}),Is=e.createContext(null),Ls=e.createContext(null);function Ns(t,a){[t,a]=_l(t,a,Rs);let{locale:n}=Ni(),r=function(t){let{value:a,defaultValue:n,onChange:r,createCalendar:o,locale:i,visibleDuration:l={months:1},minValue:s,maxValue:d,...u}=t,[c,m]=uo(a,n||null,r),[f,p]=e.useState(null),h="center";if(c&&c.start&&c.end){let e=ns(xa(c.start),l,i,s,d).add(l).subtract({days:1});c.end.compare(e)>0&&(h="start")}let g=e.useRef(null),[v,b]=e.useState(null),y=e.useMemo((()=>da(s,null==v?void 0:v.start)),[s,v]),w=e.useMemo((()=>sa(d,null==v?void 0:v.end)),[d,v]),x=ds({...u,value:c&&c.start,createCalendar:o,locale:i,visibleDuration:l,minValue:y,maxValue:w,selectionAlignment:h}),E=e=>{e&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(g.current={start:fs(e,x,-1),end:fs(e,x,1)},b(g.current)):(g.current=null,b(null))},[D,$]=e.useState(x.visibleRange);Ut(x.visibleRange.start,D.start)&&Ut(x.visibleRange.end,D.end)||(E(f),$(x.visibleRange));let C=e=>{e?(p(e),E(e)):(p(null),E(null))},k=f?cs(f,x.focusedDate):c&&cs(c.start,c.end),S=e=>{if(!t.isReadOnly&&(e=ss(e=ls(e,y,w),x.visibleRange.start,t.isDateUnavailable)))if(f){let t=cs(f,e);m({start:ms(t.start,null==c?void 0:c.start),end:ms(t.end,null==c?void 0:c.end)}),C(null)}else C(e)},[R,I]=e.useState(!1),{isDateUnavailable:L}=t,N=e.useMemo((()=>!(!c||f)&&(!(!L||!L(c.start)&&!L(c.end))||as(c.start,s,d)||as(c.end,s,d))),[L,c,f,s,d]),P=t.isInvalid||"invalid"===t.validationState||N,T=P?"invalid":null;return{...x,value:c,setValue:m,anchorDate:f,setAnchorDate:C,highlightedRange:k,validationState:T,isValueInvalid:P,selectFocusedDate(){S(x.focusedDate)},selectDate:S,highlightDate(e){f&&x.setFocusedDate(e)},isSelected:e=>k&&e.compare(k.start)>=0&&e.compare(k.end)<=0&&!x.isCellDisabled(e)&&!x.isCellUnavailable(e),isInvalid(e){var t,a;return x.isInvalid(e)||as(e,null===(t=g.current)||void 0===t?void 0:t.start,null===(a=g.current)||void 0===a?void 0:a.end)},isDragging:R,setDragging:I}}({...t,locale:n,createCalendar:Jn}),{calendarProps:o,prevButtonProps:i,nextButtonProps:l,errorMessageProps:s,title:d}=function(t,a,n){let r=bl(t,a),o=e.useRef(!1),i=e.useRef("undefined"!=typeof window?window:null);return no(i,"pointerdown",(e=>{o.current=0===e.width&&0===e.height})),no(i,"pointerup",(e=>{if(o.current)return void(o.current=!1);if(a.setDragging(!1),!a.anchorDate)return;let t=e.target;!n.current||!n.current.contains(document.activeElement)||n.current.contains(t)&&t.closest('button, [role="button"]')||a.selectFocusedDate()})),r.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&n.current.contains(e.relatedTarget)||!a.anchorDate||a.selectFocusedDate())},no(n,"touchmove",(e=>{a.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),r}(t,r,a),u=Kl({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return c.default.createElement("div",{...u,...o,ref:a,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},c.default.createElement(Zl,{values:[[Xl,{slots:{previous:i,next:l}}],[rr,{"aria-hidden":!0,level:2,children:d}],[Ls,r],[ts,{slots:{errorMessage:s}}]]},c.default.createElement(Tl,null,c.default.createElement("h2",null,o["aria-label"])),u.children,c.default.createElement(Tl,null,c.default.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}const Ps=e.forwardRef(Ns),Ts=e.createContext(null);function Ms(t,a){let n=e.useContext(Is),r=e.useContext(Ls),o=null!=n?n:r,i=o.visibleRange.start;t.offset&&(i=i.add(t.offset));let{gridProps:l,headerProps:s,weekDays:d}=function(t,a){let{startDate:n=a.visibleRange.start,endDate:r=a.visibleRange.end}=t,{direction:o}=Ni(),i=ml(n,r,a.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=ul.get(a),d=Yr({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),u=Hi({weekday:t.weekdayStyle||"narrow",timeZone:a.timeZone}),{locale:c}=Ni(),m=e.useMemo((()=>{let e=oa(qt(a.timeZone),c);return[...new Array(7).keys()].map((t=>{let n=e.add({days:t}).toDate(a.timeZone);return u.format(n)}))}),[c,a.timeZone,u]);return{gridProps:Sr(d,{role:"grid","aria-readonly":a.isReadOnly||null,"aria-disabled":a.isDisabled||null,"aria-multiselectable":"highlightedRange"in a||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),a.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),a.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),a.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),a.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),a.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?a.focusNextDay():a.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),a.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?a.focusPreviousDay():a.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),a.focusNextRow();break;case"Escape":"setAnchorDate"in a&&(e.preventDefault(),a.setAnchorDate(null))}},onFocus:()=>a.setFocused(!0),onBlur:()=>a.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}({startDate:i,endDate:ta(i),weekdayStyle:t.weekdayStyle},o);var u;return c.default.createElement(Ts.Provider,{value:{headerProps:s,weekDays:d,startDate:i}},c.default.createElement("table",{...Pr(t),...l,ref:a,style:t.style,className:null!==(u=t.className)&&void 0!==u?u:"react-aria-CalendarGrid"},"function"!=typeof t.children?t.children:c.default.createElement(c.default.Fragment,null,c.default.createElement(Vs,null,(e=>c.default.createElement(Os,null,e))),c.default.createElement(Bs,null,t.children))))}const zs=e.forwardRef(Ms);function Fs(t,a){let{children:n,style:r,className:o}=t,{headerProps:i,weekDays:l}=e.useContext(Ts);return c.default.createElement("thead",{...Pr(t),...i,ref:a,style:r,className:o||"react-aria-CalendarGridHeader"},c.default.createElement("tr",null,l.map(((e,t)=>c.default.cloneElement(n(e),{key:t})))))}const Vs=e.forwardRef(Fs);function As(e,t){let{children:a,style:n,className:r}=e;return c.default.createElement("th",{...Pr(e),ref:t,style:n,className:r||"react-aria-CalendarHeaderCell"},a)}const Os=e.forwardRef(As);function js(t,a){let{children:n,style:r,className:o}=t,i=e.useContext(Is),l=e.useContext(Ls),s=null!=i?i:l,{startDate:d}=e.useContext(Ts),{locale:u}=Ni(),m=function(e,t){let a=e.calendar.getDaysInMonth(e);return Math.ceil((_t(ea(e),t)+a)/7)}(d,u);return c.default.createElement("tbody",{...Pr(t),ref:a,style:r,className:o||"react-aria-CalendarGridBody"},[...new Array(m).keys()].map((e=>c.default.createElement("tr",{key:e},s.getDatesInWeek(e,d).map(((e,t)=>e?c.default.cloneElement(n(e),{key:t}):c.default.createElement("td",{key:t})))))))}const Bs=e.forwardRef(js);function Hs({date:t,...a},n){let r=e.useContext(Is),o=e.useContext(Ls),i=null!=r?r:o;var l;let{startDate:s}=null!==(l=e.useContext(Ts))&&void 0!==l?l:{startDate:i.visibleRange.start},d=e.useRef(null),{cellProps:u,buttonProps:m,...f}=yl({date:t},i,d),{hoverProps:p,isHovered:h}=oi({...a,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:v}=yi();v&&(v=f.isFocused);let b=!function(e,t){return t=Da(t,e.calendar),e=ea(e),t=ea(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(s,t),y=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(y=Kt(t,i.highlightedRange.start),w=Kt(t,i.highlightedRange.end));let x=Kl({...a,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:h,isOutsideMonth:b,isFocusVisible:v,isSelectionStart:y,isSelectionEnd:w,...f}}),E={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":b||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":w||void 0,"data-invalid":f.isInvalid||void 0};return c.default.createElement("td",{...u,ref:n},c.default.createElement("div",{...Sr(Pr(a),m,g,p,E,x),ref:d}))}const Ws=e.forwardRef(Hs),Zs=e.createContext(null),Ks=e.createContext(null),Us=e.createContext({}),_s=e.createContext({});let Ys=e=>{let{onHoverStart:t,onHoverChange:a,onHoverEnd:n,...r}=e;return r};function qs(e,t){[e,t]=_l(e,t,_s);let{hoverProps:a,isHovered:n}=oi(e),{isFocused:r,isFocusVisible:o,focusProps:i}=yi({isTextInput:!0,autoFocus:e.autoFocus}),l=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],s=Kl({...e,values:{isHovered:n,isFocused:r,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"});return c.default.createElement("input",{...Sr(Ys(e),i,a),...s,ref:t,"data-focused":r||void 0,"data-disabled":e.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":o||void 0,"data-invalid":l||void 0})}const Gs=ql(qs),Js=e.createContext({});function Xs(e,t){[e,t]=_l(e,t,Js);let{isDisabled:a,isInvalid:n,onHoverStart:r,onHoverChange:o,onHoverEnd:i,...l}=e,{hoverProps:s,isHovered:d}=oi({onHoverStart:r,onHoverChange:o,onHoverEnd:i,isDisabled:a}),{isFocused:u,isFocusVisible:m,focusProps:f}=yi({within:!0});null!=a||(a=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=n||(n=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let p=Kl({...e,values:{isHovered:d,isFocusWithin:u,isFocusVisible:m,isDisabled:a,isInvalid:n},defaultClassName:"react-aria-Group"});var h,g;return c.default.createElement("div",{...Sr(l,f,s),...p,ref:t,role:null!==(h=e.role)&&void 0!==h?h:"group",slot:null!==(g=e.slot)&&void 0!==g?g:void 0,"data-focus-within":u||void 0,"data-hovered":d||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-invalid":n||void 0},p.children)}const Qs=e.forwardRef(Xs),ed=e.createContext(null),td=e.createContext(null),ad=e.createContext(null);function nd(t,a){[t,a]=_l(t,a,ed);let{validationBehavior:n}=Ul(Ks)||{};var r,o;let i=null!==(o=null!==(r=t.validationBehavior)&&void 0!==r?r:n)&&void 0!==o?o:"native",{locale:l}=Ni(),s=ks({...t,locale:l,createCalendar:Jn,validationBehavior:i}),d=e.useRef(null),[u,m]=function(){let[t,a]=e.useState(!0),n=e.useRef(!1),r=e.useCallback((e=>{n.current=!0,a(!!e)}),[]);return or((()=>{n.current||a(!1)}),[]),[r,t]}(),f=e.useRef(null),{labelProps:p,fieldProps:h,inputProps:g,descriptionProps:v,errorMessageProps:b,...y}=Al({...Gl(t),label:m,inputRef:f,validationBehavior:i},s,d),w=Kl({...Gl(t),values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled},defaultClassName:"react-aria-DateField"}),x=Pr(t);return delete x.id,c.default.createElement(Zl,{values:[[td,s],[Js,{...h,ref:d,isInvalid:s.isInvalid}],[_s,{...g,ref:f}],[Us,{...p,ref:u,elementType:"span"}],[ts,{slots:{description:v,errorMessage:b}}],[Zs,y]]},c.default.createElement("div",{...x,...w,ref:a,slot:t.slot||void 0,"data-invalid":s.isInvalid||void 0}))}const rd=e.forwardRef(nd);function od(t,a){let n=e.useContext(td),r=e.useContext(ad);return n||r?c.default.createElement(ld,{...t,ref:a}):c.default.createElement(id,{...t,ref:a})}const id=e.forwardRef(((t,a)=>{let[n,r]=_l({slot:t.slot},a,ed),{locale:o}=Ni(),i=ks({...n,locale:o,createCalendar:Jn}),l=e.useRef(null),{fieldProps:s,inputProps:d}=Al({...n,inputRef:l},i,r);return c.default.createElement(Zl,{values:[[td,i],[_s,{...d,ref:l}],[Js,{...s,ref:r,isInvalid:i.isInvalid}]]},c.default.createElement(ld,t))})),ld=e.forwardRef(((t,a)=>{let{className:n,children:r}=t,o=e.useContext(td),i=e.useContext(ad),l=null!=o?o:i;return c.default.createElement(c.default.Fragment,null,c.default.createElement(Qs,{...t,ref:a,slot:t.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((t,a)=>e.cloneElement(r(t),{key:a})))),c.default.createElement(Gs,null))})),sd=e.forwardRef(od);function dd({segment:t,...a},n){let r=e.useContext(td),o=e.useContext(ad),i=null!=r?r:o,l=qr(n),{segmentProps:s}=Hl(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:m}=yi(),{hoverProps:f,isHovered:p}=oi({...a,isDisabled:i.isDisabled||"literal"===t.type}),h=Kl({...a,values:{...t,isReadOnly:!t.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:u,isFocusVisible:m},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return c.default.createElement("div",{...Sr(Pr(a),s,d,f),...h,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!t.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":p||void 0,"data-focused":u||void 0,"data-focus-visible":m||void 0})}const ud=e.forwardRef(dd);function cd(e,t){[e,t]=_l(e,t,rr);let{children:a,level:n=3,className:r,...o}=e,i=`h${n}`;return c.default.createElement(i,{...o,ref:t,className:null!=r?r:"react-aria-Heading"},a)}const md=e.forwardRef(cd),fd=e=>c.default.createElement(zs,Object.assign({weekdayStyle:"short"},e),c.default.createElement(Vs,null,(e=>c.default.createElement(Os,null,e.slice(0,2)))),c.default.createElement(Bs,null,(e=>c.default.createElement(Ws,{date:e})))),pd=a.css`.react-aria-Button{color:${L.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:${L.sizes.base};height:${L.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${L.colors.secondary.blue.light};}&:active,&:hover{background-color:${L.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${L.colors.neutral.grey.base};cursor:default;}}`,hd=a.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${L.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${L.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${L.colors.secondary.blue.light};}&[data-selected]{background:${L.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${L.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${L.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${L.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${L.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${L.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;}}`,gd=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,vd=a.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${gd(L.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${L.sizes.sm};}`,bd=m.default(Ps).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${L.colors.neutral.ink.base};font-size:14px;font-family:${L.fontFamily};${vd} ${pd} ${hd} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,yd=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),wd=t=>{var a,{disabledRanges:n=[],disallowWeekends:r=!1,isMultiMonth:o=!1}=t,i=Z(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[l,s]=c.default.useState(null===(a=i.value)||void 0===a?void 0:a.start),{locale:d}=Ni(),u=e.useCallback((e=>!!r&&function(e,t){let a=e.calendar.toJulianDay(e),n=Math.ceil(a+1)%7;n<0&&(n+=7);let r=la(t),[o,i]=ua[r]||[6,0];return n===o||n===i}(e,d)||n.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[n,r,d]);return e.useEffect((()=>{var e;s(null===(e=i.value)||void 0===e?void 0:e.start)}),[i.value]),c.default.createElement(bd,Object.assign({focusedValue:l,onFocusChange:s,isDateUnavailable:u,visibleDuration:o?{months:2}:void 0},i),c.default.createElement("header",null,c.default.createElement(es,{slot:"previous"},c.default.createElement(yd,null)),c.default.createElement(md,null),c.default.createElement(es,{slot:"next"},c.default.createElement(Nt,null))),o?c.default.createElement("div",{style:{display:"flex",gap:L.sizes.sm,overflow:"auto"}},c.default.createElement(fd,null),c.default.createElement(fd,{offset:{months:1}})):c.default.createElement(fd,null))},xd={top:"flex-start",center:"center"},Ed=m.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${L.sizes.base};}`,Dd=m.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>xd[e.align]};width:24px;height:24px;`,$d=m.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Cd=m.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${L.sizes.sm};}`,kd=m.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${L.text.body.fontFamily};font-size:${L.text.body.fontSize};font-weight:${L.text.body.fontWeight};line-height:${L.sizes.md};color:${L.text.body.color};`,Sd=m.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${L.fontFamily};font-size:${L.sizes[3]};line-height:${L.sizes[4]};color:${L.colors.neutral.ink.light};`,Rd=m.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${L.text.error.fontFamily};font-size:${L.text.error.fontSize};font-weight:${L.text.error.fontWeight};line-height:${L.text.error.lineHeight};color:${L.text.error.color};`,Id=m.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Ld=m.default(Id).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${L.colors.neutral.grey.dark};border-radius:${L.radius.md};padding:${L.sizes.base} 0.75rem;&:hover{border-color:${L.colors.secondary.blue.base};}& ${kd}{font-weight:${L.text.bodyBold.fontWeight};}`,Nd=m.default(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Pd=({id:e,label:t,hint:a,tooltip:n,error:r,bordered:o,Badge:i,Accessory:l,Footer:s,children:d,disabled:u=!1})=>{const m=c.default.createElement(Ed,null,c.default.createElement(Dd,{align:l?"center":"top"},d),l&&c.default.createElement($d,null,l),t||a||r||i||s?c.default.createElement(Cd,null,c.default.createElement(Ke,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&c.default.createElement(kd,null,t),n&&c.default.createElement(Nd,{text:n},c.default.createElement(Ye,{name:"help",width:L.sizes.base,color:L.colors.neutral.ink.lightest}))),a&&c.default.createElement(Sd,null,a),r&&c.default.createElement(Rd,null,r),s):null);return o?c.default.createElement(Ld,{disabled:u,htmlFor:e},m):c.default.createElement(Id,{disabled:u,htmlFor:e},m)},{colors:Td,sizes:Md,radius:zd}=L,Fd=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Td.neutral.ink.lightest};border-radius:${zd.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Td.secondary.blue.base};border-color:${Td.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:${Md[4]};background-position:center;}&:hover{border-color:${Td.secondary.blue.base};}&:active{border-color:${Td.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Td.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Td.secondary.blue.base};border-color:${Td.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:${Md[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Td.neutral.grey.base};border-color:${Td.neutral.grey.base};color:${Td.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>");}`,Vd=t=>{var{checked:a,indeterminate:n,value:r,name:o,disabled:i,ariaLabel:l,className:s,onChange:d}=t,u=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,r)}),[d,r]);return e.useEffect((()=>{f.current&&(f.current.indeterminate=!0===n)}),[n]),c.default.createElement(Pd,Object.assign({id:m,disabled:i},u),c.default.createElement(Fd,{ref:f,id:m,type:"checkbox",checked:a,value:r,name:o,disabled:i,"aria-label":l,className:s,onChange:p}))},Ad=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;}`,Od=e.forwardRef(((t,a)=>{var{checked:n,value:r,name:o,disabled:i,onChange:l,id:s}=t,d=Z(t,["checked","value","name","disabled","onChange","id"]);const u=e.useCallback((e=>{l(e.currentTarget.checked,r)}),[l,r]),m=null!=s?s:K("radio");return c.default.createElement(Pd,Object.assign({id:m,disabled:i},d),c.default.createElement(Ad,{id:m,type:"radio",checked:n,value:r,name:o,disabled:i,onChange:u,ref:a}))})),jd=m.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Bd=m.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${L.text.inputLabel.fontFamily};font-size:${L.text.inputLabel.fontSize};font-style:${L.text.inputLabel.fontStyle};font-weight:${L.text.inputLabel.fontWeight};line-height:${L.text.inputLabel.lineHeight};text-decoration:${L.text.inputLabel.textDecoration};color:${L.text.inputLabel.color};`;class Hd extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:a}=this.props;a?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:a}=this.props;t&&a([e])},this.handleChangeMultiple=(e,t)=>{const{selected:a,onChange:n}=this.props;let r=[];r=t?[...a,e]:a.filter((t=>t!==e)),n(r)}}render(){const{allowMultiple:e,options:t,selected:a,title:n,disabled:r,bordered:o}=this.props,i=e?Vd:Od;return c.default.createElement(jd,{disabled:r},n&&c.default.createElement(Bd,null,n),t.map((e=>c.default.createElement(i,Object.assign({key:e.value,bordered:o,checked:a.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const Wd=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),Zd={width:S.base,height:S.base},Kd=m.default(ye).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${S.base};width:${S.base};top:unset;}`,Ud=m.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${L.text.inputLabel.fontFamily};font-size:${L.text.inputLabel.fontSize};font-weight:${L.text.inputLabel.fontWeight};line-height:${L.text.inputLabel.lineHeight};color:${L.text.inputLabel.color};`,_d=m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${L.fontFamily};font-size:${L.sizes[3]};line-height:${L.sizes[4]};color:${L.colors.neutral.ink.light};`,Yd=m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${L.text.error.fontFamily};font-size:${L.text.error.fontSize};font-weight:${L.text.error.fontWeight};line-height:${L.text.error.lineHeight};color:${L.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${L.sizes[2]} * -1);width:2px;background-color:${L.colors.secondary.red.base};}`,qd=m.default(Ke).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Gd=m.default(bt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,Jd=t=>a=>{var{label:n,hint:r,error:o,tooltip:i}=a,l=Z(a,["label","hint","error","tooltip"]);const s=e.useMemo((()=>K(t.name)),[]);return n?c.default.createElement(qd,{spacing:"sm",alignX:"stretch"},c.default.createElement("div",null,c.default.createElement(Ke,{direction:"horizontal",alignY:"center",spacing:"sm"},c.default.createElement(Ud,{id:`${s}-label`,htmlFor:s},n),i&&c.default.createElement(Gd,{text:i},c.default.createElement(Ye,{width:L.sizes.base,height:L.sizes.base,color:L.colors.neutral.ink.light}))),r&&c.default.createElement(_d,null,r)),c.default.createElement(t,Object.assign({id:s,hasError:!!o},l)),o&&c.default.createElement(Yd,null,o)):c.default.createElement(t,Object.assign({hasError:!!o},l))},Xd=m.default(Qs).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${gd(L.text.body)} display:flex;align-items:center;border:1px solid ${L.colors.neutral.ink.lightest};border-radius:${L.radius.base};gap:${L.sizes.xs};padding:${L.sizes.sm};margin-top:${L.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${L.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${L.colors.secondary.red.light};border:1px solid ${L.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${L.colors.secondary.red.light};\n border: 1px solid ${L.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${L.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${L.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${L.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${L.radius.base};&[data-invalid]{color:${L.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${L.colors.secondary.blue.dark};&[data-invalid]{background-color:${L.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${L.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,Qd=Jd((({id:e,className:t,style:a,shouldForceLeadingZeros:n=!0,hasError:r,minValue:o,maxvalue:i,startValue:l,endValue:s,isDisabled:d,isReadOnly:u,"aria-label":m,"aria-describedby":f,"aria-labelledby":p,onChangeStartDate:h,onChangeEndDate:g})=>c.default.createElement(Xd,{style:a,className:t,"aria-label":m,"aria-describedby":f,"aria-labelledby":null!=p?p:`${e}-label`,$hasError:r,isDisabled:d},c.default.createElement(rd,{shouldForceLeadingZeros:n,onChange:h,value:l,minValue:o,maxValue:i,"aria-describedby":f,"aria-labelledby":null!=p?p:`${e}-label`,"aria-label":"start date",isDisabled:d,isReadOnly:u},c.default.createElement(sd,{slot:"start"},(e=>c.default.createElement(ud,{segment:e})))),c.default.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),c.default.createElement(rd,{shouldForceLeadingZeros:n,onChange:g,value:s,minValue:o,maxValue:i,"aria-describedby":f,"aria-labelledby":null!=p?p:`${e}-label`,"aria-label":"end date",isDisabled:d,isReadOnly:u},c.default.createElement(sd,{slot:"end"},(e=>c.default.createElement(ud,{segment:e}))))))),eu=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",a="14px";return"sm"===e&&(t="32px",a="12px"),`\n height: ${t};\n font-size: ${a};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,tu=Jd(e.forwardRef(((t,a)=>{var{className:n,options:r,value:o,onChange:i,size:l,disabled:s,hasError:d}=t,u=Z(t,["className","options","value","onChange","size","disabled","hasError"]);const m=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return c.default.createElement(eu,Object.assign({className:n,sizeVariant:l,value:null!=o?o:void 0,onChange:m,disabled:s,hasError:d,ref:a},u),!!r&&r.map((e=>c.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label))))})));tu.displayName="Select";const au=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?L.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,nu=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${au}{box-shadow:0 0 0 4px ${L.colors.brand.blue.light};}&:checked + ${au}{background-color:#0079d1;}&:disabled + ${au}{background-color:${L.colors.neutral.grey.base};}&:checked:disabled + ${au}{background-color:${L.colors.secondary.blue.light};}`,ru=m.default.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;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;}${au}: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"};}${nu}:checked + ${au}{&: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"});}}`,ou=m.default(v).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,iu=e.forwardRef((({id:e,className:t,name:a,switched:n,small:r,onClick:o=(()=>{}),disabled:i,ariaLabel:l},s)=>c.default.createElement(ou,{className:t,disabled:i},c.default.createElement(ru,{small:r,disabled:i},c.default.createElement(nu,{id:e,role:"switch",type:"checkbox",name:a,"aria-label":l,checked:!!n,onChange:i?void 0:o,disabled:i,ref:s}),c.default.createElement(au,{switched:n,disabled:i}))))),lu=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],su=({options:t=lu,selectedPreviousPeriod:a,setSelectedPreviousPeriod:n})=>{const[r,o]=e.useState(!!a);return e.useEffect((()=>{a||null==n||n(t[0])}),[a,n,t]),c.default.createElement(c.default.Fragment,null,c.default.createElement(M,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:L.sizes.sm,whiteSpace:"nowrap"}},c.default.createElement(iu,{small:!0,switched:r,onClick:()=>{r&&(null==n||n(null)),o(!r)}}),"Compare previous period"),r&&c.default.createElement(tu,{"aria-label":"Period to compare against",options:t,value:(null==a?void 0:a.value)||t[0].value,onChange:e=>{const a=t.find((({value:t})=>t===e));a&&(null==n||n(a))}}))};var du;!function(e){e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS",e.LAST_90_DAYS="LAST_90_DAYS",e.LAST_MONTH="LAST_MONTH",e.LAST_12_MONTHS="LAST_12_MONTHS",e.WEEK_TO_DATE="WEEK_TO_DATE",e.MONTH_TO_DATE="MONTH_TO_DATE",e.YEAR_TO_DATE="YEAR_TO_DATE"}(du||(du={}));const uu=e=>{const t=Yt(Qt());let a;switch(e){case du.TODAY:a={start:t,end:t};break;case du.YESTERDAY:a={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case du.LAST_7_DAYS:a={start:t.subtract({days:7}),end:t};break;case du.LAST_30_DAYS:a={start:t.subtract({days:30}),end:t};break;case du.LAST_90_DAYS:a={start:t.subtract({days:90}),end:t};break;case du.LAST_MONTH:{const e=ea(t.subtract({months:1}));a={start:e,end:ta(e)};break}case du.LAST_12_MONTHS:{const e=ea(t.subtract({months:1}));a={start:ea(e).subtract({months:12}),end:ta(e)};break}case du.WEEK_TO_DATE:a={start:oa(t,navigator.language),end:t};break;case du.MONTH_TO_DATE:a={start:ea(t),end:t};break;case du.YEAR_TO_DATE:a={start:aa(t),end:t};break;default:return null}return(e=>{const{start:t,end:a}=e;return{start:new Ua(t.year,t.month,t.day),end:new Ua(a.year,a.month,a.day)}})(a)},cu=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:du.TODAY},{label:"Yesterday",value:du.YESTERDAY},{label:"Last 7 Days",value:du.LAST_7_DAYS},{label:"Last 30 Days",value:du.LAST_30_DAYS},{label:"Last 90 Days",value:du.LAST_90_DAYS},{label:"Last Month",value:du.LAST_MONTH},{label:"Last 12 Months",value:du.LAST_12_MONTHS},{label:"Week to Date",value:du.WEEK_TO_DATE},{label:"Month to Date",value:du.MONTH_TO_DATE},{label:"Year to Date",value:du.YEAR_TO_DATE}],mu=du.LAST_30_DAYS;uu(mu),cu.find((({value:e})=>e===mu));const fu=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:a,end:n}=t,[r,o]=[a,n].sort();return e.some((([e,t])=>r>=e&&r<=t||o>=e&&o<=t||r<=e&&o>=t))},pu=m.default.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${L.sizes.base};border-top:1px solid ${L.colors.neutral.grey.base};`;function hu(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function gu(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${gu(e.min,"max-content")}, ${gu(e.max)})`;default:return t||"1fr"}}function vu({pinnedLeft:e,pinnedRight:t,cellWidths:a,scrollPosition:n,visible:r,stripingMode:o}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${a?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(a,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: ${a?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(a,a.length-t):0}px;\n }\n `)),s="start"!==n&&"none"!==n,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 `,u="end"!==n&&"none"!==n,c=`\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: ${u?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${L.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${L.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${L.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${L.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${r.map((e=>gu(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 ${c}\n\n ${"nested"===o?f:m}\n `}var bu;!function(e){e.ascending="ascending",e.descending="descending"}(bu||(bu={}));const yu=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),wu=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),xu=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),Eu=({sortState:e,columnId:t,size:a})=>e&&e.columnId===t?e.direction===bu.ascending?c.default.createElement(wu,{color:L.colors.neutral.ink.dark,size:a}):c.default.createElement(xu,{color:L.colors.neutral.ink.dark,size:a}):c.default.createElement(yu,{size:a});function Du(t,a){const[n,r]=e.useState([]),o=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),a=Array.from(e).map((e=>e.getBoundingClientRect().width));r(a)};return e.useEffect((()=>{o()}),[t.current]),e.useEffect((()=>{if(!a.current)return;const e=h.default(o,50),t=new f.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current]),n}function $u(e){const t=e.filter((e=>!0!==e.hidden)),a=t.filter((e=>"left"===e.pinned)),n=t.filter((e=>"right"===e.pinned)),r=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...a,...r,...n],pinnedLeft:a,pinnedRight:n}}function Cu(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const a=t.current,n={left:0,x:0},r=t=>{if(!a)return;const r=t.clientX-n.x;a.scrollLeft=n.left-r,e||(a.style.cursor="grabbing",a.style.userSelect="none"),e=!0},o=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),e=!1,a&&(a.style.removeProperty("cursor"),a.style.removeProperty("user-select"))},i=e=>{a&&(n.left=a.scrollLeft,n.x=e.clientX,document.addEventListener("mousemove",r),document.addEventListener("mouseup",o))};return a.addEventListener("mousedown",i),()=>null==a?void 0:a.removeEventListener("mousedown",i)}),[t.current])}function ku(t){const[a,n]=e.useState("start"),r=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:a,scrollWidth:r}=t.current;n(r<e?"none":0!==a?a+e>=r?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",r),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",r)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=h.default(r,50),a=new f.default(e);return a.observe(t.current),()=>a.disconnect()}),[t.current]),{scrollPosition:a,containerRef:t}}const Su="56px",Ru=m.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Su};display:flex;align-items:center;justify-content:${({align:e="left"})=>hu(e)};background-color:white;padding-left:${({spacing:e=3})=>L.sizes[e]};padding-right:${({spacing:e=3})=>L.sizes[e]};border-bottom:1px solid ${L.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Iu(e){var{selected:t,indeterminate:a,onChange:n,selectionMode:r}=e,o=Z(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?c.default.createElement(Ru,Object.assign({},o)):c.default.createElement(Ru,Object.assign({},o),c.default.createElement(Vd,{checked:t,indeterminate:a,onChange:n}))}const Lu=m.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>hu(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>L.sizes[e]};padding-right:${({spacing:e=3})=>L.sizes[e]};color:${L.text.bodySmall.color};font-family:${L.text.bodySmall.fontFamily};font-size:${L.text.bodySmall.fontSize};font-style:${L.text.bodySmall.fontStyle};font-weight:${L.text.bodySmall.fontWeight};line-height:${L.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${L.colors.secondary.blue.base};background-color:${L.colors.neutral.grey.lightest};}`;function Nu(e){var{selected:t,rowId:a,onChange:n,selectionMode:r,disabled:o}=e,i=Z(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?c.default.createElement(Lu,Object.assign({},i),c.default.createElement(Od,{value:a,checked:t,disabled:o,onChange:n})):c.default.createElement(Lu,Object.assign({},i),c.default.createElement(Vd,{value:a,checked:t,disabled:o,onChange:n}))}const Pu=[[],()=>{}];function Tu({selectionMode:e="multiple",selectionState:t,enabledRowIds:a}){const n=!!t,[r,o]=t||Pu,i=()=>{r.length!==a.length?o(a):o([])};return{selectionEnabled:n,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,n)=>c.default.createElement(Iu,Object.assign({},n,{selected:r.length===a.length,indeterminate:r.length>0&&r.length<a.length,onChange:i,selectionMode:e})),renderCell:(t,a,n,r)=>c.default.createElement(Nu,Object.assign({},a,{rowId:t.id,selected:r.selected,onChange:n.setSelected,selectionMode:e,disabled:r.disabled}))},setSelected:(t,a)=>{if(null!=a)if(t&&"single"===e)o([a]);else if(t){if(r.includes(a))return;const e=[...r,a];o(e)}else{const e=r.findIndex((e=>e===a));if(e<0)return;const t=[...r];t.splice(e,1),o(t)}}}}const Mu=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:${L.colors.neutral.ink.lightest};`,zu=m.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${L.text.headingTable.color};font-family:${L.text.headingTable.fontFamily};font-size:${L.text.headingTable.fontSize};font-style:${L.text.headingTable.fontStyle};font-weight:${L.text.headingTable.fontWeight};line-height:${L.text.headingTable.lineHeight};`,Fu=m.default(zu).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 ${Mu}{background-color:${L.colors.neutral.grey.light};color:${L.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${L.colors.secondary.blue.light};}`;function Vu({column:e,sortState:t,onChangeSort:a}){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 n={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,n);const r=e.sortable?Fu:zu,o=e.sortable?{onClick:()=>{if(!t)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const n=function({sortState:e,columnId:t}){const a=e.columnId===t,n=e.direction===bu.ascending;let r=bu.ascending;return a&&n&&(r=bu.descending),{columnId:t,direction:r}}({sortState:t,columnId:e.id});a?a(n):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return c.default.createElement(Ru,Object.assign({},n),c.default.createElement(bt,{text:e.tooltip},c.default.createElement(r,Object.assign({},o),e.icon&&e.icon,e.title&&c.default.createElement("span",null,e.title),e.sortable&&c.default.createElement(Mu,null,c.default.createElement(Eu,{sortState:t,columnId:e.id,size:5})))))}const Au=L.colors.neutral.grey.base,Ou=L.colors.neutral.grey.dark,ju=m.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${L.radius.base};background:${Au};background-image:linear-gradient(\n to right,\n ${Au} 0%,\n ${Ou} 20%,\n ${Au} 40%,\n ${Au} 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 Bu=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:${Su};background-color:white;`,Hu=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 ${L.colors.neutral.grey.base};& > *{flex:1;}`;function Wu({selectionColumn:t,intersectionTargetRef:a,containerRef:n,children:r}){var o;const[i,l]=e.useState(!1);e.useEffect((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{l(!e.isIntersecting)}))}));return e.observe(a.current),()=>e.disconnect()}),[a.current]);const s=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect(),d={position:"fixed",top:0,left:null==s?void 0:s.left,width:null==s?void 0:s.width},u=i?d:{position:"absolute",top:0,left:0,right:0};return c.default.createElement(Bu,{style:u},Vu({column:t}),c.default.createElement(Hu,null,r))}const Zu=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Ku=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Uu=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const _u=m.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${L.sizes.lg};padding-bottom:${L.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${L.sizes.md};`,Yu=m.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${L.sizes.md};background-color:${L.colors.neutral.grey.light};border-radius:${L.radius.full};`,qu=m.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Gu=m.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${L.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 `}`,Ju=m.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Xu=m.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${L.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Qu=m.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,ec={full:`border-width: 1px; border-radius: ${L.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},tc=m.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${L.colors.neutral.grey.dark};${({borderMode:e="full"})=>ec[e]} &,& *{box-sizing:border-box;}`;function ac({children:t,intersectionTargetRef:a,containerRef:n,cellWidths:r,tableCss:o}){const i=e.useRef(null),[l,s]=e.useState(!1),[d,u]=e.useState({top:0,left:0,width:0,height:0}),m=()=>{var e;const t=null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect(),a={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};u(a)},p=()=>{var e;if(!n.current)return;const t=n.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{s(!e.isIntersecting)}))}),{threshold:1});return e.observe(a.current),()=>e.disconnect()}),[a.current]),e.useEffect((()=>{l&&n.current&&m()}),[n.current,l]),e.useEffect((()=>{if(!l)return;if(!n.current)return;const e=h.default(m,33),t=new f.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current,l]),e.useEffect((()=>{p()}),[l]),e.useEffect((()=>{var e;return null===(e=n.current)||void 0===e||e.addEventListener("scroll",p),()=>{var e;null===(e=n.current)||void 0===e||e.removeEventListener("scroll",p)}}),[n.current]),!l)return null;const g=Object.assign(Object.assign({},d),{height:Su,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${L.colors.neutral.grey.base}`}),v=o+r.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return c.default.createElement("div",{style:g,ref:i},c.default.createElement(Xu,{css:v},c.default.createElement("thead",null,t)))}const nc=(e,{selectedRowIds:t,expandedRowIds:a,disabledRowIds:n})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==a?void 0:a.includes(e))||!1,disabled:(null==n?void 0:n.includes(e))||!1}),rc={icon:c.default.createElement(qe,{width:48,height:48}),heading:"No results"},oc=()=>{},ic=({ActionBarSlot:t,borderMode:a,columns:n,emptyState:r=rc,expandedRowIds:o,loading:i,loadingRowCount:l,onChangeSort:s,rows:d,disabledRowIds:u,selectionMode:m,selectionState:f,setExpanded:p,sortState:h,stripingMode:g,enableStickyHeader:v})=>{const b=e.useRef(null),y=e.useRef(null),w=e.useRef(null);Cu(b);const x=d.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:D,selectionColumn:$,setSelected:C}=Tu({selectionMode:m,selectionState:f,enabledRowIds:x}),k={setSelected:C||oc,setExpanded:p||oc},S=[$,...n],R=E?S:n,I=Du(y,b),{visible:L,pinnedLeft:N,pinnedRight:P}=$u(R),{scrollPosition:T}=ku(b),z=vu({pinnedLeft:N,pinnedRight:P,cellWidths:I,scrollPosition:T,visible:L,stripingMode:g});if(i){const e=new Array(l).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return c.default.createElement(tc,{borderMode:a},c.default.createElement(Ju,{ref:b},c.default.createElement(Xu,{css:z,ref:y,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Gu,{role:"row"},L.map((e=>Vu({column:e,sortState:h,onChangeSort:s}))))),c.default.createElement("tbody",{role:"rowgroup"},e.map((e=>c.default.createElement(Gu,{key:e.id},L.map((t=>function(e,t){if(!0===t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return c.default.createElement(Lu,Object.assign({},a),c.default.createElement(ju,null))}(e,t))))))))))}if(0===d.length)return c.default.createElement(tc,{borderMode:a},c.default.createElement(Ju,{ref:b},c.default.createElement(Xu,{css:z,ref:y,role:"table"},c.default.createElement("thead",{role:"rowgroup"},c.default.createElement(Gu,{role:"row"},L.map((e=>Vu({column:e,sortState:h,onChangeSort:s}))))),c.default.createElement("tbody",{role:"rowgroup"},c.default.createElement(_u,{columnCount:L.length},c.default.createElement(Yu,null,r.icon),c.default.createElement(Ke,{spacing:"sm",alignX:"center"},c.default.createElement(M,{variant:"headingMedium"},r.heading),r.subheading&&c.default.createElement(M,{variant:"subheadingMedium"},r.subheading)))))));const F=e=>{const{e2eClassName:t="",accentColor:a}=e,n=nc(e.id,{selectedRowIds:D,expandedRowIds:o,disabledRowIds:u});return c.default.createElement(Gu,Object.assign({role:"row",key:e.id,accentColor:a,className:t},n),L.map((t=>function(e,t,a,n){if(t.hidden)return null;const r={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,r,a,n)}(e,t,k,n))))},V=(e,t)=>{var a,n;const r=null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.e2eClassNames)||void 0===n?void 0:n.row,i=nc(t,{selectedRowIds:D,expandedRowIds:o,disabledRowIds:u});return c.default.createElement(Gu,{role:"row",key:e.id,className:r},L.map((t=>function(e,t,a){if(t.hidden)return null;const n={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing};return t.renderNestedCell?t.renderNestedCell(e,n,a):c.default.createElement(Lu,Object.assign({},n))}(e,t,i))))},A=e=>{var t;const a=null==o?void 0:o.includes(e.id);return c.default.createElement("tbody",{role:"rowgroup",key:e.id},F(e),a&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>V(t,e.id)))))},O=c.default.createElement(Gu,{role:"row"},L.map((e=>Vu({column:e,sortState:h,onChangeSort:s})))),j=n.some((e=>!!e.renderFooter)),B=D.length>0&&!!t;return c.default.createElement(tc,{borderMode:a},B&&c.default.createElement(Wu,{selectionColumn:$,intersectionTargetRef:w,containerRef:b},t),c.default.createElement(Ju,{ref:b},v&&c.default.createElement(ac,{tableCss:z,intersectionTargetRef:w,containerRef:b,cellWidths:I},O),c.default.createElement("div",{ref:w,style:{height:0}}),c.default.createElement(Xu,{css:z,ref:y,role:"table"},c.default.createElement("thead",{role:"rowgroup"},O),(()=>{const e=!!o;return e&&"nested"===g?d.map(A):e?c.default.createElement("tbody",{role:"rowgroup"},d.map((e=>{var t;return[F(e),...(null==o?void 0:o.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>V(t,e.id))))||[]]}))):c.default.createElement("tbody",{role:"rowgroup"},d.map(F))})(),j&&c.default.createElement("tfoot",{role:"rowgroup"},c.default.createElement(Gu,{role:"row"},L.map((e=>function({column:e}){if(e.hidden)return null;const t={key:e.id,role:"cell",align:e.align,spacing:e.spacing};return e.renderFooter?e.renderFooter(e,t):c.default.createElement(Lu,Object.assign({},t))}({column:e}))))))))};ic.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},ic.Cell=Lu,ic.ColumnMenu=function({columns:t,columnGroups:a,setColumns:n}){const[r,o]=e.useState(null),[i,l]=e.useState(!1),s=t.map((e=>[e.id,e])),d=Object.fromEntries(s),u=a.map((e=>e.map((e=>d[e])))),m=(e,a)=>{const r=u[e].map((e=>e.id)),o=[...t];r.forEach((e=>{const t=o.findIndex((t=>t.id===e));t<0||(o[t]=Object.assign(Object.assign({},o[t]),{hidden:a}))})),n(o)};return c.default.createElement(c.default.Fragment,null,c.default.createElement(ye,{ref:o,dropdown:!0,onClick:()=>l(!0)},"Columns"),i&&c.default.createElement(ae,{anchorElement:r,onShouldClose:()=>l(!1)},c.default.createElement(Me,{style:{width:600}},c.default.createElement(Ke,{alignX:"stretch",spacing:"sm"},u.map(((e,t)=>c.default.createElement(Ke,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(Uu,null)}),c.default.createElement(Ke,{spacing:"sm",style:{flex:1}},e.map((e=>c.default.createElement("div",{key:e.id},e.title)))),c.default.createElement(Ke,{direction:"horizontal",spacing:"sm"},e[0].hidden?c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(Ku,null),onClick:()=>m(t,!1),style:{color:L.colors.neutral.ink.lightest}}):c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(Zu,null),onClick:()=>m(t,!0)})))))))))},ic.SelectionCell=Nu,ic.SelectionHeader=Iu,ic.Header=Ru,ic.Truncate=Qu,ic.NoWrap=qu;const lc=m.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${L.sizes.base};}`,sc=m.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${L.sizes.xs};}`,dc=m.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${L.sizes.base};}`,uc=m.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${L.sizes.xs};}`,cc=m.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${L.text.bodyBold.fontFamily};font-size:${L.text.bodyBold.fontSize};font-weight:${L.text.bodyBold.fontWeight};line-height:${L.text.bodyBold.lineHeight};color:${L.text.bodyBold.color};`,mc=m.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${L.text.body.fontFamily};font-size:${L.text.body.fontSize};font-weight:${L.text.body.fontWeight};line-height:${L.text.body.lineHeight};color:${L.text.body.color};`,{sizes:fc,colors:pc}=L,hc=m.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${fc.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${fc.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,gc=m.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${fc.md};overflow-x:hidden;background-color:${pc.neutral.grey.lightest};`,vc=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 bc;!function(e){e.base="base",e.sm="sm"}(bc||(bc={}));const yc=({hasError:e,inputSize:t})=>a.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 "}`,wc=m.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${L.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",a="14px";return"sm"===e&&(t="32px",a="12px"),`\n height: ${t};\n font-size: ${a};\n `}} ${yc} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,xc=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;${yc}`,Ec=/^-?[0-9]*\.?[0-9]+$/,Dc=Jd(e.forwardRef(((t,a)=>{var{id:n,className:r,disabled:o=!1,hasError:i,max:l,min:s,multiline:d=!1,name:u,onChange:m,pattern:f,placeholder:p,rows:h="3",size:g=bc.base,step:v,type:b="text",value:y,spellCheck:w=!1}=t,x=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"!==b)return void m(t);new RegExp(Ec).test(t)&&m(t)}),[m,b]),D=null!=n?n:K("textfield");return"text"===b&&d?c.default.createElement(xc,Object.assign({className:r,disabled:o,hasError:i,id:D,name:u,onChange:E,placeholder:p,rows:h,value:y,spellCheck:w,ref:a},x)):c.default.createElement(wc,Object.assign({className:r,disabled:o,hasError:i,id:D,inputSize:g,max:l,min:s,name:u,"aria-label":u,onChange:E,placeholder:p,step:v,type:b,value:y,spellCheck:w,ref:a},x))})));Dc.displayName="TextField";const $c=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Cc=m.default(v).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,kc=m.default(Dc).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${L.colors.neutral.ink.lightest};}`,Sc=m.default(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${L.colors.neutral.ink.lightest};`;m.default(M).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,m.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${L.text.error.fontFamily};font-size:${L.text.error.fontSize};font-weight:${L.text.error.fontWeight};line-height:${L.text.error.lineHeight};color:${L.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${L.sizes[2]} * -1);width:2px;background-color:${L.colors.secondary.red.base};}`,m.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${L.fontFamily};font-size:${L.sizes[3]};line-height:${L.sizes[4]};color:${L.colors.neutral.ink.light};`;const Rc=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Ic=["-","+","E","e"],Lc=e=>Rc(e,Ic),Nc=Jd((e=>{var{size:t=bc.base,handleChangeHeight:a,handleChangeWidth:n,handleChangeLength:r,className:o,height:i,width:l,length:s,unit:d}=e,u=Z(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return c.default.createElement($c,{className:o},c.default.createElement(Cc,null,c.default.createElement(kc,Object.assign({onChange:r,size:t,name:"length",type:"number",placeholder:"L",value:s,min:"0",step:"any",onKeyDown:Lc},u)),c.default.createElement(De,{height:L.sizes.base,width:L.sizes.base}),c.default.createElement(kc,Object.assign({onChange:n,size:t,name:"width",type:"number",placeholder:"W",value:l,min:"0",step:"any",onKeyDown:Lc},u)),c.default.createElement(De,{height:L.sizes.base,width:L.sizes.base}),c.default.createElement(vc,null,c.default.createElement(kc,Object.assign({onChange:a,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:Lc},u)),c.default.createElement(Sc,{size:t},d))))}));Nc.displayName="DimensionsInput";const Pc=m.default(t.motion(Me.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${L.colors.neutral.grey.base};border-radius:${L.radius.base};padding:${L.sizes.base};`,Tc=a=>{var{id:n,children:r,className:o,style:i,reversed:l,anchorElement:s,useAnchorWidth:d,onShouldClose:u}=a,m=Z(a,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==s?void 0:s.focus()),[s]),c.default.createElement(ae,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:u,useAnchorWidth:d,placement:"bottom-start"},m),c.default.createElement(t.AnimatePresence,null,c.default.createElement(Pc,{className:o,style:i,useAnchorWidth:d,reversed:l,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},r)))},Mc=(t,a)=>{const n=e.useRef(null),r=e.useCallback((e=>{"Escape"===e.key&&(null==a||a())}),[a]),o=e.useCallback((e=>{n.current.contains(e.target)||null==a||a()}),[a]);return e.useEffect((()=>{if(t)return document.addEventListener("click",o),document.addEventListener("keyup",r),()=>{document.removeEventListener("click",o),document.removeEventListener("keyup",r)}}),[o,r,t]),n};function zc(){const[t,a]=e.useState(!1),n=e.useCallback((()=>a(!t)),[t,a]),r=e.useCallback((()=>a(!1)),[a]);return{shouldShowDropdown:t,toggleShouldShowDropdown:n,setShouldShowDropdown:a,closeDropdown:r}}const Fc=c.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const Vc=(t=!1)=>{const[a,n]=e.useState(t);return[a,e.useCallback((()=>n(!0)),[n]),e.useCallback((()=>n(!1)),[n])]},Ac=t=>{const[a,n]=e.useState(!1),[r,o]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;n(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:a&&!r,onScroll:e=>{if(!t)return;const{scrollTop:a,scrollHeight:n,clientHeight:r}=e.target;o(n-a-r<=0)}}},Oc=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${w.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${S.base};height:${S.base};}`,jc=m.default(M).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Bc=m.default(jc).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Hc=m.default(Ee).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Wc=m.default(De).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Zc=m.default(v).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,Kc=m.default(v).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 ${w.neutral.grey.base};svg{color:${({color:e})=>e};width:${S[5]};height:${S[5]};margin-right:10px;}`,Uc=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),_c=m.default(v).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?S[e]:0};`,Yc=e=>c.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),qc=m.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Gc=m.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Jc=m.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Xc=m.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Qc=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}),em={width:64,height:64},tm={icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"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({},em)),title:"No data found"},am={icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"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({},em)),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 nm;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(nm||(nm={}));const{text:rm,sizes:om}=L,{blue:im}=L.colors.secondary,{grey:lm}=L.colors.neutral,{scrollbar:sm}=L.colors.system,dm='\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',um=m.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,cm=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 ${lm.dark};border-bottom:1px solid ${lm.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: ${sm.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${sm.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:a,scrollPosition:n})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${dm};\n\n ${n===nm.middle||n===nm.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${a}):after,\n th:nth-last-child(${a}):after {\n left: 0;\n transform: translate(-100%);\n ${dm};\n\n ${n===nm.start||n===nm.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,mm=m.default(cm).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${lm.dark};border-radius:4px;`,fm=m.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,pm=m.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${lm.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:${lm.lightest};padding:1.5rem 1rem;border-top:1px solid ${im.base};}`;const hm=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 `}`,gm=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:${rm.bodySmall.fontFamily};font-size:${rm.bodySmall.fontSize};font-weight:${rm.bodySmall.fontWeight};color:${rm.bodySmall.color};line-height:${om.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,vm=m.default(gm).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${lm.dark};font-family:${rm.bodySmallBold.fontFamily};font-size:${rm.bodySmallBold.fontSize};font-weight:${rm.bodySmallBold.fontWeight};color:${rm.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${lm.light};}`,bm={left:"flex-start",center:"center",right:"flex-end"},ym=m.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?bm[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,wm=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 & ${pm}:nth-child(even) td {\n background-color: ${lm.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${vm}, & ${vm} span {\n white-space: nowrap;\n }\n `}`,xm=m.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${gm}{border-top:1px solid ${lm.dark};background-color:${lm.lightest};padding-top:${om.base};padding-bottom:${om.base};line-height:2rem;}`,Em=m.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Dm=m.default(wm).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,$m=m.default(v).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;`,Cm=m.default(v).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${L.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,km=m.default(M).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Sm=m.default(M).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Rm=({height:e,icon:t,title:a,subTitle:n})=>c.default.createElement($m,{height:e},c.default.createElement(Cm,null,t),c.default.createElement(km,{variant:"headingLarge"},a),n&&c.default.createElement(Sm,{variant:"subheadingMedium"},n)),Im=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:${L.sizes.base};border-radius:${L.radius.base};&:hover{cursor:pointer;background-color:${L.colors.secondary.blue.lightest};}`,Lm=m.default(Im).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${L.text.link.color};text-decoration:${L.text.link.textDecoration};`,Nm=m.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Pm}=L.colors.neutral,Tm=m.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,Mm=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, ${Pm.base} 8%, ${Pm.dark} 15%, ${Pm.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,zm=({isLoading:e,style:t})=>c.default.createElement(Tm,{style:t},c.default.createElement(Mm,{isLoading:e})),Fm=e=>{var{style:t}=e,a=Z(e,["style"]);return c.default.createElement(gm,Object.assign({},a),c.default.createElement(zm,{style:t}))};Fm.defaultProps={style:{}};const Vm=({renderHeader:t,tableRef:a,wrapperRef:n,isFixedLayout:r,wrapperStyle:o})=>{var i;const[l,d]=e.useState(null),{isSticky:u}=((t,a)=>{const[n,r]=e.useState(!1),o=e.useCallback((({top:e,bottom:t})=>{let o=n;o=e<=(a||0)&&t>0?!n||o:!n&&o,o!==n&&r(o)}),[n,a]);return e.useEffect((()=>{const e=()=>{var e;t.current&&o(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[o,t]),{isSticky:n}})(a,parseInt("string"==typeof(null==o?void 0:o.top)?null==o?void 0:o.top:`${null==o?void 0:o.top}`,10)),m=((null===(i=n.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;s.useScroll(n);const f=e=>{var t;const a=(null===(t=n.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=a:l&&(l.scrollLeft=a)};return f(),u?c.default.createElement(Em,{ref:e=>{d(e),f(e)},style:Object.assign({width:m},o)},c.default.createElement(Dm,{style:{tableLayout:r?"fixed":"auto"}},t())):null},Am=e=>{const t=[];return e.forEach((({index:e,style:a})=>t.push(`\n > td:${void 0!==a.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==a.left?"left":"right"}: ${void 0!==a.left?a.left:a.right}px;\n z-index: ${a.zIndex};\n }\n `))),t.join("\n\n")},Om=e=>{var{style:t,width:a,isLoading:n}=e,r=Z(e,["style","width","isLoading"]);return c.default.createElement(vm,Object.assign({},r,{style:{width:a}}),c.default.createElement(zm,{style:t,isLoading:n}))},jm=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Bm=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Hm=()=>c.default.createElement(yu,{width:L.sizes.base,height:L.sizes.base,color:"lightgrey"}),Wm=()=>c.default.createElement(jm,{width:L.sizes.base,height:L.sizes.base,color:"lightgrey"}),Zm=()=>c.default.createElement(Bm,{width:L.sizes.base,height:L.sizes.base,color:"lightgrey"}),Km=({borderless:t=!1,striped:a=!0,noWrap:n=!1,showScrollbar:r=!1,headers:o,rows:i,renderRow:l,renderNestedRow:s,expandedRowIds:d,renderLoadingRow:u,renderFooterRow:m,renderFooterLoadingRow:f,omitFooterSelectionCell:p=!1,selectedRowIds:h,disabledSelectionInputRowIds:g,selectionMode:v="multiple",onChangeSelectedRowIds:b,sortColumnId:y,sortDirection:w,onChangeSort:x,isError:E=!1,isLoading:D=!1,skeletonRowsNumber:$=5,isHeaderSticky:C=!0,stickyHeaderStyle:k,customSpecificState:S,bodyHeightInSpecificStates:R=375,startFixedColumnsNumber:I,endFixedColumnsNumber:L})=>{const N=t?cm:mm,P=!!i&&0===i.length,T=Boolean(I||L),M=!I&&!L,z=e.useRef(null),F=e.useRef(null),[V,A]=e.useState(nm.none);e.useEffect((()=>{var e;let t=null;const a=()=>{if(!F.current||M)return;const e=F.current,t=e.scrollWidth+2,{scrollLeft:a}=e,{width:n}=e.getBoundingClientRect(),r=a+n;t===n?A(nm.none):0===a?A(nm.start):a>0&&r<t?A(nm.middle):r===t&&A(nm.end)};return F.current&&(t=F.current,a(),null===(e=F.current)||void 0===e||e.addEventListener("scroll",a)),()=>{null==t||t.removeEventListener("scroll",a)}}),[z,M]);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,a)=>({index:"left"===a?e:-e,style:{position:"sticky",[a]:t,zIndex:1}})),[]),B=e.useCallback((()=>{if(!o||D)return null;const e=[],t=[];let a=0,n=0;if(I){h&&(e.push(j(1,a,"left")),a+=58);for(let t=0;t<I;t+=1){const n=O(o[t].width);n&&(e.push(j(h?t+2:t+1,a,"left")),a+=n)}}if(L)for(let e=0;e<L;e+=1){const a=O(o.slice(-e-1)[0].width);a&&(t.push(j(e+1,n,"right")),n+=a)}return 0===e.length&&0===t.length?null:[...e,...t]}),[D,O,L,j,o,I,h]),H=e.useMemo((()=>B()),[B]),W=e.useCallback(((e,t)=>{if(!h||!b)return;if(e)return"single"===v?void b([t.id]):void b([...h,t.id]);const a=[...h],n=a.findIndex((e=>e===t.id));a.splice(n,1),b(a)}),[b,h,v]),Z=e.useCallback((()=>{if(!h||!b)return;if(h.length===i.length)return void b([]);const e=i.map((e=>e.id));b(e)}),[b,i,h]),K=e.useCallback((e=>{if(void 0===y||void 0===x)return;let t=y,a="ascending";"ascending"===w&&(a="descending"),e!==y&&(t=e,a="ascending"),x(t,a)}),[x,y,w]),U=e.useCallback(((e,t)=>{let a="",n=()=>{},r=c.default.createElement(Hm,null);const{tooltip:o,align:i,icon:l,title:s,sortable:d,id:u}=e;d&&(a="sortable",n=()=>K(u),y===u&&(r="ascending"===w?c.default.createElement(Wm,null):c.default.createElement(Zm,null)));const m=c.default.createElement(ym,{align:i},l&&l,s&&c.default.createElement("span",null,s),d&&r);return c.default.createElement(vm,{key:u,id:`data-table-header-${u}`,className:a,onClick:n,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},o?c.default.createElement(bt,{text:o},c.default.createElement(um,null,m)):m)}),[K,y,w]),_=e.useCallback(((e,t)=>c.default.createElement(Om,{key:e.id,width:e.width||"auto",style:t,isLoading:D})),[D]),Y=e.useCallback((()=>{if(!o)return null;const e=B(),t=e?e[0].style:{};return c.default.createElement(fm,null,c.default.createElement(hm,null,h&&c.default.createElement(vm,{style:Object.assign({width:58},t)},"multiple"===v&&c.default.createElement(Vd,{checked:i.length>0&&(null==h?void 0:h.length)===i.length||!1,onChange:Z,disabled:g&&g.length>0||D||P,ariaLabel:"Select all"})),o.map(((t,a)=>{const n=h?a+2:a+1,r=a-o.length,i=null==e?void 0:e.find((e=>e.index===n||e.index===r));return t.skeleton&&(D||E||P)?_(t,t.skeletonStyle||{}):U(t,(null==i?void 0:i.style)||{})}))))}),[B,Z,o,P,E,D,_,U,i.length,h,v,g]),q=e.useCallback(((e,t)=>{const a={checked:e,onChange:e=>W(e,t),disabled:(null==g?void 0:g.includes(t.id))||!1};return"single"===v?c.default.createElement(Od,Object.assign({},a)):c.default.createElement(Vd,Object.assign({},a))}),[W,v,g]),G=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===v?c.default.createElement(Fm,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):c.default.createElement(Fm,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[v]),J=e.useCallback(((e,t)=>{var a,n;if(!s)return null;const r=s(e);if(!r)return null;const o=(null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.e2eClassNames)||void 0===n?void 0:n.row)||"";return c.default.createElement(hm,{key:e.id,className:`${o} ${t?"hidden":""}`},h&&c.default.createElement(gm,null),r)}),[s,h]),X=e.useCallback((e=>{if(!o)return c.default.createElement(Fm,null);const t=o.map((t=>c.default.createElement(Fm,{key:`${e}-${t.id}`})));return h&&t.unshift(G(e)),t}),[o,G,h]),Q=()=>m?D&&!f||!D&&P?null:c.default.createElement(xm,{fixedColumnsStyle:Am(H||[])},c.default.createElement(hm,null,h&&!p&&c.default.createElement(gm,null),!D&&m(i),D&&f&&f())):null;let ee=I;h&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,a,n;const{data:r}=e,o=!!h&&h.includes(e.id),i=!d||d.includes(e.id),s=null===(t=null==r?void 0:r.e2eClassNames)||void 0===t?void 0:t.body,u=null!==(n=null===(a=null==r?void 0:r.e2eClassNames)||void 0===a?void 0:a.row)&&void 0!==n?n:"",m=o?`selected ${u}`:`${u}`;return c.default.createElement(pm,{key:e.id,className:s,fixedColumnsStyle:Am(H||[])},c.default.createElement(hm,{key:e.id,className:m,accentColor:e.accentColor},h&&c.default.createElement(gm,null,q(o,e)),l(e)),e.nestedRows&&e.nestedRows.map((e=>J(e,!i))))}))),[i,d,H,J,l,q,h]);if(D){const e=[];for(let t=0;t<$;t+=1)e.push(c.default.createElement(pm,{key:`loading-row-${t}`,fixedColumnsStyle:Am(H||[])},c.default.createElement(hm,null,u?c.default.createElement(c.default.Fragment,null,h&&G(),u()):X(t))));return c.default.createElement(N,{ref:F,scrollDisabled:!0,scrollPosition:V,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:L},C&&o&&c.default.createElement(Vm,{renderHeader:Y,tableRef:z,wrapperRef:F,isFixedLayout:T,wrapperStyle:k}),c.default.createElement(wm,{ref:z,striped:a,noWrap:n,tableLoading:!0,isFixedLayout:T},Y(),e,Q()))}if(P||E){let e=tm;return S?e=S:E&&(e=am),c.default.createElement(N,{scrollDisabled:!0},c.default.createElement(wm,{ref:z,striped:a,noWrap:n,tableLoading:!1,isFixedLayout:T},Y(),Q()),c.default.createElement(Rm,Object.assign({height:R},e)))}return c.default.createElement(N,{scrollDisabled:!1,ref:F,scrollPosition:V,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:L,showScrollbar:r},C&&o&&c.default.createElement(Vm,{renderHeader:Y,tableRef:z,wrapperRef:F,isFixedLayout:T,wrapperStyle:k}),c.default.createElement(wm,{ref:z,striped:a,noWrap:n,tableLoading:!1,isFixedLayout:T},Y(),te,Q()))};Km.Cell=gm,Km.ClickableCell=e=>{var{onClick:t,children:a}=e,n=Z(e,["onClick","children"]);return c.default.createElement(gm,Object.assign({},n),c.default.createElement(Lm,{onClick:t},a))},Km.EditableCell=e=>{var{onClick:t,children:a}=e,n=Z(e,["onClick","children"]);return c.default.createElement(gm,Object.assign({},n),c.default.createElement(Im,{onClick:t},c.default.createElement(Nm,null,a)))},Km.SkeletonCell=Fm,Km.SkeletonContent=zm;const Um=m.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,_m="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Ym="Log in with Amazon",qm=a.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,Gm=m.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${L.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Me.Footer} {\n box-shadow: 0px 10px 15px 0px ${L.colors.neutral.ink.dark};\n }\n `}`,Jm=e=>!!e.footerSlot,Xm={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Qm={[x.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[x.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[x.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[x.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[x.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},ef={xs:x.mobile,sm:x.mobile,base:x.tablet,lg:x.lgTablet},{breakpoints:tf}=L,af=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:${L.sizes.sm};box-shadow:${L.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Me.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Xm[e]};`} ${Gm}{padding-bottom:${L.sizes.md};}${Me.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${tf.mobile} + 1px))and (max-width: ${tf.tablet}){max-width:${({variant:e})=>Qm[tf.tablet][e]};}@media (min-width: ${tf.tablet})and (max-width: ${tf.lgTablet}){max-width:${({variant:e})=>Qm[tf.lgTablet][e]};}@media (min-width: ${tf.lgTablet})and (max-width: ${tf.desktop}){max-width:${({variant:e})=>Qm[tf.desktop][e]};}@media (min-width: ${tf.desktop}){max-width:${({variant:e})=>Qm[tf.lgDesktop][e]};}@media (max-width: ${({variant:e})=>ef[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Me.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${J(L.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,nf=c.default.forwardRef(((e,t)=>{var a=Z(e,[]);return c.default.createElement(af,Object.assign({ref:t},a))})),{sizes:rf,text:of,shadows:lf}=L,{grey:sf}=L.colors.neutral,df=m.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${rf.base} ${rf.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&lf[e]};`,uf=m.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${of.headingXL.fontFamily};font-size:${of.headingXL.fontSize};font-weight:${of.headingXL.fontWeight};margin:unset;line-height:1;`,cf=m.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${of.subheadingLarge.fontFamily};font-weight:${of.subheadingLarge.fontWeight};font-size:${of.subheadingLarge.fontSize};line-height:${of.subheadingLarge.lineHeight};`,mf=m.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${L.radius.base};border:${rf.line} solid ${sf.base};object-fit:cover;`,ff=m.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,pf=m.default(ye).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${L.text.link.fontFamily};font-size:${L.text.link.fontSize};font-weight:${L.text.link.fontWeight};line-height:${L.text.link.lineHeight};color:${L.text.link.color};&:hover{text-decoration:${L.text.link.textDecoration};}& > * + *{margin-left:${L.sizes.xs};}`,hf=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:${rf.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,gf=m.default(Ke).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${L.sizes.lg};height:30px;background-color:${L.colors.neutral.grey.light};border:1px solid ${L.colors.neutral.grey.base};border-radius:${L.sizes.xs};`,vf=m.default(ye).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${L.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,bf=m.default(Dc).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,yf=({count:e})=>c.default.createElement(c.default.Fragment,null,c.default.createElement("div",null,c.default.createElement(M,{variant:"bodySmall","aria-hidden":!0},"/")),c.default.createElement(gf,{alignX:"center",alignY:"center","aria-hidden":!0},c.default.createElement(M,{variant:"bodySmall"},e))),wf=({currentPage:t,totalPagesCount:a,handleChangePage:n})=>{const[r,o]=e.useState(`${t}`);e.useEffect((()=>{o(`${t}`)}),[t]);const i=e=>e>=1&&e<=a,l=()=>{if(r||o(`${t}`),r===`${t}`)return;const e=parseInt(r,10);i(e)&&n(e)};return{pageInputValue:r,handleIncrement:()=>{i(t+1)&&n(t+1)},handleDecrement:()=>{i(t-1)&&n(t-1)},handleInputChange:e=>{e||o(e);const t=parseInt(e,10);var a;i(a=t)&&o(`${a}`)},handleSubmit:l,handleFormSubmit:e=>{e.preventDefault(),l()}}},xf=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Ef=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Df=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],$f=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Cf=m.default(lt).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,kf=m.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${w.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;}`,Sf=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Rf=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${w.secondary.blue.base};background:${w.neutral.grey.lightest};}`,If=({item:t,handleRangeListChange:a})=>{const n=e.useCallback((()=>a(t)),[a,t]);return c.default.createElement(Sf,{onClick:n},c.default.createElement(Rf,{variant:"bodySmall"},t.label))},Lf=t=>{const{handleRangeListChange:a,paginationRange:n=Df}=t;return c.default.createElement(c.default.Fragment,null,n.map((t=>c.default.createElement(e.Fragment,{key:t.label},c.default.createElement(If,{item:t,handleRangeListChange:a})))))};class Nf 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=Df[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=Df,reversedDropdown:a}=this.props,{shouldShowDropdown:n,dropdownValue:r}=this.state;return c.default.createElement($f,{className:e},c.default.createElement(Cf,{cta:c.default.createElement(kf,{onClick:this.toggleShouldShow},c.default.createElement(M,{variant:"bodySmall"},r.label),c.default.createElement(ve,{color:L.colors.neutral.ink.base})),shouldShowDropdown:n,onClickAway:this.toggleShouldShow,reversed:a},c.default.createElement(Lf,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const Pf=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;}`,Tf=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;}`,Mf=({onIncrement:e,onDecrement:t,disabled:a=!1,size:n})=>c.default.createElement(Pf,{size:n},c.default.createElement(Tf,{type:"button",onClick:e,disabled:a},c.default.createElement(W,{height:L.sizes.base,width:L.sizes.base,color:L.colors.neutral.ink.base})),c.default.createElement(Tf,{type:"button",onClick:t,disabled:a},c.default.createElement(Ee,{height:L.sizes.base,width:L.sizes.base,color:L.colors.neutral.ink.base}))),zf=m.default(Dc).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${L.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${L.colors.neutral.ink.lightest};}`,Ff=m.default(v).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${L.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?L.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;}}`,Vf=m.default(M).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Af=m.default(vc).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 ${L.colors.secondary.red.light};\n\n > * {\n border-top-color: ${L.colors.secondary.red.base};\n border-bottom-color: ${L.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${L.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${L.colors.secondary.red.base};\n border-right-color: ${L.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${L.colors.secondary.red.base};\n border-bottom-color: ${L.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${L.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?L.colors.secondary.red.base:L.colors.secondary.blue.base};}}`;const Of=Jd((e=>{var{className:t="",hasError:a,currency:n,disabled:r=!1,onChange:o,onPriceChange:i,priceValue:l,step:s="0.1",size:d=bc.base}=e,u=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 c.default.createElement(Af,{className:t,hasError:a},c.default.createElement(Ff,{disabled:r,size:d},c.default.createElement(Vf,{variant:"hintText"},n)),c.default.createElement(zf,Object.assign({placeholder:"0.00",type:"currency",value:l,step:s,onChange:e=>o(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:a}=t;if(!a)return void i("");const n=parseFloat(a.replace(",",".")).toFixed(2);i(n)},onKeyDown:e=>{const{key:t}=e,a=e.target;a.form||"Enter"===t&&a.blur(),"ArrowUp"===t&&m(o),"ArrowDown"===t&&f(o)},disabled:r,size:d},u)),c.default.createElement(Mf,{onIncrement:()=>m(),onDecrement:()=>f(),disabled:r,size:d}))}));Of.displayName="PriceInput";const jf=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;`,Bf=m.default(Dc).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Hf=m.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,Wf=m.default(v).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;",a="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",a="left: 0.5rem;"),`\n & ${Bf} {\n ${t}\n }\n\n & ${Hf} {\n ${a}\n }\n `}}`,Zf=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),Kf=L.colors.neutral.grey.lightest,Uf=L.colors.neutral.grey.dark,_f=L.colors.secondary.blue.dark,Yf=m.default(v).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${Kf};border-color:${Uf};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${L.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${_f};border-color:${_f};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${L.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,qf=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, ${L.colors.neutral.ink.base});font-family:${L.text.bodySmall.fontFamily};font-style:${L.text.bodySmall.fontStyle};font-size:${L.text.bodySmall.fontSize};line-height:${L.text.bodySmall.lineHeight};font-weight:${L.text.bodySmall.fontWeight};text-decoration:${L.text.bodySmall.textDecoration};letter-spacing:${L.text.bodySmall.letterSpacing};`,Gf=m.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${L.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${L.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${L.text.bodySmall.fontFamily};font-style:${L.text.bodySmall.fontStyle};`,Jf={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Xf={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:Qf}=w.secondary,{grey:ep}=w.neutral,tp=m.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,ap=m.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Qf.lightest};}`,np=m.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,rp=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:${I.bodySmall.fontFamily};font-size:${I.bodySmall.fontSize};font-weight:${I.bodySmall.fontWeight};color:${I.bodySmall.color};line-height:${S.base};& > *{vertical-align:middle;}`,op=m.default(rp).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${ep.dark};font-family:${I.bodySmallBold.fontFamily};font-size:${I.bodySmallBold.fontSize};font-weight:${I.bodySmallBold.fontWeight};color:${I.bodySmallBold.color};`,ip=m.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${ap} tr:nth-child(even) td {\n background-color: ${ep.lightest};\n }\n `}`,lp=({striped:e=!0,className:t,children:a})=>c.default.createElement(ip,{striped:e,className:t},a);lp.Header=tp,lp.Body=ap,lp.Row=np,lp.HeaderCell=op,lp.Cell=rp;const sp=m.default(v).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;}}`;sp.displayName="Skeleton";const dp=m.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,up=m.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${L.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,cp=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 ${L.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 ${L.colors.secondary.blue.light};}`,mp=m.default(up).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${L.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,fp=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}),pp=m.default(v).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:w.neutral.ink.base};\n background-color: ${null!=e?e:w.neutral.grey.base};\n `}`,hp=m.default(Ke).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,gp=m.default(Ke).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${L.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${L.shadows.lg};border-radius:${L.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;}`,vp=m.default(v).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${L.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${S.md};height:${S.md};}`,bp=m.default(Ke).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,yp=m.default(M).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,wp={info:{accentColor:w.brand.blue.base,icon:c.default.createElement(qe,null)},success:{accentColor:w.secondary.green.base,icon:c.default.createElement(Ge,null)},error:{accentColor:w.secondary.red.base,icon:c.default.createElement(_e,null)},merge:{accentColor:w.secondary.purple.base,icon:c.default.createElement((e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},xp=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ep=({className:e,e2eClassName:t,type:a,iconSlot:n,text:r,last:o,minWidth:i,cta:l,onClose:s})=>{const d=xp(e),u=xp(t);return c.default.createElement(gp,{className:q([null==d?void 0:d.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:i,last:o},c.default.createElement(vp,{color:wp[a].accentColor,className:q([d.icon,u.icon])},null!=n?n:wp[a].icon),c.default.createElement(bp,{direction:"horizontal",alignY:"center",alignX:"between"},c.default.createElement(yp,{variant:"body"},r),l),c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(De,{color:"white"}),onClick:s,"aria-label":"Close"}))},Dp=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:${L.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let a="40px",n="24px",r="24px",o="8px",i="16px",l="4px",s="white",d="#CDD1D5",u="#37424D";return"sm"===e&&(a="32px",n="16px",r="16px",o="4px",i="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",u="white"),`\n --outline-width: ${l};\n\n height: ${a};\n padding-left: ${n};\n padding-right: ${r};\n border-radius: ${o};\n font-size: ${i};\n\n background-color: ${s};\n border-color: ${d};\n color: ${u};\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;}`,$p=m.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${S.md};border-radius:${E.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${w.neutral.ink.lightest};background-color:${w.neutral.grey.lightest};:hover{border:2px dashed ${w.secondary.blue.base};background-color:${w.secondary.blue.lightest};}:active{border:2px dashed ${w.secondary.blue.base};box-shadow:0 0 0 4px ${w.secondary.blue.light};background-color:${w.secondary.blue.lightest};}:focus-within{border:2px dashed ${w.secondary.blue.base};box-shadow:0 0 0 4px ${w.secondary.blue.light};background-color:${w.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${w.secondary.red.base};:hover{border:2px dashed ${w.secondary.red.base};background-color:${w.secondary.red.lightest};}:active{border:2px dashed ${w.secondary.red.base};box-shadow:0 0 0 4px ${w.secondary.red.light};background-color:${w.secondary.red.lightest};}:focus-within{border:2px dashed ${w.secondary.red.base};box-shadow:0 0 0 4px ${w.secondary.red.light};background-color:${w.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${w.neutral.grey.light};border-color:${w.neutral.ink.lightest};color:${w.neutral.ink.light};}`;var Cp,kp,Sp;exports.AcceptedFileTypes=void 0,(Cp=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",Cp.JPEG=".jpeg",Cp.JPG=".jpg",Cp.GIF=".gif",Cp.PNG=".png",exports.FileSizeUnit=void 0,(kp=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",kp.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"}(Sp||(Sp={}));const Rp=()=>c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},c.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"}),c.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"})),Ip=()=>c.default.createElement(Ke,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},c.default.createElement(Rp,null),c.default.createElement(M,{variant:"subheadingSmall",style:{paddingTop:S.sm}},"Browse files or drag them here")),Lp=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?c.default.createElement(Ke,{alignX:"start",spacing:"xs"},e&&c.default.createElement(M,{variant:"errorSmall"},"Invalid format (",e,")"),t&&c.default.createElement(M,{variant:"errorSmall"},"File is too big (",t,")")):null,Np=m.default(M).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Pp=m.default(Ke).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${w.neutral.ink.lightest};border-radius:${E.base};padding:${S.xs};${M}{padding-left:${S.xs};}`,Tp=({file:e,resetSelection:t,disabled:a})=>e?c.default.createElement(Pp,{alignX:"between",direction:"horizontal",alignY:"center"},c.default.createElement(Np,{variant:"body"},null==e?void 0:e.name),c.default.createElement(ye,{size:"sm",variant:"flat",onClick:t,icon:c.default.createElement(De,null),"aria-label":"Remove file",disabled:a})):null,Mp=e.forwardRef(((t,a)=>{var{id:n,name:r,maxBytes:o=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:l,label:s="Upload file",required:d,disabled:u}=t,m=Z(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=e.useRef(null);e.useImperativeHandle(a,(()=>f.current),[]);const[p,h]=e.useState(),[g,v]=e.useState(Sp.VALID),b=g===Sp.INVALID_FORMAT||g===Sp.INVALID_FORMAT_AND_SIZE,y=g===Sp.INVALID_SIZE||g===Sp.INVALID_FORMAT_AND_SIZE,w=(({maxBytes:e,format:t,baseString:a})=>{const n=null==a?"Max size: ":a;switch(t){case exports.FileSizeUnit.KB:return`${n}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${n}${Number(e)/1e6} MB`;default:return`${n}${Number(e)/1e3} KB`}})({maxBytes:o,format:i}),x=(({fileTypes:e,baseString:t})=>{let a=null==t?"Valid types: ":t;return e.forEach(((e,t,n)=>{const r=n.length>1,o=t===n.length-1&&r,i=t===n.length-2&&r;switch(o&&(a+=" and "),e){case exports.AcceptedFileTypes.CSV:a+="CSV";break;case exports.AcceptedFileTypes.GIF:a+="GIF";break;case exports.AcceptedFileTypes.JPEG:a+="JPEG";break;case exports.AcceptedFileTypes.JPG:a+="JPG";break;case exports.AcceptedFileTypes.PNG:a+="PNG"}!i&&!o&&n.length>2&&(a+=", ")})),a})({fileTypes:l}),E=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,a,n)=>{const r=n.length-1===a&&n.length>1;t+=r?`${e}`:`${e}, `})),t.trim()})({fileTypes:l}),D=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var a;let n=Sp.VALID;t&&!e?n=Sp.INVALID_FORMAT:!t&&e?n=Sp.INVALID_SIZE:t&&e&&(n=Sp.INVALID_FORMAT_AND_SIZE),null===(a=f.current)||void 0===a||a.setCustomValidity(n),v(n)},C=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,a=t.size>o,[,r]=t.type.split("/"),i=!l.find((e=>e.substring(1)===r));a||i?D():(({fileList:e,elementId:t})=>{const a=document.getElementById(t);e.length&&(a.files=e)})({fileList:e,elementId:n}),$({invalidFormat:i,overMaxSize:a}),h(t)}),[l,n,o]),k=e.useCallback((()=>{D(),h(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),R=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?C(t):k()}),[k,C]);return e.useEffect((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",R),null==e||e.addEventListener("cancel",k),()=>{null==e||e.removeEventListener("change",R),null==e||e.removeEventListener("cancel",k)}}),[R,k]),c.default.createElement(qd,{spacing:"sm",alignX:"stretch"},c.default.createElement(Ud,{htmlFor:n},s,c.default.createElement(Ke,{spacing:3,alignX:"stretch",style:{paddingTop:S.sm}},c.default.createElement(_d,null,c.default.createElement("div",null,x),c.default.createElement("div",null,w)),c.default.createElement($p,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&C(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()}},c.default.createElement(Ip,null),c.default.createElement("input",Object.assign({ref:f,id:n,type:"file",accept:E,name:r,required:d,disabled:u},m))))),c.default.createElement(Ke,{alignX:"stretch",spacing:"sm"},c.default.createElement(Tp,{file:p,resetSelection:k,disabled:u}),c.default.createElement(Lp,{acceptedTypesCopy:b?x:void 0,maxSizeCopy:y?w:void 0})))})),zp="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Fp=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${zp} display:${e=>e.shouldShow?"initial":"none"};z-index:${L.layers.modal};`,Vp=m.default(v).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${zp} background-color:rgba(55,66,77,0.5);`,Ap=m.default(v).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Op=({usePortal:e,children:t})=>c.default.createElement(c.default.Fragment,null,e?c.default.createElement(U,null,t):t),jp=({className:e,children:t=null,shouldShow:a=!1,usePortal:n=!0})=>c.default.createElement(Op,{usePortal:n},c.default.createElement(Fp,{className:q([`${e}-container`,e]),shouldShow:a},c.default.createElement(Vp,null),c.default.createElement(g.default,{isActive:a},c.default.createElement(Ap,{className:q([`${e}-wrap`,e])},t)))),Bp=m.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Hp=m.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Wp=m.default(ye).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var Zp;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Zp||(Zp={}));const Kp=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Up=m.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,_p=m.default(v).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 ${M} {\n color: ${null!=t?t:w.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Yp=m.default(M).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 & > ${Up} {\n color: #fff;\n }\n `}`,qp={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},Gp=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,Jp=e=>c.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Xp=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 Qp;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Qp||(Qp={}));const eh=e=>c.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),c.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"})),th=m.default(M).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,ah=m.default(eh).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,nh=m.default(De).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,rh=m.default(M).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 & > ${th} {\n color: ${w.neutral.grey.lightest};\n }\n `}`,oh=m.default(v).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${L.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${w.neutral.grey.base};\n & > ${rh} {\n background-color: ${w.neutral.grey.base};\n & > ${th} {\n color: ${w.neutral.ink.base};\n }\n }\n & > ${M} {\n color: ${null!=e?e:w.neutral.ink.dark};\n }\n & > ${ah} {\n color: ${w.neutral.ink.dark};\n }\n & > ${nh} {\n color: ${w.neutral.ink.dark};\n }\n }\n\n & > ${M} {\n color: ${null!=e?e:w.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:a})=>e&&`\n background-color: ${t.lightest};\n\n & > ${ah} {\n color: ${t.dark};\n }\n & > ${nh} {\n color: ${t.dark};\n }\n\n & > ${M} {\n color: ${null!=a?a:t.dark};\n }\n `}`,ih=m.default(fe).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${L.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${oh} {\n background-color: ${w.neutral.grey.base};\n & > ${rh} {\n background-color: ${w.neutral.grey.base};\n & > ${th} {\n color: ${w.neutral.ink.base};\n }\n }\n & > ${M} {\n color: ${null!=e?e:w.neutral.ink.dark};\n }\n & > ${ah} {\n color: ${w.neutral.ink.dark};\n }\n & > ${nh} {\n color: ${w.neutral.ink.dark};\n }\n }\n `}`,lh={style:{marginLeft:S.xs,padding:S.xs,height:S.base,width:S.base}},sh=m.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${S.sm};svg{height:${S.base};width:${S.base};}`,dh=c.default.forwardRef(((e,t)=>{var{id:a,iconSlot:n,name:r,type:o,className:i,colourPalette:l=w.secondary.blue,customTextColour:s,count:d,active:u=!1,onClick:m,subAction:f,ariaContext:p}=e,h=Z(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const g={delete:(v=i)?`${v}-delete`:void 0,edit:v?`${v}-edit`:void 0,container:v?`${v}-view`:void 0,active:v?`${v}-active`:void 0,counter:v?`${v}-counter`:void 0};var v;const[b,y,x]=Vc(),E=u&&f?f:m,D=o===Qp.draft,$=o===Qp.saved;return c.default.createElement(ih,Object.assign({className:q([null==g?void 0:g.container]),onClick:()=>E(a),role:"tab","aria-selected":u,"aria-label":`${u&&D?"Delete":u&&$?"Edit":""} ${r} view ${d?`with ${d} ${p}`:""}`,customTextColour:s,ref:t},h),c.default.createElement(oh,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:l,customTextColour:s},n&&c.default.createElement(sh,null,n),c.default.createElement(M,{variant:"bodyBold"},r),null!=d&&c.default.createElement(rh,{"data-testid":"countContainer",active:u||b,colourPalette:l,customTextColour:s},c.default.createElement(th,{variant:"subheadingSmall"},d)),D&&c.default.createElement(nh,Object.assign({},lh,{"aria-label":"delete icon"})),$&&u&&c.default.createElement(ah,Object.assign({},lh,{"aria-label":"edit icon"}))))})),uh=m.default(Ke).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;`,ch=m.default(Ke).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${w.neutral.grey.lightest};`,mh=m.default(yd).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${w.neutral.ink.base};`,fh=m.default(Nt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${w.neutral.ink.base};`,ph=m.default(eh).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${w.neutral.ink.base};`,hh=m.default(ye).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${w.neutral.grey.lightest};}`,gh=m.default(ye).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${mh}{color:${w.neutral.ink.lightest};}}&:hover{background-color:${w.neutral.grey.lightest};}`,vh=m.default(ye).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${fh}{color:${w.neutral.ink.lightest};}}&:hover{background-color:${w.neutral.grey.lightest};}`,bh=m.default(vc).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,yh=(t,a)=>{var n;const[r,o]=e.useState(!0),[i,l]=e.useState(!1),[d,u]=e.useState([]),c=null===(n=null==t?void 0:t.current)||void 0===n?void 0:n.querySelector("[aria-selected = true]"),m=s.usePrevious(c),f=e.useCallback((()=>{var e,a;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 n=t.current.scrollWidth-t.current.clientWidth;t.current.scrollLeft>=n-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(a=document.getElementById("left-arrow"))||void 0===a||a.focus()),l(!0)):l(!1)}),[t]),p=e.useCallback((()=>{var e;void 0!==typeof(null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.scrollWidth)&&(t.current.scrollWidth-t.current.getBoundingClientRect().width<5?l(!0):l(!1))}),[t]),h=e.useCallback((()=>{const e=((e,t,a)=>{for(let n=0;n<e.length;n++){if(void 0===e[n+3])return t-a;if(e[n]>=t)return e[n+3]}return t-a})(d,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]),g=e.useCallback((()=>{const e=((e,t)=>{const a=e.slice().reverse();for(let n=0;n<e.length;n++){if(void 0===a[n+3])return 0;if(a[n]<t)return a[n+3]}return 0})(d,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]);return e.useEffect((()=>{var e,n,r,o,i,l,s,h,g,v;if(t){if((null===(n=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.children)||void 0===n?void 0:n.length)&&(null===(o=null===(r=null==t?void 0:t.current)||void 0===r?void 0:r.children)||void 0===o?void 0:o.length)!==d.length&&d.length>0&&d.length<a.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),u([...d,d[d.length-1]+(null!==(l=null===(i=t.current.children[d.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(h=null===(s=null==t?void 0:t.current)||void 0===s?void 0:s.children)||void 0===h?void 0:h.length)&&0===d.length&&u((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c!==m&&null!==c&&(null===(v=null===(g=null==t?void 0:t.current)||void 0===g?void 0:g.children)||void 0===v?void 0:v.length)===d.length){const e=Array.from(t.current.children).indexOf(c);t.current.scrollTo({left:d[e],top:0,behavior:"smooth"})}return p(),window.addEventListener("resize",(()=>p())),t.current.addEventListener("scroll",(()=>f())),()=>{window.removeEventListener("resize",(()=>p()))}}}),[t,a,p,f,d,c,m]),{rightDisabled:i,leftDisabled:r,toNextScrollPosition:h,toPrevScrollPosition:g}},wh=c.default.forwardRef((({children:t,onClickMenu:a,ariaMenuControls:n,ariaMenuExpanded:r},o)=>{const i=e.useRef(null),{rightDisabled:l,leftDisabled:s,toNextScrollPosition:d,toPrevScrollPosition:u}=yh(i,t);return c.default.createElement(ch,{direction:"horizontal",alignY:"center",alignX:"between"},c.default.createElement(uh,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),c.default.createElement(bh,null,(!s||!l)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(gh,{id:"left-arrow",icon:c.default.createElement(mh,null),disabled:s,onClick:u,variant:"flat","aria-label":"move views to the left"}),c.default.createElement(vh,{id:"right-arrow",icon:c.default.createElement(fh,null),disabled:l,onClick:d,variant:"flat","aria-label":"move views to the right"})),c.default.createElement(hh,{icon:c.default.createElement(ph,null),variant:"flat",onClick:a,"aria-label":"open menu","aria-controls":n,"aria-expanded":r,"aria-haspopup":n?"dialog":void 0,ref:o})))})),xh=m.default(v).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Eh=m.default(v).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Dh=m.default(Dc).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,$h=m.default(ye).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${L.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${L.colors.secondary.red.base};\n `};`,Ch=e=>Rc(e,Ic),kh=Jd((e=>{var{size:t=bc.base,hasError:a,className:n}=e,r=Z(e,["size","hasError","className"]);return c.default.createElement(xh,{className:n},c.default.createElement(Eh,null,"g"===r.weightUnit&&c.default.createElement(vc,null,c.default.createElement(Dh,Object.assign({size:t,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:a,min:"0",step:"any",onKeyDown:Ch},r)),c.default.createElement($h,{hasError:a,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(vc,null,c.default.createElement(Dh,Object.assign({size:t,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:a,step:"any",min:"0",onKeyDown:Ch},r)),c.default.createElement($h,{hasError:a,size:t},"lb")),c.default.createElement(vc,null,c.default.createElement(Dh,Object.assign({size:t,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:a,min:"0",step:"any",onKeyDown:Ch},r)),c.default.createElement($h,{hasError:a,size:t},"oz")))))}));kh.displayName="WeightInput",kh.defaultProps={weightUnit:"lb"},exports.Accordion=({className:a,children:n,label:r,iconSlot:o,glyphColor:i=w.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[u,m]=e.useState(!!d);return c.default.createElement(H,{open:!!d,className:a},c.default.createElement(A,{onClick:()=>m(!u)},c.default.createElement(O,null,c.default.createElement(F,{glyphColor:i},o,c.default.createElement(M,{variant:"body"},r)),c.default.createElement(V,null,c.default.createElement(t.motion.span,{animate:{rotate:u?180:0}},c.default.createElement(W,{name:u?"downArrow":"upArrow"})))),!!s&&c.default.createElement(j,{variant:"hintText"},s)),u&&c.default.createElement(B,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},n))},exports.ActionList=We,exports.Alert=e=>{var{size:t="base",variant:a="default",colours:n,rightActions:r,title:o,titleSlot:i,message:l,children:s,iconSlot:d,onClickClose:u}=e,m=Z(e,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const f=null!=n?n:et[a],p=d||Qe[a],h="xs"===t;return c.default.createElement(Ue,Object.assign({colours:f,direction:"horizontal",alignX:"between",spacing:"0"},m),c.default.createElement(Ke,{direction:"horizontal",alignY:h?"center":"start",style:{margin:Je[t],gap:Je[t]},spacing:0},c.default.createElement(p,{"aria-hidden":!0,style:{minWidth:Xe[t],minHeight:Xe[t],width:Xe[t],height:Xe[t]},color:f.primary}),c.default.createElement(Ke,{direction:"vertical",spacing:h?0:"xs"},i||c.default.createElement(M,{variant:h?"bodySmallBold":"bodyBold",style:"base"===t?{lineHeight:"24px"}:{}},o),s||c.default.createElement(M,{variant:h?"bodySmall":"body"},l))),c.default.createElement(Ke,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:h?void 0:L.sizes[3],gap:h?void 0:Je[t],alignItems:"center"}},r&&c.default.createElement(Ke,{alignY:"center",spacing:0,style:{gap:Je[t]}},r.map((e=>{var{label:t}=e,a=Z(e,["label"]);return c.default.createElement(ye,Object.assign({key:t,type:"button",size:"sm"},a),t)}))),u&&c.default.createElement(Ke,{alignY:h?"center":"start",style:{height:"100%",padding:h?L.sizes.xs:void 0}},c.default.createElement(ye,{variant:"flat",icon:c.default.createElement(De,null),onClick:u,"aria-label":"Close",size:"sm"}))))},exports.Anchor=e=>{var{children:t,href:a,rel:n,allowedHostnames:r=X}=e,o=Z(e,["children","href","rel","allowedHostnames"]);const i=Q(a,r),l=n||(i?"noopener noreferrer":void 0);return c.default.createElement(tt,Object.assign({href:a,rel:l},o),t)},exports.AnimatedDropdown=lt,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:a=L.colors.secondary.blue.base,textColor:n="#ffffff"})=>{const r=t.toUpperCase().match(/\b(\w)/g);return c.default.createElement(st,{width:e,bgColor:a,textColor:n,className:"avatar"},null==r?void 0:r.slice(0,2).map(((e,t)=>c.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:a,tooltip:n,className:r,e2eClassName:o,children:i})=>{const l=wt[e];return c.default.createElement(bt,{text:n},c.default.createElement(l,{className:q([r,o]),hideBorder:t},a&&a,i&&c.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:a,icon:n,onClose:r,className:o,header:i,children:l,backgroundColor:s="white"}=e,d=Z(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Rt[t];return c.default.createElement(xt,Object.assign({accentColor:u,className:o,backgroundColor:s},d),c.default.createElement(Et,null,n&&c.default.createElement($t,{style:{marginRight:S.md},accentColor:u},n),l?c.default.createElement(Ct,null,l):c.default.createElement(c.default.Fragment,null,c.default.createElement(kt,null,i||c.default.createElement(St,{variant:"headingSmall"},a)),c.default.createElement(Dt,null,r&&c.default.createElement(ye,{variant:"flat","aria-label":"Close",icon:c.default.createElement(De,null),onClick:r})))))},exports.BaseContainer=v,exports.Breadcrumbs=({items:e,Separator:t=c.default.createElement(Tt,null),LinkComponent:a=Mt})=>c.default.createElement(It,{className:"breadcrumbs"},e.map(((n,r)=>c.default.createElement(Pt,{key:n.title,title:n.title,href:n.pathname,LinkComponent:r!==e.length-1?a:zt},e.length!==r+1&&t)))),exports.Button=ye,exports.Card=Me,exports.CardHeader=$e,exports.Checkbox=Vd,exports.Choice=Pd,exports.ChoiceList=Hd,exports.CopyToClipboard=({className:t,text:a,onCopy:n})=>{const[r,o]=c.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(a),n&&n(),o(!0),setTimeout((()=>o(!1)),2500)}),[n,a]);return c.default.createElement(bt,{text:r?"Copied!":"Copy to clipboard"},c.default.createElement(Kd,{variant:"flat",size:"sm",className:t,"aria-label":`${r?"Copied":"Copy"} "${a}" to clipboard`,icon:r?c.default.createElement(Ge,Object.assign({color:w.secondary.green.base},Zd)):c.default.createElement(Wd,Object.assign({color:w.secondary.blue.base},Zd)),onClick:i}))},exports.DataTable=ic,exports.DateRangeInput=Qd,exports.DateRangePicker=t=>{var{className:a,style:n,isDisabled:r,isMultiMonth:o=!1,showDatePresets:i=!0,onReset:l,disabledRanges:s,selectedPreset:d,setSelectedPreset:u,selectedRange:m,setSelectedRange:f,"aria-describedby":p,"aria-label":h}=t,g=Z(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const v=e.useCallback((e=>t=>{const a={start:"start"===e?t:null==m?void 0:m.start,end:"end"===e?t:null==m?void 0:m.end};f(a)}),[null==m?void 0:m.end,null==m?void 0:m.start,f]),b=e.useMemo((()=>fu({disabledRanges:s,selectedRange:m})),[s,m]),y=e.useMemo((()=>m?(e=>cu.reduce(((t,a)=>{if(a.hidden||t)return t;const n=uu(a.value);if(!n)return t;const{start:r,end:o}=n;return 0===e.start.compare(r)&&0===e.end.compare(o)?a:t}),void 0))(m):null),[m]);return e.useEffect((()=>{u(y||cu[0])}),[y,u]),c.default.createElement(Ke,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:L.sizes.base},n),className:a,"aria-describedby":p,"aria-label":h},i&&c.default.createElement(tu,{disabled:r,label:"Date Range",options:cu,value:null==d?void 0:d.value,onChange:e=>{f(uu(du[e])),u(cu.find((({value:t})=>t===e))||cu[0])}}),c.default.createElement(Qd,{isDisabled:r,label:"Start date - End date",onChangeStartDate:v("start"),onChangeEndDate:v("end"),startValue:m&&m.start,endValue:m&&m.end,error:b?"Range contains invalid dates":void 0}),g.showPreviousPeriod&&c.default.createElement(su,Object.assign({},g)),c.default.createElement(pu,null),c.default.createElement(Ke,{alignX:"center"},c.default.createElement(wd,{"aria-label":"Selected Date Range",isDisabled:r,isMultiMonth:o,value:m,onChange:f,disabledRanges:s})),!!l&&c.default.createElement(c.default.Fragment,null,c.default.createElement(pu,null),c.default.createElement(Me.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},c.default.createElement(ye,{variant:"default",size:"sm",onClick:l,disabled:r},"Reset"))))},exports.DescriptionList=({items:e,horizontal:t})=>{const a=e=>Array.isArray(e)?e.map((e=>c.default.createElement(mc,{key:e},e))):c.default.createElement(mc,null,e);return c.default.createElement(lc,null,e.map((e=>t?c.default.createElement(dc,{key:e.term},c.default.createElement(cc,null,e.term),c.default.createElement(uc,null,a(e.description))):c.default.createElement(sc,{key:e.term},c.default.createElement(cc,null,e.term),a(e.description)))))},exports.DetailPage=({renderHeader:t,children:a})=>{const[n,r]=e.useState(!0);return c.default.createElement("main",null,t((()=>r(!n)),n),c.default.createElement(gc,null,c.default.createElement(hc,{showSidebar:n},a)))},exports.DimensionsInput=Nc,exports.Dropdown=t=>{var{id:a,shouldShow:n,setShouldShow:r,ctaIconSlot:o,ctaProps:i}=t,l=Z(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const s=e.useRef(null);return c.default.createElement(c.default.Fragment,null,c.default.createElement(ye,Object.assign({ref:s,"aria-haspopup":"dialog","aria-expanded":n,"aria-controls":a,onClick:()=>null==r?void 0:r(!n),icon:o,dropdown:!0},i)),n&&c.default.createElement(Tc,Object.assign({id:a,anchorElement:s.current,onShouldClose:()=>null==r?void 0:r(!1)},l)))},exports.FilterTag=({className:t,e2eClassName:a,label:n,text:r,iconSlot:o,fill:i=w.secondary.blue.base,content:l,footer:s,header:d,onClickAway:u,onClick:m,shouldCloseOnClickAway:f=!0})=>{const p=Uc(t),h=Uc(a),{shouldShowDropdown:g,toggleShouldShowDropdown:v,closeDropdown:b}=zc(),y=e.useCallback((e=>{v(),u&&g&&u(e)}),[v,u,g]),x=e.useCallback((e=>{u&&u(e,b),f&&b()}),[b,u,f]);return!l?c.default.createElement(Oc,{className:q([null==p?void 0:p.container,null==h?void 0:h.container]),onClick:m},n&&c.default.createElement(Bc,{variant:"subheadingSmallBold"},`${n}:`),c.default.createElement(M,null,r),c.default.createElement(Wc,{className:q([null==p?void 0:p.cross,null==h?void 0:h.cross]),name:"cross",size:"base",color:w.neutral.ink.base})):c.default.createElement(lt,{className:p.filterTagDropdown,shouldShowDropdown:g,onClickAway:x,cta:c.default.createElement(Oc,{className:p.container,onClick:y},n&&c.default.createElement(Bc,{variant:"subheadingSmallBold"},`${n}:`),c.default.createElement(M,null,r),c.default.createElement(Hc,{color:w.neutral.ink.base,name:"downArrow",$shouldShow:g}))},c.default.createElement(Zc,null,c.default.createElement(Kc,{color:i},d||c.default.createElement(c.default.Fragment,null,o,c.default.createElement(M,{variant:"bodyBold"},n))),l,s))},exports.FocusVisibleManager=function({children:t}){const[a,n]=e.useState(!0);return e.useEffect((()=>{function e(){n(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(n(!1),r())}function a(){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 r(){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 o(e){e.metaKey||e.altKey||e.ctrlKey||n(!0)}function i(){"hidden"===document.visibilityState&&(n(!0),a())}return document.addEventListener("keydown",o,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),a(),()=>{document.removeEventListener("keydown",o,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),r()}}),[n]),c.default.createElement(Fc.Provider,{value:{hadKeyboardEvent:a,isInitialized:!0}},t)},exports.Grid=_c,exports.Image=({src:t,alt:a="",className:r,e2eClassName:i,width:l,height:s,previewWidth:d,previewHeight:u,previewPlacement:m="right",previewEnabled:f=!1,placeholder:p,placeholderWidth:h,placeholderHeight:g,disablePlaceholder:v=!1})=>{const b=Qc(r),y=Qc(i),[w,x]=e.useState(!1),[E,D]=e.useState({isLoaded:!1,isError:!1}),[$,C]=c.default.useState(null),[k,S]=c.default.useState(null),{styles:R,attributes:I}=n.usePopper($,k,{placement:m,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),L=e.useCallback((()=>f?x(!0):{}),[f]),N=e.useCallback((()=>f?x(!1):{}),[f]),P=!E.isLoaded||E.isError;return c.default.createElement(qc,{className:q([null==b?void 0:b.container,null==y?void 0:y.container,r])},c.default.createElement(Gc,{src:t,alt:a,className:q([null==b?void 0:b.image,null==y?void 0:y.image]),width:l,height:s,onLoad:()=>D({isLoaded:!0,isError:!1}),onError:()=>D({isLoaded:!0,isError:!0}),previewEnabled:f,onMouseEnter:L,onMouseLeave:N,style:P?{display:"none"}:{},ref:C}),!v&&P&&(p||c.default.createElement(Yc,{className:q([null==b?void 0:b.placeholder,null==y?void 0:y.placeholder]),width:h||l,height:g||s})),w&&o.createPortal(c.default.createElement(Jc,Object.assign({ref:S,style:R.popper},I.popper,{className:q([null==b?void 0:b.previewImageContainer,null==y?void 0:y.previewImageContainer])}),c.default.createElement(Xc,{src:t,alt:"",width:d,height:u})),document.body))},exports.InputGroup=vc,exports.LegacyDataTable=Km,exports.Loader=ie,exports.LoginWithAmazonButton=t=>{const[a,n]=e.useState(_m);return c.default.createElement(Um,Object.assign({onMouseDown:()=>{n("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{n(_m)},"aria-label":Ym},t),c.default.createElement("img",{src:a,alt:Ym}))},exports.Modal=a=>{const{shouldShow:n,showHeaderCloseButton:r=!0,fullBleed:o=!1,variant:i="base",onClose:l,children:s}=a,d=e.useRef(null),[u,m]=e.useState(null);e.useEffect((()=>{var e,t;n&&(null===(e=d.current)||void 0===e||e.removeAttribute("open"),null===(t=d.current)||void 0===t||t.showModal())}),[n]);const{isOverflowing:f,onScroll:p}=Ac(u),h=()=>{var e;null===(e=d.current)||void 0===e||e.close(),l()};return c.default.createElement(t.AnimatePresence,null,n&&c.default.createElement("div",{"data-testid":"dialog-wrapper"},c.default.createElement(qm,null),c.default.createElement(nf,{ref:d,onClose:h,variant:i,"aria-describedby":"modal_title"},c.default.createElement(Me.Surface,null,(e=>!!e.headerSlot)(a)?a.headerSlot:c.default.createElement($e,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:a.headerTitle,subtitle:a.headerSubtitle},r&&{onClickClose:h})),c.default.createElement(Gm,{onScroll:p,ref:m,isScrollable:f,fullBleed:o},s),Jm(a)&&a.footerSlot,!Jm(a)&&(a.leftActions||a.rightActions)&&c.default.createElement(Me.Footer,null,c.default.createElement(Ke,{direction:"horizontal",alignX:a.leftActions?"between":"end"},a.leftActions&&c.default.createElement(Ke,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},a.leftActions.map((e=>{var{label:t}=e,a=Z(e,["label"]);return c.default.createElement(ye,Object.assign({key:t,type:"button"},a),t)}))),a.rightActions&&c.default.createElement(Ke,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},a.rightActions.map((e=>{var{label:t}=e,a=Z(e,["label"]);return c.default.createElement(ye,Object.assign({key:t,type:"button"},a),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:a,actions:n,quickActions:r,backAction:o,Accessory:i,shadow:l="none",onClickPrevious:s,onClickNext:d,onClickToggleSidebar:u})=>{const m=n&&c.default.createElement(We,{buttonVariant:r?"default":"primary",title:"Actions",sections:n}),f=null==r?void 0:r.map((e=>c.default.createElement(ye,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),p=o&&c.default.createElement(ye,{onClick:o.onClick,icon:c.default.createElement(yd,null),variant:"link"},o.title),h=u&&c.default.createElement(Ke,{direction:"horizontal",alignX:"end"},c.default.createElement(pf,{onClick:u},c.default.createElement("span",null,"Toggle sidebar"),c.default.createElement(Nt,{width:S.md})));return c.default.createElement(df,{shadow:l},c.default.createElement(Ke,null,p,c.default.createElement(hf,null,c.default.createElement(Ke,{direction:"horizontal",spacing:"md"},a&&c.default.createElement(mf,{src:a,alt:"",width:"72",height:"72"}),c.default.createElement("div",{style:{flex:1}},c.default.createElement(Ke,{alignX:"stretch"},c.default.createElement(uf,null,e),i,t&&c.default.createElement(cf,null,t)))),c.default.createElement(ff,null,c.default.createElement(Ke,{direction:"horizontal",alignX:"end",spacing:"sm"},f,m,s&&c.default.createElement(ye,{icon:c.default.createElement(yd,null),onClick:s}),d&&c.default.createElement(ye,{icon:c.default.createElement(Nt,null),onClick:d})),h))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:a,totalPagesCount:n,handleChangePage:r})=>{const{pageInputValue:o,handleIncrement:i,handleDecrement:l,handleFormSubmit:s,handleInputChange:d,handleSubmit:u}=wf({currentPage:a,totalPagesCount:n,handleChangePage:r});return c.default.createElement(Ke,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},c.default.createElement(vf,{onClick:()=>{1!==a&&r(1)},icon:c.default.createElement(xf,null),size:"sm","aria-label":"go to first page"}),c.default.createElement(vf,{onClick:l,icon:c.default.createElement(yd,null),size:"sm","aria-label":"go to previous page","aria-disabled":a<=1}),c.default.createElement("form",{onSubmit:s},c.default.createElement(bf,{"aria-live":"polite","aria-label":`page ${a} of ${n}`,size:bc.sm,type:"number",value:o,min:"1",max:`${n}`,onChange:d,onBlur:u})),c.default.createElement(yf,{count:n}),c.default.createElement(vf,{onClick:i,icon:c.default.createElement(Nt,null),size:"sm","aria-label":"go to next page","aria-disabled":a>=n}),c.default.createElement(vf,{onClick:()=>{a!==n&&r(n)},icon:c.default.createElement(Ef,null),size:"sm","aria-label":"go to last page","aria-disabled":a>=n}))},exports.PaginationRange=Nf,exports.Popover=ae,exports.Popup=jp,exports.Portal=U,exports.PriceInput=Of,exports.Radio=Od,exports.RangeCalendar=wd,exports.ScreenReaderOnly=({children:e})=>c.default.createElement(jf,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:a,onChange:n,onBlur:r,onFocus:o,onKeyUp:i,onKeyDown:l,onKeyPress:s,value:d="",error:u,placeholder:m="",className:f="",name:p,isLoading:h=!1,fill:g,reversed:v=!1,autoComplete:b="on",size:y="base"})=>{const w=d&&d.length>0;return c.default.createElement(Wf,{className:f,iconPosition:v?"left":"right"},c.default.createElement(Bf,{size:y,type:e,value:d,onChange:n,onBlur:r,onFocus:o,onKeyUp:i,onKeyDown:l,onKeyPress:s,placeholder:m,name:p,disabled:t,error:u,autoComplete:b}),c.default.createElement(Hf,null,h?c.default.createElement(ie,{height:24,color:g||L.colors.secondary.blue.base}):w&&a?c.default.createElement(ye,{variant:"unstyled",onClick:a,style:{display:"flex"},"aria-label":"Clear text",type:"button"},c.default.createElement(De,{color:g||L.colors.neutral.ink.dark})):c.default.createElement(ye,{variant:"unstyled",onClick:()=>n(d),style:{display:"flex"},"aria-label":"Search",type:"button"},c.default.createElement(Zf,{color:g||L.colors.neutral.ink.dark,height:S.md,width:S.md}))))},exports.SegmentedControl=({options:e,selected:t,className:a,onChange:n})=>c.default.createElement(Yf,{className:a?`${a}-container`:void 0},e.map((e=>c.default.createElement(ye,{type:"button","aria-pressed":e.value===t,variant:e.value===t?"primary":"default",key:e.key,onClick:()=>n(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=tu,exports.ShortcutKeys=e=>{var{shortcut:t,label:a,inverse:n=!1,displayLabel:r=!1}=e,o=Z(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>Jf[e]?c.default.createElement(Gf,{key:`Key: ${e}`,"aria-label":Xf[e]},Jf[e]):c.default.createElement(Gf,{key:`Key: ${e}`},e))).reduce(((e,t)=>c.default.createElement(c.default.Fragment,null,e,"+",t)));return c.default.createElement(qf,Object.assign({"aria-label":a,$inverse:n},o),i," ",r?c.default.createElement("span",null,a):null)},exports.SimpleTable=lp,exports.Skeleton=sp,exports.Slider=({id:t,value:a,min:n,max:r,step:o=1,onChange:i,className:l,e2eClassName:s,onSlideStart:d=(()=>{}),onSlideEnd:u=(()=>{})})=>{const[m,f]=e.useState(!1),[p,h]=e.useState(-1),g=e.useRef(null),v=e.useRef(null),b=e.useRef(null),y=fp(l),w=fp(s),x=e.useCallback((e=>{var t;if(!m||!g.current)return;const l=p>-1?a[p]:a,s=g.current.getBoundingClientRect();let d=100*(e.pageX-s.x)/s.width/100*(r-n)+n;const u=l-d;if(u>0&&(d=l+Math.ceil(d/o-l/o)*o),u<0&&(d=l+Math.floor(d/o-l/o)*o),l===d)return;d>r&&(d=r),d<n&&(d=n),Array.isArray(a)&&(0===p&&d>a[1]&&([,d]=a),1===p&&d<a[0]&&([d]=a));const c=o.toString().includes(".")?null===(t=o.toString().split(".").pop())||void 0===t?void 0:t.length:0;let f;d=Number(d.toFixed(c)),f=Array.isArray(a)?0===p?[d,a[1]]:[a[0],d]:d,i(f),Array.isArray(f)&&f[0]===f[1]&&(0===p&&h(1),1===p&&h(0))}),[p,m,r,n,i,o,a]),E=e.useCallback((()=>{f(!1),u()}),[u]),D=e.useCallback(((e,t)=>{f(!0),d(),"number"==typeof t&&h(t),e.preventDefault()}),[d]);e.useEffect((()=>{const e=e=>D(e,Array.isArray(a)?0:1),t=e=>D(e,1),n=v.current,r=b.current;return null==n||n.addEventListener("mousedown",e),null==r||r.addEventListener("mousedown",t),document.addEventListener("mousemove",x),document.addEventListener("mouseup",E),()=>{null==n||n.removeEventListener("mousedown",e),null==r||r.removeEventListener("mousedown",t),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",E)}}),[D,x,E,a]);const $=(e,t,a)=>{let o;return o=q("number"==typeof a?0===a?[null==y?void 0:y.startSlider,null==w?void 0:w.startSlider]:[null==y?void 0:y.endSlider,null==w?void 0:w.endSlider]:[null==y?void 0:y.slider,null==w?void 0:w.slider]),c.default.createElement(cp,{role:"slider",ref:1===a?b:v,className:o,left:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":t})},C=e=>{const t=100*(e[0]<n?0:e[0]-n)/(r-n),a=100*(e[1]>r?100:e[1]-n)/(r-n),o=a-t;return c.default.createElement(c.default.Fragment,null,c.default.createElement(mp,{className:q([null==y?void 0:y.sliderRange,null==w?void 0:w.sliderRange]),left:t,width:o}),$(t,e[0],0),$(a,e[1],1))};let k;return k=Array.isArray(a)?C(a):(e=>{if(Array.isArray(a))return C(a);let t;return t=a>r?100:a<n?0:100*(e-n)/(r-n),$(t,e)})(a),c.default.createElement(dp,{className:q([null==y?void 0:y.container,null==w?void 0:w.container]),id:t,ref:g},c.default.createElement(up,null),k)},exports.Stack=Ke,exports.Stepper=Mf,exports.Tag=pp,exports.Text=M,exports.TextField=Dc,exports.ToastsLayout=({className:t,e2eClassName:a,toasts:n,minWidth:r="50vw",max:l=3,onClose:s})=>(e.useEffect((()=>{l&&n.length>l&&s(n[0].key)}),[n,l,s]),o.createPortal(c.default.createElement(hp,{direction:"vertical",alignX:"center",spacing:4},c.default.createElement(i.TransitionGroup,{component:null},[...n].reverse().map(((e,o)=>c.default.createElement(i.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},c.default.createElement(Ep,Object.assign({className:t,e2eClassName:a,minWidth:r,last:o===n.length-1,onClose:()=>s(e.key)},e))))))),document.body)),exports.Toggle=iu,exports.ToggleButton=({children:e,checked:t,size:a="base",disabled:n=!1,onChange:r})=>c.default.createElement(Dp,{type:"button",checked:t,size:a,disabled:n,"aria-pressed":t,tabIndex:"0",onClick:()=>r(!t)},e),exports.Tooltip=bt,exports.UploadFile=Mp,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:a,handleCloseClick:n})=>{const r=Mc(a,n);return c.default.createElement(jp,{shouldShow:a,className:`${e}-video`},c.default.createElement(Bp,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(a?"visible":"hidden")},c.default.createElement(Hp,{ref:r},c.default.createElement("iframe",{title:`${e}-video`,src:`https://www.youtube.com/embed/${t}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),c.default.createElement(Wp,{variant:"flat",onClick:n,"data-testid":"video-modal--close",icon:c.default.createElement(De,{color:"white"})}))))},exports.View=({id:t,iconSlot:a,name:n,type:r,className:o,colourPalette:i=w.secondary.blue,customTextColour:l,count:s,active:d=!1,onClick:u,onDelete:m,onEdit:f,e2eClassName:p})=>{const h=Xp(o),g=Xp(p),[v,b,y]=Vc(),x=e.useCallback((()=>u(t)),[t,u]),E=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),D=e.useCallback((e=>{e.stopPropagation(),f&&f(t)}),[f,t]),$=r===Zp.draft,C=r===Zp.saved,k=d?w.neutral.ink.dark:w.neutral.ink.base;return c.default.createElement(Kp,{className:`${q([null==h?void 0:h.container,null==g?void 0:g.container])} ${d&&(null==g?void 0:g.active)||""}`,onClick:x},c.default.createElement(_p,{active:d,onMouseEnter:b,onMouseLeave:y,colourPalette:i,customTextColour:l},a&&c.default.createElement(Gp,null,a),c.default.createElement(M,{variant:"bodyBold"},n),s&&c.default.createElement(Yp,{active:d||v,colourPalette:i,customTextColour:l},c.default.createElement(Up,{className:null==g?void 0:g.counter,variant:"subheadingSmall"},s)),$&&c.default.createElement(De,Object.assign({},qp,{color:k,className:null==g?void 0:g.delete,onClick:E})),C&&d&&c.default.createElement(Jp,Object.assign({},qp,{color:k,className:null==g?void 0:g.edit,onClick:D}))))},exports.ViewTab=dh,exports.ViewsContainer=wh,exports.WeightInput=kh,exports.buildClassnames=q,exports.checkIfDateRangeInvalid=fu,exports.generateId=K,exports.getOpaqueHexColor=J,exports.hexToRgb=G,exports.isExternalLink=Q,exports.theme=L,exports.useCellWidths=Du,exports.useClickOutside=Mc,exports.useColumns=$u,exports.useDebounce=(t,a)=>{const[n,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>r(t)),a);return()=>clearTimeout(e)}),[t,a]),n},exports.useDragToScroll=Cu,exports.useDropdown=zc,exports.useFocusVisible=function(){const[e,t]=c.default.useState(!1),{hadKeyboardEvent:a,isInitialized:n}=c.default.useContext(Fc),r=c.default.useCallback((()=>{e||t(!0)}),[e]),o=c.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=n?a&&e:e,c.default.useMemo((()=>({focusVisible:i,onFocus:r,onBlur:o})),[i,o,r])},exports.useHover=Vc,exports.useIsOverflowing=Ac,exports.useNested=function(){const[t,a]=e.useState([]);return{nestedTableProps:{expandedRowIds:t,setExpanded:(e,n)=>{if(n)if(e){if(t.includes(n))return;const e=[...t,n];a(e)}else{const e=t.findIndex((e=>e===n));if(e<0)return;const r=[...t];r.splice(e,1),a(r)}}}}},exports.useScrollPosition=ku,exports.useSelection=Tu,exports.useTabs=(t,a)=>{const{defaultActiveIndex:n=0}=a||{},[r]=e.useState(t),[o,i]=e.useState(r[n]);return[o,e=>{const t=r.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>a=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),c.default.createElement(t,Object.assign({},a))),exports.withLabels=Jd;
|
|
1
|
+
"use strict";var e=require("react"),t=require("framer-motion"),n=require("styled-components"),a=require("react-popper"),o=require("resize-observer-polyfill"),l=require("react-dom"),i=require("uid/secure"),r=require("react-transition-group"),d=require("@internationalized/date"),s=require("react-aria-components"),c=require("lodash.throttle"),u=require("react-use"),m=require("react-scrolllock-configurable");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=f(e),g=f(n),h=f(o),b=f(l),v=f(c),x=f(m);const y=g.default.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,w={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},C=(e,t)=>e||(t?w[t]:void 0),E={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},$={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},k={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var S,L;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(S||(S={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(L||(L={}));const N=function({increment:e,unit:t,count:n}){const a={};for(let o=0;o<=n;o++){const n=o*e;a[o]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),I={[L.none]:"0",[L.line]:"1px",[L.xs]:N[1],[L.sm]:N[2],[L.base]:N[4],[L.md]:N[6],[L.lg]:N[8],[L.xl]:N[12],[L.xxl]:N[16]},z=Object.assign(Object.assign({},I),N),F={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},D={headingXXL:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:E.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:E.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:E.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:E.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:E.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:E.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:E.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:E.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:E.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:E.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:E.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},T=Object.assign(Object.assign({},F),{breakpoints:$,colors:E,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:k,shadows:S,sizes:z,text:D}),{text:R,colors:M,fontFamily:A}=T,O=g.default.span.attrs((({as:e,variant:t})=>({as:C(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:${A};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 `}}`,B=g.default(y).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,j=g.default(B).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${z.base};width:${z.base};color:${({glyphColor:e})=>e};}`,H=g.default(B).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,W=g.default.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${T.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${T.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${T.colors.secondary.blue.light};}`,P=g.default(y).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,V=g.default(O).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,_=g.default(t.motion(y)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Z=g.default.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,q=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),p.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 Y(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 X=e=>`${e}-${i.uid()}`;class K extends e.PureComponent{constructor(e){super(e),this.id=X("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?l.createPortal(e,this.portalNode):null}}const G=g.default.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,U=g.default.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,J=e=>e.filter(Boolean).join(" "),Q=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},ee=(e,t)=>{const n=Q(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},te=["app.veeqo.com"];function ne(e,t=te){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 ae='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',oe=({popperElement:t,anchorElement:n,onClose:a,disableFocusLock:o=!1})=>{e.useEffect((()=>{if(!t||o)return;const e=t.querySelectorAll(ae);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(ae);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(ae),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))}}},le=t=>{var{id:n,children:o,zIndex:l=T.layers.popup,placement:i="bottom",anchorElement:r,rootElementRef:d,onShouldClose:s,style:c,disableFocusLock:u,removeBackdrop:m=!1,useAnchorWidth:f}=t,g=Y(t,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[b,v]=e.useState(null),{styles:x,attributes:y,update:w}=a.usePopper(r,b,{placement:i}),C=e.useMemo((()=>n||X("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:C});const E=()=>{null==r||r.focus(),null==s||s()},{handleKeyDown:$}=oe({popperElement:b,anchorElement:r,onClose:E,disableFocusLock:u});return e.useEffect((()=>{if(!w||!b)return;const e=new h.default(w);return e.observe(b),()=>e.disconnect()}),[w,b]),e.useEffect((()=>{if(w)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[w]),p.default.createElement(K,{rootElementRef:d},!m&&p.default.createElement(U,{onClick:E,zIndex:l,"data-testid":"popover-backdrop"}),p.default.createElement(G,Object.assign({open:!0,id:C,zIndex:l,ref:v,style:Object.assign(Object.assign(Object.assign({},x.popper),c),f?{width:null==r?void 0:r.clientWidth}:{}),onKeyDown:$},y.popper,g),o))},ie=({width:e,height:t,className:n,color:a,label:o})=>p.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":o},p.default.createElement("defs",null,p.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},p.default.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),p.default.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),p.default.createElement("stop",{stopColor:a,offset:"100%"}))),p.default.createElement("g",{fill:"none",fillRule:"evenodd"},p.default.createElement("g",{transform:"translate(1 1)"},p.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},p.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),p.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},p.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),re=({width:e,height:t,className:n,color:a,label:o})=>p.default.createElement("svg",{width:e,height:t,className:n,viewBox:"0 0 105 105",fill:a,"aria-label":o},p.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},p.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),de=({width:e,height:t,className:n,color:a,label:o})=>p.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},p.default.createElement("circle",{cx:"15",cy:"15",r:"15"},p.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),p.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},p.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),p.default.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),p.default.createElement("circle",{cx:"105",cy:"15",r:"15"},p.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),p.default.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),se=({className:e,height:t=24,width:n=24,color:a="#588CB0",type:o="TailSpin"})=>{switch(o){case"Grid":return p.default.createElement(re,{className:e,height:t,width:n,color:a});case"ThreeDots":return p.default.createElement(de,{className:e,height:t,width:n,color:a});default:return p.default.createElement(ie,{className:e,height:t,width:n,color:a})}},ce=g.default.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>z[e]};height:${({size:e})=>z[e]};}`,ue=g.default.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${T.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",o="8px",l="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",o="4px",l="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${o};\n font-size: ${l};\n line-height: ${l};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,me=g.default(ue).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${T.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?T.colors.neutral.ink.base:T.colors.secondary.blue.base};&:hover{background-color:${T.colors.neutral.grey.lightest};}&:active{background-color:${T.colors.neutral.grey.lightest};border-color:${T.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${T.colors.neutral.grey.base} !important;border-color:${T.colors.neutral.grey.base} !important;color:${T.colors.neutral.ink.light} !important;}`,fe=g.default(me).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${T.colors.secondary.red.base};&:hover{color:${T.colors.secondary.red.dark};}&:active{border-color:${T.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};color:${T.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}`,pe=g.default(me).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${T.colors.secondary.blue.base};border-color:${T.colors.secondary.blue.base};color:white;&:hover{background-color:${T.colors.secondary.blue.dark};border-color:${T.colors.secondary.blue.dark};}&:active{background-color:${T.colors.secondary.blue.dark};border-color:${T.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}`,ge=g.default(pe).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${T.colors.secondary.red.base};border-color:${T.colors.secondary.red.base};color:white;&:hover{background-color:${T.colors.secondary.red.dark};border-color:${T.colors.secondary.red.dark};}&:active{background-color:${T.colors.secondary.red.dark};border-color:${T.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.red.light};}`,he=g.default(ue).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${T.colors.neutral.ink.base};&:hover{background-color:${T.colors.neutral.grey.light};}&:active{background-color:${T.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,be=g.default.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,ve=g.default(be).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${T.text.link.fontFamily};font-size:${T.text.link.fontSize};line-height:${T.text.link.fontSize};font-weight:${T.text.link.fontWeight};line-height:${T.text.link.lineHeight};text-decoration:${T.text.link.textDecoration};color:${T.colors.secondary.blue.base};&:hover{color:${T.colors.secondary.blue.dark};}& > * + *{margin-left:${T.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${T.colors.secondary.blue.light};border-radius:4px;}`,xe=g.default.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,ye=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),we={default:me,primary:pe,destructive:fe,primaryDestructive:ge,flat:he,link:ve,unstyled:be},Ce=e.forwardRef(((e,t)=>{var{className:n,children:a,icon:o,variant:l="default",size:i="base",dropdown:r=!1,loading:d=!1}=e,s=Y(e,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return p.default.createElement(be,Object.assign({ref:t,className:n},s),a);const c=we[l],u=void 0!==a,m=!!o;return p.default.createElement(c,Object.assign({ref:t,className:n,size:i,hasText:u,hasIcon:m,hasDropdown:r},s),(u||m)&&p.default.createElement(ce,{$loading:d,hasText:!!a,size:a||"sm"===i?"base":"md"},o&&o,void 0!==a&&a,r&&p.default.createElement(ye,null)),d&&p.default.createElement(xe,null,p.default.createElement(se,null)))})),Ee=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${z.md};padding-right:${z.md};padding-left:${z.md};margin-bottom:${z.md};& > * + *{margin-top:${z.xs};}`,$e=g.default.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${z.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ke=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:z.md},e),p.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"})),Se=e=>p.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),p.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"})),Le=({id:e,title:t,subtitle:n,headerVariant:a="headingSmall",action:o,ActionSlot:l,isCollapsed:i,onClickCollapse:r,onClickClose:d})=>p.default.createElement(Ee,null,p.default.createElement($e,null,p.default.createElement(O,{id:e,variant:a},t),o&&p.default.createElement(Ce,{variant:"link",onClick:o.onClick},o.title),l,r&&p.default.createElement(Ce,{variant:"flat",icon:i?p.default.createElement(ke,null):p.default.createElement(q,null),onClick:r}),d&&p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(Se,null),onClick:d,"aria-label":"Close"})),n&&p.default.createElement(O,{variant:"subheadingSmall"},n)),{grey:Ne}=E.neutral,Ie={0:"none",1:S.sm,2:S.base,3:S.md,4:S.lg},ze={info:E.secondary.blue.base,success:E.secondary.green.base,error:E.secondary.red.base},Fe=g.default.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${z.base};padding:${z.md};z-index:2;`,De=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${z.md};padding-left:${z.md};margin-top:${z.md};margin-bottom:${z.md};font-family:${D.body.fontFamily};font-size:${D.body.fontSize};font-weight:${D.body.fontWeight};line-height:${D.body.lineHeight};color:${D.body.color};& + &{border-top:${z.line} solid ${Ne.base};padding-top:${z.md};}`,Te=g.default.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${z.md};margin-right:-${z.md};`,Re=g.default(t.motion.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${De}:first-child{margin-top:0;}`,Me=g.default.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${z.line} solid ${Ne.base};box-shadow:${e=>void 0!==e.elevation?Ie[e.elevation]:S.sm};border-radius:${k.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${z.xs};\n background-color: ${ze[e]};\n }\n `}`,Ae={expanded:{height:"auto"},collapsed:{height:0}},Oe=({className:t,style:n,title:a,subtitle:o,HeaderActionSlot:l,action:i,collapsable:r,elevation:d,accent:s,children:c,onClose:u,renderFooter:m})=>{const[f,g]=e.useState(!1),h=a&&p.default.createElement(Le,{title:a,subtitle:o,ActionSlot:l,action:i,onClickClose:u,isCollapsed:f,onClickCollapse:r?()=>{g(!f)}:void 0}),b=r&&!f||!r,v=p.default.createElement(Re,{animate:b?"expanded":"collapsed",variants:Ae,transition:{duration:.3,ease:"easeOut"}},p.default.createElement(De,null,c)),x=void 0!==m&&p.default.createElement(Fe,null,m());return p.default.createElement(Me,{className:t,style:n,elevation:d,accent:s},h,v,x)};Oe.Surface=Me,Oe.Section=De,Oe.FullBleed=Te,Oe.Footer=Fe;const{sizes:Be,colors:je,text:He}=T,We=g.default(Oe.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Be.base} 0;display:flex;flex-direction:column;`,Pe=g.default.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${je.neutral.grey.base};margin-top:${Be.base};padding-top:${Be.base};}`,Ve=g.default(O).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Be.sm} ${Be.base} ${Be.sm};`,_e=g.default(Ce).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Be.lg};padding:${Be.xs} ${Be.base};display:flex;align-items:center;white-space:nowrap;font-family:${He.body.fontFamily};font-size:${He.body.fontSize};font-weight:${He.body.fontWeight};&:hover{background-color:${je.neutral.grey.light};color:${je.secondary.blue.base};}& > * + *{margin-left:${Be[3]};}`,Ze={item:_e,action:g.default(_e).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${je.secondary.blue.base};`,link:g.default(_e).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${je.secondary.blue.base};text-decoration:underline;`},qe=({title:t,items:n=[],sections:a,buttonVariant:o,buttonSize:l})=>{const[i,r]=e.useState(!1),[d,s]=e.useState(null),c=e=>{const t=Ze[e.variant||"item"];return p.default.createElement(t,{onClick:()=>{return t=e.onClick,r(!1),void t();var t},key:e.title},e.icon&&e.icon,p.default.createElement("span",null,e.title))},u=a?a.map((e=>p.default.createElement(Pe,{key:e.title},e.title&&p.default.createElement(Ve,null,e.title),e.items.map(c)))):n.map(c);return p.default.createElement(p.default.Fragment,null,p.default.createElement(Ce,{dropdown:!0,variant:o,size:l,onClick:()=>r(!i),ref:s},t),i&&p.default.createElement(le,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>r(!1)},p.default.createElement(We,null,u)))};var Ye;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ye||(Ye={}));const Xe=g.default.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:o="base"}=e;let l,i,r,d,s="",c="";return"vertical"===t?(l=n&&Ye[n],i=a&&Ye[a],s=T.sizes[o],r="column"):(l=a&&Ye[a],i=n&&Ye[n],c=T.sizes[o],r="row"),("vertical"===t&&"stretch"===a||"horizontal"===t&&"stretch"===n)&&(d=1),`\n align-items: ${l};\n justify-content: ${i};\n flex-direction: ${r};\n\n & > * {\n flex: ${d};\n }\n\n & > * + * {\n margin-top: ${s};\n margin-left: ${c};\n }\n `}}`;Xe.displayName="Stack";const Ke=g.default(Xe).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${T.radius.base};background-color:${({colours:{background:e}})=>e};`,Ge=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),Ue=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),Je=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"}),p.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),p.default.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),Qe=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),et={base:T.sizes.base,sm:T.sizes[3],xs:T.sizes.sm},tt={base:T.sizes.md,sm:T.sizes[5],xs:T.sizes[5]},nt={default:Je,error:Ge,success:Qe,info:Ue,warning:e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),p.default.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),p.default.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),p.default.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},at={default:{primary:T.colors.neutral.ink.base,background:T.colors.neutral.grey.lightest},error:{primary:T.colors.secondary.red.base,background:T.colors.secondary.red.lightest},success:{primary:T.colors.secondary.green.base,background:T.colors.secondary.green.lightest},info:{primary:T.colors.secondary.blue.base,background:T.colors.secondary.blue.lightest},warning:{primary:T.colors.secondary.orange.base,background:T.colors.secondary.orange.lightest},recommend:{primary:T.colors.secondary.purple.dark,background:T.colors.secondary.purple.lightest}},ot=g.default.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${T.text.link.fontFamily};font-style:${T.text.link.fontStyle};font-weight:${T.text.link.fontWeight};font-size:${T.text.link.fontSize};line-height:${T.text.link.lineHeight};color:${T.colors.secondary.blue.base};text-decoration:${T.text.link.textDecoration};&:hover{color:${T.colors.secondary.blue.dark};}`,lt=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,it=e.forwardRef(((e,t)=>{const{children:n,className:a,role:o}=e;return p.default.createElement(lt,{className:a,ref:t,role:o},n)})),rt=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,dt=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,st=g.default(it).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${T.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);}`,ct=({cta:t,shouldShowDropdown:n,children:a,className:o="animated-dropdown",reversed:l=!1,onClickAway:i=(()=>{}),timeout:d=350,transitionClassnames:s="dropdown",onClick:c,onMouseEnter:u,onMouseLeave:m})=>{const f=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])})(f,(e=>{n&&i(e)})),p.default.createElement(rt,{className:`${o}-container ${o}`,onClick:c,onMouseEnter:u,onMouseLeave:m,ref:f},!l&&t,p.default.createElement(dt,{className:`${o}-wrap ${o}`},p.default.createElement(r.CSSTransition,{in:n,timeout:d,classNames:s,unmountOnExit:!0},p.default.createElement(st,{role:"dialog",reversed:l,className:`${o}-basic-dropdown ${o}`},a))),l&&t)},ut=g.default.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${T.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${T.text.bodySmallBold.fontFamily};font-weight:${T.text.bodySmallBold.fontWeight};font-size:${T.text.bodySmallBold.fontSize};line-height:${T.text.bodySmallBold.lineHeight};}`,mt=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,ft=g.default(mt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,pt=g.default(O).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${T.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,gt=g.default.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,ht=g.default.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,bt=g.default(mt).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 vt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(vt||(vt={}));const xt={duration:400,side:vt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},yt=({content:t,text:n,hoverableElement:o,config:l,reversed:i,withTriangle:r,classNames:d})=>{const[s,c]=e.useState(null),u=Object.assign(Object.assign({},xt),l),{duration:m,side:f,triangleOffset:g,tipMinWidth:h,tipMaxWidth:b}=u,{styles:v,attributes:x}=a.usePopper(o,s,{placement:`${f}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),y=Object.assign(Object.assign({},v.popper),{zIndex:T.layers.tooltip});return p.default.createElement(ht,Object.assign({className:d.tip,ref:c,duration:m,triangleOffsetSize:g,style:y},x.popper,{role:"tooltip"}),p.default.createElement(bt,{className:d.wrap,tipMinWidth:h,tipMaxWidth:b},null!=t?t:p.default.createElement(pt,null,n)),r&&p.default.createElement(gt,{id:"veeqo-components-triangle",className:d.triangle}))},wt=({children:t,text:n,content:a,config:o,reversed:l=!1,className:i,withTriangle:r,initialShouldShow:d=!1,useReactPortal:s=!0})=>{const[c,u]=e.useState(d),[m,f]=e.useState(null),g=!!n&&n.trim().length>0,h={container:i&&`${i} ${i}-container`,tip:i&&`${i}-tip`,wrap:i&&`${i}-wrap`,triangle:i&&`${i}-triangle`,hoverable:i&&`${i}-hoverable`},v=!(!a&&!g);if(!v)return t;const x=c&&v&&p.default.createElement(yt,{classNames:h,hoverableElement:m,config:o,reversed:l,withTriangle:r,text:n,content:a});return p.default.createElement(mt,{className:h.container},s?b.default.createPortal(x,document.body):x,p.default.createElement(ft,{ref:f,className:h.hoverable,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},t))},Ct=g.default(y).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${D.bodySmall.fontFamily};font-weight:${D.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${z.base};height:${z.base};}`,Et={default:g.default(Ct).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${E.secondary.blue.base};color:${E.secondary.blue.base};`,primary:g.default(Ct).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${E.secondary.blue.base};background-color:${E.secondary.blue.lightest};color:${E.secondary.blue.base};`,warning:g.default(Ct).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${E.secondary.yellow.base};background-color:${E.secondary.yellow.lightest};color:${E.secondary.orange.dark};`},$t=g.default(y).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,kt=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,St=g.default(y).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Lt=g.default(St).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${z.md};height:${z.md};color:${({accentColor:e})=>e};}`,Nt=g.default(y).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,It=g.default(St).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,zt=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Ft={help:E.secondary.blue.base,info:E.neutral.ink.base,error:E.secondary.red.base,success:E.secondary.green.base},Dt=g.default.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${D.body.fontFamily};font-weight:${D.body.fontWeight};font-size:${D.body.fontSize};line-height:${D.body.lineHeight};`,Tt=g.default.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Rt=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),Mt=({children:e,title:t,LinkComponent:n,href:a})=>n?p.default.createElement(Tt,{className:"breadcrumb"},p.default.createElement(n,{href:a},t),e):p.default.createElement(Tt,{className:"breadcrumb"},t,e),At=()=>p.default.createElement(Rt,{className:"separator",width:z.base,height:z.base}),Ot=({children:e,href:t})=>p.default.createElement("a",{href:t},e),Bt=({children:e})=>p.default.createElement("span",null,e),jt=e=>p.default.createElement(s.CalendarGrid,Object.assign({weekdayStyle:"short"},e),p.default.createElement(s.CalendarGridHeader,null,(e=>p.default.createElement(s.CalendarHeaderCell,null,e.slice(0,2)))),p.default.createElement(s.CalendarGridBody,null,(e=>p.default.createElement(s.CalendarCell,{date:e})))),Ht=n.css`.react-aria-Button{color:${T.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:${T.sizes.base};height:${T.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${T.colors.secondary.blue.light};}&:active,&:hover{background-color:${T.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${T.colors.neutral.grey.base};cursor:default;}}`,Wt=n.css`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${T.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${T.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${T.colors.secondary.blue.light};}&[data-selected]{background:${T.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${T.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${T.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${T.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${T.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${T.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;}}`,Pt=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,Vt=n.css`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Pt(T.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${T.sizes.sm};}`,_t=g.default(s.RangeCalendar).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${T.colors.neutral.ink.base};font-size:14px;font-family:${T.fontFamily};${Vt} ${Ht} ${Wt} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Zt=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),qt=t=>{var n,{disabledRanges:a=[],disallowWeekends:o=!1,isMultiMonth:l=!1}=t,i=Y(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[r,c]=p.default.useState(null===(n=i.value)||void 0===n?void 0:n.start),{locale:u}=s.useLocale(),m=e.useCallback((e=>!!o&&d.isWeekend(e,u)||a.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[a,o,u]);return e.useEffect((()=>{var e;c(null===(e=i.value)||void 0===e?void 0:e.start)}),[i.value]),p.default.createElement(_t,Object.assign({focusedValue:r,onFocusChange:c,isDateUnavailable:m,visibleDuration:l?{months:2}:void 0},i),p.default.createElement("header",null,p.default.createElement(s.Button,{slot:"previous"},p.default.createElement(Zt,null)),p.default.createElement(s.Heading,null),p.default.createElement(s.Button,{slot:"next"},p.default.createElement(Rt,null))),l?p.default.createElement("div",{style:{display:"flex",gap:T.sizes.sm,overflow:"auto"}},p.default.createElement(jt,null),p.default.createElement(jt,{offset:{months:1}})):p.default.createElement(jt,null))},Yt={top:"flex-start",center:"center"},Xt=g.default.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${T.sizes.base};}`,Kt=g.default.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Yt[e.align]};width:24px;height:24px;`,Gt=g.default.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Ut=g.default.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${T.sizes.sm};}`,Jt=g.default.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${T.text.body.fontFamily};font-size:${T.text.body.fontSize};font-weight:${T.text.body.fontWeight};line-height:${T.sizes.md};color:${T.text.body.color};`,Qt=g.default.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`,en=g.default.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};`,tn=g.default.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,nn=g.default(tn).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${T.colors.neutral.grey.dark};border-radius:${T.radius.md};padding:${T.sizes.base} 0.75rem;&:hover{border-color:${T.colors.secondary.blue.base};}& ${Jt}{font-weight:${T.text.bodyBold.fontWeight};}`,an=g.default(wt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,on=({id:e,label:t,hint:n,tooltip:a,error:o,bordered:l,Badge:i,Accessory:r,Footer:d,children:s,disabled:c=!1})=>{const u=p.default.createElement(Xt,null,p.default.createElement(Kt,{align:r?"center":"top"},s),r&&p.default.createElement(Gt,null,r),t||n||o||i||d?p.default.createElement(Ut,null,p.default.createElement(Xe,{direction:"horizontal",alignY:"center",spacing:"sm"},i,t&&p.default.createElement(Jt,null,t),a&&p.default.createElement(an,{text:a},p.default.createElement(Ue,{name:"help",width:T.sizes.base,color:T.colors.neutral.ink.lightest}))),n&&p.default.createElement(Qt,null,n),o&&p.default.createElement(en,null,o),d):null);return l?p.default.createElement(nn,{disabled:c,htmlFor:e},u):p.default.createElement(tn,{disabled:c,htmlFor:e},u)},{colors:ln,sizes:rn,radius:dn}=T,sn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${ln.neutral.ink.lightest};border-radius:${dn.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${ln.secondary.blue.base};border-color:${ln.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:${rn[4]};background-position:center;}&:hover{border-color:${ln.secondary.blue.base};}&:active{border-color:${ln.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${ln.secondary.blue.light};outline:0;}&:indeterminate{background-color:${ln.secondary.blue.base};border-color:${ln.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:${rn[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${ln.neutral.grey.base};border-color:${ln.neutral.grey.base};color:${ln.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>");}`,cn=t=>{var{checked:n,indeterminate:a,value:o,name:l,disabled:i,ariaLabel:r,className:d,onChange:s}=t,c=Y(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const u=e.useMemo((()=>X("checkbox")),[]),m=e.useRef(null),f=e.useCallback((e=>{s(e.currentTarget.checked,o)}),[s,o]);return e.useEffect((()=>{m.current&&(m.current.indeterminate=!0===a)}),[a]),p.default.createElement(on,Object.assign({id:u,disabled:i},c),p.default.createElement(sn,{ref:m,id:u,type:"checkbox",checked:n,value:o,name:l,disabled:i,"aria-label":r,className:d,onChange:f}))},un=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,mn=e.forwardRef(((t,n)=>{var{checked:a,value:o,name:l,disabled:i,onChange:r,id:d}=t,s=Y(t,["checked","value","name","disabled","onChange","id"]);const c=e.useCallback((e=>{r(e.currentTarget.checked,o)}),[r,o]),u=null!=d?d:X("radio");return p.default.createElement(on,Object.assign({id:u,disabled:i},s),p.default.createElement(un,{id:u,type:"radio",checked:a,value:o,name:l,disabled:i,onChange:c,ref:n}))})),fn=g.default.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,pn=g.default.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${T.text.inputLabel.fontFamily};font-size:${T.text.inputLabel.fontSize};font-style:${T.text.inputLabel.fontStyle};font-weight:${T.text.inputLabel.fontWeight};line-height:${T.text.inputLabel.lineHeight};text-decoration:${T.text.inputLabel.textDecoration};color:${T.text.inputLabel.color};`;class gn extends e.Component{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:a}=this.props;let o=[];o=t?[...n,e]:n.filter((t=>t!==e)),a(o)}}render(){const{allowMultiple:e,options:t,selected:n,title:a,disabled:o,bordered:l}=this.props,i=e?cn:mn;return p.default.createElement(fn,{disabled:o},a&&p.default.createElement(pn,null,a),t.map((e=>p.default.createElement(i,Object.assign({key:e.value,bordered:l,checked:n.includes(e.value),onChange:t=>this.handleChange(e.value,t)},e)))))}}const hn=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),bn={width:z.base,height:z.base},vn=g.default(Ce).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${z.base};width:${z.base};top:unset;}`,xn=g.default.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${T.text.inputLabel.fontFamily};font-size:${T.text.inputLabel.fontSize};font-weight:${T.text.inputLabel.fontWeight};line-height:${T.text.inputLabel.lineHeight};color:${T.text.inputLabel.color};`,yn=g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`,wn=g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${T.sizes[2]} * -1);width:2px;background-color:${T.colors.secondary.red.base};}`,Cn=g.default(Xe).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,En=g.default(wt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,$n=t=>n=>{var{label:a,hint:o,error:l,tooltip:i}=n,r=Y(n,["label","hint","error","tooltip"]);const d=e.useMemo((()=>X(t.name)),[]);return a?p.default.createElement(Cn,{spacing:"sm",alignX:"stretch"},p.default.createElement("div",null,p.default.createElement(Xe,{direction:"horizontal",alignY:"center",spacing:"sm"},p.default.createElement(xn,{id:`${d}-label`,htmlFor:d},a),i&&p.default.createElement(En,{text:i},p.default.createElement(Ue,{width:T.sizes.base,height:T.sizes.base,color:T.colors.neutral.ink.light}))),o&&p.default.createElement(yn,null,o)),p.default.createElement(t,Object.assign({id:d,hasError:!!l},r)),l&&p.default.createElement(wn,null,l)):p.default.createElement(t,Object.assign({hasError:!!l},r))},kn=g.default(s.Group).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${Pt(T.text.body)} display:flex;align-items:center;border:1px solid ${T.colors.neutral.ink.lightest};border-radius:${T.radius.base};gap:${T.sizes.xs};padding:${T.sizes.sm};margin-top:${T.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${T.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${T.colors.secondary.red.light};border:1px solid ${T.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${T.colors.secondary.red.light};\n border: 1px solid ${T.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${T.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${T.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${T.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${T.radius.base};&[data-invalid]{color:${T.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${T.colors.secondary.blue.dark};&[data-invalid]{background-color:${T.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${T.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,Sn=$n((({id:e,className:t,style:n,shouldForceLeadingZeros:a=!0,hasError:o,minValue:l,maxvalue:i,startValue:r,endValue:d,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":f,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>p.default.createElement(kn,{style:n,className:t,"aria-label":m,"aria-describedby":f,"aria-labelledby":null!=g?g:`${e}-label`,$hasError:o,isDisabled:c},p.default.createElement(s.DateField,{shouldForceLeadingZeros:a,onChange:h,value:r,minValue:l,maxValue:i,"aria-describedby":f,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},p.default.createElement(s.DateInput,{slot:"start"},(e=>p.default.createElement(s.DateSegment,{segment:e})))),p.default.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),p.default.createElement(s.DateField,{shouldForceLeadingZeros:a,onChange:b,value:d,minValue:l,maxValue:i,"aria-describedby":f,"aria-labelledby":null!=g?g:`${e}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},p.default.createElement(s.DateInput,{slot:"end"},(e=>p.default.createElement(s.DateSegment,{segment:e}))))))),Ln=g.default.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Nn=$n(e.forwardRef(((t,n)=>{var{className:a,options:o,value:l,onChange:i,size:r,disabled:d,hasError:s}=t,c=Y(t,["className","options","value","onChange","size","disabled","hasError"]);const u=e.useCallback((e=>{i&&i(e.currentTarget.value)}),[i]);return p.default.createElement(Ln,Object.assign({className:a,sizeVariant:r,value:null!=l?l:void 0,onChange:u,disabled:d,hasError:s,ref:n},c),!!o&&o.map((e=>p.default.createElement("option",{key:e.label,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label))))})));Nn.displayName="Select";const In=g.default.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?T.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,zn=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${In}{box-shadow:0 0 0 4px ${T.colors.brand.blue.light};}&:checked + ${In}{background-color:#0079d1;}&:disabled + ${In}{background-color:${T.colors.neutral.grey.base};}&:checked:disabled + ${In}{background-color:${T.colors.secondary.blue.light};}`,Fn=g.default.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;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;}${In}: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"};}${zn}:checked + ${In}{&: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"});}}`,Dn=g.default(y).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Tn=e.forwardRef((({id:e,className:t,name:n,switched:a,small:o,onClick:l=(()=>{}),disabled:i,ariaLabel:r},d)=>p.default.createElement(Dn,{className:t,disabled:i},p.default.createElement(Fn,{small:o,disabled:i},p.default.createElement(zn,{id:e,role:"switch",type:"checkbox",name:n,"aria-label":r,checked:!!a,onChange:i?void 0:l,disabled:i,ref:d}),p.default.createElement(In,{switched:a,disabled:i}))))),Rn=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],Mn=({options:t=Rn,selectedPreviousPeriod:n,setSelectedPreviousPeriod:a})=>{const[o,l]=e.useState(!!n);return e.useEffect((()=>{n||null==a||a(t[0])}),[n,a,t]),p.default.createElement(p.default.Fragment,null,p.default.createElement(O,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:T.sizes.sm,whiteSpace:"nowrap"}},p.default.createElement(Tn,{small:!0,switched:o,onClick:()=>{o&&(null==a||a(null)),l(!o)}}),"Compare previous period"),o&&p.default.createElement(Nn,{"aria-label":"Period to compare against",options:t,value:(null==n?void 0:n.value)||t[0].value,onChange:e=>{const n=t.find((({value:t})=>t===e));n&&(null==a||a(n))}}))};var An;!function(e){e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS",e.LAST_90_DAYS="LAST_90_DAYS",e.LAST_MONTH="LAST_MONTH",e.LAST_12_MONTHS="LAST_12_MONTHS",e.WEEK_TO_DATE="WEEK_TO_DATE",e.MONTH_TO_DATE="MONTH_TO_DATE",e.YEAR_TO_DATE="YEAR_TO_DATE"}(An||(An={}));const On=e=>{const t=d.now(d.getLocalTimeZone());let n;switch(e){case An.TODAY:n={start:t,end:t};break;case An.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case An.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case An.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case An.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case An.LAST_MONTH:{const e=d.startOfMonth(t.subtract({months:1}));n={start:e,end:d.endOfMonth(e)};break}case An.LAST_12_MONTHS:{const e=d.startOfMonth(t.subtract({months:1}));n={start:d.startOfMonth(e).subtract({months:12}),end:d.endOfMonth(e)};break}case An.WEEK_TO_DATE:n={start:d.startOfWeek(t,navigator.language),end:t};break;case An.MONTH_TO_DATE:n={start:d.startOfMonth(t),end:t};break;case An.YEAR_TO_DATE:n={start:d.startOfYear(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new d.CalendarDate(t.year,t.month,t.day),end:new d.CalendarDate(n.year,n.month,n.day)}})(n)},Bn=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:An.TODAY},{label:"Yesterday",value:An.YESTERDAY},{label:"Last 7 Days",value:An.LAST_7_DAYS},{label:"Last 30 Days",value:An.LAST_30_DAYS},{label:"Last 90 Days",value:An.LAST_90_DAYS},{label:"Last Month",value:An.LAST_MONTH},{label:"Last 12 Months",value:An.LAST_12_MONTHS},{label:"Week to Date",value:An.WEEK_TO_DATE},{label:"Month to Date",value:An.MONTH_TO_DATE},{label:"Year to Date",value:An.YEAR_TO_DATE}],jn=An.LAST_30_DAYS;On(jn),Bn.find((({value:e})=>e===jn));const Hn=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:a}=t,[o,l]=[n,a].sort();return e.some((([e,t])=>o>=e&&o<=t||l>=e&&l<=t||o<=e&&l>=t))},Wn=g.default.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${T.sizes.base};border-top:1px solid ${T.colors.neutral.grey.base};`;function Pn(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Vn(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Vn(e.min,"max-content")}, ${Vn(e.max)})`;default:return t||"1fr"}}function _n({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:o,stripingMode:l}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),r=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),d="start"!==a&&"none"!==a,s=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${d?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${T.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${T.colors.neutral.grey.base};\n }\n `,f=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${T.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${T.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${o.map((e=>Vn(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?r:""}\n\n ${s}\n ${u}\n\n ${"nested"===l?f:m}\n `}var Zn;!function(e){e.ascending="ascending",e.descending="descending"}(Zn||(Zn={}));const qn=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),Yn=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),Xn=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),Kn=({sortState:e,columnId:t,size:n})=>e&&e.columnId===t?e.direction===Zn.ascending?p.default.createElement(Yn,{color:T.colors.neutral.ink.dark,size:n}):p.default.createElement(Xn,{color:T.colors.neutral.ink.dark,size:n}):p.default.createElement(qn,{size:n});function Gn(t,n){const[a,o]=e.useState([]),l=()=>{if(!t.current)return;const e=t.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(e).map((e=>e.getBoundingClientRect().width));o(n)};return e.useEffect((()=>{l()}),[t.current]),e.useEffect((()=>{if(!n.current)return;const e=v.default(l,50),t=new h.default(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}function Un(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 Jn(t){e.useEffect((()=>{if(!t.current)return;let e=!1;const n=t.current,a={left:0,x:0},o=t=>{if(!n)return;const o=t.clientX-a.x;n.scrollLeft=a.left-o,e||(n.style.cursor="grabbing",n.style.userSelect="none"),e=!0},l=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",l),e=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",l))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[t.current])}function Qn(t){const[n,a]=e.useState("start"),o=()=>{if(!t.current)return;const{width:e}=t.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=t.current;a(o<e?"none":0!==n?n+e>=o?"end":"middle":"start")};return e.useEffect((()=>{if(t.current)return t.current.addEventListener("scroll",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("scroll",o)}}),[t.current]),e.useEffect((()=>{if(!t.current)return;const e=v.default(o,50),n=new h.default(e);return n.observe(t.current),()=>n.disconnect()}),[t.current]),{scrollPosition:n,containerRef:t}}const ea="56px",ta=g.default.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${ea};display:flex;align-items:center;justify-content:${({align:e="left"})=>Pn(e)};background-color:white;padding-left:${({spacing:e=3})=>T.sizes[e]};padding-right:${({spacing:e=3})=>T.sizes[e]};border-bottom:1px solid ${T.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function na(e){var{selected:t,indeterminate:n,onChange:a,selectionMode:o}=e,l=Y(e,["selected","indeterminate","onChange","selectionMode"]);return"single"===o?p.default.createElement(ta,Object.assign({},l)):p.default.createElement(ta,Object.assign({},l),p.default.createElement(cn,{checked:t,indeterminate:n,onChange:a}))}const aa=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Pn(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>T.sizes[e]};padding-right:${({spacing:e=3})=>T.sizes[e]};color:${T.text.bodySmall.color};font-family:${T.text.bodySmall.fontFamily};font-size:${T.text.bodySmall.fontSize};font-style:${T.text.bodySmall.fontStyle};font-weight:${T.text.bodySmall.fontWeight};line-height:${T.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${T.colors.secondary.blue.base};background-color:${T.colors.neutral.grey.lightest};}`;function oa(e){var{selected:t,rowId:n,onChange:a,selectionMode:o,disabled:l}=e,i=Y(e,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===o?p.default.createElement(aa,Object.assign({},i),p.default.createElement(mn,{value:n,checked:t,disabled:l,onChange:a})):p.default.createElement(aa,Object.assign({},i),p.default.createElement(cn,{value:n,checked:t,disabled:l,onChange:a}))}const la=[[],()=>{}];function ia({selectionMode:e="multiple",selectionState:t,enabledRowIds:n}){const a=!!t,[o,l]=t||la,i=()=>{o.length!==n.length?l(n):l([])};return{selectionEnabled:a,selectedRowIds:o,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(t,a)=>p.default.createElement(na,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)=>p.default.createElement(oa,Object.assign({},n,{rowId:t.id,selected:o.selected,onChange:a.setSelected,selectionMode:e,disabled:o.disabled}))},setSelected:(t,n)=>{if(null!=n)if(t&&"single"===e)l([n]);else if(t){if(o.includes(n))return;const e=[...o,n];l(e)}else{const e=o.findIndex((e=>e===n));if(e<0)return;const t=[...o];t.splice(e,1),l(t)}}}}const ra=g.default.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${T.colors.neutral.ink.lightest};`,da=g.default.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${T.text.headingTable.color};font-family:${T.text.headingTable.fontFamily};font-size:${T.text.headingTable.fontSize};font-style:${T.text.headingTable.fontStyle};font-weight:${T.text.headingTable.fontWeight};line-height:${T.text.headingTable.lineHeight};`,sa=g.default(da).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 ${ra}{background-color:${T.colors.neutral.grey.light};color:${T.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${T.colors.secondary.blue.light};}`;function ca({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?sa:da,l=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===Zn.ascending;let o=Zn.ascending;return n&&a&&(o=Zn.descending),{columnId:t,direction:o}}({sortState:t,columnId:e.id});n?n(a):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return p.default.createElement(ta,Object.assign({},a),p.default.createElement(wt,{text:e.tooltip},p.default.createElement(o,Object.assign({},l),e.icon&&e.icon,e.title&&p.default.createElement("span",null,e.title),e.sortable&&p.default.createElement(ra,null,p.default.createElement(Kn,{sortState:t,columnId:e.id,size:5})))))}const ua=T.colors.neutral.grey.base,ma=T.colors.neutral.grey.dark,fa=g.default.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${T.radius.base};background:${ua};background-image:linear-gradient(\n to right,\n ${ua} 0%,\n ${ma} 20%,\n ${ua} 40%,\n ${ua} 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 pa=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${ea};background-color:white;`,ga=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${T.colors.neutral.grey.base};& > *{flex:1;}`;function ha({selectionColumn:t,intersectionTargetRef:n,containerRef:a,children:o}){var l;const[i,r]=e.useState(!1);e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting)}))}));return e.observe(n.current),()=>e.disconnect()}),[n.current]);const d=null===(l=a.current)||void 0===l?void 0:l.getBoundingClientRect(),s={position:"fixed",top:0,left:null==d?void 0:d.left,width:null==d?void 0:d.width},c=i?s:{position:"absolute",top:0,left:0,right:0};return p.default.createElement(pa,{style:c},ca({column:t}),p.default.createElement(ga,null,o))}const ba=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),va=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),xa=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const ya=g.default.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${T.sizes.lg};padding-bottom:${T.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${T.sizes.md};`,wa=g.default.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${T.sizes.md};background-color:${T.colors.neutral.grey.light};border-radius:${T.radius.full};`,Ca=g.default.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Ea=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${T.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,$a=g.default.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,ka=g.default.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${T.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Sa=g.default.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,La={full:`border-width: 1px; border-radius: ${T.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Na=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${T.colors.neutral.grey.dark};${({borderMode:e="full"})=>La[e]} &,& *{box-sizing:border-box;}`;function Ia({children:t,intersectionTargetRef:n,containerRef:a,cellWidths:o,tableCss:l}){const i=e.useRef(null),[r,d]=e.useState(!1),[s,c]=e.useState({top:0,left:0,width:0,height:0}),u=()=>{var e;const t=null===(e=a.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};c(n)},m=()=>{var e;if(!a.current)return;const t=a.current.scrollLeft;null===(e=i.current)||void 0===e||e.scrollTo(t,0)};if(e.useEffect((()=>{if(!n.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}),{threshold:1});return e.observe(n.current),()=>e.disconnect()}),[n.current]),e.useEffect((()=>{r&&a.current&&u()}),[a.current,r]),e.useEffect((()=>{if(!r)return;if(!a.current)return;const e=v.default(u,33),t=new h.default(e);return t.observe(a.current),()=>t.disconnect()}),[a.current,r]),e.useEffect((()=>{m()}),[r]),e.useEffect((()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("scroll",m),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("scroll",m)}}),[a.current]),!r)return null;const f=Object.assign(Object.assign({},s),{height:ea,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${T.colors.neutral.grey.base}`}),g=l+o.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return p.default.createElement("div",{style:f,ref:i},p.default.createElement(ka,{css:g},p.default.createElement("thead",null,t)))}const za=(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}),Fa={icon:p.default.createElement(Je,{width:48,height:48}),heading:"No results"},Da=()=>{},Ta=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:o=Fa,expandedRowIds:l,loading:i,loadingRowCount:r,onChangeSort:d,rows:s,disabledRowIds:c,selectionMode:u,selectionState:m,setExpanded:f,sortState:g,stripingMode:h,enableStickyHeader:b})=>{const v=e.useRef(null),x=e.useRef(null),y=e.useRef(null);Jn(v);const w=s.map((e=>e.id)).filter((e=>!(null==c?void 0:c.includes(e)))),{selectionEnabled:C,selectedRowIds:E,selectionColumn:$,setSelected:k}=ia({selectionMode:u,selectionState:m,enabledRowIds:w}),S={setSelected:k||Da,setExpanded:f||Da},L=[$,...a],N=C?L:a,I=Gn(x,v),{visible:z,pinnedLeft:F,pinnedRight:D}=Un(N),{scrollPosition:T}=Qn(v),R=_n({pinnedLeft:F,pinnedRight:D,cellWidths:I,scrollPosition:T,visible:z,stripingMode:h});if(i){const e=new Array(r).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return p.default.createElement(Na,{borderMode:n},p.default.createElement($a,{ref:v},p.default.createElement(ka,{css:R,ref:x,role:"table"},p.default.createElement("thead",{role:"rowgroup"},p.default.createElement(Ea,{role:"row"},z.map((e=>ca({column:e,sortState:g,onChangeSort:d}))))),p.default.createElement("tbody",{role:"rowgroup"},e.map((e=>p.default.createElement(Ea,{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 p.default.createElement(aa,Object.assign({},n),p.default.createElement(fa,null))}(e,t))))))))))}if(0===s.length)return p.default.createElement(Na,{borderMode:n},p.default.createElement($a,{ref:v},p.default.createElement(ka,{css:R,ref:x,role:"table"},p.default.createElement("thead",{role:"rowgroup"},p.default.createElement(Ea,{role:"row"},z.map((e=>ca({column:e,sortState:g,onChangeSort:d}))))),p.default.createElement("tbody",{role:"rowgroup"},p.default.createElement(ya,{columnCount:z.length},p.default.createElement(wa,null,o.icon),p.default.createElement(Xe,{spacing:"sm",alignX:"center"},p.default.createElement(O,{variant:"headingMedium"},o.heading),o.subheading&&p.default.createElement(O,{variant:"subheadingMedium"},o.subheading)))))));const M=e=>{const{e2eClassName:t="",accentColor:n}=e,a=za(e.id,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:c});return p.default.createElement(Ea,Object.assign({role:"row",key:e.id,accentColor:n,className:t},a),z.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))))},A=(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=za(t,{selectedRowIds:E,expandedRowIds:l,disabledRowIds:c});return p.default.createElement(Ea,{role:"row",key:e.id,className:o},z.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):p.default.createElement(aa,Object.assign({},a))}(e,t,i))))},B=e=>{var t;const n=null==l?void 0:l.includes(e.id);return p.default.createElement("tbody",{role:"rowgroup",key:e.id},M(e),n&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>A(t,e.id)))))},j=p.default.createElement(Ea,{role:"row"},z.map((e=>ca({column:e,sortState:g,onChangeSort:d})))),H=a.some((e=>!!e.renderFooter)),W=E.length>0&&!!t;return p.default.createElement(Na,{borderMode:n},W&&p.default.createElement(ha,{selectionColumn:$,intersectionTargetRef:y,containerRef:v},t),p.default.createElement($a,{ref:v},b&&p.default.createElement(Ia,{tableCss:R,intersectionTargetRef:y,containerRef:v,cellWidths:I},j),p.default.createElement("div",{ref:y,style:{height:0}}),p.default.createElement(ka,{css:R,ref:x,role:"table"},p.default.createElement("thead",{role:"rowgroup"},j),(()=>{const e=!!l;return e&&"nested"===h?s.map(B):e?p.default.createElement("tbody",{role:"rowgroup"},s.map((e=>{var t;return[M(e),...(null==l?void 0:l.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>A(t,e.id))))||[]]}))):p.default.createElement("tbody",{role:"rowgroup"},s.map(M))})(),H&&p.default.createElement("tfoot",{role:"rowgroup"},p.default.createElement(Ea,{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):p.default.createElement(aa,Object.assign({},t))}({column:e}))))))))};Ta.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Ta.Cell=aa,Ta.ColumnMenu=function({columns:t,columnGroups:n,setColumns:a}){const[o,l]=e.useState(null),[i,r]=e.useState(!1),d=t.map((e=>[e.id,e])),s=Object.fromEntries(d),c=n.map((e=>e.map((e=>s[e])))),u=(e,n)=>{const o=c[e].map((e=>e.id)),l=[...t];o.forEach((e=>{const t=l.findIndex((t=>t.id===e));t<0||(l[t]=Object.assign(Object.assign({},l[t]),{hidden:n}))})),a(l)};return p.default.createElement(p.default.Fragment,null,p.default.createElement(Ce,{ref:l,dropdown:!0,onClick:()=>r(!0)},"Columns"),i&&p.default.createElement(le,{anchorElement:o,onShouldClose:()=>r(!1)},p.default.createElement(Oe,{style:{width:600}},p.default.createElement(Xe,{alignX:"stretch",spacing:"sm"},c.map(((e,t)=>p.default.createElement(Xe,{key:e[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(xa,null)}),p.default.createElement(Xe,{spacing:"sm",style:{flex:1}},e.map((e=>p.default.createElement("div",{key:e.id},e.title)))),p.default.createElement(Xe,{direction:"horizontal",spacing:"sm"},e[0].hidden?p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(va,null),onClick:()=>u(t,!1),style:{color:T.colors.neutral.ink.lightest}}):p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(ba,null),onClick:()=>u(t,!0)})))))))))},Ta.SelectionCell=oa,Ta.SelectionHeader=na,Ta.Header=ta,Ta.Truncate=Sa,Ta.NoWrap=Ca;const Ra=g.default.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${T.sizes.base};}`,Ma=g.default.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${T.sizes.xs};}`,Aa=g.default.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${T.sizes.base};}`,Oa=g.default.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${T.sizes.xs};}`,Ba=g.default.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${T.text.bodyBold.fontFamily};font-size:${T.text.bodyBold.fontSize};font-weight:${T.text.bodyBold.fontWeight};line-height:${T.text.bodyBold.lineHeight};color:${T.text.bodyBold.color};`,ja=g.default.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${T.text.body.fontFamily};font-size:${T.text.body.fontSize};font-weight:${T.text.body.fontWeight};line-height:${T.text.body.lineHeight};color:${T.text.body.color};`,{sizes:Ha,colors:Wa}=T,Pa=g.default.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Ha.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Ha.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Va=g.default.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Ha.md};overflow-x:hidden;background-color:${Wa.neutral.grey.lightest};`,_a=g.default.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var Za;!function(e){e.base="base",e.sm="sm"}(Za||(Za={}));const qa=({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 "}`,Ya=g.default.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${T.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${qa} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Xa=g.default.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${qa}`,Ka=/^-?[0-9]*\.?[0-9]+$/,Ga=$n(e.forwardRef(((t,n)=>{var{id:a,className:o,disabled:l=!1,hasError:i,max:r,min:d,multiline:s=!1,name:c,onChange:u,pattern:m,placeholder:f,rows:g="3",size:h=Za.base,step:b,type:v="text",value:x,spellCheck:y=!1}=t,w=Y(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const C=e.useCallback((e=>{if(!u)return;const t=e.currentTarget.value;if(""===t)return void u(t);if("number"!==v)return void u(t);new RegExp(Ka).test(t)&&u(t)}),[u,v]),E=null!=a?a:X("textfield");return"text"===v&&s?p.default.createElement(Xa,Object.assign({className:o,disabled:l,hasError:i,id:E,name:c,onChange:C,placeholder:f,rows:g,value:x,spellCheck:y,ref:n},w)):p.default.createElement(Ya,Object.assign({className:o,disabled:l,hasError:i,id:E,inputSize:h,max:r,min:d,name:c,"aria-label":c,onChange:C,placeholder:f,step:b,type:v,value:x,spellCheck:y,ref:n},w))})));Ga.displayName="TextField";const Ua=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Ja=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Qa=g.default(Ga).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${T.colors.neutral.ink.lightest};}`,eo=g.default(Ce).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${T.colors.neutral.ink.lightest};`;g.default(O).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,g.default.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${T.text.error.fontFamily};font-size:${T.text.error.fontSize};font-weight:${T.text.error.fontWeight};line-height:${T.text.error.lineHeight};color:${T.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${T.sizes[2]} * -1);width:2px;background-color:${T.colors.secondary.red.base};}`,g.default.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${T.fontFamily};font-size:${T.sizes[3]};line-height:${T.sizes[4]};color:${T.colors.neutral.ink.light};`;const to=(e,t)=>{t.includes(e.key)&&e.preventDefault()},no=["-","+","E","e"],ao=e=>to(e,no),oo=$n((e=>{var{size:t=Za.base,handleChangeHeight:n,handleChangeWidth:a,handleChangeLength:o,className:l,height:i,width:r,length:d,unit:s}=e,c=Y(e,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return p.default.createElement(Ua,{className:l},p.default.createElement(Ja,null,p.default.createElement(Qa,Object.assign({onChange:o,size:t,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:ao},c)),p.default.createElement(Se,{height:T.sizes.base,width:T.sizes.base}),p.default.createElement(Qa,Object.assign({onChange:a,size:t,name:"width",type:"number",placeholder:"W",value:r,min:"0",step:"any",onKeyDown:ao},c)),p.default.createElement(Se,{height:T.sizes.base,width:T.sizes.base}),p.default.createElement(_a,null,p.default.createElement(Qa,Object.assign({onChange:n,size:t,name:"height",type:"number",placeholder:"H",value:i,min:"0",step:"any",onKeyDown:ao},c)),p.default.createElement(eo,{size:t},s))))}));oo.displayName="DimensionsInput";const lo=g.default(t.motion(Oe.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${T.colors.neutral.grey.base};border-radius:${T.radius.base};padding:${T.sizes.base};`,io=n=>{var{id:a,children:o,className:l,style:i,reversed:r,anchorElement:d,useAnchorWidth:s,onShouldClose:c}=n,u=Y(n,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return e.useEffect((()=>()=>null==d?void 0:d.focus()),[d]),p.default.createElement(le,Object.assign({id:a,"data-testid":a,anchorElement:d,onShouldClose:c,useAnchorWidth:s,placement:"bottom-start"},u),p.default.createElement(t.AnimatePresence,null,p.default.createElement(lo,{className:l,style:i,useAnchorWidth:s,reversed:r,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},o)))},ro=(t,n)=>{const a=e.useRef(null),o=e.useCallback((e=>{"Escape"===e.key&&(null==n||n())}),[n]),l=e.useCallback((e=>{a.current.contains(e.target)||null==n||n()}),[n]);return e.useEffect((()=>{if(t)return document.addEventListener("click",l),document.addEventListener("keyup",o),()=>{document.removeEventListener("click",l),document.removeEventListener("keyup",o)}}),[l,o,t]),a};function so(){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 co=p.default.createContext({hadKeyboardEvent:!0,isInitialized:!1});const uo=(t=!1)=>{const[n,a]=e.useState(t);return[n,e.useCallback((()=>a(!0)),[a]),e.useCallback((()=>a(!1)),[a])]},mo=t=>{const[n,a]=e.useState(!1),[o,l]=e.useState(!1);e.useEffect((()=>{if(!t)return;const e=new ResizeObserver((()=>{const e=t.scrollHeight>t.clientHeight;a(e)}));return e.observe(t),()=>{e.disconnect()}}),[t]);return{isOverflowing:n&&!o,onScroll:e=>{if(!t)return;const{scrollTop:n,scrollHeight:a,clientHeight:o}=e.target;l(a-n-o<=0)}}},fo=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${E.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${z.base};height:${z.base};}`,po=g.default(O).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,go=g.default(po).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,ho=g.default(ke).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,bo=g.default(Se).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,vo=g.default(y).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,xo=g.default(y).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${E.neutral.grey.base};svg{color:${({color:e})=>e};width:${z[5]};height:${z[5]};margin-right:10px;}`,yo=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),wo=g.default(y).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?z[e]:0};`,Co=e=>p.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),Eo=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,$o=g.default.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,ko=g.default.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,So=g.default.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Lo=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}),No={width:64,height:64},Io={icon:p.default.createElement((e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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({},No)),title:"No data found"},zo={icon:p.default.createElement((e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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({},No)),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 Fo;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Fo||(Fo={}));const{text:Do,sizes:To}=T,{blue:Ro}=T.colors.secondary,{grey:Mo}=T.colors.neutral,{scrollbar:Ao}=T.colors.system,Oo='\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',Bo=g.default.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,jo=g.default.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Mo.dark};border-bottom:1px solid ${Mo.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: ${Ao.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${Ao.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 ${Oo};\n\n ${a===Fo.middle||a===Fo.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 ${Oo};\n\n ${a===Fo.start||a===Fo.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Ho=g.default(jo).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Mo.dark};border-radius:4px;`,Wo=g.default.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Po=g.default.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Mo.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;g.default.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Mo.lightest};padding:1.5rem 1rem;border-top:1px solid ${Ro.base};}`;const Vo=g.default.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,_o=g.default.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${Do.bodySmall.fontFamily};font-size:${Do.bodySmall.fontSize};font-weight:${Do.bodySmall.fontWeight};color:${Do.bodySmall.color};line-height:${To.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,Zo=g.default(_o).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Mo.dark};font-family:${Do.bodySmallBold.fontFamily};font-size:${Do.bodySmallBold.fontSize};font-weight:${Do.bodySmallBold.fontWeight};color:${Do.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Mo.light};}`,qo={left:"flex-start",center:"center",right:"flex-end"},Yo=g.default.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?qo[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Xo=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Po}:nth-child(even) td {\n background-color: ${Mo.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${Zo}, & ${Zo} span {\n white-space: nowrap;\n }\n `}`,Ko=g.default.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${_o}{border-top:1px solid ${Mo.dark};background-color:${Mo.lightest};padding-top:${To.base};padding-bottom:${To.base};line-height:2rem;}`,Go=g.default.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Uo=g.default(Xo).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Jo=g.default(y).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Qo=g.default(y).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${T.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,el=g.default(O).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,tl=g.default(O).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,nl=({height:e,icon:t,title:n,subTitle:a})=>p.default.createElement(Jo,{height:e},p.default.createElement(Qo,null,t),p.default.createElement(el,{variant:"headingLarge"},n),a&&p.default.createElement(tl,{variant:"subheadingMedium"},a)),al=g.default.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${T.sizes.base};border-radius:${T.radius.base};&:hover{cursor:pointer;background-color:${T.colors.secondary.blue.lightest};}`,ol=g.default(al).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${T.text.link.color};text-decoration:${T.text.link.textDecoration};`,ll=g.default.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:il}=T.colors.neutral,rl=g.default.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,dl=g.default.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${il.base} 8%, ${il.dark} 15%, ${il.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,sl=({isLoading:e,style:t})=>p.default.createElement(rl,{style:t},p.default.createElement(dl,{isLoading:e})),cl=e=>{var{style:t}=e,n=Y(e,["style"]);return p.default.createElement(_o,Object.assign({},n),p.default.createElement(sl,{style:t}))};cl.defaultProps={style:{}};const ul=({renderHeader:t,tableRef:n,wrapperRef:a,isFixedLayout:o,wrapperStyle:l})=>{var i;const[r,d]=e.useState(null),{isSticky:s}=((t,n)=>{const[a,o]=e.useState(!1),l=e.useCallback((({top:e,bottom:t})=>{let l=a;l=e<=(n||0)&&t>0?!a||l:!a&&l,l!==a&&o(l)}),[a,n]);return e.useEffect((()=>{const e=()=>{var e;t.current&&l(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect())};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[l,t]),{isSticky:a}})(n,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),c=((null===(i=a.current)||void 0===i?void 0:i.getBoundingClientRect().width)||0)-2;u.useScroll(a);const m=e=>{var t;const n=(null===(t=a.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:r&&(r.scrollLeft=n)};return m(),s?p.default.createElement(Go,{ref:e=>{d(e),m(e)},style:Object.assign({width:c},l)},p.default.createElement(Uo,{style:{tableLayout:o?"fixed":"auto"}},t())):null},ml=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")},fl=e=>{var{style:t,width:n,isLoading:a}=e,o=Y(e,["style","width","isLoading"]);return p.default.createElement(Zo,Object.assign({},o,{style:{width:n}}),p.default.createElement(sl,{style:t,isLoading:a}))},pl=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),gl=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),hl=()=>p.default.createElement(qn,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),bl=()=>p.default.createElement(pl,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),vl=()=>p.default.createElement(gl,{width:T.sizes.base,height:T.sizes.base,color:"lightgrey"}),xl=({borderless:t=!1,striped:n=!0,noWrap:a=!1,showScrollbar:o=!1,headers:l,rows:i,renderRow:r,renderNestedRow:d,expandedRowIds:s,renderLoadingRow:c,renderFooterRow:u,renderFooterLoadingRow:m,omitFooterSelectionCell:f=!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:L,bodyHeightInSpecificStates:N=375,startFixedColumnsNumber:I,endFixedColumnsNumber:z})=>{const F=t?jo:Ho,D=!!i&&0===i.length,T=Boolean(I||z),R=!I&&!z,M=e.useRef(null),A=e.useRef(null),[O,B]=e.useState(Fo.none);e.useEffect((()=>{var e;let t=null;const n=()=>{if(!A.current||R)return;const e=A.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),o=n+a;t===a?B(Fo.none):0===n?B(Fo.start):n>0&&o<t?B(Fo.middle):o===t&&B(Fo.end)};return A.current&&(t=A.current,n(),null===(e=A.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[M,R]);const j=e.useCallback((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),H=e.useCallback(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),W=e.useCallback((()=>{if(!l||E)return null;const e=[],t=[];let n=0,a=0;if(I){g&&(e.push(H(1,n,"left")),n+=58);for(let t=0;t<I;t+=1){const a=j(l[t].width);a&&(e.push(H(g?t+2:t+1,n,"left")),n+=a)}}if(z)for(let e=0;e<z;e+=1){const n=j(l.slice(-e-1)[0].width);n&&(t.push(H(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[E,j,z,H,l,I,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],a=n.findIndex((e=>e===t.id));n.splice(a,1),v(n)}),[v,g,b]),_=e.useCallback((()=>{if(!g||!v)return;if(g.length===i.length)return void v([]);const e=i.map((e=>e.id));v(e)}),[v,i,g]),Z=e.useCallback((e=>{if(void 0===x||void 0===w)return;let t=x,n="ascending";"ascending"===y&&(n="descending"),e!==x&&(t=e,n="ascending"),w(t,n)}),[w,x,y]),q=e.useCallback(((e,t)=>{let n="",a=()=>{},o=p.default.createElement(hl,null);const{tooltip:l,align:i,icon:r,title:d,sortable:s,id:c}=e;s&&(n="sortable",a=()=>Z(c),x===c&&(o="ascending"===y?p.default.createElement(bl,null):p.default.createElement(vl,null)));const u=p.default.createElement(Yo,{align:i},r&&r,d&&p.default.createElement("span",null,d),s&&o);return p.default.createElement(Zo,{key:c,id:`data-table-header-${c}`,className:n,onClick:a,align:e.align,grow:e.grow,style:Object.assign({width:e.width||"auto"},t)},l?p.default.createElement(wt,{text:l},p.default.createElement(Bo,null,u)):u)}),[Z,x,y]),Y=e.useCallback(((e,t)=>p.default.createElement(fl,{key:e.id,width:e.width||"auto",style:t,isLoading:E})),[E]),X=e.useCallback((()=>{if(!l)return null;const e=W(),t=e?e[0].style:{};return p.default.createElement(Wo,null,p.default.createElement(Vo,null,g&&p.default.createElement(Zo,{style:Object.assign({width:58},t)},"multiple"===b&&p.default.createElement(cn,{checked:i.length>0&&(null==g?void 0:g.length)===i.length||!1,onChange:_,disabled:h&&h.length>0||E||D,ariaLabel:"Select all"})),l.map(((t,n)=>{const a=g?n+2:n+1,o=n-l.length,i=null==e?void 0:e.find((e=>e.index===a||e.index===o));return t.skeleton&&(E||C||D)?Y(t,t.skeletonStyle||{}):q(t,(null==i?void 0:i.style)||{})}))))}),[W,_,l,D,C,E,Y,q,i.length,g,b,h]),K=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?p.default.createElement(mn,Object.assign({},n)):p.default.createElement(cn,Object.assign({},n))}),[V,b,h]),G=e.useCallback((e=>{const t={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===b?p.default.createElement(cl,{key:void 0===e?null:`radio-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"50%"})}):p.default.createElement(cl,{key:void 0===e?null:`checkbox-skeleton-${e}`,style:Object.assign(Object.assign({},t),{borderRadius:"0.25rem"})})}),[b]),U=e.useCallback(((e,t)=>{var n,a;if(!d)return null;const o=d(e);if(!o)return null;const l=(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.e2eClassNames)||void 0===a?void 0:a.row)||"";return p.default.createElement(Vo,{key:e.id,className:`${l} ${t?"hidden":""}`},g&&p.default.createElement(_o,null),o)}),[d,g]),J=e.useCallback((e=>{if(!l)return p.default.createElement(cl,null);const t=l.map((t=>p.default.createElement(cl,{key:`${e}-${t.id}`})));return g&&t.unshift(G(e)),t}),[l,G,g]),Q=()=>u?E&&!m||!E&&D?null:p.default.createElement(Ko,{fixedColumnsStyle:ml(P||[])},p.default.createElement(Vo,null,g&&!f&&p.default.createElement(_o,null),!E&&u(i),E&&m&&m())):null;let ee=I;g&&ee&&(ee+=1);const te=e.useMemo((()=>i.map((e=>{var t,n,a;const{data:o}=e,l=!!g&&g.includes(e.id),i=!s||s.includes(e.id),d=null===(t=null==o?void 0:o.e2eClassNames)||void 0===t?void 0:t.body,c=null!==(a=null===(n=null==o?void 0:o.e2eClassNames)||void 0===n?void 0:n.row)&&void 0!==a?a:"",u=l?`selected ${c}`:`${c}`;return p.default.createElement(Po,{key:e.id,className:d,fixedColumnsStyle:ml(P||[])},p.default.createElement(Vo,{key:e.id,className:u,accentColor:e.accentColor},g&&p.default.createElement(_o,null,K(l,e)),r(e)),e.nestedRows&&e.nestedRows.map((e=>U(e,!i))))}))),[i,s,P,U,r,K,g]);if(E){const e=[];for(let t=0;t<$;t+=1)e.push(p.default.createElement(Po,{key:`loading-row-${t}`,fixedColumnsStyle:ml(P||[])},p.default.createElement(Vo,null,c?p.default.createElement(p.default.Fragment,null,g&&G(),c()):J(t))));return p.default.createElement(F,{ref:A,scrollDisabled:!0,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z},k&&l&&p.default.createElement(ul,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:T,wrapperStyle:S}),p.default.createElement(Xo,{ref:M,striped:n,noWrap:a,tableLoading:!0,isFixedLayout:T},X(),e,Q()))}if(D||C){let e=Io;return L?e=L:C&&(e=zo),p.default.createElement(F,{scrollDisabled:!0},p.default.createElement(Xo,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:T},X(),Q()),p.default.createElement(nl,Object.assign({height:N},e)))}return p.default.createElement(F,{scrollDisabled:!1,ref:A,scrollPosition:O,lastStartFixedColumnsIndex:ee,firstEndFixedColumnsIndex:z,showScrollbar:o},k&&l&&p.default.createElement(ul,{renderHeader:X,tableRef:M,wrapperRef:A,isFixedLayout:T,wrapperStyle:S}),p.default.createElement(Xo,{ref:M,striped:n,noWrap:a,tableLoading:!1,isFixedLayout:T},X(),te,Q()))};xl.Cell=_o,xl.ClickableCell=e=>{var{onClick:t,children:n}=e,a=Y(e,["onClick","children"]);return p.default.createElement(_o,Object.assign({},a),p.default.createElement(ol,{onClick:t},n))},xl.EditableCell=e=>{var{onClick:t,children:n}=e,a=Y(e,["onClick","children"]);return p.default.createElement(_o,Object.assign({},a),p.default.createElement(al,{onClick:t},p.default.createElement(ll,null,n)))},xl.SkeletonCell=cl,xl.SkeletonContent=sl;const yl=g.default.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,wl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Cl="Log in with Amazon",El=n.createGlobalStyle`body{overflow:hidden;scrollbar-gutter:stable;}`,$l=g.default.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${T.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Oe.Footer} {\n box-shadow: 0px 10px 15px 0px ${T.colors.neutral.ink.dark};\n }\n `}`,kl=e=>!!e.footerSlot,Sl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Ll={[$.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[$.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[$.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[$.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Nl={xs:$.mobile,sm:$.mobile,base:$.tablet,lg:$.lgTablet},{breakpoints:Il}=T,zl=g.default(t.motion.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${T.sizes.sm};box-shadow:${T.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Oe.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Sl[e]};`} ${$l}{padding-bottom:${T.sizes.md};}${Oe.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Il.mobile} + 1px))and (max-width: ${Il.tablet}){max-width:${({variant:e})=>Ll[Il.tablet][e]};}@media (min-width: ${Il.tablet})and (max-width: ${Il.lgTablet}){max-width:${({variant:e})=>Ll[Il.lgTablet][e]};}@media (min-width: ${Il.lgTablet})and (max-width: ${Il.desktop}){max-width:${({variant:e})=>Ll[Il.desktop][e]};}@media (min-width: ${Il.desktop}){max-width:${({variant:e})=>Ll[Il.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Nl[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Oe.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${ee(T.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Fl=p.default.forwardRef(((e,t)=>{var n=Y(e,[]);return p.default.createElement(zl,Object.assign({ref:t},n))})),{sizes:Dl,text:Tl,shadows:Rl}=T,{grey:Ml}=T.colors.neutral,Al=g.default.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Dl.base} ${Dl.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&Rl[e]};`,Ol=g.default.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Tl.headingXL.fontFamily};font-size:${Tl.headingXL.fontSize};font-weight:${Tl.headingXL.fontWeight};margin:unset;line-height:1;`,Bl=g.default.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Tl.subheadingLarge.fontFamily};font-weight:${Tl.subheadingLarge.fontWeight};font-size:${Tl.subheadingLarge.fontSize};line-height:${Tl.subheadingLarge.lineHeight};`,jl=g.default.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${T.radius.base};border:${Dl.line} solid ${Ml.base};object-fit:cover;`,Hl=g.default.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Wl=g.default(Ce).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${T.text.link.fontFamily};font-size:${T.text.link.fontSize};font-weight:${T.text.link.fontWeight};line-height:${T.text.link.lineHeight};color:${T.text.link.color};&:hover{text-decoration:${T.text.link.textDecoration};}& > * + *{margin-left:${T.sizes.xs};}`,Pl=g.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:${Dl.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,Vl=g.default(Xe).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${T.sizes.lg};height:30px;background-color:${T.colors.neutral.grey.light};border:1px solid ${T.colors.neutral.grey.base};border-radius:${T.sizes.xs};`,_l=g.default(Ce).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${T.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Zl=g.default(Ga).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,ql=({count:e})=>p.default.createElement(p.default.Fragment,null,p.default.createElement("div",null,p.default.createElement(O,{variant:"bodySmall","aria-hidden":!0},"/")),p.default.createElement(Vl,{alignX:"center",alignY:"center","aria-hidden":!0},p.default.createElement(O,{variant:"bodySmall"},e))),Yl=({currentPage:t,totalPagesCount:n,handleChangePage:a})=>{const[o,l]=e.useState(`${t}`);e.useEffect((()=>{l(`${t}`)}),[t]);const i=e=>e>=1&&e<=n,r=()=>{if(o||l(`${t}`),o===`${t}`)return;const e=parseInt(o,10);i(e)&&a(e)};return{pageInputValue:o,handleIncrement:()=>{i(t+1)&&a(t+1)},handleDecrement:()=>{i(t-1)&&a(t-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;i(n=t)&&l(`${n}`)},handleSubmit:r,handleFormSubmit:e=>{e.preventDefault(),r()}}},Xl=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.default.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Kl=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Gl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Ul=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Jl=g.default(ct).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Ql=g.default.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${E.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;}`,ei=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,ti=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${E.secondary.blue.base};background:${E.neutral.grey.lightest};}`,ni=({item:t,handleRangeListChange:n})=>{const a=e.useCallback((()=>n(t)),[n,t]);return p.default.createElement(ei,{onClick:a},p.default.createElement(ti,{variant:"bodySmall"},t.label))},ai=t=>{const{handleRangeListChange:n,paginationRange:a=Gl}=t;return p.default.createElement(p.default.Fragment,null,a.map((t=>p.default.createElement(e.Fragment,{key:t.label},p.default.createElement(ni,{item:t,handleRangeListChange:n})))))};class oi 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=Gl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:e,paginationRange:t=Gl,reversedDropdown:n}=this.props,{shouldShowDropdown:a,dropdownValue:o}=this.state;return p.default.createElement(Ul,{className:e},p.default.createElement(Jl,{cta:p.default.createElement(Ql,{onClick:this.toggleShouldShow},p.default.createElement(O,{variant:"bodySmall"},o.label),p.default.createElement(ye,{color:T.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:n},p.default.createElement(ai,{paginationRange:t,handleRangeListChange:this.handleRangeListChange})))}}const li=g.default.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,ii=g.default.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,ri=({onIncrement:e,onDecrement:t,disabled:n=!1,size:a})=>p.default.createElement(li,{size:a},p.default.createElement(ii,{type:"button",onClick:e,disabled:n},p.default.createElement(q,{height:T.sizes.base,width:T.sizes.base,color:T.colors.neutral.ink.base})),p.default.createElement(ii,{type:"button",onClick:t,disabled:n},p.default.createElement(ke,{height:T.sizes.base,width:T.sizes.base,color:T.colors.neutral.ink.base}))),di=g.default(Ga).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${T.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${T.colors.neutral.ink.lightest};}`,si=g.default(y).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${T.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?T.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,ci=g.default(O).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,ui=g.default(_a).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 ${T.colors.secondary.red.light};\n\n > * {\n border-top-color: ${T.colors.secondary.red.base};\n border-bottom-color: ${T.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${T.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${T.colors.secondary.red.base};\n border-right-color: ${T.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${T.colors.secondary.red.base};\n border-bottom-color: ${T.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${T.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?T.colors.secondary.red.base:T.colors.secondary.blue.base};}}`;const mi=$n((e=>{var{className:t="",hasError:n,currency:a,disabled:o=!1,onChange:l,onPriceChange:i,priceValue:r,step:d="0.1",size:s=Za.base}=e,c=Y(e,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const u=(e=i)=>{e(((parseFloat(r)||0)+parseFloat(d)).toFixed(2))},m=(e=i)=>{e(((parseFloat(r)||0)-parseFloat(d)).toFixed(2))};return p.default.createElement(ui,{className:t,hasError:n},p.default.createElement(si,{disabled:o,size:s},p.default.createElement(ci,{variant:"hintText"},a)),p.default.createElement(di,Object.assign({placeholder:"0.00",type:"currency",value:r,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void i("");const a=parseFloat(n.replace(",",".")).toFixed(2);i(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&u(l),"ArrowDown"===t&&m(l)},disabled:o,size:s},c)),p.default.createElement(ri,{onIncrement:()=>u(),onDecrement:()=>m(),disabled:o,size:s}))}));mi.displayName="PriceInput";const fi=g.default.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,pi=g.default(Ga).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,gi=g.default.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,hi=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${pi} {\n ${t}\n }\n\n & ${gi} {\n ${n}\n }\n `}}`,bi=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),vi=T.colors.neutral.grey.lightest,xi=T.colors.neutral.grey.dark,yi=T.colors.secondary.blue.dark,wi=g.default(y).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${vi};border-color:${xi};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${T.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${yi};border-color:${yi};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${T.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Ci=g.default.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${T.colors.neutral.ink.base});font-family:${T.text.bodySmall.fontFamily};font-style:${T.text.bodySmall.fontStyle};font-size:${T.text.bodySmall.fontSize};line-height:${T.text.bodySmall.lineHeight};font-weight:${T.text.bodySmall.fontWeight};text-decoration:${T.text.bodySmall.textDecoration};letter-spacing:${T.text.bodySmall.letterSpacing};`,Ei=g.default.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${T.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${T.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${T.text.bodySmall.fontFamily};font-style:${T.text.bodySmall.fontStyle};`,$i={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},ki={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},{blue:Si}=E.secondary,{grey:Li}=E.neutral,Ni=g.default.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Ii=g.default.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Si.lightest};}`,zi=g.default.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Fi=g.default.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${D.bodySmall.fontFamily};font-size:${D.bodySmall.fontSize};font-weight:${D.bodySmall.fontWeight};color:${D.bodySmall.color};line-height:${z.base};& > *{vertical-align:middle;}`,Di=g.default(Fi).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Li.dark};font-family:${D.bodySmallBold.fontFamily};font-size:${D.bodySmallBold.fontSize};font-weight:${D.bodySmallBold.fontWeight};color:${D.bodySmallBold.color};`,Ti=g.default.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Ii} tr:nth-child(even) td {\n background-color: ${Li.lightest};\n }\n `}`,Ri=({striped:e=!0,className:t,children:n})=>p.default.createElement(Ti,{striped:e,className:t},n);Ri.Header=Ni,Ri.Body=Ii,Ri.Row=zi,Ri.HeaderCell=Di,Ri.Cell=Fi;const Mi=g.default(y).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;Mi.displayName="Skeleton";const Ai=g.default.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Oi=g.default.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${T.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Bi=g.default.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${T.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${T.colors.secondary.blue.light};}`,ji=g.default(Oi).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${T.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Hi=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}),Wi=g.default(y).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:E.neutral.ink.base};\n background-color: ${null!=e?e:E.neutral.grey.base};\n `}`,Pi=g.default(Xe).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Vi=g.default(Xe).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${T.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${T.shadows.lg};border-radius:${T.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,_i=g.default(y).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${T.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${z.md};height:${z.md};}`,Zi=g.default(Xe).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,qi=g.default(O).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Yi={info:{accentColor:E.brand.blue.base,icon:p.default.createElement(Je,null)},success:{accentColor:E.secondary.green.base,icon:p.default.createElement(Qe,null)},error:{accentColor:E.secondary.red.base,icon:p.default.createElement(Ge,null)},merge:{accentColor:E.secondary.purple.base,icon:p.default.createElement((e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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)}},Xi=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ki=({className:e,e2eClassName:t,type:n,iconSlot:a,text:o,last:l,minWidth:i,cta:r,onClose:d})=>{const s=Xi(e),c=Xi(t);return p.default.createElement(Vi,{className:J([null==s?void 0:s.container,null==c?void 0:c.container]),direction:"horizontal",alignY:"center",minWidth:i,last:l},p.default.createElement(_i,{color:Yi[n].accentColor,className:J([s.icon,c.icon])},null!=a?a:Yi[n].icon),p.default.createElement(Zi,{direction:"horizontal",alignY:"center",alignX:"between"},p.default.createElement(qi,{variant:"body"},o),r),p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(Se,{color:"white"}),onClick:d,"aria-label":"Close"}))},Gi=g.default.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${T.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",a="24px",o="24px",l="8px",i="16px",r="4px",d="white",s="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",o="16px",l="4px",i="14px",r="2px"),t&&(d="#0079D1",s="#0079D1",c="white"),`\n --outline-width: ${r};\n\n height: ${n};\n padding-left: ${a};\n padding-right: ${o};\n border-radius: ${l};\n font-size: ${i};\n\n background-color: ${d};\n border-color: ${s};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Ui=g.default.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${z.md};border-radius:${k.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${E.neutral.ink.lightest};background-color:${E.neutral.grey.lightest};:hover{border:2px dashed ${E.secondary.blue.base};background-color:${E.secondary.blue.lightest};}:active{border:2px dashed ${E.secondary.blue.base};box-shadow:0 0 0 4px ${E.secondary.blue.light};background-color:${E.secondary.blue.lightest};}:focus-within{border:2px dashed ${E.secondary.blue.base};box-shadow:0 0 0 4px ${E.secondary.blue.light};background-color:${E.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${E.secondary.red.base};:hover{border:2px dashed ${E.secondary.red.base};background-color:${E.secondary.red.lightest};}:active{border:2px dashed ${E.secondary.red.base};box-shadow:0 0 0 4px ${E.secondary.red.light};background-color:${E.secondary.red.lightest};}:focus-within{border:2px dashed ${E.secondary.red.base};box-shadow:0 0 0 4px ${E.secondary.red.light};background-color:${E.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${E.neutral.grey.light};border-color:${E.neutral.ink.lightest};color:${E.neutral.ink.light};}`;var Ji,Qi,er;exports.AcceptedFileTypes=void 0,(Ji=exports.AcceptedFileTypes||(exports.AcceptedFileTypes={})).CSV=".csv",Ji.JPEG=".jpeg",Ji.JPG=".jpg",Ji.GIF=".gif",Ji.PNG=".png",exports.FileSizeUnit=void 0,(Qi=exports.FileSizeUnit||(exports.FileSizeUnit={})).KB="KB",Qi.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"}(er||(er={}));const tr=()=>p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},p.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"}),p.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"})),nr=()=>p.default.createElement(Xe,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},p.default.createElement(tr,null),p.default.createElement(O,{variant:"subheadingSmall",style:{paddingTop:z.sm}},"Browse files or drag them here")),ar=({acceptedTypesCopy:e,maxSizeCopy:t})=>e||t?p.default.createElement(Xe,{alignX:"start",spacing:"xs"},e&&p.default.createElement(O,{variant:"errorSmall"},"Invalid format (",e,")"),t&&p.default.createElement(O,{variant:"errorSmall"},"File is too big (",t,")")):null,or=g.default(O).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,lr=g.default(Xe).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${E.neutral.ink.lightest};border-radius:${k.base};padding:${z.xs};${O}{padding-left:${z.xs};}`,ir=({file:e,resetSelection:t,disabled:n})=>e?p.default.createElement(lr,{alignX:"between",direction:"horizontal",alignY:"center"},p.default.createElement(or,{variant:"body"},null==e?void 0:e.name),p.default.createElement(Ce,{size:"sm",variant:"flat",onClick:t,icon:p.default.createElement(Se,null),"aria-label":"Remove file",disabled:n})):null,rr=e.forwardRef(((t,n)=>{var{id:a,name:o,maxBytes:l=1e6,format:i=exports.FileSizeUnit.MB,fileTypes:r,label:d="Upload file",required:s,disabled:c}=t,u=Y(t,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const m=e.useRef(null);e.useImperativeHandle(n,(()=>m.current),[]);const[f,g]=e.useState(),[h,b]=e.useState(er.VALID),v=h===er.INVALID_FORMAT||h===er.INVALID_FORMAT_AND_SIZE,x=h===er.INVALID_SIZE||h===er.INVALID_FORMAT_AND_SIZE,y=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case exports.FileSizeUnit.KB:return`${a}${Number(e)/1e3} KB`;case exports.FileSizeUnit.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:l,format:i}),w=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const o=a.length>1,l=t===a.length-1&&o,i=t===a.length-2&&o;switch(l&&(n+=" and "),e){case exports.AcceptedFileTypes.CSV:n+="CSV";break;case exports.AcceptedFileTypes.GIF:n+="GIF";break;case exports.AcceptedFileTypes.JPEG:n+="JPEG";break;case exports.AcceptedFileTypes.JPG:n+="JPG";break;case exports.AcceptedFileTypes.PNG:n+="PNG"}!i&&!l&&a.length>2&&(n+=", ")})),n})({fileTypes:r}),C=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const o=a.length-1===n&&a.length>1;t+=o?`${e}`:`${e}, `})),t.trim()})({fileTypes:r}),E=()=>{var e;(null===(e=m.current)||void 0===e?void 0:e.value)&&(m.current.value="")},$=({overMaxSize:e,invalidFormat:t})=>{var n;let a=er.VALID;t&&!e?a=er.INVALID_FORMAT:!t&&e?a=er.INVALID_SIZE:t&&e&&(a=er.INVALID_FORMAT_AND_SIZE),null===(n=m.current)||void 0===n||n.setCustomValidity(a),b(a)},k=e.useCallback((e=>{if(!e.length)return void $({invalidFormat:!0});const[t]=e,n=t.size>l,[,o]=t.type.split("/"),i=!r.find((e=>e.substring(1)===o));n||i?E():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:a}),$({invalidFormat:i,overMaxSize:n}),g(t)}),[r,a,l]),S=e.useCallback((()=>{E(),g(void 0),$({invalidFormat:!1,overMaxSize:!1})}),[]),L=e.useCallback((()=>{var e;const t=null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?k(t):S()}),[S,k]);return e.useEffect((()=>{const e=null==m?void 0:m.current;return null==e||e.addEventListener("change",L),null==e||e.addEventListener("cancel",S),()=>{null==e||e.removeEventListener("change",L),null==e||e.removeEventListener("cancel",S)}}),[L,S]),p.default.createElement(Cn,{spacing:"sm",alignX:"stretch"},p.default.createElement(xn,{htmlFor:a},d,p.default.createElement(Xe,{spacing:3,alignX:"stretch",style:{paddingTop:z.sm}},p.default.createElement(yn,null,p.default.createElement("div",null,w),p.default.createElement("div",null,y)),p.default.createElement(Ui,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&k(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.blur()}},p.default.createElement(nr,null),p.default.createElement("input",Object.assign({ref:m,id:a,type:"file",accept:C,name:o,required:s,disabled:c},u))))),p.default.createElement(Xe,{alignX:"stretch",spacing:"sm"},p.default.createElement(ir,{file:f,resetSelection:S,disabled:c}),p.default.createElement(ar,{acceptedTypesCopy:v?w:void 0,maxSizeCopy:x?y:void 0})))})),dr="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",sr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${dr} display:${e=>e.shouldShow?"initial":"none"};z-index:${T.layers.modal};`,cr=g.default(y).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${dr} background-color:rgba(55,66,77,0.5);`,ur=g.default(y).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,mr=({usePortal:e,children:t})=>p.default.createElement(p.default.Fragment,null,e?p.default.createElement(K,null,t):t),fr=({className:e,children:t=null,shouldShow:n=!1,usePortal:a=!0})=>p.default.createElement(mr,{usePortal:a},p.default.createElement(sr,{className:J([`${e}-container`,e]),shouldShow:n},p.default.createElement(cr,null),p.default.createElement(x.default,{isActive:n},p.default.createElement(ur,{className:J([`${e}-wrap`,e])},t)))),pr=g.default.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,gr=g.default.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,hr=g.default(Ce).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`;var br;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(br||(br={}));const vr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,xr=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,yr=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${O} {\n color: ${null!=t?t:E.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,wr=g.default(O).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 & > ${xr} {\n color: #fff;\n }\n `}`,Cr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Er=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,$r=e=>p.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p.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"})),kr=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0});var Sr;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Sr||(Sr={}));const Lr=e=>p.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),p.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"})),Nr=g.default(O).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Ir=g.default(Lr).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,zr=g.default(Se).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Fr=g.default(O).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 & > ${Nr} {\n color: ${E.neutral.grey.lightest};\n }\n `}`,Dr=g.default(y).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${T.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${E.neutral.grey.base};\n & > ${Fr} {\n background-color: ${E.neutral.grey.base};\n & > ${Nr} {\n color: ${E.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:E.neutral.ink.dark};\n }\n & > ${Ir} {\n color: ${E.neutral.ink.dark};\n }\n & > ${zr} {\n color: ${E.neutral.ink.dark};\n }\n }\n\n & > ${O} {\n color: ${null!=e?e:E.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Ir} {\n color: ${t.dark};\n }\n & > ${zr} {\n color: ${t.dark};\n }\n\n & > ${O} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Tr=g.default(he).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${T.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Dr} {\n background-color: ${E.neutral.grey.base};\n & > ${Fr} {\n background-color: ${E.neutral.grey.base};\n & > ${Nr} {\n color: ${E.neutral.ink.base};\n }\n }\n & > ${O} {\n color: ${null!=e?e:E.neutral.ink.dark};\n }\n & > ${Ir} {\n color: ${E.neutral.ink.dark};\n }\n & > ${zr} {\n color: ${E.neutral.ink.dark};\n }\n }\n `}`,Rr={style:{marginLeft:z.xs,padding:z.xs,height:z.base,width:z.base}},Mr=g.default.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${z.sm};svg{height:${z.base};width:${z.base};}`,Ar=p.default.forwardRef(((e,t)=>{var{id:n,iconSlot:a,name:o,type:l,className:i,colourPalette:r=E.secondary.blue,customTextColour:d,count:s,active:c=!1,onClick:u,subAction:m,ariaContext:f}=e,g=Y(e,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const h={delete:(b=i)?`${b}-delete`:void 0,edit:b?`${b}-edit`:void 0,container:b?`${b}-view`:void 0,active:b?`${b}-active`:void 0,counter:b?`${b}-counter`:void 0};var b;const[v,x,y]=uo(),w=c&&m?m:u,C=l===Sr.draft,$=l===Sr.saved;return p.default.createElement(Tr,Object.assign({className:J([null==h?void 0:h.container]),onClick:()=>w(n),role:"tab","aria-selected":c,"aria-label":`${c&&C?"Delete":c&&$?"Edit":""} ${o} view ${s?`with ${s} ${f}`:""}`,customTextColour:d,ref:t},g),p.default.createElement(Dr,{active:c,onMouseEnter:x,onMouseLeave:y,colourPalette:r,customTextColour:d},a&&p.default.createElement(Mr,null,a),p.default.createElement(O,{variant:"bodyBold"},o),null!=s&&p.default.createElement(Fr,{"data-testid":"countContainer",active:c||v,colourPalette:r,customTextColour:d},p.default.createElement(Nr,{variant:"subheadingSmall"},s)),C&&p.default.createElement(zr,Object.assign({},Rr,{"aria-label":"delete icon"})),$&&c&&p.default.createElement(Ir,Object.assign({},Rr,{"aria-label":"edit icon"}))))})),Or=g.default(Xe).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;`,Br=g.default(Xe).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${E.neutral.grey.lightest};`,jr=g.default(Zt).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${E.neutral.ink.base};`,Hr=g.default(Rt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${E.neutral.ink.base};`,Wr=g.default(Lr).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${E.neutral.ink.base};`,Pr=g.default(Ce).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${E.neutral.grey.lightest};}`,Vr=g.default(Ce).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${jr}{color:${E.neutral.ink.lightest};}}&:hover{background-color:${E.neutral.grey.lightest};}`,_r=g.default(Ce).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Hr}{color:${E.neutral.ink.lightest};}}&:hover{background-color:${E.neutral.grey.lightest};}`,Zr=g.default(_a).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,qr=(t,n)=>{var a;const[o,l]=e.useState(!0),[i,r]=e.useState(!1),[d,s]=e.useState([]),c=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.querySelector("[aria-selected = true]"),m=u.usePrevious(c),f=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 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()),r(!0)):r(!1)}),[t]),p=e.useCallback((()=>{var e;void 0!==typeof(null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.scrollWidth)&&(t.current.scrollWidth-t.current.getBoundingClientRect().width<5?r(!0):r(!1))}),[t]),g=e.useCallback((()=>{const e=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(d,t.current.scrollLeft,t.current.clientWidth);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]),h=e.useCallback((()=>{const e=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(d,t.current.scrollLeft);t.current.scrollTo({left:e,top:0,behavior:"smooth"})}),[t,d]);return e.useEffect((()=>{var e,a,o,l,i,r,u,g,h,b;if(t){if((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===(l=null===(o=null==t?void 0:t.current)||void 0===o?void 0:o.children)||void 0===l?void 0:l.length)!==d.length&&d.length>0&&d.length<n.length&&(t.current.scrollTo({left:t.current.scrollWidth-t.current.clientWidth,top:0,behavior:"smooth"}),s([...d,d[d.length-1]+(null!==(r=null===(i=t.current.children[d.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==r?r:0)-20])),(null===(g=null===(u=null==t?void 0:t.current)||void 0===u?void 0:u.children)||void 0===g?void 0:g.length)&&0===d.length&&s((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(t.current)),c!==m&&null!==c&&(null===(b=null===(h=null==t?void 0:t.current)||void 0===h?void 0:h.children)||void 0===b?void 0:b.length)===d.length){const e=Array.from(t.current.children).indexOf(c);t.current.scrollTo({left:d[e],top:0,behavior:"smooth"})}return p(),window.addEventListener("resize",(()=>p())),t.current.addEventListener("scroll",(()=>f())),()=>{window.removeEventListener("resize",(()=>p()))}}}),[t,n,p,f,d,c,m]),{rightDisabled:i,leftDisabled:o,toNextScrollPosition:g,toPrevScrollPosition:h}},Yr=p.default.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:o},l)=>{const i=e.useRef(null),{rightDisabled:r,leftDisabled:d,toNextScrollPosition:s,toPrevScrollPosition:c}=qr(i,t);return p.default.createElement(Br,{direction:"horizontal",alignY:"center",alignX:"between"},p.default.createElement(Or,{ref:i,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),p.default.createElement(Zr,null,(!d||!r)&&p.default.createElement(p.default.Fragment,null,p.default.createElement(Vr,{id:"left-arrow",icon:p.default.createElement(jr,null),disabled:d,onClick:c,variant:"flat","aria-label":"move views to the left"}),p.default.createElement(_r,{id:"right-arrow",icon:p.default.createElement(Hr,null),disabled:r,onClick:s,variant:"flat","aria-label":"move views to the right"})),p.default.createElement(Pr,{icon:p.default.createElement(Wr,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":o,"aria-haspopup":a?"dialog":void 0,ref:l})))})),Xr=g.default(y).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Kr=g.default(y).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Gr=g.default(Ga).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,Ur=g.default(Ce).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${T.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${T.colors.secondary.red.base};\n `};`,Jr=e=>to(e,no),Qr=$n((e=>{var{size:t=Za.base,hasError:n,className:a}=e,o=Y(e,["size","hasError","className"]);return p.default.createElement(Xr,{className:a},p.default.createElement(Kr,null,"g"===o.weightUnit&&p.default.createElement(_a,null,p.default.createElement(Gr,Object.assign({size:t,onChange:o.handleChangeGram,name:"gram",type:"number",value:o.gram,hasError:n,min:"0",step:"any",onKeyDown:Jr},o)),p.default.createElement(Ur,{hasError:n,size:t},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(o)&&p.default.createElement(p.default.Fragment,null,p.default.createElement(_a,null,p.default.createElement(Gr,Object.assign({size:t,onChange:o.handleChangePound,name:"pound",type:"number",value:o.pound,hasError:n,step:"any",min:"0",onKeyDown:Jr},o)),p.default.createElement(Ur,{hasError:n,size:t},"lb")),p.default.createElement(_a,null,p.default.createElement(Gr,Object.assign({size:t,onChange:o.handleChangeOunce,name:"ounce",type:"number",value:o.ounce,hasError:n,min:"0",step:"any",onKeyDown:Jr},o)),p.default.createElement(Ur,{hasError:n,size:t},"oz")))))}));Qr.displayName="WeightInput",Qr.defaultProps={weightUnit:"lb"},exports.Accordion=({className:n,children:a,label:o,iconSlot:l,glyphColor:i=E.neutral.ink.lightest,timeout:r=350,description:d,shouldOpenOnMount:s})=>{const[c,u]=e.useState(!!s);return p.default.createElement(Z,{open:!!s,className:n},p.default.createElement(W,{onClick:()=>u(!c)},p.default.createElement(P,null,p.default.createElement(j,{glyphColor:i},l,p.default.createElement(O,{variant:"body"},o)),p.default.createElement(H,null,p.default.createElement(t.motion.span,{animate:{rotate:c?180:0}},p.default.createElement(q,{name:c?"downArrow":"upArrow"})))),!!d&&p.default.createElement(V,{variant:"hintText"},d)),c&&p.default.createElement(_,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:r/1e3}},a))},exports.ActionList=qe,exports.Alert=e=>{var{size:t="base",variant:n="default",colours:a,rightActions:o,title:l,titleSlot:i,message:r,children:d,iconSlot:s,onClickClose:c}=e,u=Y(e,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const m=null!=a?a:at[n],f=s||nt[n],g="xs"===t;return p.default.createElement(Ke,Object.assign({colours:m,direction:"horizontal",alignX:"between",spacing:"0"},u),p.default.createElement(Xe,{direction:"horizontal",alignY:g?"center":"start",style:{margin:et[t],gap:et[t]},spacing:0},p.default.createElement(f,{"aria-hidden":!0,style:{minWidth:tt[t],minHeight:tt[t],width:tt[t],height:tt[t]},color:m.primary}),p.default.createElement(Xe,{direction:"vertical",spacing:g?0:"xs"},i||p.default.createElement(O,{variant:g?"bodySmallBold":"bodyBold",style:"base"===t?{lineHeight:"24px"}:{}},l),d||p.default.createElement(O,{variant:g?"bodySmall":"body"},r))),p.default.createElement(Xe,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:g?void 0:T.sizes[3],gap:g?void 0:et[t],alignItems:"center"}},o&&p.default.createElement(Xe,{alignY:"center",spacing:0,style:{gap:et[t]}},o.map((e=>{var{label:t}=e,n=Y(e,["label"]);return p.default.createElement(Ce,Object.assign({key:t,type:"button",size:"sm"},n),t)}))),c&&p.default.createElement(Xe,{alignY:g?"center":"start",style:{height:"100%",padding:g?T.sizes.xs:void 0}},p.default.createElement(Ce,{variant:"flat",icon:p.default.createElement(Se,null),onClick:c,"aria-label":"Close",size:"sm"}))))},exports.Anchor=e=>{var{children:t,href:n,rel:a,allowedHostnames:o=te}=e,l=Y(e,["children","href","rel","allowedHostnames"]);const i=ne(n,o),r=a||(i?"noopener noreferrer":void 0);return p.default.createElement(ot,Object.assign({href:n,rel:r},l),t)},exports.AnimatedDropdown=ct,exports.Avatar=({width:e="40px",name:t="Veeqo",bgColor:n=T.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const o=t.toUpperCase().match(/\b(\w)/g);return p.default.createElement(ut,{width:e,bgColor:n,textColor:a,className:"avatar"},null==o?void 0:o.slice(0,2).map(((e,t)=>p.default.createElement("span",{key:`${e}-${t}`},e))))},exports.Badge=({variant:e="default",hideBorder:t=!1,iconSlot:n,tooltip:a,className:o,e2eClassName:l,children:i})=>{const r=Et[e];return p.default.createElement(wt,{text:a},p.default.createElement(r,{className:J([o,l]),hideBorder:t},n&&n,i&&p.default.createElement("span",null,i)))},exports.Banner=e=>{var{type:t="info",text:n,icon:a,onClose:o,className:l,header:i,children:r,backgroundColor:d="white"}=e,s=Y(e,["type","text","icon","onClose","className","header","children","backgroundColor"]);const c=Ft[t];return p.default.createElement($t,Object.assign({accentColor:c,className:l,backgroundColor:d},s),p.default.createElement(kt,null,a&&p.default.createElement(Lt,{style:{marginRight:z.md},accentColor:c},a),r?p.default.createElement(Nt,null,r):p.default.createElement(p.default.Fragment,null,p.default.createElement(It,null,i||p.default.createElement(zt,{variant:"headingSmall"},n)),p.default.createElement(St,null,o&&p.default.createElement(Ce,{variant:"flat","aria-label":"Close",icon:p.default.createElement(Se,null),onClick:o})))))},exports.BaseContainer=y,exports.Breadcrumbs=({items:e,Separator:t=p.default.createElement(At,null),LinkComponent:n=Ot})=>p.default.createElement(Dt,{className:"breadcrumbs"},e.map(((a,o)=>p.default.createElement(Mt,{key:a.title,title:a.title,href:a.pathname,LinkComponent:o!==e.length-1?n:Bt},e.length!==o+1&&t)))),exports.Button=Ce,exports.Card=Oe,exports.CardHeader=Le,exports.Checkbox=cn,exports.Choice=on,exports.ChoiceList=gn,exports.CopyToClipboard=({className:t,text:n,onCopy:a})=>{const[o,l]=p.default.useState(!1),i=e.useCallback((()=>{navigator.clipboard.writeText(n),a&&a(),l(!0),setTimeout((()=>l(!1)),2500)}),[a,n]);return p.default.createElement(wt,{text:o?"Copied!":"Copy to clipboard"},p.default.createElement(vn,{variant:"flat",size:"sm",className:t,"aria-label":`${o?"Copied":"Copy"} "${n}" to clipboard`,icon:o?p.default.createElement(Qe,Object.assign({color:E.secondary.green.base},bn)):p.default.createElement(hn,Object.assign({color:E.secondary.blue.base},bn)),onClick:i}))},exports.DataTable=Ta,exports.DateRangeInput=Sn,exports.DateRangePicker=t=>{var{className:n,style:a,isDisabled:o,isMultiMonth:l=!1,showDatePresets:i=!0,onReset:r,disabledRanges:d,selectedPreset:s,setSelectedPreset:c,selectedRange:u,setSelectedRange:m,"aria-describedby":f,"aria-label":g}=t,h=Y(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const b=e.useCallback((e=>t=>{const n={start:"start"===e?t:null==u?void 0:u.start,end:"end"===e?t:null==u?void 0:u.end};m(n)}),[null==u?void 0:u.end,null==u?void 0:u.start,m]),v=e.useMemo((()=>Hn({disabledRanges:d,selectedRange:u})),[d,u]),x=e.useMemo((()=>u?(e=>Bn.reduce(((t,n)=>{if(n.hidden||t)return t;const a=On(n.value);if(!a)return t;const{start:o,end:l}=a;return 0===e.start.compare(o)&&0===e.end.compare(l)?n:t}),void 0))(u):null),[u]);return e.useEffect((()=>{c(x||Bn[0])}),[x,c]),p.default.createElement(Xe,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:T.sizes.base},a),className:n,"aria-describedby":f,"aria-label":g},i&&p.default.createElement(Nn,{disabled:o,label:"Date Range",options:Bn,value:null==s?void 0:s.value,onChange:e=>{m(On(An[e])),c(Bn.find((({value:t})=>t===e))||Bn[0])}}),p.default.createElement(Sn,{isDisabled:o,label:"Start date - End date",onChangeStartDate:b("start"),onChangeEndDate:b("end"),startValue:u&&u.start,endValue:u&&u.end,error:v?"Range contains invalid dates":void 0}),h.showPreviousPeriod&&p.default.createElement(Mn,Object.assign({},h)),p.default.createElement(Wn,null),p.default.createElement(Xe,{alignX:"center"},p.default.createElement(qt,{"aria-label":"Selected Date Range",isDisabled:o,isMultiMonth:l,value:u,onChange:m,disabledRanges:d})),!!r&&p.default.createElement(p.default.Fragment,null,p.default.createElement(Wn,null),p.default.createElement(Oe.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},p.default.createElement(Ce,{variant:"default",size:"sm",onClick:r,disabled:o},"Reset"))))},exports.DescriptionList=({items:e,horizontal:t})=>{const n=e=>Array.isArray(e)?e.map((e=>p.default.createElement(ja,{key:e},e))):p.default.createElement(ja,null,e);return p.default.createElement(Ra,null,e.map((e=>t?p.default.createElement(Aa,{key:e.term},p.default.createElement(Ba,null,e.term),p.default.createElement(Oa,null,n(e.description))):p.default.createElement(Ma,{key:e.term},p.default.createElement(Ba,null,e.term),n(e.description)))))},exports.DetailPage=({renderHeader:t,children:n})=>{const[a,o]=e.useState(!0);return p.default.createElement("main",null,t((()=>o(!a)),a),p.default.createElement(Va,null,p.default.createElement(Pa,{showSidebar:a},n)))},exports.DimensionsInput=oo,exports.Dropdown=t=>{var{id:n,shouldShow:a,setShouldShow:o,ctaIconSlot:l,ctaProps:i}=t,r=Y(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=e.useRef(null);return p.default.createElement(p.default.Fragment,null,p.default.createElement(Ce,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":n,onClick:()=>null==o?void 0:o(!a),icon:l,dropdown:!0},i)),a&&p.default.createElement(io,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==o?void 0:o(!1)},r)))},exports.FilterTag=({className:t,e2eClassName:n,label:a,text:o,iconSlot:l,fill:i=E.secondary.blue.base,content:r,footer:d,header:s,onClickAway:c,onClick:u,shouldCloseOnClickAway:m=!0})=>{const f=yo(t),g=yo(n),{shouldShowDropdown:h,toggleShouldShowDropdown:b,closeDropdown:v}=so(),x=e.useCallback((e=>{b(),c&&h&&c(e)}),[b,c,h]),y=e.useCallback((e=>{c&&c(e,v),m&&v()}),[v,c,m]);return!r?p.default.createElement(fo,{className:J([null==f?void 0:f.container,null==g?void 0:g.container]),onClick:u},a&&p.default.createElement(go,{variant:"subheadingSmallBold"},`${a}:`),p.default.createElement(O,null,o),p.default.createElement(bo,{className:J([null==f?void 0:f.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:E.neutral.ink.base})):p.default.createElement(ct,{className:f.filterTagDropdown,shouldShowDropdown:h,onClickAway:y,cta:p.default.createElement(fo,{className:f.container,onClick:x},a&&p.default.createElement(go,{variant:"subheadingSmallBold"},`${a}:`),p.default.createElement(O,null,o),p.default.createElement(ho,{color:E.neutral.ink.base,name:"downArrow",$shouldShow:h}))},p.default.createElement(vo,null,p.default.createElement(xo,{color:i},s||p.default.createElement(p.default.Fragment,null,l,p.default.createElement(O,{variant:"bodyBold"},a))),r,d))},exports.FocusVisibleManager=function({children:t}){const[n,a]=e.useState(!0);return e.useEffect((()=>{function e(){a(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(a(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function l(e){e.metaKey||e.altKey||e.ctrlKey||a(!0)}function i(){"hidden"===document.visibilityState&&(a(!0),n())}return document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",l,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[a]),p.default.createElement(co.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},t)},exports.Grid=wo,exports.Image=({src:t,alt:n="",className:o,e2eClassName:i,width:r,height:d,previewWidth:s,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:f,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:b=!1})=>{const v=Lo(o),x=Lo(i),[y,w]=e.useState(!1),[C,E]=e.useState({isLoaded:!1,isError:!1}),[$,k]=p.default.useState(null),[S,L]=p.default.useState(null),{styles:N,attributes:I}=a.usePopper($,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),z=e.useCallback((()=>m?w(!0):{}),[m]),F=e.useCallback((()=>m?w(!1):{}),[m]),D=!C.isLoaded||C.isError;return p.default.createElement(Eo,{className:J([null==v?void 0:v.container,null==x?void 0:x.container,o])},p.default.createElement($o,{src:t,alt:n,className:J([null==v?void 0:v.image,null==x?void 0:x.image]),width:r,height:d,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:z,onMouseLeave:F,style:D?{display:"none"}:{},ref:k}),!b&&D&&(f||p.default.createElement(Co,{className:J([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||r,height:h||d})),y&&l.createPortal(p.default.createElement(ko,Object.assign({ref:L,style:N.popper},I.popper,{className:J([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),p.default.createElement(So,{src:t,alt:"",width:s,height:c})),document.body))},exports.InputGroup=_a,exports.LegacyDataTable=xl,exports.Loader=se,exports.LoginWithAmazonButton=t=>{const[n,a]=e.useState(wl);return p.default.createElement(yl,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(wl)},"aria-label":Cl},t),p.default.createElement("img",{src:n,alt:Cl}))},exports.Modal=n=>{const{shouldShow:a,showHeaderCloseButton:o=!0,fullBleed:l=!1,variant:i="base",onClose:r,children:d}=n,s=e.useRef(null),[c,u]=e.useState(null);e.useEffect((()=>{var e,t;a&&(null===(e=s.current)||void 0===e||e.removeAttribute("open"),null===(t=s.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:m,onScroll:f}=mo(c),g=()=>{var e;null===(e=s.current)||void 0===e||e.close(),r()};return p.default.createElement(t.AnimatePresence,null,a&&p.default.createElement("div",{"data-testid":"dialog-wrapper"},p.default.createElement(El,null),p.default.createElement(Fl,{ref:s,onClose:g,variant:i,"aria-describedby":"modal_title"},p.default.createElement(Oe.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:p.default.createElement(Le,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},o&&{onClickClose:g})),p.default.createElement($l,{onScroll:f,ref:u,isScrollable:m,fullBleed:l},d),kl(n)&&n.footerSlot,!kl(n)&&(n.leftActions||n.rightActions)&&p.default.createElement(Oe.Footer,null,p.default.createElement(Xe,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&p.default.createElement(Xe,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return p.default.createElement(Ce,Object.assign({key:t,type:"button"},n),t)}))),n.rightActions&&p.default.createElement(Xe,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((e=>{var{label:t}=e,n=Y(e,["label"]);return p.default.createElement(Ce,Object.assign({key:t,type:"button"},n),t)})))))))))},exports.PageHeader=({title:e,subtitle:t,imageSrc:n,actions:a,quickActions:o,backAction:l,Accessory:i,shadow:r="none",onClickPrevious:d,onClickNext:s,onClickToggleSidebar:c})=>{const u=a&&p.default.createElement(qe,{buttonVariant:o?"default":"primary",title:"Actions",sections:a}),m=null==o?void 0:o.map((e=>p.default.createElement(Ce,{key:e.title,variant:e.variant,icon:e.icon,onClick:e.onClick},e.title))),f=l&&p.default.createElement(Ce,{onClick:l.onClick,icon:p.default.createElement(Zt,null),variant:"link"},l.title),g=c&&p.default.createElement(Xe,{direction:"horizontal",alignX:"end"},p.default.createElement(Wl,{onClick:c},p.default.createElement("span",null,"Toggle sidebar"),p.default.createElement(Rt,{width:z.md})));return p.default.createElement(Al,{shadow:r},p.default.createElement(Xe,null,f,p.default.createElement(Pl,null,p.default.createElement(Xe,{direction:"horizontal",spacing:"md"},n&&p.default.createElement(jl,{src:n,alt:"",width:"72",height:"72"}),p.default.createElement("div",{style:{flex:1}},p.default.createElement(Xe,{alignX:"stretch"},p.default.createElement(Ol,null,e),i,t&&p.default.createElement(Bl,null,t)))),p.default.createElement(Hl,null,p.default.createElement(Xe,{direction:"horizontal",alignX:"end",spacing:"sm"},m,u,d&&p.default.createElement(Ce,{icon:p.default.createElement(Zt,null),onClick:d}),s&&p.default.createElement(Ce,{icon:p.default.createElement(Rt,null),onClick:s})),g))))},exports.Pagination=({testId:e,e2eClassName:t,currentPage:n,totalPagesCount:a,handleChangePage:o})=>{const{pageInputValue:l,handleIncrement:i,handleDecrement:r,handleFormSubmit:d,handleInputChange:s,handleSubmit:c}=Yl({currentPage:n,totalPagesCount:a,handleChangePage:o});return p.default.createElement(Xe,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":e,className:t},p.default.createElement(_l,{onClick:()=>{1!==n&&o(1)},icon:p.default.createElement(Xl,null),size:"sm","aria-label":"go to first page"}),p.default.createElement(_l,{onClick:r,icon:p.default.createElement(Zt,null),size:"sm","aria-label":"go to previous page","aria-disabled":n<=1}),p.default.createElement("form",{onSubmit:d},p.default.createElement(Zl,{"aria-live":"polite","aria-label":`page ${n} of ${a}`,size:Za.sm,type:"number",value:l,min:"1",max:`${a}`,onChange:s,onBlur:c})),p.default.createElement(ql,{count:a}),p.default.createElement(_l,{onClick:i,icon:p.default.createElement(Rt,null),size:"sm","aria-label":"go to next page","aria-disabled":n>=a}),p.default.createElement(_l,{onClick:()=>{n!==a&&o(a)},icon:p.default.createElement(Kl,null),size:"sm","aria-label":"go to last page","aria-disabled":n>=a}))},exports.PaginationRange=oi,exports.Popover=le,exports.Popup=fr,exports.Portal=K,exports.PriceInput=mi,exports.Radio=mn,exports.RangeCalendar=qt,exports.ScreenReaderOnly=({children:e})=>p.default.createElement(fi,null,e),exports.Search=({type:e="text",disabled:t=!1,onClearClick:n,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,value:s="",error:c,placeholder:u="",className:m="",name:f,isLoading:g=!1,fill:h,reversed:b=!1,autoComplete:v="on",size:x="base"})=>{const y=s&&s.length>0;return p.default.createElement(hi,{className:m,iconPosition:b?"left":"right"},p.default.createElement(pi,{size:x,type:e,value:s,onChange:a,onBlur:o,onFocus:l,onKeyUp:i,onKeyDown:r,onKeyPress:d,placeholder:u,name:f,disabled:t,error:c,autoComplete:v}),p.default.createElement(gi,null,g?p.default.createElement(se,{height:24,color:h||T.colors.secondary.blue.base}):y&&n?p.default.createElement(Ce,{variant:"unstyled",onClick:n,style:{display:"flex"},"aria-label":"Clear text",type:"button"},p.default.createElement(Se,{color:h||T.colors.neutral.ink.dark})):p.default.createElement(Ce,{variant:"unstyled",onClick:()=>a(s),style:{display:"flex"},"aria-label":"Search",type:"button"},p.default.createElement(bi,{color:h||T.colors.neutral.ink.dark,height:z.md,width:z.md}))))},exports.SegmentedControl=({options:e,selected:t,className:n,onChange:a})=>p.default.createElement(wi,{className:n?`${n}-container`:void 0},e.map((e=>p.default.createElement(Ce,{type:"button","aria-pressed":e.value===t,variant:e.value===t?"primary":"default",key:e.key,onClick:()=>a(e.value),disabled:e.disabled,className:e.value===t?"veeqo-components-active-button":""},e.label)))),exports.Select=Nn,exports.ShortcutKeys=e=>{var{shortcut:t,label:n,inverse:a=!1,displayLabel:o=!1}=e,l=Y(e,["shortcut","label","inverse","displayLabel"]);const i=t.split("+").map((e=>$i[e]?p.default.createElement(Ei,{key:`Key: ${e}`,"aria-label":ki[e]},$i[e]):p.default.createElement(Ei,{key:`Key: ${e}`},e))).reduce(((e,t)=>p.default.createElement(p.default.Fragment,null,e,"+",t)));return p.default.createElement(Ci,Object.assign({"aria-label":n,$inverse:a},l),i," ",o?p.default.createElement("span",null,n):null)},exports.SimpleTable=Ri,exports.Skeleton=Mi,exports.Slider=({id:t,value:n,min:a,max:o,step:l=1,onChange:i,className:r,e2eClassName:d,onSlideStart:s=(()=>{}),onSlideEnd:c=(()=>{})})=>{const[u,m]=e.useState(!1),[f,g]=e.useState(-1),h=e.useRef(null),b=e.useRef(null),v=e.useRef(null),x=Hi(r),y=Hi(d),w=e.useCallback((e=>{var t;if(!u||!h.current)return;const r=f>-1?n[f]:n,d=h.current.getBoundingClientRect();let s=100*(e.pageX-d.x)/d.width/100*(o-a)+a;const c=r-s;if(c>0&&(s=r+Math.ceil(s/l-r/l)*l),c<0&&(s=r+Math.floor(s/l-r/l)*l),r===s)return;s>o&&(s=o),s<a&&(s=a),Array.isArray(n)&&(0===f&&s>n[1]&&([,s]=n),1===f&&s<n[0]&&([s]=n));const m=l.toString().includes(".")?null===(t=l.toString().split(".").pop())||void 0===t?void 0:t.length:0;let p;s=Number(s.toFixed(m)),p=Array.isArray(n)?0===f?[s,n[1]]:[n[0],s]:s,i(p),Array.isArray(p)&&p[0]===p[1]&&(0===f&&g(1),1===f&&g(0))}),[f,u,o,a,i,l,n]),C=e.useCallback((()=>{m(!1),c()}),[c]),E=e.useCallback(((e,t)=>{m(!0),s(),"number"==typeof t&&g(t),e.preventDefault()}),[s]);e.useEffect((()=>{const e=e=>E(e,Array.isArray(n)?0:1),t=e=>E(e,1),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",C),()=>{null==a||a.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}}),[E,w,C,n]);const $=(e,t,n)=>{let l;return l=J("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]),p.default.createElement(Bi,{role:"slider",ref:1===n?v:b,className:l,left:e,"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":t})},k=e=>{const t=100*(e[0]<a?0:e[0]-a)/(o-a),n=100*(e[1]>o?100:e[1]-a)/(o-a),l=n-t;return p.default.createElement(p.default.Fragment,null,p.default.createElement(ji,{className:J([null==x?void 0:x.sliderRange,null==y?void 0:y.sliderRange]),left:t,width:l}),$(t,e[0],0),$(n,e[1],1))};let S;return S=Array.isArray(n)?k(n):(e=>{if(Array.isArray(n))return k(n);let t;return t=n>o?100:n<a?0:100*(e-a)/(o-a),$(t,e)})(n),p.default.createElement(Ai,{className:J([null==x?void 0:x.container,null==y?void 0:y.container]),id:t,ref:h},p.default.createElement(Oi,null),S)},exports.Stack=Xe,exports.Stepper=ri,exports.Tag=Wi,exports.Text=O,exports.TextField=Ga,exports.ToastsLayout=({className:t,e2eClassName:n,toasts:a,minWidth:o="50vw",max:i=3,onClose:d})=>(e.useEffect((()=>{i&&a.length>i&&d(a[0].key)}),[a,i,d]),l.createPortal(p.default.createElement(Pi,{direction:"vertical",alignX:"center",spacing:4},p.default.createElement(r.TransitionGroup,{component:null},[...a].reverse().map(((e,l)=>p.default.createElement(r.CSSTransition,{key:e.key,timeout:500,classNames:"veeqo-components-toast"},p.default.createElement(Ki,Object.assign({className:t,e2eClassName:n,minWidth:o,last:l===a.length-1,onClose:()=>d(e.key)},e))))))),document.body)),exports.Toggle=Tn,exports.ToggleButton=({children:e,checked:t,size:n="base",disabled:a=!1,onChange:o})=>p.default.createElement(Gi,{type:"button",checked:t,size:n,disabled:a,"aria-pressed":t,tabIndex:"0",onClick:()=>o(!t)},e),exports.Tooltip=wt,exports.UploadFile=rr,exports.VideoModal=({id:e,youtubeVideoId:t,showVideoModal:n,handleCloseClick:a})=>{const o=ro(n,a);return p.default.createElement(fr,{shouldShow:n,className:`${e}-video`},p.default.createElement(pr,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(n?"visible":"hidden")},p.default.createElement(gr,{ref:o},p.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}),p.default.createElement(hr,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:p.default.createElement(Se,{color:"white"})}))))},exports.View=({id:t,iconSlot:n,name:a,type:o,className:l,colourPalette:i=E.secondary.blue,customTextColour:r,count:d,active:s=!1,onClick:c,onDelete:u,onEdit:m,e2eClassName:f})=>{const g=kr(l),h=kr(f),[b,v,x]=uo(),y=e.useCallback((()=>c(t)),[t,c]),w=e.useCallback((e=>{e.stopPropagation(),u&&u(t)}),[u,t]),C=e.useCallback((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=o===br.draft,k=o===br.saved,S=s?E.neutral.ink.dark:E.neutral.ink.base;return p.default.createElement(vr,{className:`${J([null==g?void 0:g.container,null==h?void 0:h.container])} ${s&&(null==h?void 0:h.active)||""}`,onClick:y},p.default.createElement(yr,{active:s,onMouseEnter:v,onMouseLeave:x,colourPalette:i,customTextColour:r},n&&p.default.createElement(Er,null,n),p.default.createElement(O,{variant:"bodyBold"},a),d&&p.default.createElement(wr,{active:s||b,colourPalette:i,customTextColour:r},p.default.createElement(xr,{className:null==h?void 0:h.counter,variant:"subheadingSmall"},d)),$&&p.default.createElement(Se,Object.assign({},Cr,{color:S,className:null==h?void 0:h.delete,onClick:w})),k&&s&&p.default.createElement($r,Object.assign({},Cr,{color:S,className:null==h?void 0:h.edit,onClick:C}))))},exports.ViewTab=Ar,exports.ViewsContainer=Yr,exports.WeightInput=Qr,exports.buildClassnames=J,exports.checkIfDateRangeInvalid=Hn,exports.generateId=X,exports.getOpaqueHexColor=ee,exports.hexToRgb=Q,exports.isExternalLink=ne,exports.theme=T,exports.useCellWidths=Gn,exports.useClickOutside=ro,exports.useColumns=Un,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=Jn,exports.useDropdown=so,exports.useFocusVisible=function(){const[e,t]=p.default.useState(!1),{hadKeyboardEvent:n,isInitialized:a}=p.default.useContext(co),o=p.default.useCallback((()=>{e||t(!0)}),[e]),l=p.default.useCallback((()=>{e&&t(!1)}),[e]);let i;return i=a?n&&e:e,p.default.useMemo((()=>({focusVisible:i,onFocus:o,onBlur:l})),[i,l,o])},exports.useHover=uo,exports.useIsOverflowing=mo,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=Qn,exports.useSelection=ia,exports.useTabs=(t,n)=>{const{defaultActiveIndex:a=0}=n||{},[o]=e.useState(t),[l,i]=e.useState(o[a]);return[l,e=>{const t=o.find((t=>t.key===e));t&&i(t)}]},exports.withDeprecated=t=>n=>(e.useEffect((()=>{console.warn(`${t.name} is deprecated.`)}),[]),p.default.createElement(t,Object.assign({},n))),exports.withLabels=$n;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|