chop-logic-components 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +61 -6
- package/dist/index.es.js +1392 -1118
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./index.css');var
|
|
1
|
+
"use strict";require('./index.css');var kt=Object.defineProperty,Ct=Object.defineProperties;var yt=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Ue=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable;var We=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))Ue.call(t,n)&&We(e,n,t[n]);if(we)for(var n of we(t))Fe.call(t,n)&&We(e,n,t[n]);return e},v=(e,t)=>Ct(e,yt(t));var g=(e,t)=>{var n={};for(var s in e)Ue.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&we)for(var s of we(e))t.indexOf(s)<0&&Fe.call(e,s)&&(n[s]=e[s]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),Et=require("react-dom");var pe={exports:{}},de={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ke;function Mt(){if(Ke)return de;Ke=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,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:s,key:c,ref:o!==void 0?o:null,props:l}}return de.Fragment=t,de.jsx=n,de.jsxs=n,de}var ue={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var qe;function It(){return qe||(qe=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===Y?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case k:return"Fragment";case j:return"Profiler";case C:return"StrictMode";case E:return"Suspense";case z:return"SuspenseList";case F:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case w:return"Portal";case A:return(_.displayName||"Context")+".Provider";case y:return(_._context.displayName||"Context")+".Consumer";case S:var M=_.render;return _=_.displayName,_||(_=M.displayName||M.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case L:return M=_.displayName||null,M!==null?M:e(_.type)||"Memo";case R:M=_._payload,_=_._init;try{return e(_(M))}catch(D){}}return null}function t(_){return""+_}function n(_){try{t(_);var M=!1}catch(ne){M=!0}if(M){M=console;var D=M.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return D.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(_)}}function s(_){if(_===k)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===R)return"<...>";try{var M=e(_);return M?"<"+M+">":"<...>"}catch(D){return"<...>"}}function o(){var _=H.A;return _===null?null:_.getOwner()}function l(){return Error("react-stack-top-frame")}function c(_){if(K.call(_,"key")){var M=Object.getOwnPropertyDescriptor(_,"key").get;if(M&&M.isReactWarning)return!1}return _.key!==void 0}function a(_,M){function D(){T||(T=!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)",M))}D.isReactWarning=!0,Object.defineProperty(_,"key",{get:D,configurable:!0})}function i(){var _=e(this.type);return N[_]||(N[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function d(_,M,D,O,ne,Q,Se,Le){return D=Q.ref,_={$$typeof:p,type:_,key:M,props:Q,_owner:ne},(D!==void 0?D:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:i}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Se}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Le}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function u(_,M,D,O,ne,Q,Se,Le){var W=M.children;if(W!==void 0)if(O)if(B(W)){for(O=0;O<W.length;O++)b(W[O]);Object.freeze&&Object.freeze(W)}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 b(W);if(K.call(M,"key")){W=e(_);var ae=Object.keys(M).filter(function(jt){return jt!=="key"});O=0<ae.length?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}",te[W+O]||(ae=0<ae.length?"{"+ae.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,N,H,le,H),We[H+N]=!0)}if(H=null,T!==void 0&&(s(T),H=""+T),c(M)&&(s(M.key),H=""+M.key),"key"in M){T={};for(var Le in M)Le!=="key"&&(T[Le]=M[Le])}else T=M;return H&&a(T,typeof u=="function"?u.displayName||u.name||"Unknown":u),d(u,H,X,ne,o(),T,Ie,Se)}function v(u){typeof u=="object"&&u!==null&&u.$$typeof===p&&u._store&&(u._store.validated=1)}var _=f,p=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),S=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),P=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,D=Array.isArray,O=console.createTask?console.createTask:function(){return null};_={"react-stack-bottom-frame":function(u){return u()}};var R,V={},W=_["react-stack-bottom-frame"].bind(_,l)(),J=O(n(l)),We={};de.Fragment=k,de.jsx=function(u,M,T,N,ne){var X=1e4>P.recentlyCreatedOwnerStacks++;return h(u,M,T,!1,N,ne,X?Error("react-stack-top-frame"):W,X?O(n(u)):J)},de.jsxs=function(u,M,T,N,ne){var X=1e4>P.recentlyCreatedOwnerStacks++;return h(u,M,T,!0,N,ne,X?Error("react-stack-top-frame"):W,X?O(n(u)):J)}}()),de}var Ye;function Mt(){return Ye||(Ye=1,process.env.NODE_ENV==="production"?be.exports=yt():be.exports=Et()),be.exports}var r=Mt(),U=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(U||{}),B=(e=>(e.Primary="primary",e.Secondary="secondary",e.Icon="icon",e.Inner="inner",e))(B||{}),g=(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.Edit="edit",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.PlusCircle="plus-circle",e.Question="question",e.Save="save",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(g||{}),K=(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))(K||{}),q=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(q||{}),re=(e=>(e.Light="cl-components-light-theme",e.Dark="cl-components-dark-theme",e))(re||{}),ze=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(ze||{});function It(e){return o=>{var l=o,{tooltip:t,visibleOn:s}=l,n=m(l,["tooltip","visibleOn"]);return t!=null&&t.length?r.jsx(xt,{tooltipContent:t,visibleOn:s,children:r.jsx(e,b({},n))}):r.jsx(e,b({},n))}}function I(e){return e.map(s=>{if(typeof s=="string")return s.trim();if(typeof s=="object"){const n=[];for(const o in s)s[o]&&n.push(o.trim());return n.join(" ")}}).filter(s=>!!s).join(" ")}function ke(e){const t=document.getElementById(e);t&&t.focus()}function it({e,options:t,onClose:s}){let n="";t.forEach(l=>{document.getElementById(l.id)===document.activeElement&&(n=l.id)});const o=t.findIndex(l=>l.id===n);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&&ke(c.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const l=o===t.length-1?0:o+1,c=t[l];c&&ke(c.id);break}}}const St="_extended_1i1tp_1",Lt={extended:St},At="_button_t94vv_2",Rt={button:At},Tt=n=>{var o=n,{children:e,className:t}=o,s=m(o,["children","className"]);return r.jsx("button",w(b({},s),{className:I([Rt.button,t]),children:e}))},zt="_button_o1x7s_50",$t={button:zt},Bt=c=>{var a=c,{onClick:e,label:t,icon:s,disabled:n,className:o}=a,l=m(a,["onClick","label","icon","disabled","className"]);return r.jsx("button",w(b({className:I([$t.button,o]),onClick:e,"aria-label":t,type:"button",disabled:n},l),{children:r.jsx(Q,{name:s})}))},Dt="_button_1ps5s_2",Nt="_button_shadow_1ps5s_16",Ht="_button_edge_1ps5s_28",Pt="_button_front_1ps5s_37",pe={button:Dt,button_shadow:Nt,button_edge:Ht,button_front:Pt},Ot=n=>{var o=n,{children:e,className:t}=o,s=m(o,["children","className"]);return r.jsxs("button",w(b({},s),{className:I([pe.button,t]),children:[r.jsx("span",{className:pe.button_shadow}),r.jsx("span",{className:pe.button_edge}),r.jsx("span",{className:pe.button_front,children:e})]}))},Vt="_button_1c4d4_2",Wt={button:Vt},Ft=n=>{var o=n,{children:e,className:t}=o,s=m(o,["children","className"]);return r.jsx("button",w(b({},s),{className:I([Wt.button,t]),children:e}))},Ut=h=>{var v=h,{onClick:e,text:t,icon:s,label:n,disabled:o=!1,extended:l=!1,type:c="button",view:a=B.Primary,className:i}=v,d=m(v,["onClick","text","icon","label","disabled","extended","type","view","className"]);const _=I([i,{[Lt.extended]:l}]);switch(a){case B.Primary:return r.jsxs(Ot,w(b({"aria-label":n,type:c,onClick:e,disabled:o,className:_},d),{children:[r.jsx(Q,{name:s}),t]}));case B.Secondary:return r.jsxs(Ft,w(b({"aria-label":n,type:c,onClick:e,disabled:o,className:_},d),{children:[r.jsx(Q,{name:s}),t]}));case B.Icon:return r.jsx(Tt,w(b({"aria-label":n,type:c,onClick:e,disabled:o},d),{className:i,children:r.jsx(Q,{name:s})}));case B.Inner:return r.jsx(Bt,w(b({label:n,icon:s,onClick:e,disabled:o},d),{className:i}));default:return null}},F=It(Ut),Kt="_editableText_82asy_1",qt="_editableText__editMode_82asy_17",Gt="_editableText__readOnly_82asy_24",Yt="_editableText__empty_82asy_27",ve={editableText:Kt,editableText__editMode:qt,editableText__readOnly:Gt,editableText__empty:Yt},Jt=d=>{var h=d,{multiline:e,value:t,placeholder:s,onChange:n,onBlur:o,onKeyDown:l,className:c,inputRef:a}=h,i=m(h,["multiline","value","placeholder","onChange","onBlur","onKeyDown","className","inputRef"]);const v=e?"textarea":"input",_=f.useCallback(p=>{n(p.target.value)},[n]);return r.jsx(v,b({ref:a,value:t,onChange:_,onBlur:o,onKeyDown:l,placeholder:s,className:c,rows:e?3:void 0},i))},Xt=l=>{var c=l,{value:e,placeholder:t,onClick:s,className:n}=c,o=m(c,["value","placeholder","onClick","className"]);const a=i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),s(i))};return r.jsx("span",w(b({onClick:s,className:n,role:"button",tabIndex:0,onKeyDown:a,"aria-label":"Editable text"},o),{children:e||t}))},Qt=(e,t)=>{const[s,n]=f.useState(!1),[o]=f.useState(e!==void 0);return{editMode:o?!!e:s,enterEditMode:()=>{!o&&!t&&n(!0)},exitEditMode:()=>{o||n(!1)},isControlled:o}},Zt=(e,t,s,n)=>{f.useEffect(()=>{t&&e.current&&!n&&(e.current.focus(),s&&e.current.select())},[t,s,n,e])},en=(e,t)=>{const[s,n]=f.useState(e);return f.useEffect(()=>{n(e)},[e]),{internalValue:s,updateValue:a=>{n(a)},commitValue:()=>{s!==e&&(t==null||t(s))},resetValue:()=>{n(e)}}},tn=h=>{var v=h,{value:e,isEditMode:t,onChange:s,onClick:n,className:o,autoSelectTextOnEditMode:l=!1,multiline:c=!1,placeholder:a="Click to edit...",readOnly:i=!1}=v,d=m(v,["value","isEditMode","onChange","onClick","className","autoSelectTextOnEditMode","multiline","placeholder","readOnly"]);const _=f.useRef(null),{editMode:p,enterEditMode:x,exitEditMode:k}=Qt(t,i),{internalValue:C,updateValue:j,commitValue:y,resetValue:S}=en(e,s);Zt(_,p,l,i);const L=f.useCallback(A=>{n==null||n(A),x()},[n,x]),E=f.useCallback(()=>{k(),y()},[k,y]),$=f.useCallback(A=>{A.key==="Enter"&&!c&&(A.preventDefault(),E()),A.key==="Escape"&&(S(),k())},[c,E,S,k]),z=I([ve.editableText,o,{[ve.editableText__editMode]:p,[ve.editableText__readOnly]:i,[ve.editableText__empty]:!C}]);return p&&!i?r.jsx(Jt,b({multiline:c,value:C,placeholder:a,onChange:j,onBlur:E,onKeyDown:$,className:z,inputRef:_},d)):r.jsx(Xt,b({value:C,placeholder:a,onClick:L,className:z},d))},nn="_errorMessage_1shcy_54",sn="_errorMessage__visible_1shcy_76",Je={errorMessage:nn,errorMessage__visible:sn},$e=({errorId:e,testId:t,message:s="Error!",visible:n=!1,className:o})=>{const l=I([Je.errorMessage,o,{[Je.errorMessage__visible]:n}]);return r.jsx("span",{id:e,className:l,"data-testid":t,"aria-hidden":!n,children:s})},rn="_header_os2ww_1",on="_header_text_os2ww_15",cn="_header__h1_os2ww_20",ln="_header__h2_os2ww_24",an="_header__h3_os2ww_29",dn="_header__h4_os2ww_34",un="_header__h5_os2ww_39",hn="_header__h6_os2ww_44",se={header:rn,header_text:on,header__h1:cn,header__h2:ln,header__h3:an,header__h4:dn,header__h5:un,header__h6:hn},Be=l=>{var c=l,{as:e="h1",icon:t,children:s,className:n}=c,o=m(c,["as","icon","children","className"]);const a=e,i=I([n,se.header,{[se.header__h1]:e==="h1",[se.header__h2]:e==="h2",[se.header__h3]:e==="h3",[se.header__h4]:e==="h4",[se.header__h5]:e==="h5",[se.header__h6]:e==="h6"}]);return r.jsxs(a,w(b({className:i},o),{children:[t&&r.jsx(Q,{name:t}),r.jsx("span",{className:se.header_text,children:s})]}))};function De(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Ne(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function _n(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]}))}function fn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 ye(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Ee(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function dt(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function xn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 bn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 pn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 vn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 wn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("defs",{children:r.jsx("style",{})}),r.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 mn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}))}function jn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),r.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"}),r.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"}),r.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]}))}function gn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 kn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Cn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M3 21h18M12.222 5.828L15.05 3L20 7.95l-2.828 2.828m-4.95-4.95l-5.607 5.607a1 1 0 0 0-.293.707v4.536h4.536a1 1 0 0 0 .707-.293l5.607-5.607m-4.95-4.95l4.95 4.95"})]}))}function yn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),r.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 En(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]}))}const Mn=s=>{var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512"},t),{children:[e&&r.jsx("title",{children:e}),r.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 In(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Sn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Ln=s=>{var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024"},t),{children:[e&&r.jsx("title",{children:e}),r.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 An(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Rn=s=>{var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Tn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 zn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 6.722v10.556M17.278 12H6.722M12 21.5a9.5 9.5 0 1 0 0-19a9.5 9.5 0 0 0 0 19"})]}))}function $n(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),r.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"}),r.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 Bn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Dn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Nn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Hn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Pn(s){var n=s,{title:e}=n,t=m(n,["title"]);return r.jsxs("svg",w(b({viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),r.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 On={[g.ArrowDown]:De,[g.ArrowUp]:Ne,[g.Back]:_n,[g.Cancel]:fn,[g.CheckboxChecked]:ye,[g.CheckboxUnchecked]:Ee,[g.CheckMark]:dt,[g.ChevronDown]:xn,[g.ChevronUp]:vn,[g.ChevronLeft]:bn,[g.ChevronRight]:pn,[g.Clear]:wn,[g.Copy]:mn,[g.Cut]:jn,[g.Delete]:gn,[g.Download]:kn,[g.Edit]:Cn,[g.Error]:yn,[g.Forward]:En,[g.Graduate]:Mn,[g.Help]:In,[g.Hide]:Sn,[g.Home]:Ln,[g.Info]:An,[g.Login]:Rn,[g.Paste]:Tn,[g.PlusCircle]:zn,[g.Question]:$n,[g.Save]:Dn,[g.Show]:Nn,[g.Upload]:Hn,[g.Warning]:Pn,[g.Remove]:Bn},Vn="_icon_1a3u5_1",Wn={icon:Vn},Q=o=>{var l=o,{name:e,testId:t,className:s}=l,n=m(l,["name","testId","className"]);if(!e)return null;const c=On[e],a=I([s,Wn.icon]);return r.jsx(c,b({"data-testid":t,className:a},n))},Fn="_wrapper_knk6l_2",Un="_input_knk6l_28",Xe={wrapper:Fn,input:Un},He=s=>{var n=s,{children:e}=n,t=m(n,["children"]);return r.jsxs("div",{className:Xe.wrapper,children:[r.jsx("input",w(b({},t),{className:Xe.input})),e]})},Kn="_label_bdijc_1",qn={label:Kn},ce=({label:e,required:t,inputId:s,icon:n,iconPosition:o,isTextHidden:l=!1})=>{const c=!!n&&o==="left",a=!!n&&o==="right";return r.jsxs("label",{className:qn.label,htmlFor:s,children:[c&&n,!l&&r.jsxs("span",{children:[e,t&&r.jsx("abbr",{title:"required",children:"*"})]}),a&&n]})},Gn="_loader_1dxge_1",Yn={loader:Gn},Jn="_loader_1t1ws_1",Xn={loader:Jn},Qn="_loader_151n3_1",Zn={loader:Qn},es="_loader_5o37g_1",ts={loader:es},ns="_loader_1hqei_1",ss={loader:ns},rs="_loader_o5l8l_1",os={loader:rs},cs="_loader_pukbl_1",ls={loader:cs},as="_loader_zl0tq_1",is={loader:as},ds="_loader_1alvx_1",us={loader:ds},hs=s=>{var n=s,{view:e=K.Circle}=n,t=m(n,["view"]);const o=I([{[Yn.loader]:e===K.Arrow,[Xn.loader]:e===K.Brackets,[Zn.loader]:e===K.Circle,[ts.loader]:e===K.Dots,[ss.loader]:e===K.Filler,[ls.loader]:e===K.Pulse,[os.loader]:e===K.Linear,[is.loader]:e===K.Rotation,[us.loader]:e===K.Square}]);return r.jsx("span",b({className:o,role:"status"},t))},Me=({children:e})=>{const[t]=f.useState(()=>document.createElement("div"));return f.useEffect(()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}),[t]),Ct.createPortal(e,t)},Pe=({isOpened:e,onClose:t,autoClose:s=!0,autoCloseDelay:n=3e3})=>{f.useEffect(()=>{if(!e||!s)return;const o=setTimeout(()=>{t()},n);return()=>clearTimeout(o)},[e,s,n,t])},_e=({ref:e,onClickOutsideHandler:t,dependentRef:s})=>{f.useEffect(()=>{const n=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",n),()=>{document.removeEventListener("mousedown",n)}},[e,s,t])},ut=({ref:e,isVisible:t})=>{const[s,n]=f.useState({width:0,height:0});return f.useEffect(()=>{e!=null&&e.current&&t&&n({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),s};function te(e){const t=f.useId(),s=e!=null?e:t,n=`${s}_error`,o=`${s}_dropdown`;return{elementId:s,errorId:n,dropdownId:o}}const Oe=(e,t=300)=>{const[s,n]=f.useState(!1);return f.useEffect(()=>{e&&!s?n(!0):!e&&s&&setTimeout(()=>{n(!1)},t)},[e]),s},_s=({ref:e,dimension:t,isMounted:s})=>{const[n,o]=f.useState(!1);return f.useEffect(()=>{const l=()=>{const{current:c}=e;if(c){if(t==="width"){const{scrollWidth:a=0,clientWidth:i=0}=c;o(a>i)}if(t==="height"){const{scrollHeight:a=0,clientHeight:i=0}=c;o(a>i)}}};return s&&l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[e,t,s]),n},fe=({ref:e,keyCode:t,onKeyPress:s})=>{f.useEffect(()=>{const n=o=>{(o==null?void 0:o.code)===t&&(e!=null&&e.current)&&s()};return document.addEventListener("keydown",n,!1),()=>{document.removeEventListener("keydown",n,!1)}},[e,t,s])},ht=({modalRef:e,isOpened:t})=>{f.useEffect(()=>{const s=e.current;if(!t||!s)return;const n=s.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=n[0],l=n[n.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])},oe=f.createContext({}),Ve=f.createContext({mode:re.Light,setMode:()=>{}}),fs=({children:e,injectedMode:t})=>{const[s,n]=f.useState(re.Light);f.useEffect(()=>{s&&typeof s=="string"&&(document.body.classList.remove(re.Light,re.Dark),document.body.classList.add(s))},[s]),f.useEffect(()=>{t&&typeof t=="string"&&(document.body.classList.remove(re.Light,re.Dark),document.body.classList.add(t))},[t]);const o=f.useMemo(()=>({mode:s,setMode:n}),[s]);return r.jsx(Ve.Provider,{value:o,children:e})},ae=e=>{const{resetSignal:t}=f.useContext(oe);f.useEffect(()=>{t&&e()},[t,e])},xs=()=>f.useContext(Ve);function Qe(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function _t(){const[e,t]=f.useState(Qe());return f.useEffect(()=>{function s(){t(Qe())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e}const ft=({wrapperRef:e,tooltipRef:t,isOpened:s,spacing:n=4})=>{const[o,l]=f.useState({top:0,left:0}),{width:c,height:a}=ut({ref:t,isVisible:s}),{width:i,height:d}=_t();return f.useEffect(()=>{if(s&&(e!=null&&e.current)){const h=e==null?void 0:e.current.getBoundingClientRect();let v=Math.round(h.bottom+n),_=Math.round(h.left);v+a>window.innerHeight&&(v=Math.round(h.top-a-n)),_+c>window.innerWidth&&(_=Math.round(window.innerWidth-c-n)),_<0&&(_=n),l({top:v,left:_})}},[s,e,a,c,n,i,d]),o},bs=({id:e,autoClose:t,autoCloseDelay:s})=>{const[n,o]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),{top:a,left:i}=ft({wrapperRef:l,tooltipRef:c,isOpened:n}),{elementId:d}=te(e),h=()=>o(!1),v=()=>o(!0),_=()=>o(!n),p=x=>{x.preventDefault(),_()};return fe({keyCode:"Escape",ref:c,onKeyPress:h}),_e({ref:c,onClickOutsideHandler:h,dependentRef:l}),Pe({isOpened:n,onClose:h,autoClose:t,autoCloseDelay:s}),{elementId:d,openTooltip:v,closeTooltip:h,toggleTooltip:_,handleContextMenu:p,top:a,left:i,isOpened:n,wrapperRef:l,tooltipRef:c}},ps="_tooltip_v7uvz_54",vs={tooltip:ps},xt=h=>{var v=h,{children:e,tooltipContent:t,id:s,style:n,className:o,containerTag:l=ze.Span,visibleOn:c="hover",autoClose:a=!1,autoCloseDelay:i=3e3}=v,d=m(v,["children","tooltipContent","id","style","className","containerTag","visibleOn","autoClose","autoCloseDelay"]);const _=l,{openTooltip:p,closeTooltip:x,toggleTooltip:k,handleContextMenu:C,elementId:j,top:y,left:S,isOpened:L,wrapperRef:E,tooltipRef:$}=bs({id:s,autoClose:a,autoCloseDelay:i}),z=I([vs.tooltip,o]);return r.jsxs(_,{style:{position:"relative",cursor:"pointer"},onClick:c==="click"?k:void 0,onMouseOver:c==="hover"?p:void 0,onMouseLeave:c==="hover"?x:void 0,onFocus:c==="focus"?p:void 0,onBlur:c==="focus"?x:void 0,onContextMenu:c==="contextmenu"?A=>C(A):void 0,tabIndex:-1,ref:E,"aria-describedby":j,children:[e,L&&r.jsx(Me,{children:r.jsx("div",w(b({style:w(b({},n),{top:y,left:S}),ref:$,role:"tooltip",id:j},d),{className:z,children:t}))})]})};function ws(e,t){if(t)return t;switch(e){case U.Info:return"For your information";case U.Warning:return"Please pay attention";case U.Error:return"Something went wrong";case U.Success:return"Everything is okay";case U.Help:return"Useful tip";default:return"Alert"}}function ms(e,t){if(t)return t;switch(e){case U.Info:return g.Info;case U.Warning:return g.Warning;case U.Error:return g.Error;case U.Success:return g.CheckboxChecked;case U.Help:return g.Help;default:return}}const js="_wrapper_12fi0_54",gs="_wrapper__closing_12fi0_64",ks="_content_12fi0_70",Cs="_content_button_12fi0_90",we={wrapper:js,wrapper__closing:gs,content:ks,content_button:Cs},ys=d=>{var h=d,{isOpened:e,onClose:t,title:s,message:n,mode:o=U.Info,icon:l,autoClose:c=!1,autoCloseDelay:a=3e3}=h,i=m(h,["isOpened","onClose","title","message","mode","icon","autoClose","autoCloseDelay"]);const v=Oe(e),_=v&&!e;if(Pe({isOpened:e,onClose:t,autoClose:c,autoCloseDelay:a}),!v)return null;const p=ws(o,s),x=ms(o,l);return r.jsx(Me,{children:r.jsx("div",{className:I([we.wrapper,{[we.wrapper__closing]:_}]),children:r.jsxs("div",w(b({},i),{className:we.content,children:[r.jsx(F,{icon:g.Cancel,view:B.Icon,label:"Close alert popup",onClick:t,className:we.content_button}),r.jsx("header",{children:r.jsx(Be,{icon:x,as:"h3",children:p})}),r.jsx("p",{children:n})]}))})})};function Es({defaultChecked:e,initialValues:t,name:s}){return t&&(t==null?void 0:t[s])!==void 0?!!(t!=null&&t[s]):!!e}function Ms({name:e,defaultChecked:t,onChange:s}){const{onChangeFormInput:n,initialValues:o}=f.useContext(oe),l=Es({initialValues:o,name:e,defaultChecked:t}),[c,a]=f.useState(l),i=h=>{const v=h.target.checked;a(v),s==null||s(h),n==null||n({name:e,value:v})},d=f.useCallback(()=>{a(l),n==null||n({name:e,value:l})},[e]);return ae(d),{handleChange:i,checked:c}}const Is="_checkbox_1ff9a_2",Ss="_checkbox__checked_1ff9a_12",Ls="_checkbox__disabled_1ff9a_15",Ae={checkbox:Is,checkbox__checked:Ss,checkbox__disabled:Ls},As=v=>{var _=v,{name:e,label:t,disabled:s,noLabel:n,required:o=!1,iconPosition:l="left",defaultChecked:c,onChange:a,id:i,className:d}=_,h=m(_,["name","label","disabled","noLabel","required","iconPosition","defaultChecked","onChange","id","className"]);const{handleChange:p,checked:x}=Ms({name:e,defaultChecked:c,onChange:a}),{elementId:k}=te(i),C=I([Ae.checkbox,d,{[Ae.checkbox__disabled]:!!s,[Ae.checkbox__checked]:x}]);return r.jsxs("div",w(b({},h),{className:C,children:[r.jsx("input",{id:k,name:e,type:"checkbox",disabled:s,required:o,checked:x,onChange:p,"aria-label":n?t:void 0}),r.jsx(ce,{label:t,required:o,inputId:k,isTextHidden:n,icon:x?r.jsx(ye,{}):r.jsx(Ee,{}),iconPosition:l})]}))},Rs="_wrapper_z3grr_1",bt={wrapper:Rs},Ts="_combobox_1pe6c_2",pt={combobox:Ts},zs=({opened:e,onClick:t,comboboxId:s,dropdownId:n,name:o,placeholder:l,disabled:c,required:a,values:i})=>{const d=i==null?void 0:i.filter(_=>_.selected).map(_=>_.label),h=i==null?void 0:i.filter(_=>_.selected).map(_=>_.id);let v=r.jsx("span",{children:l});return d&&d.length===(i==null?void 0:i.length)?v=r.jsx("span",{children:"All items selected"}):d&&d.length===1?v=r.jsx("span",{children:d[0]}):d&&d.length>1&&(v=r.jsx("span",{children:`${d.length} items selected`})),r.jsxs("button",{type:"button",name:o,value:h,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:s,onClick:t,disabled:c,"aria-required":a,className:pt.combobox,children:[v,e?r.jsx(Ne,{}):r.jsx(De,{})]})};function $s({name:e,options:t,initialValues:s,defaultValue:n}){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(n)&&n.find(a=>a===o.id)&&(l=!0),w(b({},o),{selected:l})})}const Ze=e=>e.filter(t=>t.selected).map(t=>t.id),Bs=(e,t)=>{const s=e.find(n=>n.id===t);return e.map(n=>n.id===t?w(b({},n),{selected:!(s!=null&&s.selected)}):n)};function Ds({name:e,defaultValue:t,onChange:s,options:n}){const[o,l]=f.useState(!1),{onChangeFormInput:c,initialValues:a}=f.useContext(oe),i=$s({name:e,options:n,initialValues:a,defaultValue:t}),[d,h]=f.useState(i),v=()=>l(!1),_=()=>l(!o),p=k=>{const C=Bs(d,k);h(C),s==null||s(C),c==null||c({name:e,value:Ze(C)})},x=f.useCallback(()=>{l(!1),h(i),c==null||c({name:e,value:Ze(i)})},[e]);return ae(x),{handleClose:v,handleToggle:_,handleSelect:p,opened:o,values:d}}const Ns="_dropdown_1kuhz_6",Hs="_dropdown__opened_1kuhz_25",Ce={dropdown:Ns,dropdown__opened:Hs},Ps="_option_17atn_1",Os="_option__selected_17atn_29",Vs="_option__multi_17atn_32",he={option:Ps,option__selected:Os,option__multi:Vs},Ws=({value:e,onSelect:t})=>{const{id:s,label:n,selected:o}=e,l=I([he.option,he.option__multi,{[he.option__selected]:o}]),c=a=>i=>{switch(i.key){case" ":case"SpaceBar":case"Enter":i.preventDefault(),t(a);break}};return r.jsxs("li",{id:s,role:"option","aria-selected":o,tabIndex:0,onKeyDown:c(s),onClick:()=>t(s),className:l,children:[o?r.jsx(ye,{}):r.jsx(Ee,{}),r.jsx("span",{children:n})]})},Fs=({options:e,opened:t,onClose:s,onSelect:n,dropdownId:o})=>{const l=I([Ce.dropdown,{[Ce.dropdown__opened]:t}]);return r.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:c=>it({e:c,options:e,onClose:s}),className:l,children:e.map(c=>r.jsx(Ws,{value:c,onSelect:()=>n(c.id)},c.id))})},Us=v=>{var _=v,{options:e,name:t,label:s,required:n=!1,placeholder:o="Not selected",disabled:l=!1,onChange:c,defaultValue:a,id:i,className:d}=_,h=m(_,["options","name","label","required","placeholder","disabled","onChange","defaultValue","id","className"]);const p=f.useRef(null),{elementId:x,dropdownId:k}=te(i),{handleClose:C,handleSelect:j,handleToggle:y,opened:S,values:L}=Ds({name:t,options:e,defaultValue:a,onChange:c}),E=I([bt.wrapper,d]);return _e({ref:p,onClickOutsideHandler:C}),fe({keyCode:"Escape",ref:p,onKeyPress:C}),r.jsxs("div",w(b({ref:p},h),{className:E,children:[r.jsx(ce,{label:s,required:n,inputId:x}),r.jsx(zs,{name:t,opened:S,comboboxId:x,dropdownId:k,onClick:y,values:L,placeholder:o,disabled:l,required:n}),r.jsx(Fs,{options:L,opened:S,onClose:C,dropdownId:k,onSelect:j})]}))};function Ks({name:e,initialValues:t,defaultValue:s}){return t&&t[e]?Number(t[e]):s&&typeof s=="number"?s:0}function qs({value:e,required:t,validator:s,maxValue:n,minValue:o}){return t&&!s&&e===void 0?!1:s&&typeof s=="function"?s(e):n&&o&&e&&!s?e<=n&&e>=o:!0}function Gs({name:e,defaultValue:t,onChange:s,onSpinButtonClick:n,min:o,max:l,step:c,required:a,validator:i}){const{onChangeFormInput:d,initialValues:h}=f.useContext(oe),v=Ks({initialValues:h,defaultValue:t,name:e}),_=l?Number(l):Number.MAX_SAFE_INTEGER,p=o?Number(o):Number.MIN_SAFE_INTEGER,[x,k]=f.useState(v),[C,j]=f.useState(!0),y=z=>{k(z);const A=qs({value:z,required:a,validator:i,maxValue:_,minValue:p});j(A),d==null||d({name:e,value:z,valid:A})},S=z=>{const A=Number(z.target.value);y(A),s==null||s(z)},L=()=>{y(x+c),n==null||n(x+c)},E=()=>{y(x-c),n==null||n(x-c)},$=f.useCallback(()=>{k(v),j(!0),d==null||d({name:e,value:v,valid:!0})},[e]);return ae($),{handleChange:S,value:x,valid:C,minValue:p,maxValue:_,increment:L,decrement:E}}const Ys="_numeric_1s7mp_1",Js="_errorMessage_1s7mp_7",et={numeric:Ys,errorMessage:Js},Xs=L=>{var E=L,{name:e,label:t,errorMessage:s,onChange:n,onBlur:o,onFocus:l,onSpinButtonClick:c,validator:a,min:i,max:d,id:h,tabIndex:v,disabled:_=!1,required:p=!1,readOnly:x=!1,hasSpinButtons:k=!0,defaultValue:C=0,step:j=1,className:y}=E,S=m(E,["name","label","errorMessage","onChange","onBlur","onFocus","onSpinButtonClick","validator","min","max","id","tabIndex","disabled","required","readOnly","hasSpinButtons","defaultValue","step","className"]);const{elementId:$,errorId:z}=te(h),{value:A,valid:Y,handleChange:Z,increment:P,decrement:G,minValue:D,maxValue:O}=Gs({name:e,defaultValue:C,min:i,max:d,onChange:n,required:p,validator:a,step:j,onSpinButtonClick:c}),R=I([et.numeric,y]);return r.jsxs("div",w(b({},S),{className:R,children:[r.jsx(ce,{label:t,required:p,inputId:$}),r.jsxs(He,{id:$,name:e,type:"number",disabled:_,required:p,readOnly:x,placeholder:"0","aria-invalid":!Y,"aria-errormessage":z,value:A.toString(),onChange:Z,min:D,max:O,step:j,onBlur:o,onFocus:l,tabIndex:v,children:[k&&r.jsxs("span",{children:[r.jsx(F,{onClick:G,view:B.Inner,label:`Decrement value for ${t}`,icon:g.ChevronLeft,disabled:_}),r.jsx(F,{onClick:P,view:B.Inner,label:`Increment value for ${t}`,icon:g.ChevronRight,disabled:_})]}),r.jsx($e,{errorId:z,message:s,visible:!Y,className:et.errorMessage})]})]}))},Qs=({opened:e,onClick:t,comboboxId:s,dropdownId:n,selected:o,name:l,placeholder:c,disabled:a,required:i})=>r.jsxs("button",{type:"button",name:l,value:o==null?void 0:o.id,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:s,onClick:t,disabled:a,"aria-required":i,className:pt.combobox,children:[o!=null&&o.label?r.jsx("span",{children:o==null?void 0:o.label}):r.jsx("span",{children:c}),e?r.jsx(Ne,{}):r.jsx(De,{})]}),Zs=({value:e,selected:t,onSelect:s,onClear:n})=>{const{id:o,label:l}=e,c=I([he.option,{[he.option__selected]:t}]),a=d=>{t?n():s(d)},i=d=>h=>{switch(h.key){case" ":case"SpaceBar":case"Enter":h.preventDefault(),a(d);break}};return r.jsxs("li",{id:o,role:"option","aria-selected":t,tabIndex:0,onKeyDown:i(o),onClick:()=>a(o),className:c,children:[r.jsx("span",{children:l}),t&&r.jsx(dt,{})]})},er=({options:e,opened:t,onClose:s,onSelect:n,dropdownId:o,comboboxId:l,selected:c,onClear:a})=>{const i=h=>{n(h),s(),ke(l)},d=I([Ce.dropdown,{[Ce.dropdown__opened]:t}]);return r.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:h=>it({e:h,options:e,onClose:s}),className:d,children:e.map(h=>r.jsx(Zs,{value:h,onSelect:()=>i(h.id),onClear:a,selected:h.id===(c==null?void 0:c.id)},h.id))})};function tr({name:e,options:t,initialValues:s,defaultValue:n}){var l;let o;if(s&&Object.prototype.hasOwnProperty.call(s,e)){const c=s[e];o=(l=c==null?void 0:c.id)!=null?l:c}return!(s!=null&&s[e])&&n&&typeof n=="string"&&(o=n),t.find(c=>c.id===o)}function nr({name:e,defaultValue:t,onChange:s,options:n}){const{onChangeFormInput:o,initialValues:l}=f.useContext(oe),c=tr({name:e,options:n,defaultValue:t,initialValues:l}),[a,i]=f.useState(!1),[d,h]=f.useState(c),v=()=>i(!1),_=()=>i(!a),p=C=>{const j=n.find(y=>y.id===C);h(j),s==null||s(j),o==null||o({name:e,value:j==null?void 0:j.id})},x=()=>{h(void 0),s==null||s(void 0)},k=f.useCallback(()=>{i(!1),h(c),o==null||o({name:e,value:c==null?void 0:c.id})},[e]);return ae(k),{selected:d,opened:a,handleClear:x,handleClose:v,handleToggle:_,handleSelect:p}}const sr=v=>{var _=v,{options:e,onChange:t,name:s,label:n,defaultValue:o,id:l,placeholder:c="Not selected",required:a=!1,disabled:i=!1,className:d}=_,h=m(_,["options","onChange","name","label","defaultValue","id","placeholder","required","disabled","className"]);const p=f.useRef(null),{elementId:x,dropdownId:k}=te(l),{handleClear:C,handleClose:j,handleSelect:y,handleToggle:S,selected:L,opened:E}=nr({options:e,onChange:t,defaultValue:o,name:s}),$=I([bt.wrapper,d]);return _e({ref:p,onClickOutsideHandler:j}),fe({keyCode:"Escape",ref:p,onKeyPress:j}),r.jsxs("div",w(b({ref:p},h),{className:$,children:[r.jsx(ce,{label:n,required:a,inputId:x}),r.jsx(Qs,{name:s,opened:E,comboboxId:x,dropdownId:k,onClick:S,selected:L,placeholder:c,disabled:i,required:a}),r.jsx(er,{options:e,selected:L,opened:E,onClose:j,dropdownId:k,comboboxId:x,onSelect:y,onClear:C})]}))};function rr({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 or({name:e,initialValues:t,defaultValue:s}){return t&&(t!=null&&t[e])?t[e].toString():s&&typeof s=="string"?s:""}function cr({name:e,defaultValue:t,onChange:s,onClear:n,required:o,validator:l}){const{onChangeFormInput:c,initialValues:a}=f.useContext(oe),i=or({initialValues:a,defaultValue:t,name:e}),[d,h]=f.useState(i),[v,_]=f.useState(!0),[p,x]=f.useState(!1),k=S=>{const L=S.target.value,E=rr({value:L,required:o,validator:l});h(L),_(E),c==null||c({name:e,value:L,valid:E}),s==null||s(S)},C=()=>{h(""),_(!0),c==null||c({name:e,value:"",valid:!0}),n==null||n()},j=f.useCallback(()=>{h(i),_(!0),c==null||c({name:e,value:i,valid:!0})},[e]),y=()=>{x(!p)};return ae(j),{value:d,valid:v,passwordShown:p,handleChange:k,handleClear:C,togglePassword:y}}const lr="_wrapper_bu2uu_1",ar="_errorMessage_bu2uu_7",tt={wrapper:lr,errorMessage:ar},ir=E=>{var $=E,{name:e,label:t,errorMessage:s,defaultValue:n,onChange:o,onBlur:l,onFocus:c,onClear:a,validator:i,maxLength:d,id:h,tabIndex:v,placeholder:_="Type here...",disabled:p=!1,required:x=!1,clearable:k=!0,readOnly:C=!1,autoComplete:j="off",type:y="text",className:S}=$,L=m($,["name","label","errorMessage","defaultValue","onChange","onBlur","onFocus","onClear","validator","maxLength","id","tabIndex","placeholder","disabled","required","clearable","readOnly","autoComplete","type","className"]);const{value:z,valid:A,handleChange:Y,handleClear:Z,passwordShown:P,togglePassword:G}=cr({defaultValue:n,name:e,onChange:o,onClear:a,required:x,validator:i}),{elementId:D,errorId:O}=te(h),R=y==="password",V=I([tt.wrapper,S]);return r.jsxs("div",w(b({},L),{className:V,children:[r.jsx(ce,{label:t,required:x,inputId:D}),r.jsxs(He,{id:D,name:e,type:P?"text":y,disabled:p,placeholder:_,required:x,readOnly:C,autoComplete:j,"aria-invalid":!A,"aria-errormessage":O,"aria-readonly":C,value:z,onChange:Y,maxLength:d,onBlur:l,onFocus:c,tabIndex:v,children:[r.jsxs("span",{children:[k&&r.jsx(F,{view:B.Inner,onClick:Z,label:`Clear input for ${t}`,icon:g.Remove,disabled:p}),R&&r.jsx(F,{onClick:G,view:B.Inner,label:"Toggle password visibility",icon:P?g.Hide:g.Show,disabled:p})]}),r.jsx($e,{errorId:O,message:s,visible:!A,className:tt.errorMessage})]})]}))},dr="_dialog_4mo9j_54",ur="_dialog__closing_4mo9j_69",hr="_layout_4mo9j_75",_r="_layout_button_4mo9j_95",me={dialog:dr,dialog__closing:ur,layout:hr,layout_button:_r},fr=c=>{var a=c,{isOpened:e,onClose:t,title:s,children:n,icon:o}=a,l=m(a,["isOpened","onClose","title","children","icon"]);const i=Oe(e),d=i&&!e,h=f.useRef(null);return ht({modalRef:h,isOpened:e}),fe({keyCode:"Escape",ref:h,onKeyPress:t}),i?r.jsx(Me,{children:r.jsx("div",{className:I([me.dialog,{[me.dialog__closing]:d}]),children:r.jsxs("div",w(b({ref:h,role:"dialog","aria-modal":"true"},l),{className:me.layout,children:[r.jsx(F,{icon:g.Cancel,view:B.Icon,label:"Close modal window",onClick:t,className:me.layout_button}),r.jsx("header",{children:r.jsx(Be,{as:"h3",icon:o,children:s})}),r.jsx("div",{children:n})]}))})}):null};function xr(e){return e?Object.keys(e).map(t=>[t,!0]):[]}function br(e,t){return(t==null?void 0:t.valid)===void 0?e:e.map(s=>s[0]!==t.name?s:[s[0],!!(t!=null&&t.valid)])}function pr(e){return e.every(t=>t[1])}function vr({initialValues:e,onReset:t,onSubmit:s,onClickSubmit:n}){const[o,l]=f.useState(e),[c,a]=f.useState(xr(e)),[i,d]=f.useState(0);return{handleInputChange:p=>{const x=w(b({},o),{[p.name]:p.value});l(x),a(br(c,p))},handleSubmit:p=>{p.preventDefault();const x=Object.fromEntries(new FormData(p.target)),k=b(b({},x),o);s==null||s(p),n==null||n(k)},handleReset:p=>{t==null||t(p),l(e),d(i+1)},resetSignal:i,valid:pr(c)}}const wr="_form_a5bhb_1",mr="_buttons_a5bhb_14",je={form:wr,buttons:mr,"columns-1":"_columns-1_a5bhb_21","buttons-1":"_buttons-1_a5bhb_26","columns-2":"_columns-2_a5bhb_30","buttons-2":"_buttons-2_a5bhb_35","columns-3":"_columns-3_a5bhb_39","buttons-3":"_buttons-3_a5bhb_44","columns-4":"_columns-4_a5bhb_48","buttons-4":"_buttons-4_a5bhb_53","columns-5":"_columns-5_a5bhb_57","buttons-5":"_buttons-5_a5bhb_62","columns-6":"_columns-6_a5bhb_66","buttons-6":"_buttons-6_a5bhb_71"},jr=d=>{var h=d,{children:e,initialValues:t,onReset:s,onSubmit:n,onClickSubmit:o,columns:l=1,hasReset:c=!0,className:a}=h,i=m(h,["children","initialValues","onReset","onSubmit","onClickSubmit","columns","hasReset","className"]);const{handleInputChange:v,handleSubmit:_,handleReset:p,resetSignal:x,valid:k}=vr({initialValues:t,onReset:s,onSubmit:n,onClickSubmit:o}),C=l<=6&&l>=1?l:1,j=I([je.form,a]);return r.jsx("form",w(b({onSubmit:_,onReset:p},i),{className:`${j} ${je[`columns-${C}`]}`,children:r.jsxs(oe.Provider,{value:{onChangeFormInput:v,initialValues:t,resetSignal:x},children:[e,r.jsxs("div",{className:`${je.buttons} ${je[`buttons-${C}`]}`,children:[c&&r.jsx(F,{type:"reset",text:"Reset",icon:g.Clear,view:B.Secondary}),r.jsx(F,{type:"submit",text:"Submit",icon:g.Forward,extended:!c,disabled:!k})]})]})}))};function gr({item:e,columns:t,renderDataItem:s}){const n=[];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="",n.push(l)}return n}const kr="_cell_veiud_1",Cr={cell:kr},yr=({value:e})=>r.jsx("td",{className:Cr.cell,children:e}),Er="_checkbox_bpqws_2",Mr="_checkbox__disabled_bpqws_14",Ir="_checkbox_input_bpqws_26",ge={checkbox:Er,checkbox__disabled:Mr,checkbox_input:Ir},vt=a=>{var i=a,{name:e,label:t,disabled:s,required:n=!1,onChange:o,checked:l=!1}=i,c=m(i,["name","label","disabled","required","onChange","checked"]);const{elementId:d}=te(c==null?void 0:c.id),h=I([ge.checkbox,{[ge.checkbox__disabled]:!!s,[ge.checkbox__checked]:l}]);return r.jsxs("div",{className:h,children:[r.jsx("input",{id:d,name:e,type:"checkbox",disabled:s,required:n,checked:l,onChange:o,className:ge.checkbox_input}),r.jsx(ce,{label:t,required:n,inputId:d,isTextHidden:!0,iconPosition:"left",icon:l?r.jsx(ye,{}):r.jsx(Ee,{})})]})},Sr="_cell_veiud_1",Lr={cell:Sr},Ar=({rowId:e,isRowSelected:t,selectRowById:s,deselectRowById:n,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?s(e):n(e)};return r.jsx("td",{className:Lr.cell,children:r.jsx(vt,{label:"Select row",onChange:l,id:`select_row_${e}`,checked:t,disabled:o})})},Rr="_row_1qhna_1",Tr="_row__selected_1qhna_5",nt={row:Rr,row__selected:Tr},zr=({rowId:e,selectRowById:t,deselectRowById:s,selectable:n,values:o,selectedIds:l,disabled:c})=>{const a=l.includes(e);return r.jsxs("tr",{className:I([nt.row,{[nt.row__selected]:a}]),children:[n&&r.jsx(Ar,{rowId:e,selectRowById:t,deselectRowById:s,isRowSelected:a,disabled:c}),o.map((i,d)=>r.jsx(yr,{value:i},`row_${d}`))]})},$r="_body_1gm9g_1",Br={body:$r},Dr=({selectRowById:e,deselectRowById:t,renderDataItem:s,selectedIds:n,selectable:o,data:l,columns:c})=>r.jsx("tbody",{className:Br.body,children:l.map(a=>{const i=gr({item:a,columns:c,renderDataItem:s});return r.jsx(zr,{rowId:a.id,disabled:a==null?void 0:a.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:i,selectedIds:n},a.id)})}),Nr="_column_s4wq6_1",Hr="_column__first_s4wq6_4",Pr="_column__highlighted_s4wq6_7",ue={column:Nr,column__first:Hr,column__highlighted:Pr},Or=({columns:e,selectable:t})=>r.jsxs("colgroup",{children:[t&&r.jsx("col",{className:I([ue.column,ue.column__first])}),e.map((s,n)=>r.jsx("col",{className:I([ue.column,s==null?void 0:s.className,{[ue.column__first]:n===0&&!t,[ue.column__highlighted]:!!(s!=null&&s.highlighted)}])},s==null?void 0:s.title))]}),Vr=({data:e,id:t,onSelect:s})=>{const{elementId:n}=te(t),[o,l]=f.useState([]),c=e.map(x=>x.id),a=c.length===o.length,i=e.some(x=>x==null?void 0:x.disabled),d=x=>{l(x),s==null||s(x)};return{elementId:n,isAllSelected:a,isAllCheckboxDisabled:i,selectedIds:o,handleSelectAll:()=>{d(c)},handleDeselectAll:()=>{d([])},handleSelectRowById:x=>{const k=[...o,x];d(k)},handleDeselectRowById:x=>{const k=o.filter(C=>C!==x);d(k)}}},Wr="_grid_ion0k_1",Fr="_grid_caption_ion0k_4",st={grid:Wr,grid_caption:Fr},Ur="_headerCell_wd2ft_1",Kr={headerCell:Ur},qr=({title:e,component:t})=>{var s;return r.jsx("th",{className:Kr.headerCell,children:(s=t!=null?t:e)!=null?s:""})},Gr="_headerCell_wd2ft_1",Yr={headerCell:Gr},Jr=({gridId:e,isAllSelected:t,selectAll:s,deselectAll:n,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?s():n()};return r.jsx("th",{className:Yr.headerCell,children:r.jsx(vt,{label:"Select all rows",onChange:l,id:`select_all_${e}`,checked:t,disabled:o})})},Xr="_head_1jka0_1",Qr="_head_row_1jka0_11",rt={head:Xr,head_row:Qr},Zr=({columns:e,gridId:t,selectAll:s,deselectAll:n,selectable:o,isAllSelected:l,isAllCheckboxDisabled:c=!1})=>r.jsx("thead",{className:rt.head,children:r.jsxs("tr",{className:rt.head_row,children:[o&&r.jsx(Jr,{isAllSelected:l,disabled:c,gridId:t,selectAll:s,deselectAll:n}),e.map(a=>r.jsx(qr,{title:a.title,component:a.component},`${a.title}_${t}`))]})}),eo=d=>{var h=d,{columns:e,data:t,id:s,onSelect:n,renderDataItem:o,caption:l,selectable:c=!1,className:a}=h,i=m(h,["columns","data","id","onSelect","renderDataItem","caption","selectable","className"]);const{elementId:v,handleSelectAll:_,handleDeselectAll:p,isAllCheckboxDisabled:x,isAllSelected:k,handleDeselectRowById:C,handleSelectRowById:j,selectedIds:y}=Vr({id:s,data:t,onSelect:n});return r.jsxs("table",w(b({},i),{className:I([st.grid,a]),children:[l&&r.jsx("caption",{className:st.grid_caption,children:l}),r.jsx(Or,{columns:e,selectable:c}),r.jsx(Zr,{gridId:v,columns:e,selectable:c,selectAll:_,deselectAll:p,isAllSelected:k,isAllCheckboxDisabled:x}),r.jsx(Dr,{columns:e,data:t,selectable:c,selectRowById:j,deselectRowById:C,selectedIds:y,renderDataItem:o})]}))},to="_menuLeaf_14bu7_2",no={menuLeaf:to},so=({item:e})=>{const{icon:t,link:s,label:n,onFocus:o,onClick:l,onHover:c}=e,a=s?r.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:n}):r.jsx("span",{children:n});return r.jsxs("li",{className:no.menuLeaf,tabIndex:0,role:"menuitem",onFocus:o,onClick:l,onMouseOver:c,children:[r.jsx(Q,{name:t}),a]})},ro="_subMenu_gplve_2",oo="_text_gplve_19",ot={subMenu:ro,text:oo},co=({item:e,isSubMenuOpened:t,toggleSubMenu:s,closeSubMenu:n,openSubMenu:o,openedOn:l,mode:c,children:a})=>{const{icon:i,link:d,label:h}=e,v=f.useRef(null),_=f.useRef(null),p=d?r.jsxs("a",{href:d,target:"_blank",rel:"noreferrer",children:[r.jsx(Q,{name:i}),h]}):r.jsxs("span",{children:[r.jsx(Q,{name:i}),h]}),x=C=>{C.stopPropagation(),C.key===" "&&s()};return _e({ref:v,dependentRef:_,onClickOutsideHandler:()=>{c!==q.Vertical&&n()}}),r.jsxs("li",{className:ot.subMenu,tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":t,onKeyDown:x,onMouseEnter:l==="hover"?o:void 0,onMouseLeave:l==="hover"?n:void 0,ref:v,children:[r.jsxs("span",{className:ot.text,ref:_,onClick:s,onKeyDown:x,children:[p,r.jsx(Q,{name:t?g.ArrowUp:g.ArrowDown})]}),t&&a]})},lo="_subMenuBar_1oeh1_55",ao="_subMenuBar__horizontal_1oeh1_75",ct={subMenuBar:lo,subMenuBar__horizontal:ao},wt=({item:e,mode:t,openedOn:s})=>{var h,v;const n=!((h=e==null?void 0:e.nestedItems)!=null&&h.length),[o,l]=f.useState(!1),c=I([ct.subMenuBar,{[ct.subMenuBar__horizontal]:t===q.Horizontal}]);if(n)return r.jsx(so,{item:e});const a=()=>{l(!o)},i=()=>{l(!1)},d=()=>{l(!0)};return r.jsx(co,{item:e,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:i,openSubMenu:d,mode:t,openedOn:s,children:r.jsx("ul",{className:c,role:"menu","aria-label":e.label,children:(v=e==null?void 0:e.nestedItems)==null?void 0:v.map(_=>r.jsx(wt,{item:_,mode:t,openedOn:s},_.id))})})},io="_menuBar_8vwv0_2",uo="_menuBar__vertical_8vwv0_13",lt={menuBar:io,menuBar__vertical:uo},ho=l=>{var c=l,{items:e=[],mode:t=q.Vertical,openedOn:s="click",className:n}=c,o=m(c,["items","mode","openedOn","className"]);const a=I([lt.menuBar,n,{[lt.menuBar__vertical]:t===q.Vertical}]);return r.jsx("menu",w(b({},o),{className:a,children:e.map(i=>r.jsx(wt,{item:i,mode:t,openedOn:s},i.id))}))},_o="_tabContent_cko15_1",fo={tabContent:_o},xo=({tabs:e,selectedTabId:t,extendable:s,extendedTabContent:n})=>{var a;const o=(a=e.find(i=>i.id===t))==null?void 0:a.content,l=`tabpanel_${t}`,c=s&&!o;return r.jsx("div",{role:"tabpanel","data-testid":"tab-content","aria-labelledby":t,id:l,className:fo.tabContent,children:c?n:o})},bo="_editContainer_17et2_1",po="_editContainer_input_17et2_9",vo="_editContainer_buttons_17et2_28",Re={editContainer:bo,editContainer_input:po,editContainer_buttons:vo},wo=({tabId:e,isEditMode:t,editValue:s,onInputChange:n,onInputBlur:o,onInputKeyDown:l,onSave:c,onCancel:a,cancelButtonId:i})=>{const d=f.useRef(null);return f.useEffect(()=>{t&&d.current&&(d.current.focus(),d.current.select())},[t]),r.jsxs("div",{className:Re.editContainer,children:[r.jsx("input",{ref:d,id:e+"-input",type:"text",value:s,onChange:n,onBlur:o,onKeyDown:l,className:Re.editContainer_input,maxLength:50}),r.jsxs("span",{className:Re.editContainer_buttons,children:[r.jsx(F,{view:B.Icon,icon:g.CheckMark,onClick:c,label:"Save tab title"}),r.jsx(F,{view:B.Icon,icon:g.Cancel,onClick:a,label:"Cancel tab title change",id:i})]})]})},mo="_tab_5hucd_2",jo="_tab_wrapper_5hucd_26",go="_tab_wrapper__selected_5hucd_36",ko="_tab_wrapper__vertical_5hucd_41",Co="_tab_wrapper__stretched_5hucd_45",yo="_tab_wrapper__disabled_5hucd_48",Eo="_tab_wrapper__inactive_5hucd_52",Mo="_tab_buttons_5hucd_58",ee={tab:mo,tab_wrapper:jo,tab_wrapper__selected:go,tab_wrapper__vertical:ko,tab_wrapper__stretched:Co,tab_wrapper__disabled:yo,tab_wrapper__inactive:Eo,tab_buttons:Mo},Io=({title:e,onTabSelect:t,onTabTitleChange:s,onTabDelete:n,tabId:o,isSelected:l,isDisabled:c=!1,stretched:a=!1,editable:i=!1,extendable:d=!1,tabPanelId:h,mode:v})=>{const[_,p]=f.useState(!1),[x,k]=f.useState(e),C=f.useRef(null),j=f.useId(),y=i&&!c&&l,S=d&&!c&&!!n&&l,L=y||S,E=I([ee.tab_wrapper,{[ee.tab_wrapper__disabled]:c,[ee.tab_wrapper__vertical]:v===q.Vertical,[ee.tab_wrapper__selected]:l,[ee.tab_wrapper__stretched]:a,[ee.tab_wrapper__editable]:i,[ee.tab_wrapper__inactive]:!l}]);f.useEffect(()=>{_&&C.current&&(C.current.focus(),C.current.select())},[_]),f.useEffect(()=>{k(e)},[e]);const $=()=>{c||p(!_)},z=()=>{_||t(o)},A=D=>{k(D.target.value)},Y=D=>{const O=D.relatedTarget;(O==null?void 0:O.id)===j||P()},Z=D=>{D.key==="Enter"?(D.preventDefault(),P()):D.key==="Escape"&&(D.preventDefault(),G())},P=()=>{x.trim()&&x!==e?s==null||s(x.trim()):k(e),p(!1)},G=()=>{k(e),p(!1)};return r.jsx("span",{className:E,children:_?r.jsx(wo,{tabId:o,editValue:x,isEditMode:_,onInputChange:A,onInputBlur:Y,onInputKeyDown:Z,onSave:P,onCancel:G,cancelButtonId:j}):r.jsxs(r.Fragment,{children:[r.jsx("button",{role:"tab",id:o,onClick:z,"aria-selected":l,"aria-controls":h,className:ee.tab,disabled:c,children:x}),L&&r.jsxs("span",{className:ee.tab_buttons,children:[y&&r.jsx(F,{view:B.Icon,icon:g.Edit,onClick:$,label:"Edit tab",tooltip:"Edit tab"}),S&&r.jsx(F,{view:B.Icon,icon:g.Delete,onClick:()=>n==null?void 0:n(o),label:"Delete tab",tooltip:"Delete tab"})]})]})})},So="_tabList_tq8bk_1",Lo="_tabList__vertical_tq8bk_13",Ao="_tabList_addButton_tq8bk_23",Te={tabList:So,tabList__vertical:Lo,tabList_addButton:Ao},Ro=({tabs:e,onTabSelect:t,onTabTitleChange:s,selectedTabId:n,tabPanelIds:o,mode:l,tabIds:c,stretched:a,editable:i=!1,extendable:d=!1,onTabAdd:h,onTabDelete:v,initialTabsCount:_})=>{const p=I([Te.tabList,{[Te.tabList__vertical]:l===q.Vertical}]),x=j=>{const y=c.findIndex($=>$===n);if(!["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(j.key)||(j.preventDefault(),j.key==="ArrowUp"&&l===q.Horizontal||j.key==="ArrowLeft"&&l===q.Vertical))return;const L=j.key==="ArrowLeft"||j.key==="ArrowUp"?k(y,c.length):C(y,c.length),E=c[L];E&&(ke(E),t(E))},k=(j,y)=>j-1>=0?j-1:y-1,C=(j,y)=>j===y-1?0:j+1;return f.useEffect(()=>{e.length>_&&t(e[e.length-1].id)},[e.length]),r.jsxs("div",{role:"tablist","data-testid":"tab-list",tabIndex:0,onKeyDown:x,className:p,children:[e.map(({id:j,title:y,disabled:S},L)=>r.jsx(Io,{title:y,onTabSelect:t,onTabTitleChange:s?E=>s(j,E):void 0,tabId:j,isSelected:j===n,isDisabled:S,tabPanelId:o[L],mode:l,stretched:a,editable:i,extendable:d,onTabDelete:v},j)),d&&r.jsx(F,{label:"Add Tab",tooltip:"Add Tab",view:B.Icon,icon:g.PlusCircle,onClick:h,className:Te.tabList_addButton})]})},To="_tabs_13prm_2",zo="_tabs__vertical_13prm_7",at={tabs:To,tabs__vertical:zo},$o=x=>{var k=x,{tabs:e,defaultTabId:t,className:s,mode:n=q.Horizontal,stretched:o=!1,editable:l=!1,extendable:c=!1,extendedTabLabel:a="New Tab",extendedTabContent:i,onTabTitleChange:d,onTabAdd:h,onTabSelect:v,onTabDelete:_}=k,p=m(k,["tabs","defaultTabId","className","mode","stretched","editable","extendable","extendedTabLabel","extendedTabContent","onTabTitleChange","onTabAdd","onTabSelect","onTabDelete"]);const[C,j]=f.useState(e),y=e.length,[S,L]=f.useState(y+1),E=C.map(R=>R.id),$=E.map(R=>`tabpanel_${R}`),z=t&&E.includes(t)?t:E[0],[A,Y]=f.useState(z),Z=I([at.tabs,s,{[at.tabs__vertical]:n===q.Vertical}]),P=R=>{Y(R),v==null||v(R)},G=(R,V)=>{j(W=>W.map(J=>J.id===R?w(b({},J),{title:V}):J)),d==null||d(R,V)},D=()=>{const R=`added-tab-${S}`,V=a||`Tab ${S}`,W={id:R,title:V,content:i||r.jsx("div",{})};j(J=>[...J,W]),L(J=>J+1),h==null||h()},O=R=>{if(j(V=>V.filter(W=>W.id!==R)),A===R){const V=E.indexOf(R);let W;V>0?W=E[V-1]:E.length>1?W=E[1]:W=void 0,W&&P(W)}_==null||_(R)};return r.jsxs("div",w(b({},p),{className:Z,children:[r.jsx(Ro,{tabs:C,selectedTabId:A,tabPanelIds:$,onTabSelect:P,onTabTitleChange:G,mode:n,tabIds:E,stretched:o,editable:l,extendable:c,onTabAdd:D,initialTabsCount:y,onTabDelete:O}),r.jsx(xo,{tabs:C,selectedTabId:A,extendedTabContent:i,extendable:c})]}))};exports.Alert=ys;exports.AlertMode=U;exports.Button=F;exports.ButtonView=B;exports.Checkbox=As;exports.Dialog=fr;exports.EditableText=tn;exports.ErrorMessage=$e;exports.Form=jr;exports.FormContext=oe;exports.Grid=eo;exports.Header=Be;exports.Icon=Q;exports.IconName=g;exports.Input=He;exports.Label=ce;exports.Loader=hs;exports.LoaderView=K;exports.Menu=ho;exports.MultiSelect=Us;exports.NumericInput=Xs;exports.OrientationMode=q;exports.Portal=Me;exports.Select=sr;exports.Tabs=$o;exports.TextInput=ir;exports.ThemeContext=Ve;exports.ThemeMode=re;exports.ThemeProvider=fs;exports.Tooltip=xt;exports.TooltipContainer=ze;exports.useAutoClose=Pe;exports.useClickOutside=_e;exports.useContainerDimensions=ut;exports.useElementIds=te;exports.useIsMounted=Oe;exports.useIsOverflow=_s;exports.useKeyPress=fe;exports.useModalFocusTrap=ht;exports.useResetFormInput=ae;exports.useTheme=xs;exports.useTooltipPosition=ft;exports.useWindowDimensions=_t;
|
|
22
|
+
<%s key={someKey} {...props} />`,O,W,ae,W),te[W+O]=!0)}if(W=null,D!==void 0&&(n(D),W=""+D),c(M)&&(n(M.key),W=""+M.key),"key"in M){D={};for(var Ae in M)Ae!=="key"&&(D[Ae]=M[Ae])}else D=M;return W&&a(D,typeof _=="function"?_.displayName||_.name||"Unknown":_),d(_,W,Q,ne,o(),D,Se,Le)}function b(_){typeof _=="object"&&_!==null&&_.$$typeof===p&&_._store&&(_._store.validated=1)}var f=h,p=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),A=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),H=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,B=Array.isArray,P=console.createTask?console.createTask:function(){return null};f={"react-stack-bottom-frame":function(_){return _()}};var T,N={},V=f["react-stack-bottom-frame"].bind(f,l)(),J=P(s(l)),te={};ue.Fragment=k,ue.jsx=function(_,M,D,O,ne){var Q=1e4>H.recentlyCreatedOwnerStacks++;return u(_,M,D,!1,O,ne,Q?Error("react-stack-top-frame"):V,Q?P(s(_)):J)},ue.jsxs=function(_,M,D,O,ne){var Q=1e4>H.recentlyCreatedOwnerStacks++;return u(_,M,D,!0,O,ne,Q?Error("react-stack-top-frame"):V,Q?P(s(_)):J)}}()),ue}var Ge;function St(){return Ge||(Ge=1,process.env.NODE_ENV==="production"?pe.exports=Mt():pe.exports=It()),pe.exports}var r=St(),q=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(q||{}),$=(e=>(e.Primary="primary",e.Secondary="secondary",e.Icon="icon",e.Inner="inner",e))($||{}),m=(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.Documents="documents",e.Download="download",e.Edit="edit",e.Email="email",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.Phone="phone",e.PlusCircle="plus-circle",e.Projects="projects",e.Question="question",e.Save="save",e.Search="search",e.Settings="settings",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(m||{}),X=(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))(X||{}),Z=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Z||{}),oe=(e=>(e.Light="cl-components-light-theme",e.Dark="cl-components-dark-theme",e))(oe||{}),De=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(De||{});function Lt(e){return o=>{var l=o,{tooltip:t,visibleOn:n}=l,s=g(l,["tooltip","visibleOn"]);return t!=null&&t.length?r.jsx(pt,{tooltipContent:t,visibleOn:n,children:r.jsx(e,x({},s))}):r.jsx(e,x({},s))}}function I(e){return e.map(n=>{if(typeof n=="string")return n.trim();if(typeof n=="object"){const s=[];for(const o in n)n[o]&&s.push(o.trim());return s.join(" ")}}).filter(n=>!!n).join(" ")}function ye(e){const t=document.getElementById(e);t&&t.focus()}function at({e,options:t,onClose:n}){let s="";for(const l of t)document.getElementById(l.id)===document.activeElement&&(s=l.id);const o=t.findIndex(l=>l.id===s);switch(e.key){case"Escape":e.preventDefault(),n();break;case"ArrowUp":{e.preventDefault();const l=o-1>=0?o-1:t.length-1,c=t[l];c&&ye(c.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const l=o===t.length-1?0:o+1,c=t[l];c&&ye(c.id);break}}}const At="_extended_1i1tp_1",Rt={extended:At},Tt="_button_t94vv_2",zt={button:Tt},Dt=s=>{var o=s,{children:e,className:t}=o,n=g(o,["children","className"]);return r.jsx("button",v(x({},n),{className:I([zt.button,t]),children:e}))},$t="_button_o1x7s_50",Bt={button:$t},Ht=c=>{var a=c,{onClick:e,label:t,icon:n,disabled:s,className:o}=a,l=g(a,["onClick","label","icon","disabled","className"]);return r.jsx("button",v(x({className:I([Bt.button,o]),onClick:e,"aria-label":t,type:"button",disabled:s},l),{children:r.jsx(G,{name:n})}))},Pt="_button_1ps5s_2",Nt="_button_shadow_1ps5s_16",Vt="_button_edge_1ps5s_28",Ot="_button_front_1ps5s_37",be={button:Pt,button_shadow:Nt,button_edge:Vt,button_front:Ot},Wt=s=>{var o=s,{children:e,className:t}=o,n=g(o,["children","className"]);return r.jsxs("button",v(x({},n),{className:I([be.button,t]),children:[r.jsx("span",{className:be.button_shadow}),r.jsx("span",{className:be.button_edge}),r.jsx("span",{className:be.button_front,children:e})]}))},Ut="_button_1c4d4_2",Ft={button:Ut},Kt=s=>{var o=s,{children:e,className:t}=o,n=g(o,["children","className"]);return r.jsx("button",v(x({},n),{className:I([Ft.button,t]),children:e}))},qt=u=>{var b=u,{onClick:e,text:t,icon:n,label:s,disabled:o=!1,extended:l=!1,type:c="button",view:a=$.Primary,className:i}=b,d=g(b,["onClick","text","icon","label","disabled","extended","type","view","className"]);const f=I([i,{[Rt.extended]:l}]);switch(a){case $.Primary:return r.jsxs(Wt,v(x({"aria-label":s,type:c,onClick:e,disabled:o,className:f},d),{children:[r.jsx(G,{name:n}),t]}));case $.Secondary:return r.jsxs(Kt,v(x({"aria-label":s,type:c,onClick:e,disabled:o,className:f},d),{children:[r.jsx(G,{name:n}),t]}));case $.Icon:return r.jsx(Dt,v(x({"aria-label":s,type:c,onClick:e,disabled:o},d),{className:i,children:r.jsx(G,{name:n})}));case $.Inner:return r.jsx(Ht,v(x({label:s,icon:n,onClick:e,disabled:o},d),{className:i}));default:return null}},U=Lt(qt),Gt="_editableText_i631c_1",Yt="_editableText__editMode_i631c_17",Jt="_editableText__readOnly_i631c_23",Xt="_editableText__empty_i631c_26",ve={editableText:Gt,editableText__editMode:Yt,editableText__readOnly:Jt,editableText__empty:Xt},Zt=d=>{var u=d,{multiline:e,value:t,placeholder:n,onChange:s,onBlur:o,onKeyDown:l,className:c,inputRef:a}=u,i=g(u,["multiline","value","placeholder","onChange","onBlur","onKeyDown","className","inputRef"]);const b=e?"textarea":"input",f=h.useCallback(p=>{s(p.target.value)},[s]);return r.jsx(b,x({ref:a,value:t,onChange:f,onBlur:o,onKeyDown:l,placeholder:n,className:c,rows:e?3:void 0},i))},Qt=l=>{var c=l,{value:e,placeholder:t,onClick:n,className:s}=c,o=g(c,["value","placeholder","onClick","className"]);const a=i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),n(i))};return r.jsx("span",v(x({onClick:n,className:s,role:"button",tabIndex:0,onKeyDown:a,"aria-label":"Editable text"},o),{children:e||t}))},es=(e,t)=>{const[n,s]=h.useState(!1),[o]=h.useState(e!==void 0);return{editMode:o?!!e:n,enterEditMode:()=>{!o&&!t&&s(!0)},exitEditMode:()=>{o||s(!1)},isControlled:o}},ts=(e,t,n,s)=>{h.useEffect(()=>{t&&e.current&&!s&&(e.current.focus(),n&&e.current.select())},[t,n,s,e])},ss=(e,t)=>{const[n,s]=h.useState(e);return h.useEffect(()=>{s(e)},[e]),{internalValue:n,updateValue:a=>{s(a)},commitValue:()=>{n!==e&&(t==null||t(n))},resetValue:()=>{s(e)}}},ns=u=>{var b=u,{value:e,isEditMode:t,onChange:n,onClick:s,className:o,autoSelectTextOnEditMode:l=!1,multiline:c=!1,placeholder:a="Click to edit...",readOnly:i=!1}=b,d=g(b,["value","isEditMode","onChange","onClick","className","autoSelectTextOnEditMode","multiline","placeholder","readOnly"]);const f=h.useRef(null),{editMode:p,enterEditMode:w,exitEditMode:k}=es(t,i),{internalValue:C,updateValue:j,commitValue:y,resetValue:A}=ss(e,n);ts(f,p,l,i);const S=h.useCallback(R=>{s==null||s(R),w()},[s,w]),E=h.useCallback(()=>{k(),y()},[k,y]),z=h.useCallback(R=>{R.key==="Enter"&&!c&&(R.preventDefault(),E()),R.key==="Escape"&&(A(),k())},[c,E,A,k]),L=I([ve.editableText,o,{[ve.editableText__editMode]:p,[ve.editableText__readOnly]:i,[ve.editableText__empty]:!C}]);return p&&!i?r.jsx(Zt,x({multiline:c,value:C,placeholder:a,onChange:j,onBlur:E,onKeyDown:z,className:L,inputRef:f},d)):r.jsx(Qt,x({value:C,placeholder:a,onClick:S,className:L},d))},rs="_errorMessage_1shcy_54",os="_errorMessage__visible_1shcy_76",Ye={errorMessage:rs,errorMessage__visible:os},$e=({errorId:e,testId:t,message:n="Error!",visible:s=!1,className:o})=>{const l=I([Ye.errorMessage,o,{[Ye.errorMessage__visible]:s}]);return r.jsx("span",{id:e,className:l,"data-testid":t,"aria-hidden":!s,children:n})},cs="_header_os2ww_1",ls="_header_text_os2ww_15",as="_header__h1_os2ww_20",is="_header__h2_os2ww_24",ds="_header__h3_os2ww_29",us="_header__h4_os2ww_34",hs="_header__h5_os2ww_39",_s="_header__h6_os2ww_44",re={header:cs,header_text:ls,header__h1:as,header__h2:is,header__h3:ds,header__h4:us,header__h5:hs,header__h6:_s},Be=l=>{var c=l,{as:e="h1",icon:t,children:n,className:s}=c,o=g(c,["as","icon","children","className"]);const a=e,i=I([s,re.header,{[re.header__h1]:e==="h1",[re.header__h2]:e==="h2",[re.header__h3]:e==="h3",[re.header__h4]:e==="h4",[re.header__h5]:e==="h5",[re.header__h6]:e==="h6"}]);return r.jsxs(a,v(x({className:i},o),{children:[t&&r.jsx(G,{name:t}),r.jsx("span",{className:re.header_text,children:n})]}))};function He(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Pe(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function fs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]}))}function xs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 it(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 dt(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function ut(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"})]}))}function ws(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 ps(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 bs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 vs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 ms(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("defs",{children:r.jsx("style",{})}),r.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 gs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}))}function js(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),r.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"}),r.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"}),r.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]}))}function ks(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Cs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.945 1.25h2.11c1.367 0 2.47 0 3.337.117c.9.12 1.658.38 2.26.981c.298.299.512.636.667 1.01c.932.116 1.715.372 2.333.99c.602.602.86 1.36.982 2.26c.116.867.116 1.97.116 3.337v4.11c0 1.367 0 2.47-.116 3.337c-.122.9-.38 1.658-.982 2.26c-.618.618-1.4.874-2.333.991c-.155.373-.369.71-.667 1.009c-.602.602-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-2.11c-1.367 0-2.47 0-3.337-.116c-.9-.122-1.658-.38-2.26-.982a3.1 3.1 0 0 1-.667-1.009c-.932-.117-1.715-.373-2.333-.991c-.602-.602-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-4.11c0-1.367 0-2.47.117-3.337c.12-.9.38-1.658.981-2.26c.618-.618 1.4-.874 2.333-.99a3.1 3.1 0 0 1 .667-1.01c.602-.602 1.36-.86 2.26-.981c.867-.117 1.97-.117 3.337-.117M4.328 4.94c-.437.106-.71.26-.919.47c-.277.276-.457.664-.556 1.398c-.101.756-.103 1.757-.103 3.192v4c0 1.435.002 2.437.103 3.192c.099.734.28 1.122.556 1.399c.209.209.482.363.92.469c-.079-.812-.079-1.806-.079-3.005v-8.11c0-1.198 0-2.193.078-3.005m15.344 14.12c.437-.106.71-.26.919-.469c.277-.277.457-.665.556-1.4c.101-.754.103-1.755.103-3.19v-4c0-1.436-.002-2.437-.103-3.193c-.099-.734-.28-1.122-.556-1.399c-.209-.209-.482-.363-.92-.469c.079.812.079 1.807.079 3.005v8.11c0 1.198 0 2.193-.078 3.005M7.808 2.853c-.734.099-1.122.28-1.399.556c-.277.277-.457.665-.556 1.4C5.752 5.562 5.75 6.564 5.75 8v8c0 1.435.002 2.436.103 3.192c.099.734.28 1.122.556 1.399c.277.277.665.457 1.4.556c.754.101 1.756.103 3.191.103h2c1.435 0 2.437-.002 3.192-.103c.734-.099 1.122-.28 1.399-.556c.277-.277.457-.665.556-1.4c.101-.755.103-1.756.103-3.191V8c0-1.435-.002-2.437-.103-3.192c-.099-.734-.28-1.122-.556-1.399c-.277-.277-.665-.457-1.4-.556c-.754-.101-1.756-.103-3.191-.103h-2c-1.435 0-2.437.002-3.192.103M8.25 9A.75.75 0 0 1 9 8.25h6a.75.75 0 0 1 0 1.5H9A.75.75 0 0 1 8.25 9m0 4a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75m0 4a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}))}function ys(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Es(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M3 21h18M12.222 5.828L15.05 3L20 7.95l-2.828 2.828m-4.95-4.95l-5.607 5.607a1 1 0 0 0-.293.707v4.536h4.536a1 1 0 0 0 .707-.293l5.607-5.607m-4.95-4.95l4.95 4.95"})]}))}function Ms(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"currentColor",d:"m16.484 11.976l6.151-5.344v10.627zm-7.926.905l2.16 1.875c.339.288.781.462 1.264.462h.017h-.001h.014c.484 0 .926-.175 1.269-.465l-.003.002l2.16-1.875l6.566 5.639H1.995zM1.986 5.365h20.03l-9.621 8.356a.6.6 0 0 1-.38.132h-.014h.001h-.014a.6.6 0 0 1-.381-.133l.001.001zm-.621 1.266l6.15 5.344l-6.15 5.28zm21.6-2.441c-.24-.12-.522-.19-.821-.19H1.859a1.9 1.9 0 0 0-.835.197l.011-.005A1.86 1.86 0 0 0 0 5.855v12.172a1.86 1.86 0 0 0 1.858 1.858h20.283a1.86 1.86 0 0 0 1.858-1.858V5.855c0-.727-.419-1.357-1.029-1.66l-.011-.005z"})]}))}function Is(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),r.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 Ss(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]}))}const Ls=n=>{var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512"},t),{children:[e&&r.jsx("title",{children:e}),r.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 As(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Rs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Ts=n=>{var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024"},t),{children:[e&&r.jsx("title",{children:e}),r.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 zs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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=n=>{var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024"},t),{children:[e&&r.jsx("title",{children:e}),r.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 $s(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Bs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M12.735 20.191a15 15 0 0 1-.92-.447a19 19 0 0 1-4.1-3.12A18 18 0 0 1 3.88 11.42a11.3 11.3 0 0 1-1.022-3.325a5.93 5.93 0 0 1 .37-3.465c.289-.47.637-.9 1.035-1.279a1.8 1.8 0 0 1 1.278-.601c.505.076.962.34 1.278.742c.69.767 1.43 1.457 2.159 2.186c.287.246.466.595.498.972c-.012.317-.134.62-.345.857c-.242.307-.536.588-.817.882a1.54 1.54 0 0 0-.46 1.279a3.7 3.7 0 0 0 .881 1.457c.486.665.971 1.28 1.52 1.931a13.6 13.6 0 0 0 3.463 2.865a1.28 1.28 0 0 0 1.278.153a4 4 0 0 0 1.137-.946c.275-.335.669-.55 1.099-.601c.383.02.744.184 1.01.46c.344.294.638.64.958.959c.319.32.575.55.843.844q.482.425.907.908c.22.284.324.64.294.997a2.1 2.1 0 0 1-.703 1.087a4.78 4.78 0 0 1-3.756 1.458a10.7 10.7 0 0 1-4.05-1.049Z"})]}))}function Hs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 6.722v10.556M17.278 12H6.722M12 21.5a9.5 9.5 0 1 0 0-19a9.5 9.5 0 0 0 0 19"})]}))}function Ps(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M10 21V3m-7 7h18M5.4 3h13.2A2.4 2.4 0 0 1 21 5.4v13.2a2.4 2.4 0 0 1-2.4 2.4H5.4A2.4 2.4 0 0 1 3 18.6V5.4A2.4 2.4 0 0 1 5.4 3"})]}))}function Ns(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),r.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"}),r.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 Vs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Os(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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 Ws(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M15.553 15.553a7.06 7.06 0 1 0-9.985-9.985a7.06 7.06 0 0 0 9.985 9.985m0 0L20 20"})]}))}function Us(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",width:"1em",height:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m5.23 2.25l.43-1.11A1 1 0 0 1 6.59.5h.82a1 1 0 0 1 .93.64l.43 1.11l1.46.84l1.18-.18a1 1 0 0 1 1 .49l.4.7a1 1 0 0 1-.08 1.13l-.73.93v1.68l.75.93a1 1 0 0 1 .08 1.13l-.4.7a1 1 0 0 1-1 .49l-1.18-.18l-1.46.84l-.43 1.11a1 1 0 0 1-.93.64h-.84a1 1 0 0 1-.93-.64l-.43-1.11l-1.46-.84l-1.18.18a1 1 0 0 1-1-.49l-.4-.7a1 1 0 0 1 .08-1.13L2 7.84V6.16l-.75-.93a1 1 0 0 1-.08-1.13l.4-.7a1 1 0 0 1 1-.49l1.18.18ZM5 7a2 2 0 1 0 2-2a2 2 0 0 0-2 2Z"})]}))}function Fs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 Ks(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.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"}),r.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 qs(n){var s=n,{title:e}=s,t=g(s,["title"]);return r.jsxs("svg",v(x({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em"},t),{children:[e&&r.jsx("title",{children:e}),r.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),r.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 Gs={[m.ArrowDown]:He,[m.ArrowUp]:Pe,[m.Back]:fs,[m.Cancel]:xs,[m.CheckboxChecked]:it,[m.CheckboxUnchecked]:dt,[m.CheckMark]:ut,[m.ChevronDown]:ws,[m.ChevronUp]:vs,[m.ChevronLeft]:ps,[m.ChevronRight]:bs,[m.Clear]:ms,[m.Copy]:gs,[m.Cut]:js,[m.Delete]:ks,[m.Documents]:Cs,[m.Download]:ys,[m.Edit]:Es,[m.Email]:Ms,[m.Error]:Is,[m.Forward]:Ss,[m.Graduate]:Ls,[m.Help]:As,[m.Hide]:Rs,[m.Home]:Ts,[m.Info]:zs,[m.Login]:Ds,[m.Paste]:$s,[m.Phone]:Bs,[m.PlusCircle]:Hs,[m.Projects]:Ps,[m.Question]:Ns,[m.Save]:Os,[m.Search]:Ws,[m.Settings]:Us,[m.Show]:Fs,[m.Upload]:Ks,[m.Warning]:qs,[m.Remove]:Vs},Ys="_icon_1a3u5_1",Js={icon:Ys},G=l=>{var c=l,{name:e,testId:t,className:n,hidden:s}=c,o=g(c,["name","testId","className","hidden"]);if(!e)return null;const a=Gs[e],i=I([n,Js.icon]);return r.jsx(a,x({"data-testid":t,className:i,"aria-hidden":s},o))},Xs="_wrapper_knk6l_2",Zs="_input_knk6l_28",Je={wrapper:Xs,input:Zs},Qs=(s,n)=>{var o=s,{children:e}=o,t=g(o,["children"]);return r.jsxs("div",{className:Je.wrapper,children:[r.jsx("input",v(x({},t),{className:Je.input,ref:n})),e]})},Me=h.forwardRef(Qs),en="_label_bdijc_1",tn={label:en},ce=({label:e,required:t,inputId:n,icon:s,iconPosition:o,isTextHidden:l=!1})=>{const c=!!s&&o==="left",a=!!s&&o==="right";return r.jsxs("label",{className:tn.label,htmlFor:n,children:[c&&r.jsx(G,{name:s}),!l&&r.jsxs("span",{children:[e,t&&r.jsx("abbr",{title:"required",children:"*"})]}),a&&r.jsx(G,{name:s})]})},sn="_link_1saak_2",nn="_link__disabled_1saak_22",rn="_link_text_1saak_26",on="_link_icon_1saak_35",me={link:sn,link__disabled:nn,link_text:rn,link_icon:on},cn=d=>{var u=d,{href:e,children:t,icon:n,iconPosition:s="left",external:o=!1,disabled:l=!1,className:c,target:a}=u,i=g(u,["href","children","icon","iconPosition","external","disabled","className","target"]);const b=I([me.link,c,{[me.link__disabled]:l}]),f=o||e.startsWith("http")||e.startsWith("//"),p=f?a||"_blank":a,w=n?r.jsx(G,{name:n,className:me.link_icon,"aria-hidden":"true"}):null,k=n&&s==="left",C=n&&s==="right";return r.jsxs("a",v(x(v(x({href:e,className:b,target:p},f&&{"aria-label":typeof t=="string"?`${t} (opens in new window)`:"Opens in new window"}),{"aria-disabled":l}),i),{children:[k&&w,r.jsx("span",{className:me.link_text,children:t}),C&&w]}))},ln="_loader_1dxge_1",an={loader:ln},dn="_loader_1t1ws_1",un={loader:dn},hn="_loader_151n3_1",_n={loader:hn},fn="_loader_noiz1_1",xn={loader:fn},wn="_loader_1hqei_1",pn={loader:wn},bn="_loader_o5l8l_1",vn={loader:bn},mn="_loader_pukbl_1",gn={loader:mn},jn="_loader_zl0tq_1",kn={loader:jn},Cn="_loader_1alvx_1",yn={loader:Cn},En=n=>{var s=n,{view:e=X.Circle}=s,t=g(s,["view"]);const o=I([{[an.loader]:e===X.Arrow,[un.loader]:e===X.Brackets,[_n.loader]:e===X.Circle,[xn.loader]:e===X.Dots,[pn.loader]:e===X.Filler,[gn.loader]:e===X.Pulse,[vn.loader]:e===X.Linear,[kn.loader]:e===X.Rotation,[yn.loader]:e===X.Square}]);return r.jsx("span",x({className:o},t))},Ie=({children:e})=>{const[t]=h.useState(()=>document.createElement("div"));return h.useEffect(()=>(document.body.appendChild(t),()=>{t.remove()}),[t]),Et.createPortal(e,t)},Ne=({isOpened:e,onClose:t,autoClose:n=!0,autoCloseDelay:s=3e3})=>{h.useEffect(()=>{if(!e||!n)return;const o=setTimeout(()=>{t()},s);return()=>clearTimeout(o)},[e,n,s,t])},fe=({ref:e,onClickOutsideHandler:t,dependentRef:n})=>{h.useEffect(()=>{const s=o=>{var i;const l=(e==null?void 0:e.current)&&!e.current.contains(o.target),a=!(n!=null&&n.current)?!0:!((i=n==null?void 0:n.current)!=null&&i.contains(o.target));l&&a&&t()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[e,n,t])},ht=({ref:e,isVisible:t})=>{const[n,s]=h.useState({width:0,height:0});return h.useEffect(()=>{e!=null&&e.current&&t&&s({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),n},_t=(e,t)=>{const[n,s]=h.useState(e);return h.useEffect(()=>{const o=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};function ee(e){const t=h.useId(),n=e!=null?e:t,s=`${n}_error`,o=`${n}_dropdown`;return{elementId:n,errorId:s,dropdownId:o}}const Ve=(e,t=300)=>{const[n,s]=h.useState(!1);return h.useEffect(()=>{e&&!n?s(!0):!e&&n&&setTimeout(()=>{s(!1)},t)},[e]),n},Mn=({ref:e,dimension:t,isMounted:n})=>{const[s,o]=h.useState(!1);return h.useEffect(()=>{const l=()=>{const{current:c}=e;if(c){if(t==="width"){const{scrollWidth:a=0,clientWidth:i=0}=c;o(a>i)}if(t==="height"){const{scrollHeight:a=0,clientHeight:i=0}=c;o(a>i)}}};return n&&l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[e,t,n]),s},xe=({ref:e,keyCode:t,onKeyPress:n})=>{h.useEffect(()=>{const s=o=>{(o==null?void 0:o.code)===t&&(e!=null&&e.current)&&n()};return document.addEventListener("keydown",s,!1),()=>{document.removeEventListener("keydown",s,!1)}},[e,t,n])},ft=({modalRef:e,isOpened:t})=>{h.useEffect(()=>{const n=e.current;if(!t||!n)return;const s=Array.from(n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')),o=s[0],l=s.at(-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 n.addEventListener("keydown",c),()=>{n.removeEventListener("keydown",c)}},[e,t])},le=h.createContext({}),Oe=h.createContext({mode:oe.Light,setMode:()=>{}}),In=({children:e,injectedMode:t})=>{const[n,s]=h.useState(oe.Light);h.useEffect(()=>{n&&typeof n=="string"&&(document.body.classList.remove(oe.Light,oe.Dark),document.body.classList.add(n))},[n]),h.useEffect(()=>{t&&typeof t=="string"&&(document.body.classList.remove(oe.Light,oe.Dark),document.body.classList.add(t))},[t]);const o=h.useMemo(()=>({mode:n,setMode:s}),[n]);return r.jsx(Oe.Provider,{value:o,children:e})},ie=e=>{const{resetSignal:t}=h.useContext(le);h.useEffect(()=>{t&&e()},[t,e])},Sn=()=>h.useContext(Oe);function Xe(){const{innerWidth:e,innerHeight:t}=globalThis;return{width:e,height:t}}function xt(){const[e,t]=h.useState(Xe());return h.useEffect(()=>{function n(){t(Xe())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const wt=({wrapperRef:e,tooltipRef:t,isOpened:n,spacing:s=4})=>{const[o,l]=h.useState({top:0,left:0}),{width:c,height:a}=ht({ref:t,isVisible:n}),{width:i,height:d}=xt();return h.useEffect(()=>{if(n&&(e!=null&&e.current)){const u=e==null?void 0:e.current.getBoundingClientRect();let b=Math.round(u.bottom+s),f=Math.round(u.left);b+a>window.innerHeight&&(b=Math.round(u.top-a-s)),f+c>window.innerWidth&&(f=Math.round(window.innerWidth-c-s)),f<0&&(f=s),l({top:b,left:f})}},[n,e,a,c,s,i,d]),o},Ln=({id:e,autoClose:t,autoCloseDelay:n})=>{const[s,o]=h.useState(!1),l=h.useRef(null),c=h.useRef(null),{top:a,left:i}=wt({wrapperRef:l,tooltipRef:c,isOpened:s}),{elementId:d}=ee(e),u=()=>o(!1),b=()=>o(!0),f=()=>o(!s),p=w=>{w.preventDefault(),f()};return xe({keyCode:"Escape",ref:c,onKeyPress:u}),fe({ref:c,onClickOutsideHandler:u,dependentRef:l}),Ne({isOpened:s,onClose:u,autoClose:t,autoCloseDelay:n}),{elementId:d,openTooltip:b,closeTooltip:u,toggleTooltip:f,handleContextMenu:p,top:a,left:i,isOpened:s,wrapperRef:l,tooltipRef:c}},An="_tooltip_v7uvz_54",Rn={tooltip:An},pt=u=>{var b=u,{children:e,tooltipContent:t,id:n,style:s,className:o,containerTag:l=De.Span,visibleOn:c="hover",autoClose:a=!1,autoCloseDelay:i=3e3}=b,d=g(b,["children","tooltipContent","id","style","className","containerTag","visibleOn","autoClose","autoCloseDelay"]);const f=l,{openTooltip:p,closeTooltip:w,toggleTooltip:k,handleContextMenu:C,elementId:j,top:y,left:A,isOpened:S,wrapperRef:E,tooltipRef:z}=Ln({id:n,autoClose:a,autoCloseDelay:i}),L=I([Rn.tooltip,o]);return r.jsxs(f,{style:{position:"relative",cursor:"pointer"},onClick:c==="click"?k:void 0,onMouseOver:c==="hover"?p:void 0,onMouseLeave:c==="hover"?w:void 0,onFocus:c==="focus"?p:void 0,onBlur:c==="focus"?w:void 0,onContextMenu:c==="contextmenu"?R=>C(R):void 0,tabIndex:-1,ref:E,"aria-describedby":j,children:[e,S&&r.jsx(Ie,{children:r.jsx("div",v(x({style:v(x({},s),{top:y,left:A}),ref:z,role:"tooltip",id:j},d),{className:L,children:t}))})]})};function Tn(e,t){if(t)return t;switch(e){case q.Info:return"For your information";case q.Warning:return"Please pay attention";case q.Error:return"Something went wrong";case q.Success:return"Everything is okay";case q.Help:return"Useful tip";default:return"Alert"}}function zn(e,t){if(t)return t;switch(e){case q.Info:return m.Info;case q.Warning:return m.Warning;case q.Error:return m.Error;case q.Success:return m.CheckboxChecked;case q.Help:return m.Help;default:return}}const Dn="_wrapper_12fi0_54",$n="_wrapper__closing_12fi0_64",Bn="_content_12fi0_70",Hn="_content_button_12fi0_90",ge={wrapper:Dn,wrapper__closing:$n,content:Bn,content_button:Hn},Pn=d=>{var u=d,{isOpened:e,onClose:t,title:n,message:s,mode:o=q.Info,icon:l,autoClose:c=!1,autoCloseDelay:a=3e3}=u,i=g(u,["isOpened","onClose","title","message","mode","icon","autoClose","autoCloseDelay"]);const b=Ve(e),f=b&&!e;if(Ne({isOpened:e,onClose:t,autoClose:c,autoCloseDelay:a}),!b)return null;const p=Tn(o,n),w=zn(o,l);return r.jsx(Ie,{children:r.jsx("div",{className:I([ge.wrapper,{[ge.wrapper__closing]:f}]),children:r.jsxs("div",v(x({},i),{className:ge.content,children:[r.jsx(U,{icon:m.Cancel,view:$.Icon,label:"Close alert popup",onClick:t,className:ge.content_button}),r.jsx("header",{children:r.jsx(Be,{icon:w,as:"h3",children:p})}),r.jsx("p",{children:s})]}))})})};function Nn({defaultChecked:e,initialValues:t,name:n}){return(t==null?void 0:t[n])!==void 0?!!(t!=null&&t[n]):!!e}function Vn({name:e,defaultChecked:t,onChange:n}){const{onChangeFormInput:s,initialValues:o}=h.useContext(le),l=Nn({initialValues:o,name:e,defaultChecked:t}),[c,a]=h.useState(l),i=u=>{const b=u.target.checked;a(b),n==null||n(u),s==null||s({name:e,value:b})},d=h.useCallback(()=>{a(l),s==null||s({name:e,value:l})},[e]);return ie(d),{handleChange:i,checked:c}}const On="_checkbox_1ff9a_2",Wn="_checkbox__checked_1ff9a_12",Un="_checkbox__disabled_1ff9a_15",Re={checkbox:On,checkbox__checked:Wn,checkbox__disabled:Un},Fn=b=>{var f=b,{name:e,label:t,disabled:n,noLabel:s,required:o=!1,iconPosition:l="left",defaultChecked:c,onChange:a,id:i,className:d}=f,u=g(f,["name","label","disabled","noLabel","required","iconPosition","defaultChecked","onChange","id","className"]);const{handleChange:p,checked:w}=Vn({name:e,defaultChecked:c,onChange:a}),{elementId:k}=ee(i),C=I([Re.checkbox,d,{[Re.checkbox__disabled]:!!n,[Re.checkbox__checked]:w}]);return r.jsxs("div",v(x({},u),{className:C,children:[r.jsx("input",{id:k,name:e,type:"checkbox",disabled:n,required:o,checked:w,onChange:p,"aria-label":s?t:void 0}),r.jsx(ce,{label:t,required:o,inputId:k,isTextHidden:s,icon:w?m.CheckboxChecked:m.CheckboxUnchecked,iconPosition:l})]}))},Kn="_wrapper_z3grr_1",bt={wrapper:Kn},qn="_combobox_1pe6c_2",vt={combobox:qn},Gn=({opened:e,onClick:t,comboboxId:n,dropdownId:s,name:o,placeholder:l,disabled:c,required:a,values:i})=>{const d=i==null?void 0:i.filter(f=>f.selected).map(f=>f.label),u=i==null?void 0:i.filter(f=>f.selected).map(f=>f.id);let b=r.jsx("span",{children:l});return d&&d.length===(i==null?void 0:i.length)?b=r.jsx("span",{children:"All items selected"}):d&&d.length===1?b=r.jsx("span",{children:d[0]}):d&&d.length>1&&(b=r.jsx("span",{children:`${d.length} items selected`})),r.jsxs("button",{type:"button",name:o,value:u,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":s,id:n,onClick:t,disabled:c,"aria-required":a,className:vt.combobox,children:[b,e?r.jsx(Pe,{}):r.jsx(He,{})]})};function Yn({name:e,options:t,initialValues:n,defaultValue:s}){return t.map(o=>{let l=!1;return n!=null&&n[e]&&Array.isArray(n[e])&&n[e].find(a=>a===o.id||(a==null?void 0:a.id)===o.id)&&(l=!0),!(n!=null&&n[e])&&Array.isArray(s)&&s.find(a=>a===o.id)&&(l=!0),v(x({},o),{selected:l})})}const Ze=e=>e.filter(t=>t.selected).map(t=>t.id),Jn=(e,t)=>{const n=e.find(s=>s.id===t);return e.map(s=>s.id===t?v(x({},s),{selected:!(n!=null&&n.selected)}):s)};function Xn({name:e,defaultValue:t,onChange:n,options:s}){const[o,l]=h.useState(!1),{onChangeFormInput:c,initialValues:a}=h.useContext(le),i=Yn({name:e,options:s,initialValues:a,defaultValue:t}),[d,u]=h.useState(i),b=()=>l(!1),f=()=>l(!o),p=k=>{const C=Jn(d,k);u(C),n==null||n(C),c==null||c({name:e,value:Ze(C)})},w=h.useCallback(()=>{l(!1),u(i),c==null||c({name:e,value:Ze(i)})},[e]);return ie(w),{handleClose:b,handleToggle:f,handleSelect:p,opened:o,values:d}}const Zn="_dropdown_1kuhz_6",Qn="_dropdown__opened_1kuhz_25",Ee={dropdown:Zn,dropdown__opened:Qn},er="_option_17atn_1",tr="_option__selected_17atn_29",sr="_option__multi_17atn_32",_e={option:er,option__selected:tr,option__multi:sr},nr=({value:e,onSelect:t})=>{const{id:n,label:s,selected:o}=e,l=I([_e.option,_e.option__multi,{[_e.option__selected]:o}]),c=a=>i=>{switch(i.key){case" ":case"SpaceBar":case"Enter":i.preventDefault(),t(a);break}};return r.jsxs("li",{id:n,role:"option","aria-selected":o,tabIndex:0,onKeyDown:c(n),onClick:()=>t(n),className:l,children:[o?r.jsx(it,{}):r.jsx(dt,{}),r.jsx("span",{children:s})]})},rr=({options:e,opened:t,onClose:n,onSelect:s,dropdownId:o})=>{const l=I([Ee.dropdown,{[Ee.dropdown__opened]:t}]);return r.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:c=>at({e:c,options:e,onClose:n}),className:l,children:e.map(c=>r.jsx(nr,{value:c,onSelect:()=>s(c.id)},c.id))})},or=b=>{var f=b,{options:e,name:t,label:n,required:s=!1,placeholder:o="Not selected",disabled:l=!1,onChange:c,defaultValue:a,id:i,className:d}=f,u=g(f,["options","name","label","required","placeholder","disabled","onChange","defaultValue","id","className"]);const p=h.useRef(null),{elementId:w,dropdownId:k}=ee(i),{handleClose:C,handleSelect:j,handleToggle:y,opened:A,values:S}=Xn({name:t,options:e,defaultValue:a,onChange:c}),E=I([bt.wrapper,d]);return fe({ref:p,onClickOutsideHandler:C}),xe({keyCode:"Escape",ref:p,onKeyPress:C}),r.jsxs("div",v(x({ref:p},u),{className:E,children:[r.jsx(ce,{label:n,required:s,inputId:w}),r.jsx(Gn,{name:t,opened:A,comboboxId:w,dropdownId:k,onClick:y,values:S,placeholder:o,disabled:l,required:s}),r.jsx(rr,{options:S,opened:A,onClose:C,dropdownId:k,onSelect:j})]}))};function cr({name:e,initialValues:t,defaultValue:n}){return t!=null&&t[e]?Number(t[e]):n&&typeof n=="number"?n:0}function lr({value:e,required:t,validator:n,maxValue:s,minValue:o}){return t&&!n&&e===void 0?!1:n&&typeof n=="function"?n(e):s&&o&&e&&!n?e<=s&&e>=o:!0}function ar({name:e,defaultValue:t,onChange:n,onSpinButtonClick:s,min:o,max:l,step:c,required:a,validator:i}){const{onChangeFormInput:d,initialValues:u}=h.useContext(le),b=cr({initialValues:u,defaultValue:t,name:e}),f=l?Number(l):Number.MAX_SAFE_INTEGER,p=o?Number(o):Number.MIN_SAFE_INTEGER,[w,k]=h.useState(b),[C,j]=h.useState(!0),y=L=>{k(L);const R=lr({value:L,required:a,validator:i,maxValue:f,minValue:p});j(R),d==null||d({name:e,value:L,valid:R})},A=L=>{const R=Number(L.target.value);y(R),n==null||n(L)},S=()=>{y(w+c),s==null||s(w+c)},E=()=>{y(w-c),s==null||s(w-c)},z=h.useCallback(()=>{k(b),j(!0),d==null||d({name:e,value:b,valid:!0})},[e]);return ie(z),{handleChange:A,value:w,valid:C,minValue:p,maxValue:f,increment:S,decrement:E}}const ir="_numeric_1s7mp_1",dr="_errorMessage_1s7mp_7",Qe={numeric:ir,errorMessage:dr},ur=S=>{var E=S,{name:e,label:t,errorMessage:n,onChange:s,onBlur:o,onFocus:l,onSpinButtonClick:c,validator:a,min:i,max:d,id:u,tabIndex:b,disabled:f=!1,required:p=!1,readOnly:w=!1,hasSpinButtons:k=!0,defaultValue:C=0,step:j=1,className:y}=E,A=g(E,["name","label","errorMessage","onChange","onBlur","onFocus","onSpinButtonClick","validator","min","max","id","tabIndex","disabled","required","readOnly","hasSpinButtons","defaultValue","step","className"]);const{elementId:z,errorId:L}=ee(u),{value:R,valid:F,handleChange:Y,increment:H,decrement:K,minValue:B,maxValue:P}=ar({name:e,defaultValue:C,min:i,max:d,onChange:s,required:p,validator:a,step:j,onSpinButtonClick:c}),T=I([Qe.numeric,y]);return r.jsxs("div",v(x({},A),{className:T,children:[r.jsx(ce,{label:t,required:p,inputId:z}),r.jsxs(Me,{id:z,name:e,type:"number",disabled:f,required:p,readOnly:w,placeholder:"0","aria-invalid":!F,"aria-errormessage":L,value:R.toString(),onChange:Y,min:B,max:P,step:j,onBlur:o,onFocus:l,tabIndex:b,children:[k&&r.jsxs("span",{children:[r.jsx(U,{onClick:K,view:$.Inner,label:`Decrement value for ${t}`,icon:m.ChevronLeft,disabled:f}),r.jsx(U,{onClick:H,view:$.Inner,label:`Increment value for ${t}`,icon:m.ChevronRight,disabled:f})]}),r.jsx($e,{errorId:L,message:n,visible:!F,className:Qe.errorMessage})]})]}))},hr="_wrapper_ikuc9_1",_r={wrapper:hr},fr=A=>{var S=A,{label:e,onSearch:t,onBlur:n,onFocus:s,onClear:o,id:l,tabIndex:c,className:a,maxLength:i=50,minLength:d=1,searchMode:u="automatic",name:b="q",placeholder:f="Type to search...",disabled:p=!1,clearable:w=!0,spellCheck:k=!1,autoComplete:C="off",debounceDelay:j=500}=S,y=g(S,["label","onSearch","onBlur","onFocus","onClear","id","tabIndex","className","maxLength","minLength","searchMode","name","placeholder","disabled","clearable","spellCheck","autoComplete","debounceDelay"]);const{elementId:E}=ee(l),z=I([_r.wrapper,a]),[L,R]=h.useState(""),F=h.useRef(null),Y=u==="manual",H=!Y,K=w&&L.length>0,B=L.length>=d&&L.trim().length>0&&L.length<=i,P=_t(L,j);h.useEffect(()=>{P.trim().length>0&&u==="automatic"&&B&&(t==null||t(P))},[P]);const T=h.useCallback(te=>{const _=te.target.value;R(_)},[]),N=h.useCallback(()=>{R(""),F.current&&F.current.focus(),o==null||o()},[o]),V=h.useCallback(()=>{t==null||t(L)},[t,L]),J=h.useCallback(te=>{te.key==="Enter"?(te.preventDefault(),t&&t(L)):te.key==="Escape"&&(te.preventDefault(),N())},[t,L,N]);return r.jsxs("div",v(x({},y),{className:z,children:[r.jsx(ce,{label:e,required:!1,inputId:E,icon:H?m.Search:void 0,iconPosition:H?"left":void 0}),r.jsx(Me,{ref:F,id:E,name:b,type:"search",value:L,onChange:T,onKeyDown:J,onBlur:n,onFocus:s,disabled:p,placeholder:f,autoComplete:C,maxLength:i,minLength:d,spellCheck:k,tabIndex:c,children:r.jsxs("span",{children:[K&&r.jsx(U,{view:$.Inner,onClick:N,label:`Clear search input for ${e}`,icon:m.Remove}),Y&&r.jsx(U,{view:$.Inner,onClick:V,label:"Perform search",icon:m.Search,disabled:p||!B})]})})]}))},xr=({opened:e,onClick:t,comboboxId:n,dropdownId:s,selected:o,name:l,placeholder:c,disabled:a,required:i})=>r.jsxs("button",{type:"button",name:l,value:o==null?void 0:o.id,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":s,id:n,onClick:t,disabled:a,"aria-required":i,className:vt.combobox,children:[o!=null&&o.label?r.jsx("span",{children:o==null?void 0:o.label}):r.jsx("span",{children:c}),e?r.jsx(Pe,{}):r.jsx(He,{})]}),wr=({value:e,selected:t,onSelect:n,onClear:s})=>{const{id:o,label:l}=e,c=I([_e.option,{[_e.option__selected]:t}]),a=d=>{t?s():n(d)},i=d=>u=>{switch(u.key){case" ":case"SpaceBar":case"Enter":u.preventDefault(),a(d);break}};return r.jsxs("li",{id:o,role:"option","aria-selected":t,tabIndex:0,onKeyDown:i(o),onClick:()=>a(o),className:c,children:[r.jsx("span",{children:l}),t&&r.jsx(ut,{})]})},pr=({options:e,opened:t,onClose:n,onSelect:s,dropdownId:o,comboboxId:l,selected:c,onClear:a})=>{const i=u=>{s(u),n(),ye(l)},d=I([Ee.dropdown,{[Ee.dropdown__opened]:t}]);return r.jsx("ul",{role:"listbox",id:o,tabIndex:-1,onKeyDown:u=>at({e:u,options:e,onClose:n}),className:d,children:e.map(u=>r.jsx(wr,{value:u,onSelect:()=>i(u.id),onClear:a,selected:u.id===(c==null?void 0:c.id)},u.id))})};function br({name:e,options:t,initialValues:n,defaultValue:s}){var l;let o;if(n&&Object.hasOwn(n,e)){const c=n[e];o=(l=c==null?void 0:c.id)!=null?l:c}return!(n!=null&&n[e])&&s&&typeof s=="string"&&(o=s),t.find(c=>c.id===o)}function vr({name:e,defaultValue:t,onChange:n,options:s}){const{onChangeFormInput:o,initialValues:l}=h.useContext(le),c=br({name:e,options:s,defaultValue:t,initialValues:l}),[a,i]=h.useState(!1),[d,u]=h.useState(c),b=()=>i(!1),f=()=>i(!a),p=C=>{const j=s.find(y=>y.id===C);u(j),n==null||n(j),o==null||o({name:e,value:j==null?void 0:j.id})},w=()=>{u(void 0),n==null||n(void 0)},k=h.useCallback(()=>{i(!1),u(c),o==null||o({name:e,value:c==null?void 0:c.id})},[e]);return ie(k),{selected:d,opened:a,handleClear:w,handleClose:b,handleToggle:f,handleSelect:p}}const mr=b=>{var f=b,{options:e,onChange:t,name:n,label:s,defaultValue:o,id:l,placeholder:c="Not selected",required:a=!1,disabled:i=!1,className:d}=f,u=g(f,["options","onChange","name","label","defaultValue","id","placeholder","required","disabled","className"]);const p=h.useRef(null),{elementId:w,dropdownId:k}=ee(l),{handleClear:C,handleClose:j,handleSelect:y,handleToggle:A,selected:S,opened:E}=vr({options:e,onChange:t,defaultValue:o,name:n}),z=I([bt.wrapper,d]);return fe({ref:p,onClickOutsideHandler:j}),xe({keyCode:"Escape",ref:p,onKeyPress:j}),r.jsxs("div",v(x({ref:p},u),{className:z,children:[r.jsx(ce,{label:s,required:a,inputId:w}),r.jsx(xr,{name:n,opened:E,comboboxId:w,dropdownId:k,onClick:A,selected:S,placeholder:c,disabled:i,required:a}),r.jsx(pr,{options:e,selected:S,opened:E,onClose:j,dropdownId:k,comboboxId:w,onSelect:y,onClear:C})]}))};function gr({value:e,required:t,validator:n}){return t&&!n&&!e.length?!1:n&&typeof n=="function"?n(e):n&&typeof n=="object"?new RegExp(n.regexp,n==null?void 0:n.flags).test(e):!0}function jr({name:e,initialValues:t,defaultValue:n}){return t!=null&&t[e]?t[e].toString():n&&typeof n=="string"?n:""}function kr({name:e,defaultValue:t,onChange:n,onClear:s,required:o,validator:l}){const{onChangeFormInput:c,initialValues:a}=h.useContext(le),i=jr({initialValues:a,defaultValue:t,name:e}),[d,u]=h.useState(i),[b,f]=h.useState(!0),[p,w]=h.useState(!1),k=A=>{const S=A.target.value,E=gr({value:S,required:o,validator:l});u(S),f(E),c==null||c({name:e,value:S,valid:E}),n==null||n(A)},C=()=>{u(""),f(!0),c==null||c({name:e,value:"",valid:!0}),s==null||s()},j=h.useCallback(()=>{u(i),f(!0),c==null||c({name:e,value:i,valid:!0})},[e]),y=()=>{w(!p)};return ie(j),{value:d,valid:b,passwordShown:p,handleChange:k,handleClear:C,togglePassword:y}}const Cr="_wrapper_bu2uu_1",yr="_errorMessage_bu2uu_7",et={wrapper:Cr,errorMessage:yr},Er=E=>{var z=E,{name:e,label:t,errorMessage:n,defaultValue:s,onChange:o,onBlur:l,onFocus:c,onClear:a,validator:i,maxLength:d,id:u,tabIndex:b,placeholder:f="Type here...",disabled:p=!1,required:w=!1,clearable:k=!0,readOnly:C=!1,autoComplete:j="off",type:y="text",className:A}=z,S=g(z,["name","label","errorMessage","defaultValue","onChange","onBlur","onFocus","onClear","validator","maxLength","id","tabIndex","placeholder","disabled","required","clearable","readOnly","autoComplete","type","className"]);const{value:L,valid:R,handleChange:F,handleClear:Y,passwordShown:H,togglePassword:K}=kr({defaultValue:s,name:e,onChange:o,onClear:a,required:w,validator:i}),{elementId:B,errorId:P}=ee(u),T=y==="password",N=I([et.wrapper,A]);return r.jsxs("div",v(x({},S),{className:N,children:[r.jsx(ce,{label:t,required:w,inputId:B}),r.jsxs(Me,{id:B,name:e,type:H?"text":y,disabled:p,placeholder:f,required:w,readOnly:C,autoComplete:j,"aria-invalid":!R,"aria-errormessage":P,"aria-readonly":C,value:L,onChange:F,maxLength:d,onBlur:l,onFocus:c,tabIndex:b,children:[r.jsxs("span",{children:[k&&r.jsx(U,{view:$.Inner,onClick:Y,label:`Clear input for ${t}`,icon:m.Remove,disabled:p}),T&&r.jsx(U,{onClick:K,view:$.Inner,label:"Toggle password visibility",icon:H?m.Hide:m.Show,disabled:p})]}),r.jsx($e,{errorId:P,message:n,visible:!R,className:et.errorMessage})]})]}))},Mr="_dialog_4mo9j_54",Ir="_dialog__closing_4mo9j_69",Sr="_layout_4mo9j_75",Lr="_layout_button_4mo9j_95",je={dialog:Mr,dialog__closing:Ir,layout:Sr,layout_button:Lr},Ar=c=>{var a=c,{isOpened:e,onClose:t,title:n,children:s,icon:o}=a,l=g(a,["isOpened","onClose","title","children","icon"]);const i=Ve(e),d=i&&!e,u=h.useRef(null);return ft({modalRef:u,isOpened:e}),xe({keyCode:"Escape",ref:u,onKeyPress:t}),i?r.jsx(Ie,{children:r.jsx("div",{className:I([je.dialog,{[je.dialog__closing]:d}]),children:r.jsxs("div",v(x({ref:u,role:"dialog","aria-modal":"true"},l),{className:je.layout,children:[r.jsx(U,{icon:m.Cancel,view:$.Icon,label:"Close modal window",onClick:t,className:je.layout_button}),r.jsx("header",{children:r.jsx(Be,{as:"h3",icon:o,children:n})}),r.jsx("div",{children:s})]}))})}):null};function Rr(e){return e?Object.keys(e).map(t=>[t,!0]):[]}function Tr(e,t){return(t==null?void 0:t.valid)===void 0?e:e.map(n=>n[0]!==t.name?n:[n[0],!!(t!=null&&t.valid)])}function zr(e){return e.every(t=>t[1])}function Dr({initialValues:e,onReset:t,onSubmit:n,onClickSubmit:s}){const[o,l]=h.useState(e),[c,a]=h.useState(Rr(e)),[i,d]=h.useState(0);return{handleInputChange:p=>{const w=v(x({},o),{[p.name]:p.value});l(w),a(Tr(c,p))},handleSubmit:p=>{p.preventDefault();const w=Object.fromEntries(new FormData(p.target)),k=x(x({},w),o);n==null||n(p),s==null||s(k)},handleReset:p=>{t==null||t(p),l(e),d(i+1)},resetSignal:i,valid:zr(c)}}const $r="_form_a5bhb_1",Br="_buttons_a5bhb_14",ke={form:$r,buttons:Br,"columns-1":"_columns-1_a5bhb_21","buttons-1":"_buttons-1_a5bhb_26","columns-2":"_columns-2_a5bhb_30","buttons-2":"_buttons-2_a5bhb_35","columns-3":"_columns-3_a5bhb_39","buttons-3":"_buttons-3_a5bhb_44","columns-4":"_columns-4_a5bhb_48","buttons-4":"_buttons-4_a5bhb_53","columns-5":"_columns-5_a5bhb_57","buttons-5":"_buttons-5_a5bhb_62","columns-6":"_columns-6_a5bhb_66","buttons-6":"_buttons-6_a5bhb_71"},Hr=d=>{var u=d,{children:e,initialValues:t,onReset:n,onSubmit:s,onClickSubmit:o,columns:l=1,hasReset:c=!0,className:a}=u,i=g(u,["children","initialValues","onReset","onSubmit","onClickSubmit","columns","hasReset","className"]);const{handleInputChange:b,handleSubmit:f,handleReset:p,resetSignal:w,valid:k}=Dr({initialValues:t,onReset:n,onSubmit:s,onClickSubmit:o}),C=l<=6&&l>=1?l:1,j=I([ke.form,a]),y=ke[`columns-${C}`],A=`${j} ${y}`,S=ke[`buttons-${C}`],E=`${ke.buttons} ${S}`,z=h.useMemo(()=>({onChangeFormInput:b,initialValues:t,resetSignal:w}),[b,t,w]);return r.jsx("form",v(x({onSubmit:f,onReset:p},i),{className:A,children:r.jsxs(le.Provider,{value:z,children:[e,r.jsxs("div",{className:E,children:[c&&r.jsx(U,{type:"reset",text:"Reset",icon:m.Clear,view:$.Secondary}),r.jsx(U,{type:"submit",text:"Submit",icon:m.Forward,extended:!c,disabled:!k})]})]})}))};function Pr({item:e,columns:t,renderDataItem:n}){const s=[];for(const o of t){let l;n&&e[o.field]?l=n(e,o.field):e[o.field]?l=e[o.field].toString():l="",s.push({field:o.field,value:l})}return s}const Nr="_cell_veiud_1",Vr={cell:Nr},Or=({value:e})=>r.jsx("td",{className:Vr.cell,children:e}),Wr="_checkbox_bpqws_2",Ur="_checkbox__disabled_bpqws_14",Fr="_checkbox_input_bpqws_26",Ce={checkbox:Wr,checkbox__disabled:Ur,checkbox_input:Fr},mt=a=>{var i=a,{name:e,label:t,disabled:n,required:s=!1,onChange:o,checked:l=!1}=i,c=g(i,["name","label","disabled","required","onChange","checked"]);const{elementId:d}=ee(c==null?void 0:c.id),u=I([Ce.checkbox,{[Ce.checkbox__disabled]:!!n,[Ce.checkbox__checked]:l}]);return r.jsxs("div",{className:u,children:[r.jsx("input",{id:d,name:e,type:"checkbox",disabled:n,required:s,checked:l,onChange:o,className:Ce.checkbox_input}),r.jsx(ce,{label:t,required:s,inputId:d,isTextHidden:!0,iconPosition:"left",icon:l?m.CheckboxChecked:m.CheckboxUnchecked})]})},Kr="_cell_veiud_1",qr={cell:Kr},Gr=({rowId:e,isRowSelected:t,selectRowById:n,deselectRowById:s,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?n(e):s(e)};return r.jsx("td",{className:qr.cell,children:r.jsx(mt,{label:"Select row",onChange:l,id:`select_row_${e}`,checked:t,disabled:o})})},Yr="_row_1qhna_1",Jr="_row__selected_1qhna_5",tt={row:Yr,row__selected:Jr},Xr=({rowId:e,selectRowById:t,deselectRowById:n,selectable:s,values:o,selectedIds:l,disabled:c})=>{const a=l.includes(e);return r.jsxs("tr",{className:I([tt.row,{[tt.row__selected]:a}]),children:[s&&r.jsx(Gr,{rowId:e,selectRowById:t,deselectRowById:n,isRowSelected:a,disabled:c}),o.map(i=>{const d=`cell-${e}-${i.field}`;return r.jsx(Or,{value:i.value},d)})]})},Zr="_body_1gm9g_1",Qr={body:Zr},eo=({selectRowById:e,deselectRowById:t,renderDataItem:n,selectedIds:s,selectable:o,data:l,columns:c})=>r.jsx("tbody",{className:Qr.body,children:l.map(a=>{const i=Pr({item:a,columns:c,renderDataItem:n});return r.jsx(Xr,{rowId:a.id,disabled:a==null?void 0:a.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:i,selectedIds:s},a.id)})}),to="_column_s4wq6_1",so="_column__first_s4wq6_4",no="_column__highlighted_s4wq6_7",he={column:to,column__first:so,column__highlighted:no},ro=({columns:e,selectable:t})=>r.jsxs("colgroup",{children:[t&&r.jsx("col",{className:I([he.column,he.column__first])}),e.map((n,s)=>r.jsx("col",{className:I([he.column,n==null?void 0:n.className,{[he.column__first]:s===0&&!t,[he.column__highlighted]:!!(n!=null&&n.highlighted)}])},n==null?void 0:n.title))]}),oo=({data:e,id:t,onSelect:n})=>{const{elementId:s}=ee(t),[o,l]=h.useState([]),c=e.map(w=>w.id),a=c.length===o.length,i=e.some(w=>w==null?void 0:w.disabled),d=w=>{l(w),n==null||n(w)};return{elementId:s,isAllSelected:a,isAllCheckboxDisabled:i,selectedIds:o,handleSelectAll:()=>{d(c)},handleDeselectAll:()=>{d([])},handleSelectRowById:w=>{const k=[...o,w];d(k)},handleDeselectRowById:w=>{const k=o.filter(C=>C!==w);d(k)}}},co="_grid_ion0k_1",lo="_grid_caption_ion0k_4",st={grid:co,grid_caption:lo},ao="_headerCell_wd2ft_1",io={headerCell:ao},uo=({title:e,component:t})=>{var n;return r.jsx("th",{className:io.headerCell,children:(n=t!=null?t:e)!=null?n:""})},ho="_headerCell_wd2ft_1",_o={headerCell:ho},fo=({gridId:e,isAllSelected:t,selectAll:n,deselectAll:s,disabled:o})=>{const l=c=>{const{checked:a}=c.target;a?n():s()};return r.jsx("th",{className:_o.headerCell,children:r.jsx(mt,{label:"Select all rows",onChange:l,id:`select_all_${e}`,checked:t,disabled:o})})},xo="_head_1jka0_1",wo="_head_row_1jka0_11",nt={head:xo,head_row:wo},po=({columns:e,gridId:t,selectAll:n,deselectAll:s,selectable:o,isAllSelected:l,isAllCheckboxDisabled:c=!1})=>r.jsx("thead",{className:nt.head,children:r.jsxs("tr",{className:nt.head_row,children:[o&&r.jsx(fo,{isAllSelected:l,disabled:c,gridId:t,selectAll:n,deselectAll:s}),e.map(a=>r.jsx(uo,{title:a.title,component:a.component},`${a.title}_${t}`))]})}),bo=d=>{var u=d,{columns:e,data:t,id:n,onSelect:s,renderDataItem:o,caption:l,selectable:c=!1,className:a}=u,i=g(u,["columns","data","id","onSelect","renderDataItem","caption","selectable","className"]);const{elementId:b,handleSelectAll:f,handleDeselectAll:p,isAllCheckboxDisabled:w,isAllSelected:k,handleDeselectRowById:C,handleSelectRowById:j,selectedIds:y}=oo({id:n,data:t,onSelect:s});return r.jsxs("table",v(x({},i),{className:I([st.grid,a]),children:[l&&r.jsx("caption",{className:st.grid_caption,children:l}),r.jsx(ro,{columns:e,selectable:c}),r.jsx(po,{gridId:b,columns:e,selectable:c,selectAll:f,deselectAll:p,isAllSelected:k,isAllCheckboxDisabled:w}),r.jsx(eo,{columns:e,data:t,selectable:c,selectRowById:j,deselectRowById:C,selectedIds:y,renderDataItem:o})]}))},vo="_menuLeaf_14bu7_2",mo={menuLeaf:vo},go=({item:e})=>{const{icon:t,link:n,label:s,onFocus:o,onClick:l,onHover:c}=e,a=n?r.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:s}):r.jsx("span",{children:s});return r.jsxs("li",{className:mo.menuLeaf,tabIndex:0,role:"menuitem",onFocus:o,onClick:l,onMouseOver:c,children:[r.jsx(G,{name:t,hidden:!0}),a]})},jo="_subMenu_gplve_2",ko="_text_gplve_19",rt={subMenu:jo,text:ko},Co=({item:e,isSubMenuOpened:t,toggleSubMenu:n,closeSubMenu:s,openSubMenu:o,openedOn:l,mode:c,children:a})=>{const{icon:i,link:d,label:u}=e,b=h.useRef(null),f=h.useRef(null),p=d?r.jsxs("a",{href:d,target:"_blank",rel:"noreferrer",children:[r.jsx(G,{name:i}),u]}):r.jsxs("span",{children:[r.jsx(G,{name:i}),u]}),w=C=>{C.stopPropagation(),C.key===" "&&n()};return fe({ref:b,dependentRef:f,onClickOutsideHandler:()=>{c!==Z.Vertical&&s()}}),r.jsxs("li",{className:rt.subMenu,tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":t,onKeyDown:w,onMouseEnter:l==="hover"?o:void 0,onMouseLeave:l==="hover"?s:void 0,ref:b,children:[r.jsxs("span",{className:rt.text,ref:f,onClick:n,onKeyDown:w,children:[p,r.jsx(G,{name:t?m.ArrowUp:m.ArrowDown})]}),t&&a]})},yo="_subMenuBar_1oeh1_55",Eo="_subMenuBar__horizontal_1oeh1_75",ot={subMenuBar:yo,subMenuBar__horizontal:Eo},gt=({item:e,mode:t,openedOn:n})=>{var u,b;const s=!((u=e==null?void 0:e.nestedItems)!=null&&u.length),[o,l]=h.useState(!1),c=I([ot.subMenuBar,{[ot.subMenuBar__horizontal]:t===Z.Horizontal}]);if(s)return r.jsx(go,{item:e});const a=()=>{l(!o)},i=()=>{l(!1)},d=()=>{l(!0)};return r.jsx(Co,{item:e,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:i,openSubMenu:d,mode:t,openedOn:n,children:r.jsx("ul",{className:c,role:"menu","aria-label":e.label,children:(b=e==null?void 0:e.nestedItems)==null?void 0:b.map(f=>r.jsx(gt,{item:f,mode:t,openedOn:n},f.id))})})},Mo="_menuBar_8vwv0_2",Io="_menuBar__vertical_8vwv0_13",ct={menuBar:Mo,menuBar__vertical:Io},So=l=>{var c=l,{items:e=[],mode:t=Z.Vertical,openedOn:n="click",className:s}=c,o=g(c,["items","mode","openedOn","className"]);const a=I([ct.menuBar,s,{[ct.menuBar__vertical]:t===Z.Vertical}]);return r.jsx("menu",v(x({},o),{className:a,children:e.map(i=>r.jsx(gt,{item:i,mode:t,openedOn:n},i.id))}))},Lo="_tabContent_cko15_1",Ao={tabContent:Lo},Ro=({tabs:e,selectedTabId:t,extendable:n,extendedTabContent:s})=>{var a;const o=(a=e.find(i=>i.id===t))==null?void 0:a.content,l=`tabpanel_${t}`,c=n&&!o;return r.jsx("div",{role:"tabpanel","data-testid":"tab-content","aria-labelledby":t,id:l,className:Ao.tabContent,children:c?s:o})},To="_editContainer_17et2_1",zo="_editContainer_input_17et2_9",Do="_editContainer_buttons_17et2_28",Te={editContainer:To,editContainer_input:zo,editContainer_buttons:Do},$o=({tabId:e,isEditMode:t,editValue:n,onInputChange:s,onInputBlur:o,onInputKeyDown:l,onSave:c,onCancel:a,cancelButtonId:i})=>{const d=h.useRef(null);return h.useEffect(()=>{t&&d.current&&(d.current.focus(),d.current.select())},[t]),r.jsxs("div",{className:Te.editContainer,children:[r.jsx("input",{ref:d,id:e+"-input",type:"text",value:n,onChange:s,onBlur:o,onKeyDown:l,className:Te.editContainer_input,maxLength:50}),r.jsxs("span",{className:Te.editContainer_buttons,children:[r.jsx(U,{view:$.Icon,icon:m.CheckMark,onClick:c,label:"Save tab title"}),r.jsx(U,{view:$.Icon,icon:m.Cancel,onClick:a,label:"Cancel tab title change",id:i})]})]})},Bo="_tab_5hucd_2",Ho="_tab_wrapper_5hucd_26",Po="_tab_wrapper__selected_5hucd_36",No="_tab_wrapper__vertical_5hucd_41",Vo="_tab_wrapper__stretched_5hucd_45",Oo="_tab_wrapper__disabled_5hucd_48",Wo="_tab_wrapper__inactive_5hucd_52",Uo="_tab_buttons_5hucd_58",se={tab:Bo,tab_wrapper:Ho,tab_wrapper__selected:Po,tab_wrapper__vertical:No,tab_wrapper__stretched:Vo,tab_wrapper__disabled:Oo,tab_wrapper__inactive:Wo,tab_buttons:Uo},Fo=({title:e,onTabSelect:t,onTabTitleChange:n,onTabDelete:s,tabId:o,isSelected:l,isDisabled:c=!1,stretched:a=!1,editable:i=!1,extendable:d=!1,tabPanelId:u,mode:b})=>{const[f,p]=h.useState(!1),[w,k]=h.useState(e),C=h.useRef(null),j=h.useId(),y=i&&!c&&l,A=d&&!c&&!!s&&l,S=y||A,E=I([se.tab_wrapper,{[se.tab_wrapper__disabled]:c,[se.tab_wrapper__vertical]:b===Z.Vertical,[se.tab_wrapper__selected]:l,[se.tab_wrapper__stretched]:a,[se.tab_wrapper__editable]:i,[se.tab_wrapper__inactive]:!l}]);h.useEffect(()=>{f&&C.current&&(C.current.focus(),C.current.select())},[f]),h.useEffect(()=>{k(e)},[e]);const z=()=>{c||p(!f)},L=()=>{f||t(o)},R=B=>{k(B.target.value)},F=B=>{const P=B.relatedTarget;(P==null?void 0:P.id)===j||H()},Y=B=>{B.key==="Enter"?(B.preventDefault(),H()):B.key==="Escape"&&(B.preventDefault(),K())},H=()=>{w.trim()&&w!==e?n==null||n(w.trim()):k(e),p(!1)},K=()=>{k(e),p(!1)};return r.jsx("span",{className:E,children:f?r.jsx($o,{tabId:o,editValue:w,isEditMode:f,onInputChange:R,onInputBlur:F,onInputKeyDown:Y,onSave:H,onCancel:K,cancelButtonId:j}):r.jsxs(r.Fragment,{children:[r.jsx("button",{role:"tab",id:o,onClick:L,"aria-selected":l,"aria-controls":u,className:se.tab,disabled:c,children:w}),S&&r.jsxs("span",{className:se.tab_buttons,children:[y&&r.jsx(U,{view:$.Icon,icon:m.Edit,onClick:z,label:"Edit tab",tooltip:"Edit tab"}),A&&r.jsx(U,{view:$.Icon,icon:m.Delete,onClick:()=>s==null?void 0:s(o),label:"Delete tab",tooltip:"Delete tab"})]})]})})},Ko="_tabList_tq8bk_1",qo="_tabList__vertical_tq8bk_13",Go="_tabList_addButton_tq8bk_23",ze={tabList:Ko,tabList__vertical:qo,tabList_addButton:Go},Yo=({tabs:e,onTabSelect:t,onTabTitleChange:n,selectedTabId:s,tabPanelIds:o,mode:l,tabIds:c,stretched:a,editable:i=!1,extendable:d=!1,onTabAdd:u,onTabDelete:b,initialTabsCount:f})=>{const p=I([ze.tabList,{[ze.tabList__vertical]:l===Z.Vertical}]),w=j=>{const y=c.indexOf(s);if(!["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(j.key)||(j.preventDefault(),j.key==="ArrowUp"&&l===Z.Horizontal||j.key==="ArrowLeft"&&l===Z.Vertical))return;const S=j.key==="ArrowLeft"||j.key==="ArrowUp"?k(y,c.length):C(y,c.length),E=c[S];E&&(ye(E),t(E))},k=(j,y)=>j-1>=0?j-1:y-1,C=(j,y)=>j===y-1?0:j+1;return h.useEffect(()=>{e.length>f&&t(e.at(-1).id)},[e.length]),r.jsxs("div",{role:"tablist","data-testid":"tab-list",tabIndex:0,onKeyDown:w,className:p,children:[e.map(({id:j,title:y,disabled:A},S)=>r.jsx(Fo,{title:y,onTabSelect:t,onTabTitleChange:n?E=>n(j,E):void 0,tabId:j,isSelected:j===s,isDisabled:A,tabPanelId:o[S],mode:l,stretched:a,editable:i,extendable:d,onTabDelete:b},j)),d&&r.jsx(U,{label:"Add Tab",tooltip:"Add Tab",view:$.Icon,icon:m.PlusCircle,onClick:u,className:ze.tabList_addButton})]})},Jo="_tabs_13prm_2",Xo="_tabs__vertical_13prm_7",lt={tabs:Jo,tabs__vertical:Xo},Zo=w=>{var k=w,{tabs:e,defaultTabId:t,className:n,mode:s=Z.Horizontal,stretched:o=!1,editable:l=!1,extendable:c=!1,extendedTabLabel:a="New Tab",extendedTabContent:i,onTabTitleChange:d,onTabAdd:u,onTabSelect:b,onTabDelete:f}=k,p=g(k,["tabs","defaultTabId","className","mode","stretched","editable","extendable","extendedTabLabel","extendedTabContent","onTabTitleChange","onTabAdd","onTabSelect","onTabDelete"]);const[C,j]=h.useState(e),y=e.length,[A,S]=h.useState(y+1),E=C.map(T=>T.id),z=E.map(T=>`tabpanel_${T}`),L=t&&E.includes(t)?t:E[0],[R,F]=h.useState(L),Y=I([lt.tabs,n,{[lt.tabs__vertical]:s===Z.Vertical}]),H=T=>{F(T),b==null||b(T)},K=(T,N)=>{j(V=>V.map(J=>J.id===T?v(x({},J),{title:N}):J)),d==null||d(T,N)},B=()=>{const T=`added-tab-${A}`,N=a||`Tab ${A}`,V={id:T,title:N,content:i||r.jsx("div",{})};j(J=>[...J,V]),S(J=>J+1),u==null||u()},P=T=>{if(j(N=>N.filter(V=>V.id!==T)),R===T){const N=E.indexOf(T);let V;N>0?V=E[N-1]:E.length>1?V=E[1]:V=void 0,V&&H(V)}f==null||f(T)};return r.jsxs("div",v(x({},p),{className:Y,children:[r.jsx(Yo,{tabs:C,selectedTabId:R,tabPanelIds:z,onTabSelect:H,onTabTitleChange:K,mode:s,tabIds:E,stretched:o,editable:l,extendable:c,onTabAdd:B,initialTabsCount:y,onTabDelete:P}),r.jsx(Ro,{tabs:C,selectedTabId:R,extendedTabContent:i,extendable:c})]}))};exports.Alert=Pn;exports.AlertMode=q;exports.Button=U;exports.ButtonView=$;exports.Checkbox=Fn;exports.Dialog=Ar;exports.EditableText=ns;exports.ErrorMessage=$e;exports.Form=Hr;exports.FormContext=le;exports.Grid=bo;exports.Header=Be;exports.Icon=G;exports.IconName=m;exports.Input=Me;exports.Label=ce;exports.Link=cn;exports.Loader=En;exports.LoaderView=X;exports.Menu=So;exports.MultiSelect=or;exports.NumericInput=ur;exports.OrientationMode=Z;exports.Portal=Ie;exports.Search=fr;exports.Select=mr;exports.Tabs=Zo;exports.TextInput=Er;exports.ThemeContext=Oe;exports.ThemeMode=oe;exports.ThemeProvider=In;exports.Tooltip=pt;exports.TooltipContainer=De;exports.useAutoClose=Ne;exports.useClickOutside=fe;exports.useContainerDimensions=ht;exports.useDebounce=_t;exports.useElementIds=ee;exports.useIsMounted=Ve;exports.useIsOverflow=Mn;exports.useKeyPress=xe;exports.useModalFocusTrap=ft;exports.useResetFormInput=ie;exports.useTheme=Sn;exports.useTooltipPosition=wt;exports.useWindowDimensions=xt;
|
|
23
23
|
//# sourceMappingURL=index.cjs.js.map
|