UNPKG

chop-logic-components

Version:

React UI components library for Chop Logic project

22 lines 58.6 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),ht=require("react-dom"),F=x.createContext({});var T=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(T||{}),A=(e=>(e.Primary="primary",e.Secondary="secondary",e.Icon="icon",e.Inner="inner",e))(A||{}),v=(e=>(e.ArrowDown="arrow-down",e.ArrowUp="arrow-up",e.Back="back",e.Cancel="cancel",e.CheckboxChecked="checkbox-checked",e.CheckboxUnchecked="checkbox-unchecked",e.CheckMark="check-mark",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.Clear="clear",e.Copy="copy",e.Cut="cut",e.Delete="delete",e.Download="download",e.Error="error",e.Forward="forward",e.Graduate="graduate",e.Help="help",e.Hide="hide",e.Home="home",e.Info="info",e.Login="login",e.Paste="paste",e.Question="question",e.Save="save",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(v||{}),$=(e=>(e.Dots="dots",e.Brackets="brackets",e.Linear="linear",e.Square="square",e.Circle="circle",e.Pulse="pulse",e.Arrow="arrow",e.Filler="filler",e.Rotation="rotation",e))($||{}),L=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(L||{}),q=(e=>(e.Light="cl-components-light-theme",e.Dark="cl-components-dark-theme",e))(q||{}),ke=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(ke||{});const Ce=x.createContext({mode:q.Light,setMode:()=>{}});var ae={exports:{}},te={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Te;function _t(){if(Te)return te;Te=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(r,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var a in o)a!=="key"&&(l[a]=o[a])}else l=o;return o=l.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:l}}return te.Fragment=t,te.jsx=s,te.jsxs=s,te}var ne={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $e;function ft(){return $e||($e=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===Q?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case g:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case B:return"SuspenseList";case Y:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case b:return"Portal";case M:return(d.displayName||"Context")+".Provider";case y:return(d._context.displayName||"Context")+".Consumer";case S:var p=d.render;return d=d.displayName,d||(d=p.displayName||p.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case z:return p=d.displayName||null,p!==null?p:e(d.type)||"Memo";case D:p=d._payload,d=d._init;try{return e(d(p))}catch{}}return null}function t(d){return""+d}function s(d){try{t(d);var p=!1}catch{p=!0}if(p){p=console;var C=p.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return C.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),t(d)}}function r(d){if(d===g)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===D)return"<...>";try{var p=e(d);return p?"<"+p+">":"<...>"}catch{return"<...>"}}function o(){var d=W.A;return d===null?null:d.getOwner()}function l(){return Error("react-stack-top-frame")}function c(d){if(G.call(d,"key")){var p=Object.getOwnPropertyDescriptor(d,"key").get;if(p&&p.isReactWarning)return!1}return d.key!==void 0}function a(d,p){function C(){Ie||(Ie=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",p))}C.isReactWarning=!0,Object.defineProperty(d,"key",{get:C,configurable:!0})}function i(){var d=e(this.type);return Ae[d]||(Ae[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function u(d,p,C,E,V,H,pe,ge){return C=H.ref,d={$$typeof:m,type:d,key:p,props:H,_owner:V},(C!==void 0?C:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:i}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function h(d,p,C,E,V,H,pe,ge){var I=p.children;if(I!==void 0)if(E)if(Z(I)){for(E=0;E<I.length;E++)f(I[E]);Object.freeze&&Object.freeze(I)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(I);if(G.call(p,"key")){I=e(d);var K=Object.keys(p).filter(function(ut){return ut!=="key"});E=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",ze[I+E]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,E,I,K,I),ze[I+E]=!0)}if(I=null,C!==void 0&&(s(C),I=""+C),c(p)&&(s(p.key),I=""+p.key),"key"in p){C={};for(var je in p)je!=="key"&&(C[je]=p[je])}else C=p;return I&&a(C,typeof d=="function"?d.displayName||d.name||"Unknown":d),u(d,I,H,V,o(),C,pe,ge)}function f(d){typeof d=="object"&&d!==null&&d.$$typeof===m&&d._store&&(d._store.validated=1)}var _=x,m=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),M=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),W=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Z=Array.isArray,ee=console.createTask?console.createTask:function(){return null};_={"react-stack-bottom-frame":function(d){return d()}};var Ie,Ae={},Le=_["react-stack-bottom-frame"].bind(_,l)(),Re=ee(r(l)),ze={};ne.Fragment=g,ne.jsx=function(d,p,C,E,V){var H=1e4>W.recentlyCreatedOwnerStacks++;return h(d,p,C,!1,E,V,H?Error("react-stack-top-frame"):Le,H?ee(r(d)):Re)},ne.jsxs=function(d,p,C,E,V){var H=1e4>W.recentlyCreatedOwnerStacks++;return h(d,p,C,!0,E,V,H?Error("react-stack-top-frame"):Le,H?ee(r(d)):Re)}}()),ne}var De;function xt(){return De||(De=1,process.env.NODE_ENV==="production"?ae.exports=_t():ae.exports=ft()),ae.exports}var n=xt();const bt=({children:e,injectedMode:t})=>{const[s,r]=x.useState(q.Light);return x.useEffect(()=>{s&&typeof s=="string"&&(document.body.classList.remove(q.Light,q.Dark),document.body.classList.add(s))},[s]),x.useEffect(()=>{t&&typeof t=="string"&&(document.body.classList.remove(q.Light,q.Dark),document.body.classList.add(t))},[t]),n.jsx(Ce.Provider,{value:{mode:s,setMode:r},children:e})},ce=({ref:e,onClickOutsideHandler:t,dependentRef:s})=>{x.useEffect(()=>{const r=o=>{const l=(e==null?void 0:e.current)&&!e.current.contains(o.target),c=s!=null&&s.current?!s.current.contains(o.target):!0;l&&c&&t()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,s,t])},Xe=({ref:e,isVisible:t})=>{const[s,r]=x.useState({width:0,height:0});return x.useEffect(()=>{e!=null&&e.current&&t&&r({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),s};function O(e){const t=x.useId(),s=e??t,r=`${s}_error`,o=`${s}_dropdown`;return{elementId:s,errorId:r,dropdownId:o}}const le=({ref:e,keyCode:t,onKeyPress:s})=>{x.useEffect(()=>{const r=o=>{(o==null?void 0:o.code)===t&&(e!=null&&e.current)&&s()};return document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}},[e,t,s])},Qe=({modalRef:e,isOpened:t})=>{x.useEffect(()=>{const s=e.current;if(!t||!s)return;const r=s.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],l=r[r.length-1],c=a=>{a.key==="Tab"&&(a.shiftKey&&document.activeElement===o?(a.preventDefault(),l.focus()):!a.shiftKey&&document.activeElement===l&&(a.preventDefault(),o.focus()))};return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[e,t])},ye=(e,t=300)=>{const[s,r]=x.useState(!1);return x.useEffect(()=>{e&&!s?r(!0):!e&&s&&setTimeout(()=>{r(!1)},t)},[e]),s},J=e=>{const{resetSignal:t}=x.useContext(F);x.useEffect(()=>{t&&e()},[t,e])};function Be(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function Ze(){const[e,t]=x.useState(Be());return x.useEffect(()=>{function s(){t(Be())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e}const et=({wrapperRef:e,tooltipRef:t,isOpened:s,spacing:r=4})=>{const[o,l]=x.useState({top:0,left:0}),{width:c,height:a}=Xe({ref:t,isVisible:s}),{width:i,height:u}=Ze();return x.useEffect(()=>{if(s&&(e!=null&&e.current)){const h=e==null?void 0:e.current.getBoundingClientRect();let f=Math.round(h.bottom+r),_=Math.round(h.left);f+a>window.innerHeight&&(f=Math.round(h.top-a-r)),_+c>window.innerWidth&&(_=Math.round(window.innerWidth-c-r)),_<0&&(_=r),l({top:f,left:_})}},[s,e,a,c,r,i,u]),o},mt=()=>x.useContext(Ce),vt=(e,t)=>{const[s,r]=x.useState(!1);return x.useEffect(()=>{const{current:o}=e;o&&(()=>{if(t==="width"){const{scrollWidth:c=0,clientWidth:a=0}=o;r(c>a)}if(t==="height"){const{scrollHeight:c=0,clientHeight:a=0}=o;r(c>a)}})()},[e,t]),s},Me=({isOpened:e,onClose:t,autoClose:s=!0,autoCloseDelay:r=3e3})=>{x.useEffect(()=>{if(!e||!s)return;const o=setTimeout(()=>{t()},r);return()=>clearTimeout(o)},[e,s,r,t])};function j(e){return e.map(s=>{if(typeof s=="string")return s.trim();if(typeof s=="object"){const r=[];for(const o in s)s[o]&&r.push(o.trim());return r.join(" ")}}).filter(s=>!!s).join(" ")}const pt="_errorMessage_73zww_89",gt="_errorMessage__visible_73zww_111",He={errorMessage:pt,errorMessage__visible:gt},tt=({errorId:e,testId:t,message:s="Error!",visible:r=!1,className:o})=>{const l=j([He.errorMessage,o,{[He.errorMessage__visible]:r}]);return n.jsx("span",{id:e,className:l,"data-testid":t,"aria-hidden":!r,children:s})},jt="_label_1ktmi_36",wt={label:jt},X=({label:e,required:t,inputId:s,icon:r,iconPosition:o,isTextHidden:l=!1})=>{const c=!!r&&o==="left",a=!!r&&o==="right";return n.jsxs("label",{className:wt.label,htmlFor:s,children:[c&&r,!l&&n.jsxs("span",{children:[e,t&&n.jsx("abbr",{title:"required",children:"*"})]}),a&&r]})},kt="_wrapper_7eqoa_37",Ct="_input_7eqoa_63",Ne={wrapper:kt,input:Ct},nt=({children:e,...t})=>n.jsxs("div",{className:Ne.wrapper,children:[n.jsx("input",{...t,className:Ne.input}),e]}),yt="_button_vlmd4_37",Mt={button:yt};function oe(e){const t=document.getElementById(e);t&&t.focus()}function st({e,options:t,onClose:s}){let r="";t.forEach(l=>{document.getElementById(l.id)===document.activeElement&&(r=l.id)});const o=t.findIndex(l=>l.id===r);switch(e.key){case"Escape":e.preventDefault(),s();break;case"ArrowUp":{e.preventDefault();const l=o-1>=0?o-1:t.length-1,c=t[l];c&&oe(c.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const l=o===t.length-1?0:o+1,c=t[l];c&&oe(c.id);break}}}const St=({children:e,className:t,...s})=>n.jsx("button",{...s,className:j([Mt.button,t]),children:e}),Et="_button_1qide_37",It="_button_shadow_1qide_51",At="_button_edge_1qide_63",Lt="_button_front_1qide_72",ie={button:Et,button_shadow:It,button_edge:At,button_front:Lt},Rt=({children:e,className:t,...s})=>n.jsxs("button",{...s,className:j([ie.button,t]),children:[n.jsx("span",{className:ie.button_shadow}),n.jsx("span",{className:ie.button_edge}),n.jsx("span",{className:ie.button_front,children:e})]}),zt="_button_biacj_37",Tt={button:zt},$t=({children:e,className:t,...s})=>n.jsx("button",{...s,className:j([Tt.button,t]),children:e}),Dt="_button_o1x7s_50",Bt={button:Dt},Ht=({onClick:e,label:t,icon:s,disabled:r,className:o,...l})=>n.jsx("button",{className:j([Bt.button,o]),onClick:e,"aria-label":t,type:"button",disabled:r,...l,children:n.jsx(N,{name:s})});function Nt({item:e,columns:t,renderDataItem:s}){const r=[];for(const o of t){let l;s&&e[o.field]?l=s(e,o.field):e[o.field]?l=e[o.field].toString():l="",r.push(l)}return r}const Pt="_cell_veiud_1",Ot={cell:Pt},Wt=({value:e})=>n.jsx("td",{className:Ot.cell,children:e}),Vt="_cell_veiud_1",Ut={cell:Vt};function be({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"})]})}function me({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z"})]})}const qt="_checkbox_bpqws_2",Ft="_checkbox__disabled_bpqws_14",Gt="_checkbox_input_bpqws_26",de={checkbox:qt,checkbox__disabled:Ft,checkbox_input:Gt},rt=({name:e,label:t,disabled:s,required:r=!1,onChange:o,checked:l=!1,...c})=>{const{elementId:a}=O(c==null?void 0:c.id),i=j([de.checkbox,{[de.checkbox__disabled]:!!s,[de.checkbox__checked]:l}]);return n.jsxs("div",{className:i,children:[n.jsx("input",{id:a,name:e,type:"checkbox",disabled:s,required:r,checked:l,onChange:o,className:de.checkbox_input}),n.jsx(X,{label:t,required:r,inputId:a,isTextHidden:!0,iconPosition:"left",icon:l?n.jsx(be,{}):n.jsx(me,{})})]})},Yt=({rowId:e,isRowSelected:t,selectRowById:s,deselectRowById:r,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?s(e):r(e)};return n.jsx("td",{className:Ut.cell,children:n.jsx(rt,{label:"Select row",onChange:l,id:`select_row_${e}`,checked:t,disabled:o})})},Kt="_row_1qhna_1",Jt="_row__selected_1qhna_5",Pe={row:Kt,row__selected:Jt},Xt=({rowId:e,selectRowById:t,deselectRowById:s,selectable:r,values:o,selectedIds:l,disabled:c})=>{const a=l.includes(e);return n.jsxs("tr",{className:j([Pe.row,{[Pe.row__selected]:a}]),children:[r&&n.jsx(Yt,{rowId:e,selectRowById:t,deselectRowById:s,isRowSelected:a,disabled:c}),o.map((i,u)=>n.jsx(Wt,{value:i},`row_${u}`))]})},Qt="_body_1u1xs_36",Zt={body:Qt},en=({selectRowById:e,deselectRowById:t,renderDataItem:s,selectedIds:r,selectable:o,data:l,columns:c})=>n.jsx("tbody",{className:Zt.body,children:l.map(a=>{const i=Nt({item:a,columns:c,renderDataItem:s});return n.jsx(Xt,{rowId:a.id,disabled:a==null?void 0:a.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:i,selectedIds:r},a.id)})}),tn="_headerCell_b9h0f_1",nn={headerCell:tn},sn=({title:e,component:t})=>n.jsx("th",{className:nn.headerCell,children:t??e??""}),rn="_headerCell_wd2ft_1",on={headerCell:rn},cn=({gridId:e,isAllSelected:t,selectAll:s,deselectAll:r,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?s():r()};return n.jsx("th",{className:on.headerCell,children:n.jsx(rt,{label:"Select all rows",onChange:l,id:`select_all_${e}`,checked:t,disabled:o})})},ln="_head_p4d5s_36",an="_head_row_p4d5s_47",Oe={head:ln,head_row:an},dn=({columns:e,gridId:t,selectAll:s,deselectAll:r,selectable:o,isAllSelected:l,isAllCheckboxDisabled:c=!1})=>n.jsx("thead",{className:Oe.head,children:n.jsxs("tr",{className:Oe.head_row,children:[o&&n.jsx(cn,{isAllSelected:l,disabled:c,gridId:t,selectAll:s,deselectAll:r}),e.map(a=>n.jsx(sn,{title:a.title,component:a.component},`${a.title}_${t}`))]})}),un="_column_s4wq6_1",hn="_column__first_s4wq6_4",_n="_column__highlighted_s4wq6_7",se={column:un,column__first:hn,column__highlighted:_n},fn=({columns:e,selectable:t})=>n.jsxs("colgroup",{children:[t&&n.jsx("col",{className:j([se.column,se.column__first])}),e.map((s,r)=>n.jsx("col",{className:j([se.column,s==null?void 0:s.className,{[se.column__first]:r===0&&!t,[se.column__highlighted]:!!(s!=null&&s.highlighted)}])},s==null?void 0:s.title))]}),xn="_tabList_kvuij_1",bn="_tabList__vertical_kvuij_7",We={tabList:xn,tabList__vertical:bn},mn="_tabButton_1yxke_37",vn="_tabButton__disabled_1yxke_76",pn="_tabButton__selected_1yxke_80",gn="_tabButton__vertical_1yxke_87",ue={tabButton:mn,tabButton__disabled:vn,tabButton__selected:pn,tabButton__vertical:gn},jn=({title:e,onTabSelect:t,tabId:s,isSelected:r,isDisabled:o=!1,tabPanelId:l,mode:c})=>{const a=j([ue.tabButton,{[ue.tabButton__disabled]:o,[ue.tabButton__vertical]:c===L.Vertical,[ue.tabButton__selected]:r}]);return n.jsx("button",{role:"tab",id:s,onClick:()=>t(s),"aria-selected":r,"aria-controls":l,className:a,children:e})},wn=({tabs:e,onTabSelect:t,selectedTabId:s,tabPanelIds:r,mode:o,tabIds:l})=>{const c=j([We.tabList,{[We.tabList__vertical]:o===L.Vertical}]),a=i=>{const u=l.findIndex(h=>h===s);switch(i.key){case"ArrowLeft":case"ArrowUp":{if(i.preventDefault(),i.key==="ArrowUp"&&o===L.Horizontal||i.key==="ArrowLeft"&&o===L.Vertical)break;const h=u-1>=0?u-1:l.length-1,f=l[h];f&&(oe(f),t(f));break}case"ArrowRight":case"ArrowDown":{if(i.preventDefault(),i.key==="ArrowDown"&&o===L.Horizontal||i.key==="ArrowRight"&&o===L.Vertical)break;const h=u===l.length-1?0:u+1,f=l[h];f&&(oe(f),t(f));break}}};return n.jsx("div",{role:"tablist",onKeyDown:a,className:c,children:e.map(({id:i,title:u,disabled:h},f)=>n.jsx(jn,{title:u,onTabSelect:t,tabId:i,isSelected:i===s,isDisabled:h,tabPanelId:r[f],mode:o},i))})},kn="_tabContent_xm9b1_36",Cn={tabContent:kn},yn=({tabs:e,selectedTabId:t})=>{var o;const s=(o=e.find(l=>l.id===t))==null?void 0:o.content,r=`tabpanel_${t}`;return n.jsx("div",{role:"tabpanel","aria-labelledby":t,id:r,className:Cn.tabContent,children:s})},Mn="_subMenuBar_1oeh1_55",Sn="_subMenuBar__horizontal_1oeh1_75",Ve={subMenuBar:Mn,subMenuBar__horizontal:Sn},En="_menuLeaf_1deic_37",In={menuLeaf:En},An=({item:e})=>{const{icon:t,link:s,label:r,onFocus:o,onClick:l,onHover:c}=e,a=s?n.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:r}):n.jsx("span",{children:r});return n.jsxs("li",{className:In.menuLeaf,tabIndex:0,role:"menuitem",onFocus:o,onClick:l,onMouseOver:c,children:[n.jsx(N,{name:t}),a]})},Ln="_subMenu_10zc6_37",Rn="_text_10zc6_54",Ue={subMenu:Ln,text:Rn},zn=({item:e,isSubMenuOpened:t,toggleSubMenu:s,closeSubMenu:r,openSubMenu:o,openedOn:l,mode:c,children:a})=>{const{icon:i,link:u,label:h}=e,f=x.useRef(null),_=x.useRef(null),m=u?n.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",children:[n.jsx(N,{name:i}),h]}):n.jsxs("span",{children:[n.jsx(N,{name:i}),h]}),b=w=>{w.stopPropagation(),w.key===" "&&s()};return ce({ref:f,dependentRef:_,onClickOutsideHandler:()=>{c!==L.Vertical&&r()}}),n.jsxs("li",{className:Ue.subMenu,tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":t,onKeyDown:b,onMouseEnter:l==="hover"?o:void 0,onMouseLeave:l==="hover"?r:void 0,ref:f,children:[n.jsxs("span",{className:Ue.text,ref:_,onClick:s,children:[m,n.jsx(N,{name:t?v.ArrowUp:v.ArrowDown})]}),t&&a]})},ot=({item:e,mode:t,openedOn:s})=>{var h,f;const r=!((h=e==null?void 0:e.nestedItems)!=null&&h.length),[o,l]=x.useState(!1),c=j([Ve.subMenuBar,{[Ve.subMenuBar__horizontal]:t===L.Horizontal}]);if(r)return n.jsx(An,{item:e});const a=()=>{l(!o)},i=()=>{l(!1)},u=()=>{l(!0)};return n.jsx(zn,{item:e,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:i,openSubMenu:u,mode:t,openedOn:s,children:n.jsx("ul",{className:c,role:"menu","aria-label":e.label,children:(f=e==null?void 0:e.nestedItems)==null?void 0:f.map(_=>n.jsx(ot,{item:_,mode:t,openedOn:s},_.id))})})};function Se({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z"})]})}function Ee({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z"})]})}const Tn="_combobox_b5ibg_37",ct={combobox:Tn},$n=({opened:e,onClick:t,comboboxId:s,dropdownId:r,selected:o,name:l,placeholder:c,disabled:a,required:i})=>n.jsxs("button",{type:"button",name:l,value:o==null?void 0:o.id,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":r,id:s,onClick:t,disabled:a,"aria-required":i,className:ct.combobox,children:[o!=null&&o.label?n.jsx("span",{children:o==null?void 0:o.label}):n.jsx("span",{children:c}),e?n.jsx(Ee,{}):n.jsx(Se,{})]}),Dn="_dropdown_1kuhz_6",Bn="_dropdown__opened_1kuhz_25",xe={dropdown:Dn,dropdown__opened:Bn};function lt({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"})]})}const Hn="_option_ln261_36",Nn="_option__selected_ln261_64",Pn="_option__multi_ln261_67",re={option:Hn,option__selected:Nn,option__multi:Pn},On=({value:e,selected:t,onSelect:s,onClear:r})=>{const{id:o,label:l}=e,c=j([re.option,{[re.option__selected]:t}]),a=u=>{t?r():s(u)},i=u=>h=>{switch(h.key){case" ":case"SpaceBar":case"Enter":h.preventDefault(),a(u);break}};return n.jsxs("li",{id:o,role:"option","aria-selected":t,tabIndex:0,onKeyDown:i(o),onClick:()=>a(o),className:c,children:[n.jsx("span",{children:l}),t&&n.jsx(lt,{})]})},Wn=({options:e,opened:t,onClose:s,onSelect:r,dropdownId:o,comboboxId:l,selected:c,onClear:a})=>{const i=h=>{r(h),s(),oe(l)},u=j([xe.dropdown,{[xe.dropdown__opened]:t}]);return n.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:h=>st({e:h,options:e,onClose:s}),className:u,children:e.map(h=>n.jsx(On,{value:h,onSelect:()=>i(h.id),onClear:a,selected:h.id===(c==null?void 0:c.id)},h.id))})},Vn=({opened:e,onClick:t,comboboxId:s,dropdownId:r,name:o,placeholder:l,disabled:c,required:a,values:i})=>{const u=i==null?void 0:i.filter(_=>_.selected).map(_=>_.label),h=i==null?void 0:i.filter(_=>_.selected).map(_=>_.id);let f=n.jsx("span",{children:l});return u&&u.length===(i==null?void 0:i.length)?f=n.jsx("span",{children:"All items selected"}):u&&u.length===1?f=n.jsx("span",{children:u[0]}):u&&u.length>1&&(f=n.jsx("span",{children:`${u.length} items selected`})),n.jsxs("button",{type:"button",name:o,value:h,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":r,id:s,onClick:t,disabled:c,"aria-required":a,className:ct.combobox,children:[f,e?n.jsx(Ee,{}):n.jsx(Se,{})]})},Un=({value:e,onSelect:t})=>{const{id:s,label:r,selected:o}=e,l=j([re.option,re.option__multi,{[re.option__selected]:o}]),c=a=>i=>{switch(i.key){case" ":case"SpaceBar":case"Enter":i.preventDefault(),t(a);break}};return n.jsxs("li",{id:s,role:"option","aria-selected":o,tabIndex:0,onKeyDown:c(s),onClick:()=>t(s),className:l,children:[o?n.jsx(be,{}):n.jsx(me,{}),n.jsx("span",{children:r})]})},qn=({options:e,opened:t,onClose:s,onSelect:r,dropdownId:o})=>{const l=j([xe.dropdown,{[xe.dropdown__opened]:t}]);return n.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:c=>st({e:c,options:e,onClose:s}),className:l,children:e.map(c=>n.jsx(Un,{value:c,onSelect:()=>r(c.id)},c.id))})};function Fn({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]})}function Gn({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156"})]})}function Yn({title:e,...t}){return n.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z"})]})}function Kn({title:e,...t}){return n.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fillRule:"evenodd",d:"M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z"})]})}function Jn({title:e,...t}){return n.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fillRule:"evenodd",d:"M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z"})]})}function Xn({title:e,...t}){return n.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fillRule:"evenodd",d:"M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z"})]})}function Qn({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("defs",{children:n.jsx("style",{})}),n.jsx("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})]})}function Zn({title:e,...t}){return n.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z"}),n.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}function es({title:e,...t}){return n.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),n.jsx("path",{d:"M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z"}),n.jsx("path",{d:"M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z"}),n.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]})}function ts({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})]})}function ns({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})]})}function ss({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),n.jsx("path",{d:"M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z"})]})}function rs({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]})}const os=({title:e,...t})=>n.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z"})]});function cs({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z"})]})}function ls({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z"})]})}const as=({title:e,...t})=>n.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"})]});function is({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),n.jsx("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})]})}const ds=({title:e,...t})=>n.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"})]});function us({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z"})]})}function hs({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:28,d:"M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"}),n.jsx("path",{d:"M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z"})]})}function _s({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,d:"M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"}),n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"})]})}function fs({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})]})}function xs({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z"}),n.jsx("path",{d:"M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z"})]})}function bs({title:e,...t}){return n.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{d:"M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z"}),n.jsx("path",{d:"M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z"})]})}function ms({title:e,...t}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&n.jsx("title",{children:e}),n.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),n.jsx("path",{d:"M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z"})]})}const vs={[v.ArrowDown]:Se,[v.ArrowUp]:Ee,[v.Back]:Fn,[v.Cancel]:Gn,[v.CheckboxChecked]:be,[v.CheckboxUnchecked]:me,[v.CheckMark]:lt,[v.ChevronDown]:Yn,[v.ChevronUp]:Xn,[v.ChevronLeft]:Kn,[v.ChevronRight]:Jn,[v.Clear]:Qn,[v.Copy]:Zn,[v.Cut]:es,[v.Delete]:ts,[v.Download]:ns,[v.Error]:ss,[v.Forward]:rs,[v.Graduate]:os,[v.Help]:cs,[v.Hide]:ls,[v.Home]:as,[v.Info]:is,[v.Login]:ds,[v.Paste]:us,[v.Question]:hs,[v.Save]:fs,[v.Show]:xs,[v.Upload]:bs,[v.Warning]:ms,[v.Remove]:_s},ps="_icon_1a3u5_1",gs={icon:ps},N=({name:e,testId:t,className:s,...r})=>{if(!e)return null;const o=vs[e],l=j([s,gs.icon]);return n.jsx(o,{"data-testid":t,className:l,...r})},js="_loader_1dxge_1",ws={loader:js},ks="_loader_1t1ws_1",Cs={loader:ks},ys="_loader_151n3_1",Ms={loader:ys},Ss="_loader_1xxlg_1",Es={loader:Ss},Is="_loader_1hqei_1",As={loader:Is},Ls="_loader_o5l8l_1",Rs={loader:Ls},zs="_loader_pukbl_1",Ts={loader:zs},$s="_loader_zl0tq_1",Ds={loader:$s},Bs="_loader_1alvx_1",Hs={loader:Bs},Ns=({view:e=$.Circle,...t})=>{const s=j([{[ws.loader]:e===$.Arrow,[Cs.loader]:e===$.Brackets,[Ms.loader]:e===$.Circle,[Es.loader]:e===$.Dots,[As.loader]:e===$.Filler,[Ts.loader]:e===$.Pulse,[Rs.loader]:e===$.Linear,[Ds.loader]:e===$.Rotation,[Hs.loader]:e===$.Square}]);return n.jsx("span",{className:s,role:"status",...t})},Ps=({id:e,autoClose:t,autoCloseDelay:s})=>{const[r,o]=x.useState(!1),l=x.useRef(null),c=x.useRef(null),{top:a,left:i}=et({wrapperRef:l,tooltipRef:c,isOpened:r}),{elementId:u}=O(e),h=()=>o(!1),f=()=>o(!0),_=()=>o(!r),m=b=>{b.preventDefault(),_()};return le({keyCode:"Escape",ref:c,onKeyPress:h}),ce({ref:c,onClickOutsideHandler:h,dependentRef:l}),Me({isOpened:r,onClose:h,autoClose:t,autoCloseDelay:s}),{elementId:u,openTooltip:f,closeTooltip:h,toggleTooltip:_,handleContextMenu:m,top:a,left:i,isOpened:r,wrapperRef:l,tooltipRef:c}},Os="_tooltip_1v8mr_89",Ws={tooltip:Os},at=({children:e,tooltipContent:t,id:s,style:r,className:o,containerTag:l=ke.Span,visibleOn:c="hover",autoClose:a=!1,autoCloseDelay:i=3e3,...u})=>{const h=l,{openTooltip:f,closeTooltip:_,toggleTooltip:m,handleContextMenu:b,elementId:g,top:w,left:k,isOpened:y,wrapperRef:M,tooltipRef:S}=Ps({id:s,autoClose:a,autoCloseDelay:i}),R=j([Ws.tooltip,o]);return n.jsxs(h,{style:{position:"relative",cursor:"pointer"},onClick:c==="click"?m:void 0,onMouseOver:c==="hover"?f:void 0,onMouseLeave:c==="hover"?_:void 0,onFocus:c==="focus"?f:void 0,onBlur:c==="focus"?_:void 0,onContextMenu:c==="contextmenu"?B=>b(B):void 0,tabIndex:-1,ref:M,"aria-describedby":g,children:[e,y&&n.jsx(ve,{children:n.jsx("div",{style:{...r,top:w,left:k},ref:S,role:"tooltip",id:g,...u,className:R,children:t})})]})},ve=({children:e})=>{const[t]=x.useState(()=>document.createElement("div"));return x.useEffect(()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}),[t]),ht.createPortal(e,t)},Vs="_header_1dz50_36",Us="_header_text_1dz50_50",qs="_header__h1_1dz50_56",Fs="_header__h2_1dz50_60",Gs="_header__h3_1dz50_65",Ys="_header__h4_1dz50_70",Ks="_header__h5_1dz50_78",Js="_header__h6_1dz50_86",U={header:Vs,header_text:Us,header__h1:qs,header__h2:Fs,header__h3:Gs,header__h4:Ys,header__h5:Ks,header__h6:Js},it=({as:e="h1",icon:t,children:s,className:r,...o})=>{const l=e,c=j([r,U.header,{[U.header__h1]:e==="h1",[U.header__h2]:e==="h2",[U.header__h3]:e==="h3",[U.header__h4]:e==="h4",[U.header__h5]:e==="h5",[U.header__h6]:e==="h6"}]);return n.jsxs(l,{className:c,...o,children:[t&&n.jsx(N,{name:t}),n.jsx("span",{className:U.header_text,children:s})]})};function Xs({defaultChecked:e,initialValues:t,name:s}){return t&&(t==null?void 0:t[s])!==void 0?!!(t!=null&&t[s]):!!e}function Qs({name:e,defaultChecked:t,onChange:s}){const{onChangeFormInput:r,initialValues:o}=x.useContext(F),l=Xs({initialValues:o,name:e,defaultChecked:t}),[c,a]=x.useState(l),i=h=>{const f=h.target.checked;a(f),s==null||s(h),r==null||r({name:e,value:f})},u=x.useCallback(()=>{a(l),r==null||r({name:e,value:l})},[e]);return J(u),{handleChange:i,checked:c}}const Zs="_checkbox_1ff9a_2",er="_checkbox__checked_1ff9a_12",tr="_checkbox__disabled_1ff9a_15",we={checkbox:Zs,checkbox__checked:er,checkbox__disabled:tr},nr=({name:e,label:t,disabled:s,noLabel:r,required:o=!1,iconPosition:l="left",defaultChecked:c,onChange:a,id:i,className:u,...h})=>{const{handleChange:f,checked:_}=Qs({name:e,defaultChecked:c,onChange:a}),{elementId:m}=O(i),b=j([we.checkbox,u,{[we.checkbox__disabled]:!!s,[we.checkbox__checked]:_}]);return n.jsxs("div",{...h,className:b,children:[n.jsx("input",{id:m,name:e,type:"checkbox",disabled:s,required:o,checked:_,onChange:f,"aria-label":r?t:void 0}),n.jsx(X,{label:t,required:o,inputId:m,isTextHidden:r,icon:_?n.jsx(be,{}):n.jsx(me,{}),iconPosition:l})]})};function sr({name:e,options:t,initialValues:s,defaultValue:r}){return t.map(o=>{let l=!1;return s&&(s!=null&&s[e])&&Array.isArray(s[e])&&s[e].find(a=>a===o.id||(a==null?void 0:a.id)===o.id)&&(l=!0),!(s!=null&&s[e])&&Array.isArray(r)&&r.find(a=>a===o.id)&&(l=!0),{...o,selected:l}})}const qe=e=>e.filter(t=>t.selected).map(t=>t.id),rr=(e,t)=>{const s=e.find(r=>r.id===t);return e.map(r=>r.id===t?{...r,selected:!(s!=null&&s.selected)}:r)};function or({name:e,defaultValue:t,onChange:s,options:r}){const[o,l]=x.useState(!1),{onChangeFormInput:c,initialValues:a}=x.useContext(F),i=sr({name:e,options:r,initialValues:a,defaultValue:t}),[u,h]=x.useState(i),f=()=>l(!1),_=()=>l(!o),m=g=>{const w=rr(u,g);h(w),s==null||s(w),c==null||c({name:e,value:qe(w)})},b=x.useCallback(()=>{l(!1),h(i),c==null||c({name:e,value:qe(i)})},[e]);return J(b),{handleClose:f,handleToggle:_,handleSelect:m,opened:o,values:u}}const cr="_wrapper_z3grr_1",dt={wrapper:cr},lr=({options:e,name:t,label:s,required:r=!1,placeholder:o="Not selected",disabled:l=!1,onChange:c,defaultValue:a,id:i,className:u,...h})=>{const f=x.useRef(null),{elementId:_,dropdownId:m}=O(i),{handleClose:b,handleSelect:g,handleToggle:w,opened:k,values:y}=or({name:t,options:e,defaultValue:a,onChange:c}),M=j([dt.wrapper,u]);return ce({ref:f,onClickOutsideHandler:b}),le({keyCode:"Escape",ref:f,onKeyPress:b}),n.jsxs("div",{ref:f,...h,className:M,children:[n.jsx(X,{label:s,required:r,inputId:_}),n.jsx(Vn,{name:t,opened:k,comboboxId:_,dropdownId:m,onClick:w,values:y,placeholder:o,disabled:l,required:r}),n.jsx(qn,{options:y,opened:k,onClose:b,dropdownId:m,onSelect:g})]})};function ar({name:e,initialValues:t,defaultValue:s}){return t&&t[e]?Number(t[e]):s&&typeof s=="number"?s:0}function ir({value:e,required:t,validator:s,maxValue:r,minValue:o}){return t&&!s&&e===void 0?!1:s&&typeof s=="function"?s(e):r&&o&&e&&!s?e<=r&&e>=o:!0}function dr({name:e,defaultValue:t,onChange:s,onSpinButtonClick:r,min:o,max:l,step:c,required:a,validator:i}){const{onChangeFormInput:u,initialValues:h}=x.useContext(F),f=ar({initialValues:h,defaultValue:t,name:e}),_=l?Number(l):Number.MAX_SAFE_INTEGER,m=o?Number(o):Number.MIN_SAFE_INTEGER,[b,g]=x.useState(f),[w,k]=x.useState(!0),y=z=>{g(z);const D=ir({value:z,required:a,validator:i,maxValue:_,minValue:m});k(D),u==null||u({name:e,value:z,valid:D})},M=z=>{const D=Number(z.target.value);y(D),s==null||s(z)},S=()=>{y(b+c),r==null||r(b+c)},R=()=>{y(b-c),r==null||r(b-c)},B=x.useCallback(()=>{g(f),k(!0),u==null||u({name:e,value:f,valid:!0})},[e]);return J(B),{handleChange:M,value:b,valid:w,minValue:m,maxValue:_,increment:S,decrement:R}}const ur="_numeric_1s7mp_1",hr="_errorMessage_1s7mp_7",Fe={numeric:ur,errorMessage:hr};function _r(e){return({tooltip:t,visibleOn:s,...r})=>t!=null&&t.length?n.jsx(at,{tooltipContent:t,visibleOn:s,children:n.jsx(e,{...r})}):n.jsx(e,{...r})}const fr="_extended_1i1tp_1",xr={extended:fr},br=({onClick:e,text:t,icon:s,label:r,disabled:o=!1,extended:l=!1,type:c="button",view:a=A.Primary,className:i,...u})=>{const h=j([i,{[xr.extended]:l}]);switch(a){case A.Primary:return n.jsxs(Rt,{"aria-label":r,type:c,onClick:e,disabled:o,className:h,...u,children:[n.jsx(N,{name:s}),t]});case A.Secondary:return n.jsxs(St,{"aria-label":r,type:c,onClick:e,disabled:o,className:h,...u,children:[n.jsx(N,{name:s}),t]});case A.Icon:return n.jsx($t,{"aria-label":r,type:c,onClick:e,disabled:o,...u,className:i,children:n.jsx(N,{name:s})});case A.Inner:return n.jsx(Ht,{label:r,icon:s,onClick:e,disabled:o,...u,className:i});default:return null}},P=_r(br),mr=({name:e,label:t,errorMessage:s,onChange:r,onBlur:o,onFocus:l,onSpinButtonClick:c,validator:a,min:i,max:u,id:h,tabIndex:f,disabled:_=!1,required:m=!1,readOnly:b=!1,hasSpinButtons:g=!0,defaultValue:w=0,step:k=1,className:y,...M})=>{const{elementId:S,errorId:R}=O(h),{value:B,valid:z,handleChange:D,increment:Y,decrement:Q,minValue:W,maxValue:G}=dr({name:e,defaultValue:w,min:i,max:u,onChange:r,required:m,validator:a,step:k,onSpinButtonClick:c}),Z=j([Fe.numeric,y]);return n.jsxs("div",{...M,className:Z,children:[n.jsx(X,{label:t,required:m,inputId:S}),n.jsxs(nt,{id:S,name:e,type:"number",disabled:_,required:m,readOnly:b,placeholder:"0","aria-invalid":!z,"aria-errormessage":R,value:B.toString(),onChange:D,min:W,max:G,step:k,onBlur:o,onFocus:l,tabIndex:f,children:[g&&n.jsxs("span",{children:[n.jsx(P,{onClick:Q,view:A.Inner,label:`Decrement value for ${t}`,icon:v.ChevronLeft,disabled:_}),n.jsx(P,{onClick:Y,view:A.Inner,label:`Increment value for ${t}`,icon:v.ChevronRight,disabled:_})]}),n.jsx(tt,{errorId:R,message:s,visible:!z,className:Fe.errorMessage})]})]})};function vr({name:e,options:t,initialValues:s,defaultValue:r}){var l;let o;return s&&s[e]&&(o=((l=s[e])==null?void 0:l.id)??s[e]),!(s!=null&&s[e])&&r&&typeof r=="string"&&(o=r),t.find(c=>c.id===o)}function pr({name:e,defaultValue:t,onChange:s,options:r}){const{onChangeFormInput:o,initialValues:l}=x.useContext(F),c=vr({name:e,options:r,defaultValue:t,initialValues:l}),[a,i]=x.useState(!1),[u,h]=x.useState(c),f=()=>i(!1),_=()=>i(!a),m=w=>{const k=r.find(y=>y.id===w);h(k),s==null||s(k),o==null||o({name:e,value:k==null?void 0:k.id})},b=()=>{h(void 0),s==null||s(void 0)},g=x.useCallback(()=>{i(!1),h(c),o==null||o({name:e,value:c==null?void 0:c.id})},[e]);return J(g),{selected:u,opened:a,handleClear:b,handleClose:f,handleToggle:_,handleSelect:m}}const gr=({options:e,onChange:t,name:s,label:r,defaultValue:o,id:l,placeholder:c="Not selected",required:a=!1,disabled:i=!1,className:u,...h})=>{const f=x.useRef(null),{elementId:_,dropdownId:m}=O(l),{handleClear:b,handleClose:g,handleSelect:w,handleToggle:k,selected:y,opened:M}=pr({options:e,onChange:t,defaultValue:o,name:s}),S=j([dt.wrapper,u]);return ce({ref:f,onClickOutsideHandler:g}),le({keyCode:"Escape",ref:f,onKeyPress:g}),n.jsxs("div",{ref:f,...h,className:S,children:[n.jsx(X,{label:r,required:a,inputId:_}),n.jsx($n,{name:s,opened:M,comboboxId:_,dropdownId:m,onClick:k,selected:y,placeholder:c,disabled:i,required:a}),n.jsx(Wn,{options:e,selected:y,opened:M,onClose:g,dropdownId:m,comboboxId:_,onSelect:w,onClear:b})]})};function jr({value:e,required:t,validator:s}){return t&&!s&&!e.length?!1:s&&typeof s=="function"?s(e):s&&typeof s=="object"?new RegExp(s.regexp,s==null?void 0:s.flags).test(e):!0}function wr({name:e,initialValues:t,defaultValue:s}){return t&&(t!=null&&t[e])?t[e].toString():s&&typeof s=="string"?s:""}function kr({name:e,defaultValue:t,onChange:s,onClear:r,required:o,validator:l}){const{onChangeFormInput:c,initialValues:a}=x