air-command-ui-library
Version:
A React component library for Air Command System with Storybook
158 lines • 92.1 kB
JavaScript
import{jsxs as e,jsx as t}from"react/jsx-runtime";import n,{forwardRef as o,useState as r,useCallback as a,useEffect as l,useRef as i,useDebugValue as s,createElement as c,useContext as d,createContext as u}from"react";import{useTranslation as m}from"react-i18next";import{createPortal as p}from"react-dom";var h=function(){return h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h.apply(this,arguments)};function f(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function g(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var b={button:"Button-module_button__2ZuB7","button--xs":"Button-module_button--xs__mqYfR","button--sm":"Button-module_button--sm__-XOLs","button--md":"Button-module_button--md__-GRga","button--lg":"Button-module_button--lg__p-URz","button--icon-only":"Button-module_button--icon-only__-ILwS","button--primary":"Button-module_button--primary__0eqDM","button--danger":"Button-module_button--danger__y2uGS","button--warning":"Button-module_button--warning__cp3iP","button--white":"Button-module_button--white__gGIPa","button--black":"Button-module_button--black__D27Dd","button--cancel":"Button-module_button--cancel__cC2PL","button--outline":"Button-module_button--outline__eVhnr","button--dark":"Button-module_button--dark__jf0ou","button--disabled":"Button-module_button--disabled__Ahfhc",icon:"Button-module_icon__-43u5",content:"Button-module_content__EKXmF"};const v=o((n,o)=>{var r,a,{color:l="primary",size:i="md",width:s,outline:c=!1,theme:d="light",icon:u,iconOnly:m=!1,children:p,className:h,style:g,disabled:v,"aria-label":y}=n,_=f(n,["color","size","width","outline","theme","icon","iconOnly","children","className","style","disabled","aria-label"]);const w=[b.button,b[`button--${l}`],b[`button--${i}`],b[`button--${d}`],c&&b["button--outline"],m&&b["button--icon-only"],v&&b["button--disabled"],h].filter(Boolean).join(" "),C=Object.assign(Object.assign({},g),s&&{width:s});if(m&&!y)try{null===(a=null===(r=globalThis.console)||void 0===r?void 0:r.warn)||void 0===a||a.call(r,"Button: iconOnly buttons should have an aria-label for accessibility")}catch(e){}return e("button",Object.assign({ref:o,className:w,style:C,disabled:v,"aria-label":y},_,{children:[u&&t("span",{className:b.icon,children:u}),!m&&p&&t("span",{className:b.content,children:p})]}))});v.displayName="Button";var y={container:"Input-module_container__zLqel",label:"Input-module_label__-OEBL",input:"Input-module_input__WjT81","input--light":"Input-module_input--light__KsLg2","label--light":"Input-module_label--light__HTudv","input--dark":"Input-module_input--dark__O4OLT","label--dark":"Input-module_label--dark__rnggC","input--error":"Input-module_input--error__M6Mva",errorMessage:"Input-module_errorMessage__rP4NL"};const _=o((n,o)=>{var{theme:r="light",type:a="text",placeholder:l,label:i,disabled:s=!1,error:c=!1,errorMessage:d,width:u,className:m}=n,p=f(n,["theme","type","placeholder","label","disabled","error","errorMessage","width","className"]);const h=[y.input,y[`input--${r}`],c&&y["input--error"],m].filter(Boolean).join(" "),g=Object.assign({},u&&{width:u}),b=[y.label,y[`label--${r}`]].filter(Boolean).join(" ");return e("div",{className:y.container,children:[i&&t("label",{className:b,children:i}),t("input",Object.assign({ref:o,type:a,placeholder:l,disabled:s,className:h,style:g},p)),c&&d&&t("span",{className:y.errorMessage,children:d})]})});_.displayName="Input";var w={table:"Table-module_table__Dkosn","table--bordered":"Table-module_table--bordered__R4uKP","table--dark":"Table-module_table--dark__PYrbm",tableWrapper:"Table-module_tableWrapper__RrJlk",tableElement:"Table-module_tableElement__O-g1O",tableHead:"Table-module_tableHead__u0Ap5",tableHeaderCell:"Table-module_tableHeaderCell__AxkAJ",sortableHeader:"Table-module_sortableHeader__kziwl",headerButton:"Table-module_headerButton__ZDpwC",headerContent:"Table-module_headerContent__tzwme",headerText:"Table-module_headerText__v3vJx",sortButton:"Table-module_sortButton__V9clQ",tableBody:"Table-module_tableBody__hME-z",tableRow:"Table-module_tableRow__snnCC","tableRow--selected":"Table-module_tableRow--selected__eP6Wv",tableCell:"Table-module_tableCell__nwzFB",classificationText:"Table-module_classificationText__OKnkg",classificationDot:"Table-module_classificationDot__htS7E","align--left":"Table-module_align--left__lEvls","align--center":"Table-module_align--center__PmXpI","align--right":"Table-module_align--right__5Vj9Y",classificationCell:"Table-module_classificationCell__NLycl","classification--friendly":"Table-module_classification--friendly__wnDEx","classification--hostile":"Table-module_classification--hostile__tB0c-","classification--neutral":"Table-module_classification--neutral__ZrkTn","classification--unknown":"Table-module_classification--unknown__mftR1","classificationText--friendly":"Table-module_classificationText--friendly__HxBbS","classificationText--hostile":"Table-module_classificationText--hostile__7Q3V5","classificationText--neutral":"Table-module_classificationText--neutral__pgAGS","classificationText--unknown":"Table-module_classificationText--unknown__Q3bmE","tableRow--clickable":"Table-module_tableRow--clickable__Bygb8",loading:"Table-module_loading__BI6XS",empty:"Table-module_empty__O1nyD",compoundSortIndicator:"Table-module_compoundSortIndicator__okp5-",sortNumber:"Table-module_sortNumber__PmDXz",cancelAnimation:"Table-module_cancelAnimation__UOruQ",fadeInOut:"Table-module_fadeInOut__yVoFQ"};const C=n=>e("svg",Object.assign({},n,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("g",{clipPath:"url(#clip0_3592_1179)",children:t("path",{d:"M11.0706 5.36641L6.62979 0.920122C6.54532 0.839164 6.44572 0.775702 6.3367 0.733378C6.12047 0.644436 5.87793 0.644436 5.6617 0.733378C5.55268 0.775702 5.45307 0.839164 5.36861 0.920122L0.927825 5.36641C0.845015 5.44933 0.779326 5.54776 0.73451 5.65609C0.689693 5.76442 0.666626 5.88053 0.666626 5.99779C0.666626 6.2346 0.760582 6.46171 0.927825 6.62916C1.09507 6.79661 1.3219 6.89068 1.55842 6.89068C1.79493 6.89068 2.02176 6.79661 2.18901 6.62916L5.11104 3.69461V10.4441C5.11104 10.6799 5.20462 10.9061 5.37118 11.0729C5.53774 11.2396 5.76365 11.3333 5.9992 11.3333C6.23475 11.3333 6.46066 11.2396 6.62722 11.0729C6.79378 10.9061 6.88736 10.6799 6.88736 10.4441V3.69461L9.80939 6.62916C9.89196 6.71251 9.99019 6.77866 10.0984 6.82381C10.2066 6.86896 10.3227 6.8922 10.44 6.8922C10.5572 6.8922 10.6733 6.86896 10.7815 6.82381C10.8898 6.77866 10.988 6.71251 11.0706 6.62916C11.1538 6.54649 11.2199 6.44814 11.265 6.33977C11.3101 6.23141 11.3333 6.11518 11.3333 5.99779C11.3333 5.88039 11.3101 5.76416 11.265 5.6558C11.2199 5.54743 11.1538 5.44908 11.0706 5.36641Z",fill:"currentColor"})}),t("defs",{children:t("clipPath",{id:"clip0_3592_1179",children:t("rect",{width:"12",height:"12",fill:"white"})})})]})),k=n=>e("svg",Object.assign({},n,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("g",{clipPath:"url(#clip0_3592_1173)",children:t("path",{d:"M0.929429 6.63359L5.37021 11.0799C5.45468 11.1608 5.55428 11.2243 5.6633 11.2666C5.87953 11.3556 6.12207 11.3556 6.3383 11.2666C6.44732 11.2243 6.54693 11.1608 6.63139 11.0799L11.0722 6.63359C11.155 6.55067 11.2207 6.45224 11.2655 6.34391C11.3103 6.23558 11.3334 6.11947 11.3334 6.00221C11.3334 5.7654 11.2394 5.53829 11.0722 5.37084C10.9049 5.20339 10.6781 5.10932 10.4416 5.10932C10.2051 5.10932 9.97824 5.20339 9.81099 5.37084L6.88896 8.30539L6.88896 1.55592C6.88896 1.32008 6.79538 1.09389 6.62882 0.927125C6.46226 0.760356 6.23636 0.666667 6.0008 0.666667C5.76525 0.666667 5.53934 0.760355 5.37278 0.927124C5.20622 1.09389 5.11265 1.32008 5.11265 1.55592L5.11264 8.30539L2.19061 5.37084C2.10804 5.28749 2.00981 5.22134 1.90158 5.17619C1.79335 5.13104 1.67727 5.1078 1.56002 5.1078C1.44277 5.1078 1.32669 5.13104 1.21846 5.17619C1.11023 5.22134 1.01199 5.28749 0.92943 5.37084C0.846184 5.45351 0.780109 5.55186 0.735018 5.66023C0.689928 5.76859 0.666714 5.88482 0.666714 6.00221C0.666714 6.11961 0.689928 6.23584 0.735018 6.3442C0.780109 6.45257 0.846184 6.55092 0.929429 6.63359Z",fill:"currentColor"})}),t("defs",{children:t("clipPath",{id:"clip0_3592_1173",children:t("rect",{width:"12",height:"12",fill:"white",transform:"translate(12 12) rotate(-180)"})})})]})),x=()=>t(C,{style:{display:"inline-block",color:"#4d4dff"}}),N=()=>t(k,{style:{display:"inline-block",color:"#4d4dff"}}),L=o((n,o)=>{var{columns:i,dataSource:s,theme:c="light",selectedRowKeys:d=[],onRowSelectionChange:u,onSort:p,loading:h=!1,emptyText:g="No data",height:b,bordered:v=!0,className:y,style:_,compoundSortState:C}=n,k=f(n,["columns","dataSource","theme","selectedRowKeys","onRowSelectionChange","onSort","loading","emptyText","height","bordered","className","style","compoundSortState"]);const{t:L}=m(),[S]=r({columnKey:null,direction:null}),[B,T]=r({primary:{columnKey:null,direction:null},secondary:{columnKey:null,direction:null}}),[M,$]=r(null),O=a(e=>{let t="asc";const n=null!=C?C:B;return n.primary.columnKey===e?"asc"===n.primary.direction?t="desc":"desc"===n.primary.direction&&(t=null):n.secondary.columnKey===e&&("asc"===n.secondary.direction?t="desc":"desc"===n.secondary.direction&&(t=null)),null===t?(n.primary.columnKey===e?n.secondary.columnKey&&n.secondary.direction?C||T(e=>({primary:Object.assign({},e.secondary),secondary:{columnKey:null,direction:null}})):C||T(()=>({primary:{columnKey:null,direction:null},secondary:{columnKey:null,direction:null}})):n.secondary.columnKey===e&&(C||T(e=>({primary:e.primary,secondary:{columnKey:null,direction:null}}))),$({columnKey:e,timer:globalThis.setTimeout(()=>{$(null)},1e3)}),void(null==p||p(e,t))):n.primary.columnKey===e?(C||T(n=>Object.assign(Object.assign({},n),{primary:{columnKey:e,direction:t}})),void(null==p||p(e,t))):n.secondary.columnKey===e?(C||T(n=>Object.assign(Object.assign({},n),{secondary:{columnKey:e,direction:t}})),void(null==p||p(e,t))):!n.primary.columnKey||!n.primary.direction||n.secondary.columnKey&&n.secondary.direction?n.primary.columnKey&&n.primary.direction?n.secondary.columnKey&&n.secondary.direction?(C||T(n=>({primary:n.secondary,secondary:{columnKey:e,direction:t}})),null==p||p(e,t),(null==M?void 0:M.timer)&&globalThis.clearTimeout(M.timer),void $(null)):(C||T(n=>Object.assign(Object.assign({},n),{secondary:{columnKey:e,direction:t}})),void(null==p||p(e,t))):(C||T(n=>Object.assign(Object.assign({},n),{primary:{columnKey:e,direction:t}})),void(null==p||p(e,t))):(C||T(n=>({primary:Object.assign({},n.primary),secondary:{columnKey:e,direction:t}})),void(null==p||p(e,t)))},[B,C,p,M]);l(()=>()=>{(null==M?void 0:M.timer)&&globalThis.clearTimeout(M.timer)},[M]);const P=a(e=>{if(!u)return;const t=d.includes(e);let n;n=t?[]:[e];const o=s.filter(e=>n.includes(e.key));u(n,o)},[d,u,s]),I=n=>{const o=null!=C?C:B,{primary:r,secondary:a}=o;if((null==M?void 0:M.columnKey)===n)return t("div",{className:w.compoundSortIndicator,children:t("span",{className:w.cancelAnimation,children:"-"})});if(r.columnKey&&r.direction&&a.columnKey&&a.direction){if(r.columnKey===n)return e("div",{className:w.compoundSortIndicator,children:[t("span",{className:w.sortNumber,children:"1"}),"asc"===r.direction?t(x,{}):t(N,{})]});if(a.columnKey===n)return e("div",{className:w.compoundSortIndicator,children:[t("span",{className:w.sortNumber,children:"2"}),"asc"===a.direction?t(x,{}):t(N,{})]})}return r.columnKey!==n||!r.direction||a.columnKey&&a.direction?a.columnKey!==n||!a.direction||r.columnKey&&r.direction?S.columnKey===n&&S.direction?t("div",{className:w.compoundSortIndicator,children:"asc"===S.direction?t(x,{}):t(N,{})}):null:t("div",{className:w.compoundSortIndicator,children:"asc"===a.direction?t(x,{}):t(N,{})}):t("div",{className:w.compoundSortIndicator,children:"asc"===r.direction?t(x,{}):t(N,{})})},A=[w.table,w[`table--${c}`],v&&w["table--bordered"],y].filter(Boolean).join(" "),D=Object.assign(Object.assign({},_),b&&{height:b});return h?t("div",Object.assign({ref:o,className:A,style:D},k,{children:t("div",{className:w.loading,children:L("common.loading")})})):0===s.length?t("div",Object.assign({ref:o,className:A,style:D},k,{children:t("div",{className:w.empty,children:g||L("common.noData")})})):t("div",Object.assign({ref:o,className:A,style:D},k,{children:t("div",{className:w.tableWrapper,children:e("table",{className:w.tableElement,children:[t("thead",{className:w.tableHead,children:t("tr",{children:i.map(n=>t("th",{className:`${w.tableHeaderCell} ${n.align?w[`align--${n.align}`]:""} ${n.sortable?w.sortableHeader:""}`,style:{width:n.width},onClick:n.sortable?()=>O(n.key):void 0,children:e("div",{className:w.headerContent,children:[t("span",{className:w.headerText,children:n.title}),n.sortable&&I(n.key)]})},n.key))})}),t("tbody",{className:w.tableBody,children:s.map((n,o)=>{const r=d.includes(n.key);return t("tr",{className:`${w.tableRow} ${r?w["tableRow--selected"]:""} ${w["tableRow--clickable"]}`,onClick:()=>P(n.key),children:i.map(r=>{const a=n[r.dataIndex];let l=a;return r.render?l=r.render(a,n,o):"classification"===r.dataIndex&&"string"==typeof a?l=(n=>{const o=n.toLowerCase();return e("div",{className:w.classificationCell,children:[t("span",{className:`${w.classificationDot} ${w[`classification--${o}`]}`}),t("span",{className:`${w.classificationText} ${w[`classificationText--${o}`]}`,children:n})]})})(a):"latitude"!==r.dataIndex&&"longitude"!==r.dataIndex||"number"!=typeof a||(l=a.toFixed(6)),t("td",{className:`${w.tableCell} ${r.align?w[`align--${r.align}`]:""}`,style:{width:r.width},children:l},r.key)})},n.key)})})]})})}))});L.displayName="Table";var S={combobox:"ComboBox-module_combobox__DXzYn",label:"ComboBox-module_label__e2wbc",trigger:"ComboBox-module_trigger__rxff2","trigger--disabled":"ComboBox-module_trigger--disabled__HFXJk","trigger--sm":"ComboBox-module_trigger--sm__PonZm","trigger--md":"ComboBox-module_trigger--md__woKSZ","trigger--lg":"ComboBox-module_trigger--lg__UUp1m",placeholder:"ComboBox-module_placeholder__-8hfX",value:"ComboBox-module_value__e-ces",arrow:"ComboBox-module_arrow__3W-3l","arrow--open":"ComboBox-module_arrow--open__Z0PwB",dropdown:"ComboBox-module_dropdown__CkUge",fadeIn:"ComboBox-module_fadeIn__vx8xz",option:"ComboBox-module_option__E86BE","option--disabled":"ComboBox-module_option--disabled__viUbY","option--selected":"ComboBox-module_option--selected__mtL9o","option--highlighted":"ComboBox-module_option--highlighted__SxV73","combobox--dark":"ComboBox-module_combobox--dark__nA5KY","trigger--error":"ComboBox-module_trigger--error__s-jS4","helper-text":"ComboBox-module_helper-text__Mq6gh","helper-text--error":"ComboBox-module_helper-text--error__bfJGC","search-input":"ComboBox-module_search-input__20T0G","no-options":"ComboBox-module_no-options__JAnLE"};const B=o((n,o)=>{var{options:a=[],value:s,onChange:c,label:d,placeholder:u="Select an option...",disabled:m=!1,theme:p="light",size:h="md",searchable:g=!1,width:b,error:v=!1,helperText:y,required:_=!1,name:w,className:C,style:k}=n,x=f(n,["options","value","onChange","label","placeholder","disabled","theme","size","searchable","width","error","helperText","required","name","className","style"]);const[N,L]=r(!1),[B,T]=r(""),[M,$]=r(-1),O=i(null),P=i(null),I=i(null),A=a.find(e=>e.value===s),D=g?a.filter(e=>e.label.toLowerCase().includes(B.toLowerCase())):a,E=e=>{var t;null==c||c(e),L(!1),T(""),$(-1),null===(t=P.current)||void 0===t||t.focus()};l(()=>{var e;const t=e=>{O.current&&!O.current.contains(e.target)&&(L(!1),T(""),$(-1))};if("undefined"!=typeof window)return null===(e=globalThis.document)||void 0===e||e.addEventListener("mousedown",t),()=>{var e;return null===(e=globalThis.document)||void 0===e?void 0:e.removeEventListener("mousedown",t)}},[]),l(()=>{var e;const t=e=>{var t;if(N)switch(e.key){case"ArrowDown":e.preventDefault(),$(e=>e<D.length-1?e+1:0);break;case"ArrowUp":e.preventDefault(),$(e=>e>0?e-1:D.length-1);break;case"Enter":e.preventDefault(),M>=0&&D[M]&&E(D[M].value);break;case"Escape":e.preventDefault(),L(!1),T(""),$(-1),null===(t=P.current)||void 0===t||t.focus()}};if("undefined"!=typeof window)return null===(e=globalThis.document)||void 0===e||e.addEventListener("keydown",t),()=>{var e;return null===(e=globalThis.document)||void 0===e?void 0:e.removeEventListener("keydown",t)}},[N,M,D,E]),l(()=>{$(-1)},[B]);const V=[S.combobox,S[`combobox--${p}`],C].filter(Boolean).join(" "),R=[S.trigger,S[`trigger--${h}`],m&&S["trigger--disabled"],v&&S["trigger--error"]].filter(Boolean).join(" "),j=[S.arrow,N&&S["arrow--open"]].filter(Boolean).join(" "),H=Object.assign(Object.assign({},k),b&&{width:b});return e("div",Object.assign({ref:o||O,className:V,style:H},x,{children:[d&&t("label",{className:S.label,children:d}),e("button",{ref:P,type:"button",className:R,onClick:()=>{m||(L(!N),N||(T(""),$(-1)))},disabled:m,"aria-haspopup":"listbox","aria-expanded":N,name:w,children:[g&&N?t("input",{type:"text",className:S["search-input"],value:B,onChange:e=>{T(e.target.value)},placeholder:u,autoFocus:!0,onClick:e=>e.stopPropagation()}):t("span",{className:A?S.value:S.placeholder,children:(null==A?void 0:A.label)||u}),t("svg",{className:j,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),N&&t("div",{ref:I,className:S.dropdown,role:"listbox",children:D.length>0?D.map((e,n)=>{const o=[S.option,e.value===s&&S["option--selected"],e.disabled&&S["option--disabled"],n===M&&S["option--highlighted"]].filter(Boolean).join(" ");return t("button",{type:"button",className:o,onClick:()=>!e.disabled&&E(e.value),disabled:e.disabled,role:"option","aria-selected":e.value===s,children:e.label},e.value)}):t("div",{className:S["no-options"],children:g&&B?"No options found":"No options available"})}),y&&t("div",{className:`${S["helper-text"]} ${v?S["helper-text--error"]:""}`,children:y})]}))});B.displayName="ComboBox";var T={navbar:"Navbar-module_navbar__Ey25T","navbar--light":"Navbar-module_navbar--light__bJMc7","navbar--dark":"Navbar-module_navbar--dark__DPoq3",navbarLeft:"Navbar-module_navbarLeft__8KVcI",navbarLogo:"Navbar-module_navbarLogo__sr34v",navbarTitle:"Navbar-module_navbarTitle__Sz-F6","navbarTitle--light":"Navbar-module_navbarTitle--light__IDFhu","navbarTitle--dark":"Navbar-module_navbarTitle--dark__yO8OQ",navbarRight:"Navbar-module_navbarRight__dgAkg",userInfo:"Navbar-module_userInfo__yDCa7","userInfo--light":"Navbar-module_userInfo--light__bFeRG","userInfo--dark":"Navbar-module_userInfo--dark__mk28a",navbarActions:"Navbar-module_navbarActions__NQtA-",iconButton:"Navbar-module_iconButton__rJ3Dm","iconButton--light":"Navbar-module_iconButton--light__Y2NNK","iconButton--dark":"Navbar-module_iconButton--dark__rstUA",languageButton:"Navbar-module_languageButton__8-ORg","languageButton--light":"Navbar-module_languageButton--light__LPtUS","languageButton--dark":"Navbar-module_languageButton--dark__1TGrU",logoutButton:"Navbar-module_logoutButton__-bsWL"};const M=n=>{var{title:o,user:a,onLogout:l,theme:i="dark",className:s,onThemeToggle:c,currentTheme:d,logo:u,showThemeToggle:p=!0,showLanguageToggle:h=!0,onLanguageToggle:g,currentLanguage:b="en"}=n,v=f(n,["title","user","onLogout","theme","className","onThemeToggle","currentTheme","logo","showThemeToggle","showLanguageToggle","onLanguageToggle","currentLanguage"]);const{t:y}=m(),[_,w]=r(i),C=d||_,k=[T.navbar,T[`navbar--${i}`],s].filter(Boolean).join(" "),x=[T.navbarTitle,T[`navbarTitle--${i}`]].filter(Boolean).join(" "),N=[T.userInfo,T[`userInfo--${i}`]].filter(Boolean).join(" "),L=[T.iconButton,T[`iconButton--${i}`]].filter(Boolean).join(" "),S=[T.languageButton,T[`languageButton--${i}`]].filter(Boolean).join(" ");return e("nav",Object.assign({className:k},v,{children:[e("div",{className:T.navbarLeft,children:[u&&t("img",{src:u,alt:"Logo",className:T.navbarLogo}),t("h1",{className:x,children:o})]}),e("div",{className:T.navbarRight,children:[a&&e("div",{className:N,children:[y("navbar.welcome")," ",a.name," ",a.role&&`(${a.role})`]}),e("div",{className:T.navbarActions,children:[p&&t("button",{className:L,onClick:()=>{c?c():w(e=>"light"===e?"dark":"light")},title:`Switch to ${"light"===C?"dark":"light"} theme`,children:t("svg","light"===C?{viewBox:"0 0 24 24",fill:"currentColor",children:t("path",{d:"M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.166a.75.75 0 00-1.06-1.06l-1.591 1.59a.75.75 0 101.06 1.061l1.591-1.59zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM17.834 18.894a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 10-1.061 1.06l1.59 1.591zM12 18a.75.75 0 01.75.75V21a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM7.758 17.303a.75.75 0 00-1.061-1.06l-1.591 1.59a.75.75 0 001.06 1.061l1.591-1.59zM6 12a.75.75 0 01-.75.75H3a.75.75 0 010-1.5h2.25A.75.75 0 016 12zM6.697 7.757a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 00-1.061 1.06l1.59 1.591z"})}:{viewBox:"0 0 24 24",fill:"currentColor",children:t("path",{fillRule:"evenodd",d:"M9.528 1.718a.75.75 0 01.162.819A8.97 8.97 0 009 6a9 9 0 009 9 8.97 8.97 0 003.463-.69.75.75 0 01.981.98 10.503 10.503 0 01-9.694 6.46c-5.799 0-10.5-4.701-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 01.818.162z",clipRule:"evenodd"})})}),h&&t("button",{className:S,onClick:g,title:"Switch to "+("en"===b?"Turkish":"English"),children:"en"===b?"En":"Tr"}),l&&t("button",{className:T.logoutButton,onClick:l,children:y("navbar.logout")})]})]})]}))};var $={statusBadge:"StatusBadge-module_statusBadge__rgWk4",statusDot:"StatusBadge-module_statusDot__Oq4lw",friendly:"StatusBadge-module_friendly__-j92o",hostile:"StatusBadge-module_hostile__WfEjB",neutral:"StatusBadge-module_neutral__YeWht",unknown:"StatusBadge-module_unknown__LvB5P",backgroundVariant:"StatusBadge-module_backgroundVariant__S8JY6",friendlyBackground:"StatusBadge-module_friendlyBackground__E0Sur",hostileBackground:"StatusBadge-module_hostileBackground__MdcNr",neutralBackground:"StatusBadge-module_neutralBackground__8XBNk",unknownBackground:"StatusBadge-module_unknownBackground__6m8jl",small:"StatusBadge-module_small__zb-N-",large:"StatusBadge-module_large__Hifby"};const O=o((n,o)=>{var{status:r,text:a,size:l="medium",variant:i="dot",className:s}=n,c=f(n,["status","text","size","variant","className"]);const d=[$.statusBadge,$[r],"background"===i&&$[`${r}Background`],"medium"!==l&&$[l],"background"===i&&$.backgroundVariant,s].filter(Boolean).join(" ");return e("span",Object.assign({ref:o,className:d},c,{children:["dot"===i&&t("span",{className:$.statusDot}),a||r]}))});function P(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}O.displayName="StatusBadge";var I=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,A=P(function(e){return I.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),D="-ms-",E="-moz-",V="-webkit-",R="comm",j="rule",H="decl",F="@keyframes",z=Math.abs,Z=String.fromCharCode,U=Object.assign;function K(e){return e.trim()}function W(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,n){return e.replace(t,n)}function Y(e,t,n){return e.indexOf(t,n)}function q(e,t){return 0|e.charCodeAt(t)}function X(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function J(e){return e.length}function ee(e,t){return t.push(e),e}function te(e,t){return e.filter(function(e){return!W(e,t)})}var ne=1,oe=1,re=0,ae=0,le=0,ie="";function se(e,t,n,o,r,a,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:ne,column:oe,length:l,return:"",siblings:i}}function ce(e,t){return U(se("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function de(e){for(;e.root;)e=ce(e.root,{children:[e]});ee(e,e.siblings)}function ue(){return le=ae>0?q(ie,--ae):0,oe--,10===le&&(oe=1,ne--),le}function me(){return le=ae<re?q(ie,ae++):0,oe++,10===le&&(oe=1,ne++),le}function pe(){return q(ie,ae)}function he(){return ae}function fe(e,t){return X(ie,e,t)}function ge(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function be(e){return K(fe(ae-1,_e(91===e?e+2:40===e?e+1:e)))}function ve(e){for(;(le=pe())&&le<33;)me();return ge(e)>2||ge(le)>3?"":" "}function ye(e,t){for(;--t&&me()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return fe(e,he()+(t<6&&32==pe()&&32==me()))}function _e(e){for(;me();)switch(le){case e:return ae;case 34:case 39:34!==e&&39!==e&&_e(le);break;case 40:41===e&&_e(e);break;case 92:me()}return ae}function we(e,t){for(;me()&&e+le!==57&&(e+le!==84||47!==pe()););return"/*"+fe(t,ae-1)+"*"+Z(47===e?e:me())}function Ce(e){for(;!ge(pe());)me();return fe(e,ae)}function ke(e){return function(e){return ie="",e}(xe("",null,null,null,[""],e=function(e){return ne=oe=1,re=Q(ie=e),ae=0,[]}(e),0,[0],e))}function xe(e,t,n,o,r,a,l,i,s){for(var c=0,d=0,u=l,m=0,p=0,h=0,f=1,g=1,b=1,v=0,y="",_=r,w=a,C=o,k=y;g;)switch(h=v,v=me()){case 40:if(108!=h&&58==q(k,u-1)){-1!=Y(k+=G(be(v),"&","&\f"),"&\f",z(c?i[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:k+=be(v);break;case 9:case 10:case 13:case 32:k+=ve(h);break;case 92:k+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:ee(Le(we(me(),he()),t,n,s),s);break;default:k+="/"}break;case 123*f:i[c++]=Q(k)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:-1==b&&(k=G(k,/\f/g,"")),p>0&&Q(k)-u&&ee(p>32?Se(k+";",o,n,u-1,s):Se(G(k," ","")+";",o,n,u-2,s),s);break;case 59:k+=";";default:if(ee(C=Ne(k,t,n,c,d,r,i,y,_=[],w=[],u,a),a),123===v)if(0===d)xe(k,t,C,C,_,a,u,i,w);else switch(99===m&&110===q(k,3)?100:m){case 100:case 108:case 109:case 115:xe(e,C,C,o&&ee(Ne(e,C,C,0,0,r,i,y,r,_=[],u,w),w),r,w,u,i,o?_:w);break;default:xe(k,C,C,C,[""],w,0,i,w)}}c=d=p=0,f=b=1,y=k="",u=l;break;case 58:u=1+Q(k),p=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==ue())continue;switch(k+=Z(v),v*f){case 38:b=d>0?1:(k+="\f",-1);break;case 44:i[c++]=(Q(k)-1)*b,b=1;break;case 64:45===pe()&&(k+=be(me())),m=pe(),d=u=Q(y=k+=Ce(he())),v++;break;case 45:45===h&&2==Q(k)&&(f=0)}}return a}function Ne(e,t,n,o,r,a,l,i,s,c,d,u){for(var m=r-1,p=0===r?a:[""],h=J(p),f=0,g=0,b=0;f<o;++f)for(var v=0,y=X(e,m+1,m=z(g=l[f])),_=e;v<h;++v)(_=K(g>0?p[v]+" "+y:G(y,/&\f/g,p[v])))&&(s[b++]=_);return se(e,t,n,0===r?j:i,s,c,d,u)}function Le(e,t,n,o){return se(e,t,n,R,Z(le),X(e,2,-2),0,o)}function Se(e,t,n,o,r){return se(e,t,n,H,X(e,0,o),X(e,o+1,-1),o,r)}function Be(e,t,n){switch(function(e,t){return 45^q(e,0)?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 4789:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+E+e+D+e+e;case 5936:switch(q(e,t+11)){case 114:return V+e+D+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+D+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+D+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return V+e+D+e+e;case 6165:return V+e+D+"flex-"+e+e;case 5187:return V+e+G(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return V+e+D+"flex-item-"+G(e,/flex-|-self/g,"")+(W(e,/flex-|baseline/)?"":D+"grid-row-"+G(e,/flex-|-self/g,""))+e;case 4675:return V+e+D+"flex-line-pack"+G(e,/align-content|flex-|-self/g,"")+e;case 5548:return V+e+D+G(e,"shrink","negative")+e;case 5292:return V+e+D+G(e,"basis","preferred-size")+e;case 6060:return V+"box-"+G(e,"-grow","")+V+e+D+G(e,"grow","positive")+e;case 4554:return V+G(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4200:if(!W(e,/flex-|baseline/))return D+"grid-column-align"+X(e,t)+e;break;case 2592:case 3360:return D+G(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,W(e.props,/grid-\w+-end/)})?~Y(e+(n=n[t].value),"span",0)?e:D+G(e,"-start","")+e+D+"grid-row-span:"+(~Y(n,"span",0)?W(n,/\d+/):+W(n,/\d+/)-+W(e,/\d+/))+";":D+G(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return W(e.props,/grid-\w+-start/)})?e:D+G(G(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(q(e,t+1)){case 109:if(45!==q(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+E+(108==q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Y(e,"stretch",0)?Be(G(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return G(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,l,i){return D+n+":"+o+i+(r?D+n+"-span:"+(a?l:+l-+o)+i:"")+e});case 4949:if(121===q(e,t+6))return G(e,":",":"+V)+e;break;case 6444:switch(q(e,45===q(e,14)?18:11)){case 120:return G(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+V+(45===q(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+D+"$2box$3")+e;case 100:return G(e,":",":"+D)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return G(e,"scroll-","scroll-snap-")+e}return e}function Te(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Me(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case R:return"";case F:return e.return=e.value+"{"+Te(e.children,o)+"}";case j:if(!Q(e.value=e.props.join(",")))return""}return Q(n=Te(e.children,o))?e.return=e.value+"{"+n+"}":""}function $e(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case H:return void(e.return=Be(e.value,e.length,n));case F:return Te([ce(e,{value:G(e.value,"@","@"+V)})],o);case j:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(W(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":de(ce(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})),de(ce(e,{props:[t]})),U(e,{props:te(n,o)});break;case"::placeholder":de(ce(e,{props:[G(t,/:(plac\w+)/,":"+V+"input-$1")]})),de(ce(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]})),de(ce(e,{props:[G(t,/:(plac\w+)/,D+"input-$1")]})),de(ce(e,{props:[t]})),U(e,{props:te(n,o)})}return""})}}var Oe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pe="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ie="active",Ae="data-styled-version",De="6.1.19",Ee="/*!sc*/\n",Ve="undefined"!=typeof window&&"undefined"!=typeof document,Re=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),je=/invalid hook call/i,He=new Set,Fe=function(e,t){if("production"!==process.env.NODE_ENV){var n=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(n," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",r=console.error;try{var a=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];je.test(e)?(a=!1,He.delete(o)):r.apply(void 0,g([e],t,!1))},i(),a&&!He.has(o)&&(console.warn(o),He.add(o))}catch(e){je.test(e.message)&&He.delete(o)}finally{console.error=r}}},ze=Object.freeze([]),Ze=Object.freeze({});var Ue=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,We=/(^-|-$)/g;function Ge(e){return e.replace(Ke,"-").replace(We,"")}var Ye=/(a)(d)/gi,qe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qe(t%52)+n;return(qe(t%52)+n).replace(Ye,"$1-$2")}var Qe,Je=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},et=function(e){return Je(5381,e)};function tt(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function nt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ot="function"==typeof Symbol&&Symbol.for,rt=ot?Symbol.for("react.memo"):60115,at=ot?Symbol.for("react.forward_ref"):60112,lt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},it={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},st={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ct=((Qe={})[at]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qe[rt]=st,Qe);function dt(e){return("type"in(t=e)&&t.type.$$typeof)===rt?st:"$$typeof"in e?ct[e.$$typeof]:lt;var t}var ut=Object.defineProperty,mt=Object.getOwnPropertyNames,pt=Object.getOwnPropertySymbols,ht=Object.getOwnPropertyDescriptor,ft=Object.getPrototypeOf,gt=Object.prototype;function bt(e,t,n){if("string"!=typeof t){if(gt){var o=ft(t);o&&o!==gt&&bt(e,o,n)}var r=mt(t);pt&&(r=r.concat(pt(t)));for(var a=dt(e),l=dt(t),i=0;i<r.length;++i){var s=r[i];if(!(s in it||n&&n[s]||l&&s in l||a&&s in a)){var c=ht(t,s);try{ut(e,s,c)}catch(e){}}}}return e}function vt(e){return"function"==typeof e}function yt(e){return"object"==typeof e&&"styledComponentId"in e}function _t(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function wt(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function Ct(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function kt(e,t,n){if(void 0===n&&(n=!1),!n&&!Ct(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=kt(e[o],t[o]);else if(Ct(t))for(var o in t)e[o]=kt(e[o],t[o]);return e}function xt(e,t){Object.defineProperty(e,"toString",{value:t})}var Nt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Lt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,a=e.length;r<a;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function St(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Lt.apply(void 0,g([Nt[e]],t,!1)).trim())}var Bt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw St(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var a=o;a<r;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(e+1),i=(a=0,t.length);a<i;a++)this.tag.insertRule(l,t[a])&&(this.groupSizes[e]++,l++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,a=o;a<r;a++)t+="".concat(this.tag.getRule(a)).concat(Ee);return t},e}(),Tt=1<<30,Mt=new Map,$t=new Map,Ot=1,Pt=function(e){if(Mt.has(e))return Mt.get(e);for(;$t.has(Ot);)Ot++;var t=Ot++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>Tt))throw St(16,"".concat(t));return Mt.set(e,t),$t.set(t,e),t},It=function(e,t){Ot=t+1,Mt.set(e,t),$t.set(t,e)},At="style[".concat(Pe,"][").concat(Ae,'="').concat(De,'"]'),Dt=new RegExp("^".concat(Pe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,n){for(var o,r=n.split(","),a=0,l=r.length;a<l;a++)(o=r[a])&&e.registerName(t,o)},Vt=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ee),r=[],a=0,l=o.length;a<l;a++){var i=o[a].trim();if(i){var s=i.match(Dt);if(s){var c=0|parseInt(s[1],10),d=s[2];0!==c&&(It(d,c),Et(e,d,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},Rt=function(e){for(var t=document.querySelectorAll(At),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(Pe)!==Ie&&(Vt(e,r),r.parentNode&&r.parentNode.removeChild(r))}};var jt=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Pe,"]")));return t[t.length-1]}(n),a=void 0!==r?r.nextSibling:null;o.setAttribute(Pe,Ie),o.setAttribute(Ae,De);var l="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return l&&o.setAttribute("nonce",l),n.insertBefore(o,a),o},Ht=function(){function e(e){this.element=jt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw St(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ft=function(){function e(e){this.element=jt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),zt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Zt=Ve,Ut={isServer:!Ve,useCSSOMInjection:!Re},Kt=function(){function e(e,t,n){void 0===e&&(e=Ze),void 0===t&&(t={});var o=this;this.options=h(h({},Ut),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ve&&Zt&&(Zt=!1,Rt(this)),xt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return $t.get(e)}(n);if(void 0===r)return"continue";var a=e.names.get(r),l=t.getGroup(n);if(void 0===a||!a.size||0===l.length)return"continue";var i="".concat(Pe,".g").concat(n,'[id="').concat(r,'"]'),s="";void 0!==a&&a.forEach(function(e){e.length>0&&(s+="".concat(e,","))}),o+="".concat(l).concat(i,'{content:"').concat(s,'"}').concat(Ee)},a=0;a<n;a++)r(a);return o}(o)})}return e.registerId=function(e){return Pt(e)},e.prototype.rehydrate=function(){!this.server&&Ve&&Rt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h(h({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new zt(n):t?new Ht(n):new Ft(n)}(this.options),new Bt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Pt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Pt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Pt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Wt=/&/g,Gt=/^\s*\/\/.*$/gm;function Yt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Yt(e.children,t)),e})}var qt=new Kt,Xt=function(){var e,t,n,o=Ze,r=o.options,a=void 0===r?Ze:r,l=o.plugins,i=void 0===l?ze:l,s=function(n,o,r){return r.startsWith(t)&&r.endsWith(t)&&r.replaceAll(t,"").length>0?".".concat(e):n},c=i.slice();c.push(function(e){e.type===j&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Wt,t).replace(n,s))}),a.prefix&&c.push($e),c.push(Me);var d=function(o,r,l,i){void 0===r&&(r=""),void 0===l&&(l=""),void 0===i&&(i="&"),e=i,t=r,n=new RegExp("\\".concat(t,"\\b"),"g");var s=o.replace(Gt,""),d=ke(l||r?"".concat(l," ").concat(r," { ").concat(s," }"):s);a.namespace&&(d=Yt(d,a.namespace));var u,m=[];return Te(d,function(e){var t=J(e);return function(n,o,r,a){for(var l="",i=0;i<t;i++)l+=e[i](n,o,r,a)||"";return l}}(c.concat((u=function(e){return m.push(e)},function(e){e.root||(e=e.return)&&u(e)})))),m};return d.hash=i.length?i.reduce(function(e,t){return t.name||St(15),Je(e,t.name)},5381).toString():"",d}(),Qt=n.createContext({shouldForwardProp:void 0,styleSheet:qt,stylis:Xt});function Jt(){return d(Qt)}Qt.Consumer,n.createContext(void 0);var en=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Xt);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,xt(this,function(){throw St(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Xt),this.name+e.hash},e}(),tn=function(e){return e>="A"&&e<="Z"};function nn(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;tn(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var on=function(e){return null==e||!1===e||""===e},rn=function(e){var t,n,o=[];for(var r in e){var a=e[r];e.hasOwnProperty(r)&&!on(a)&&(Array.isArray(a)&&a.isCss||vt(a)?o.push("".concat(nn(r),":"),a,";"):Ct(a)?o.push.apply(o,g(g(["".concat(r," {")],rn(a),!1),["}"],!1)):o.push("".concat(nn(r),": ").concat((t=r,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Oe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function an(e,t,n,o){if(on(e))return[];if(yt(e))return[".".concat(e.styledComponentId)];if(vt(e)){if(!vt(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof en||Ct(r)||null===r||console.error("".concat(tt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),an(r,t,n,o)}var a;return e instanceof en?n?(e.inject(n,o),[e.getName(o)]):[e]:Ct(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply(ze,e.map(function(e){return an(e,t,n,o)})):[e.toString()]}var ln=et(De),sn=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vt(n)&&!yt(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Je(ln,t),this.baseStyle=n,Kt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=_t(o,this.staticRulesId);else{var r=wt(an(this.rules,e,t,n)),a=Xe(Je(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,a)){var l=n(r,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,l)}o=_t(o,a),this.staticRulesId=a}else{for(var i=Je(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var d=this.rules[c];if("string"==typeof d)s+=d,"production"!==process.env.NODE_ENV&&(i=Je(i,d));else if(d){var u=wt(an(d,e,t,n));i=Je(i,u+c),s+=u}}if(s){var m=Xe(i>>>0);t.hasNameForId(this.componentId,m)||t.insertRules(this.componentId,m,n(s,".".concat(m),void 0,this.componentId)),o=_t(o,m)}}return o},e}(),cn=n.createContext(void 0);cn.Consumer;var dn={},un=new Set;function mn(e,t,o){var r=yt(e),a=e,l=!nt(e),i=t.attrs,d=void 0===i?ze:i,u=t.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ge(e);dn[n]=(dn[n]||0)+1;var o="".concat(n,"-").concat(function(e){return Xe(et(e)>>>0)}(De+n+dn[n]));return t?"".concat(t,"-").concat(o):o}(t.displayName,t.parentComponentId):u,p=t.displayName,f=void 0===p?function(e){return nt(e)?"styled.".concat(e):"Styled(".concat(tt(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Ge(t.displayName),"-").concat(t.componentId):t.componentId||m,b=r&&a.attrs?a.attrs.concat(d).filter(Boolean):d,v=t.shouldForwardProp;if(r&&a.shouldForwardProp){var y=a.shouldForwardProp;if(t.shouldForwardProp){var _=t.shouldForwardProp;v=function(e,t){return y(e,t)&&_(e,t)}}else v=y}var w=new sn(o,g,r?a.componentStyle:void 0);function C(e,t){return function(e,t,o){var r=e.attrs,a=e.componentStyle,l=e.defaultProps,i=e.foldedComponentIds,d=e.styledComponentId,u=e.target,m=n.useContext(cn),p=Jt(),f=e.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&s(d);var g=function(e,t,n){return void 0===n&&(n=Ze),e.theme!==n.theme&&e.theme||t||n.theme}(t,m,l)||Ze,b=function(e,t,n){for(var o,r=h(h({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var l=vt(o=e[a])?o(r):o;for(var i in l)r[i]="className"===i?_t(r[i],l[i]):"style"===i?h(h({},r[i]),l[i]):l[i]}return t.className&&(r.className=_t(r.className,t.className)),r}(r,t,g),v=b.as||u,y={};for(var _ in b)void 0===b[_]||"$"===_[0]||"as"===_||"theme"===_&&b.theme===g||("forwardedAs"===_?y.as=b.forwardedAs:f&&!f(_,v)||(y[_]=b[_],f||"development"!==process.env.NODE_ENV||A(_)||un.has(_)||!Ue.has(v)||(un.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var w=function(e,t){var n=Jt(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&s(o),o}(a,b);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var C=_t(i,d);return w&&(C+=" "+w),b.className&&(C+=" "+b.className),y[nt(v)&&!Ue.has(v)?"class":"className"]=C,o&&(y.ref=o),c(v,y)}(k,e,t)}C.displayName=f;var k=n.forwardRef(C);return k.attrs=b,k.componentStyle=w,k.displayName=f,k.shouldForwardProp=v,k.foldedComponentIds=r?_t(a.foldedComponentIds,a.styledComponentId):"",k.styledComponentId=g,k.target=r?a.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)kt(e,r[o],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Fe(f,g),k.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={}}}}(f,g)),xt(k,function(){return".".concat(k.styledComponentId)}),l&&bt(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function pn(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var hn=function(e){return Object.assign(e,{isCss:!0})};function fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vt(e)||Ct(e))return hn(an(pn(ze,g([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?an(o):hn(an(pn(o,t)))}function gn(e,t,n){if(void 0===n&&(n=Ze),!t)throw St(1,t);var o=function(o){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return e(t,n,fn.apply(void 0,g([o],r,!1)))};return o.attrs=function(o){return gn(e,t,h(h({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return gn(e,t,h(h({},n),o))},o}var bn=function(e){return gn(mn,e)},vn=bn;Ue.forEach(function(e){vn[e]=bn(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var yn="__sc-".concat(Pe,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[yn]||(window[yn]=0),1===window[yn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[yn]+=1);const _n={animation:{transition:"0.2s ease-in-out"},colors:{light:{modal:{background:"#ffffff",border:"#e5e7eb",overlay:"rgba(0, 0, 0, 0.5)",shadow:"0 25px 50px -12px rgba(0, 0, 0, 0.15)"},text:{primary:"#111827",secondary:"#6b7280",white:"#ffffff"},field:{evenBackground:"transparent",oddBackground:"#f8f8f8",border:"#e5e7eb"},header:{border:"#e5e7eb"},actions:{border:"#e5e7eb"}},dark:{modal:{background:"#171215",border:"#3a3b3e",overlay:"rgba(0, 0, 0, 0.6)",shadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},text:{primary:"#ffffff",secondary:"#8b8b8b",white:"#ffffff"},field:{evenBackground:"transparent",oddBackground:"#1d1b1d",border:"#2a2b2e"},header:{border:"#3a3b3e"},actions:{border:"#2a2b2e"}}},fonts:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif'}},wn=vn.div`
position: fixed;
top: 80px;
left: 20px;
background-color: ${({$themeVariant:e})=>_n.colors[e].modal.background};
border-radius: 5px;
box-shadow: ${({$themeVariant:e})=>_n.colors[e].modal.shadow};
width: 300px;
pointer-events: auto;
transform: ${({$isOpen:e})=>e?"scale(1)":"scale(0.95)"};
transition: transform ${_n.animation.transition};
border: 1px solid
${({$themeVariant:e})=>_n.colors[e].modal.border};
z-index: 500;
`,Cn=vn.div`
padding: 10px 16px 8px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid
${({$themeVariant:e})=>_n.colors[e].header.border};
`,kn=vn.div`
display: flex;
align-items: center;
gap: 12px;
flex: 1;
`,xn=vn.h2`
margin: 0;
font-size: 16px;
font-weight: 600;
color: ${({$themeVariant:e})=>_n.colors[e].text.primary};
font-family: ${_n.fonts.family};
letter-spacing: 0.5px;
`,Nn=vn.div`
display: flex;
align-items: center;
gap: 8px;
`,Ln=vn.div`
background-color: ${({$classification:e})=>{switch(e){case"FRIENDLY":return"#22c55e";case"HOSTILE":return"#ef4444";case"NEUTRAL":return"#3b82f6";default:return"#6b7280"}}};
color: #ffffff;
padding: 2px 8px;
border-radius: 10px;
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
font-family: ${_n.fonts.family};
`,Sn=vn.button`
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: ${({$themeVariant:e})=>_n.colors[e].text.primary};
padding: 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
opacity: 0.7;
}
`,Bn=vn.div`
padding: 8px 0 6px 0;
overflow: hidden;
`,Tn=vn.div`
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 16px;
border-bottom: ${({$themeVariant:e})=>"light"===e?"none":`1px solid ${_n.colors[e].field.border}`};
background-color: ${({$themeVariant:e,$isEven:t})=>t?_n.colors[e].field.evenBackground:_n.colors[e].field.oddBackground};
&:last-of-type {
border-bottom: none;
}
`,Mn=vn.span`
font-size: 11px;
color: ${({$themeVariant:e})=>_n.colors[e].text.secondary};
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.3px;
font-family: ${_n.fonts.family};
`,$n=vn.span`
font-size: 11px;
color: ${({$themeVariant:e})=>_n.colors[e].text.primary};
font-weight: 700;
text-align: right;
font-family: ${_n.fonts.family};
`,On=vn.div`
position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
padding: 8px 16px 12px 16px;
border-top: 1px solid
${({$themeVariant:e})=>_n.colors[e].actions.border};
`,Pn=vn.button`
background-color: #bdc311;
color: #000000;
border: none;
padding: 6px 8px;
border-radius: 3px;
font-size: 10px;
font-weight: 600;
cursor: pointer;
font-family: ${_n.fonts.family};
&:hover {
opacity: 0.9;
}
`,In=vn.button`
background-color: #5877ef;
color: #ffffff;
border: none;
padding: 6px 12px;
border-radius: 3px;
font-size: 10px;
font-weight: 600;
cursor: pointer;
font-family: ${_n.fonts.family};
&:hover {
opacity: 0.9;
}
`,An=vn.button`
position: absolute;
bottom: 13px;
left: 20px;
width: 22px;
height: 22px;
border: 1.5px solid #ef4444;
border-radius: 4px;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
svg {
width: 12px;
height: 12px;
transition: all 0.2s ease;
}
&:hover {
background-color: #ef4444;
svg path {
stroke: #ffffff;
}
}
`,Dn=n=>{var{isOpen:o,onClose:r,aircraftId:a,fields:s,classification:c="UNKNOWN",onUpdate:d,onDelete:u,onShowHistory:h,isHistoryVisible:g=!1,theme:b="dark",className:v,translations:y}=n,_=f(n,["isOpen","onClose","aircraftId","fields","classification","onUpdate","onDelete","onShowHistory","isHistoryVisible","theme","className","translations"]);const{t:w}=m(),C=i(null);return l(()=>(document.body.style.overflow=o?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[o]),l(()=>{const e=e=>{"Escape"===e.key&&o&&r()};return o&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o,r]),o?p(e(wn,Object.assign({ref:C,$isOpen:o,$themeVariant:b,className:v},_,{children:[e(Cn,{$themeVariant:b,children:[t(kn,{children:t(xn,{$themeVariant:b,children:a})}),e(Nn,{children:[t(Ln,{$classification:c,children:c}),t(Sn,{$themeVariant:b,onClick:r,children:"×"})]})]}),t(Bn,{children:s.map((n,o)=>e(Tn,{$themeVariant:b,$isEven:o%2==0,children:[t(Mn,{$themeVariant:b,children:n.label}),t($n,{$themeVariant:b,children:n.value})]},o))}),e(On,{$themeVariant:b,children:[t(Pn,{onClick:()=>null==h?void 0:h(),children:g?(null==y?void 0:y.hideHistory)||w("common.hideHistory"):(null==y?void 0:y.showHistory)||w("common.showHistory")}),d&&t(In,{onClick:d,children:(null==y?void 0:y.update)||w("common.update")})]}),u&&t(An,{onClick:u,children:t("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M18 6V16.2C18 17.8802 18 18.7202 17.673 19.362C17.3854 19.9265 16.9265 20.3854 16.362 20.673C15.7202 21 14.8802 21 13.2 21H10.8C9.11984 21 8.27976 21 7.63803 20.673C7.07354 20.3854 6.6146 19.9265 6.32698 19.362C6 18.7202 6 17.8802 6 16.2V6M14 10V17M10 10V17",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})),document.body):null};var En={fontInter:"UpdateModal-module_fontInter__rgUfL",overlay:"UpdateModal-module_overlay__EaScv",modal:"UpdateModal-module_modal__miIbe",modalLight:"UpdateModal-module_modalLight__FhHiV",modalDark:"UpdateModal-module_modalDark__U1LPt",header:"UpdateModal-module_header__yA7Ft",title:"UpdateModal-module_title__ei3Ns",closeButton:"UpdateModal-module_closeButton__flG1c",closeButtonLight:"UpdateModal-module_closeButtonLight__BljTW",closeButtonDark:"UpdateModal-module_closeButtonDark__bUFsz",form:"UpdateModal-module_form__-3TOb",field:"UpdateModal-module_field__M5P3o",label:"UpdateModal-module_label__RzGzb",labelLight:"UpdateModal-module_labelLight__3S07Z",labelDark:"UpdateModal-module_labelDark__8RpU1",buttonGroup:"UpdateModal-module_buttonGroup__wYsXK"};const Vn=[{label:"COMMERCIAL",value:"commercial"},{label:"MILITARY",value:"military"},{label:"DRONE",value:"drone"},{label:"UNKNOWN",value:"unknown"}],Rn=[{label:"FRIENDLY",value:"friendly"},{label:"HOSTILE",value:"hostile"},{label:"NEUTRAL",value:"neutral"},{label:"UNKNOWN",value:"unknown"}],jn=n=>{var{isOpen:o,onClose:a,onUpdate:i,title:s,itemIdentifier:c,initialData:d={},theme:u="light",className:h}=n,g=f(n,["isOpen","onClose","onUpdate","title","itemIdentifier","initialData","theme","className"]);const{t:b}=m(),[y,_]=r(d.type||""),[w,C]=r(d.classification||"");l(()=>{_(d.type||""),C(d.classification||"")},[d.type,d.classification]);if(!o)return null;const k=[En.modal,En.fontInter,"dark"===u?En.modalDark:En.modalLight,h].filter(Boolean).join(" "),x=[En.closeButton,En.fontInter,"dark"===u?En.closeButtonDark:En.closeButtonLight].join(" "),N=[En.label,En.fontInter,"dark"===u?En.labelDark:En.labelLight].join(" ");return p(t("div",Object.assign({className:`${En.overlay} ${En.fontInter}`,onClick:a},g,{children:e("div",{className:k,onClick:e=>e.stopPropagation(),children:[e("div",{className:`${En.header} ${En.fontInter}`,children:[t("h2",{className:`${En.title} ${En.fontInter}`,children:s||(c?`${b("common.update")} ${c}`:b("common.update"))}),t("button",{className:x,onClick:a,"aria-label":"Close modal",children:"×"})]}),e("div",{className:`${En.form} ${En.fontInter}`,children:[e("div",{className:`${En.field} ${En.fontInter}`,children:[t("label",{className:N,children:b("aircraft.type")}),t(B,{options:Vn,value:y,placeholder:b("common.select"),onChange:_,theme:u})]}),e("div",{className:`${En.field} ${En.fontInter}`,children:[t("label",{className:N,children:b("aircraft.classification")}),t(B,{options:Rn,value:w,placeholder:b("common.select"),onChange:C,theme:u})]}),e("div",{className:`${En.buttonGroup} ${En.fontInter}`,children:[t(v,{color:"cancel",onClick:()=>{_(d.type||""),C(d.classification||""),a()},children:b("common.cancel")}),t(v,{color:"primary",onClick:()=>{i({type:y,classification:w}),a()},disabled:!y||!w,children:b("common.update")})]})]})]})})),document.body)};var Hn={fontInter:"DeleteModal-module_fontInter__Fc27y",overlay:"DeleteModal-module_overlay__FC8m3",modal:"DeleteModal-module_modal__B2Qow",modalLight:"DeleteModal-module_modalLight__dvEJN",modalDark:"DeleteModal-module_modalDark__CSKlG",header:"DeleteModal-module_header__-xoDA",title:"DeleteModal-module_title__0RjLN",closeButton:"DeleteModal-module_closeButton__PzYqZ",closeButtonLight:"DeleteModal-module_closeButtonLight__p3DR-",closeButtonDark:"DeleteModal-module_closeButtonDark__cpbrO",content:"DeleteModal-module_content__9ea6v",description:"DeleteModal-module_description__X7gOM",descriptionLight:"DeleteModal-module_descriptionLight__v5SGa",descriptionDark:"DeleteModal-module_descriptionDark__MkPF4",warning:"DeleteModal-module_warning__TQ5tu",warningLight:"DeleteModal-module_warningLight__gVgJ4",warningDark:"DeleteModal-module_warningDark__CQrTM",buttonGroup:"DeleteModal-module_buttonGroup__3qx-k"};const Fn=n=>{var{isOpen:o,onClose:r,onDelete:a,title:l,itemIdentifier:i,confirmationText:s,warningText:c,theme:d="light",className:u}=n,p=f(n,["isOpen","onClose","onDelete","title","itemIdentifier","confirmationText","warningText","theme","className"]);const{t:h}=m();if(!o)return null;const g=l||`${h("common.delete")} ${i||h("aircraft.type")}`,b=i?`${h("common.deleteConfirm")} ${h("aircraft.type")} ${i}?`:`${h("common.deleteConfirm")} ${h("aircraft.type")}?`,y=s||b,_=c||`${h("common.deleteWarning")} ${h("aircraft.type")} ${h("common.deleteWarningEnd")}`,w=[Hn.modal,Hn.fontInter,"dark"===d?Hn.modalDark:Hn.modalLight,u].filter(Boolean).join(" "),C=[Hn.closeButton,Hn.fontInter,"dark"===d?Hn.closeButtonDark:Hn.closeButtonLight].join(" "),k=[Hn.description,Hn.fontInter,"dark"===d?Hn.descriptionDark:Hn.descriptionLight].join(" "),x=[Hn.warning,Hn.fontInter,"dark"===d?Hn.warningDark:Hn.warningLight].join(" ");return t("div",Object.assign({className:`${Hn.overlay} ${Hn.fontInter}`,onClick:r},p,{children:e("div",{className:w,onClick:e=>e.stopPropagation(),children:[e("div",{className:`${Hn.header} ${Hn.fontInter}`,children:[t("h2",{className:`${Hn.title} ${Hn.fontInter}`,children:g}),t("button",{className:C,onClick:r,"aria-label":"Close modal",children:"×"})]}),e("div",{className:`${Hn.content} ${Hn.fontInter}`,children:[t("p",{className:k,children:y}),t("p",{className:x,children:_}),e("div",{className:`${Hn.buttonGroup} ${Hn.fontInter}`,children:[t(v,{color:"cancel",outline:!0,theme:d,onClick:r,children:h("common.cancel")}),t(v,{color:"danger",theme:d,onClick:()=>{a(),r()},children:h("common.delete")})]})]})]})}))};var zn={filterOverlay:"FilterPanel-module_filterOverlay__1ZXW3","filterOverlay--light":"FilterPanel-module_filterOverlay--light__NdV-o","filterOverlay--dark":"FilterPanel-module_filterOverlay--dark__42gup",filterHeader:"FilterPanel-module_filterHeader__H2kVv",dropdownContainer:"FilterPanel-module_dropdownContainer__e2ZVy",isOpen:"FilterPanel-module_isOpen__MjY3D",filterTitle:"FilterPanel-module_filterTitle__d5nsp",closeButton:"FilterPanel-module_closeButton__QMZ-P",filterContent:"FilterPanel-module_filterContent__RE-aU",filterSection:"FilterPanel-module_filterSection__ykQId",filterSectionTitle:"FilterPanel-module_filterSectionTitle__nvTYt",attributesContainer:"FilterPanel-module_attributesContainer__efAor",leftFilters:"FilterPanel-module_leftFilters__pS8sh","dropdownContainer--sm":"FilterPanel-module_dropdownContainer--sm__KqL8c","dropdownContainer--md":"FilterPanel-module_dropdownContainer--md__bEYy4","dropdownContainer--lg":"FilterPanel-module_dropdownContainer--lg__HH1xV","dropdownContainer--auto":"FilterPanel-module_dropdownContainer--auto__87bEe",resetButton:"FilterPanel-module_resetButton__yv1Ff",filterLogicContainer:"FilterPanel-module_filterLogicContainer__8CcCq",filterLogicLabel:"FilterPanel-module_filterLogicLabel__ktokc",filterLogicButtons:"FilterPanel-module_filterLogicButtons__8Vdxo",filterLogicButton:"FilterPanel-module_filterLogicButton__b1Npl",active:"FilterPanel-module_active__Hkw2v",geometryHeader:"FilterPanel-module_geometryHeader__IjxdI",geometryActions:"FilterPanel-module_geometryActions__TvqmN",addLabel:"FilterPanel-module_addLabel__HDMhU",iconButton:"FilterPanel-module_iconButton__WfR3X",deleteAllButton:"FilterPanel-module_deleteAllButton__lgZb6",showAllButton:"FilterPanel-module_showAllButton__xqhGS",table:"FilterPanel-module_table__OiYfN",tableHeader:"FilterPanel-module_tableHeader__60Dxm",tableHeaderCell:"FilterPanel-module_tableHeaderCell__lZiRH",tableRow:"FilterPanel-module_tableRow__CRMyx",rowDisabled:"FilterPanel-module_rowDisabled__wr5se",geometryName:"FilterPanel-module_geometryName__ndepe",geometryProperties:"FilterPanel-module_geometryProperties__1LFey",rowActions:"FilterPanel-module_rowActions__cbiP4",actionIcon:"FilterPanel-module_actionIcon__0km2n",emptyState:"FilterPanel-module_emptyState__71qqY"};const Zn=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[t("path",{strokeWidth:"1.5",d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),t("path",{strokeWidth:"1.5",fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"})]}),Un=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[t("path",{strokeWidth:"1.5",d:"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"}),t("path",{strokeWidth:"1.5",d:"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"})]}),Kn=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M10.8 1.8C10.8 2.79411 9.99406 3.6 8.99995 3.6C8.00584 3.6 7.19995 2.79411 7.19995 1.8C7.19995 0.805887 8.00584 0 8.99995 0C9.99406 0 10.8 0.805887 10.8 1.8Z",fill:"currentColor"}),t("path",{d:"M3.6 8.99995C3.6 9.99406 2.79411 10.8 1.8 10.8C0.805887 10.8 0 9.99406 0 8.99995C0 8.00584 0.805887 7.19995 1.8 7.19995C2.79411 7.19995 3.6 8.00584 3.6 8.99995Z",fill:"currentColor"}),t("path",{d:"M10.8 16.2001C10.8 17.1943 9.99406 18.0001 8.99995 18.0001C8.00584 18.0001 7.19995 17.1943 7.19995 16.2001C7.19995 15.206 8.00584 14.4001 8.99995 14.4001C9.99406 14.4001 10.8 15.206 10.8 16.2001Z",fill:"currentColor"}),t("path",{d:"M17.9999 8.99995C17.9999 9.99406 17.194 10.8 16.1999 10.8C15.2058 10.8 14.3999 9.99406 14.3999 8.99995C14.3999 8.00584 15.2058 7.19995 16.1999 7.19995C17.194 7.19995 17.9999 8.00584 17.9999 8.99995Z",fill:"currentColor"}),t("path",{d:"M9.94037 16.1394L10.0134 16.697C9.68159 16.7402 9.34305 16.7623 8.99994 16.7623C8.65689 16.7623 8.31877 16.7402 7.987 16.697L8.13257 15.5813C8.41621 15.6183 8.70569 15.6373 8.99994 15.6373C9.29427 15.6373 9.58414 15.6183 9.86786 15.5813L9.94037 16.1394ZM4.95972 14.2662C5.41661 14.6173 5.92007 14.9105 6.45935 15.1342L6.02869 16.1735C5.39731 15.9116 4.80814 15.5687 4.27417 15.1583L4.95972 14.2662ZM13.7263 15.1583C13.1923 15.5686 12.6031 15.9116 11.9717 16.1735L11.5405 15.1342C12.0798 14.9105 12.5838 14.6174 13.0407 14.2662L13.7263 15.1583ZM2.86572 11.5405C3.08936 12.0798 3.38252 12.5838 3.73364 13.0407L2.84155 13.7263C2.43126 13.1923 2.08878 12.603 1.82697 11.9717L2.86572 11.5405ZM16.1735 11.9717C15.9116 12.6031 15.5686 13.1923 15.1583 13.7263L14.2662 13.0407C14.6174 12.5838 14.9105 12.0798 15.1342 11.5405L16.1735 11.9717ZM1.23755 8.99994C1.23755 8.6569 1.25965 8.31876 1.30292 7.987L1.86102 8.05951L2.41858 8.13257C2.38159 8.4162 2.36255 8.7057 2.36255 8.99994C2.36255 9.29427 2.38157 9.58414 2.41858 9.86786L1.30292 10.0134C1.25963 9.68159 1.23755 9.34305 1.23755 8.99994ZM15.6373 8.99994C15.6373 8.70569 15.6183 8.41621 15.5813 8.13257L16.697 7.987C16.7402 8.31877 16.7623 8.65689 16.7623 8.99994C16.7623 9.34305 16.7402 9.68159 16.697 10.0134L16.1394 9.94037L15.5813 9.86786C15.6183 9.58414 15.6373 9.29427 15.6373 8.99994ZM3.73364 4.95972C3.38255 5.41661 3.08935 5.92007 2.86572 6.45935L1.82697 6.02869C2.08878 5.39734 2.43124 4.80813 2.84155 4.27417L3.73364 4.95972ZM15.1583 4.27417C15.5687 4.80814 15.9116 5.39731 16.1735 6.02869L15.1342 6.45935C14.9105 5.92007 14.6173 5.41661 14.2662 4.95972L15.1583 4.27417ZM6.45935 2.86572C5.92008 3.08935 5.41661 3.38255 4.95972 3.73364L4.27417 2.84155C4.80812 2.43124 5.39734 2.08878 6.02869 1.82697L6.45935 2.86572ZM11.9717 1.82697C12.603 2.08878 13.1923 2.43126 13.7263 2.84155L13.0407 3.73364C12.5838 3.38252 12.0798 3.08936 11.5405 2.86572L11.9717 1.82697ZM8.99994 1.23755C9.34305 1.23755 9.68159 1.25963 10.0134 1.30292L9.86786 2.41858C9.58414 2.38157 9.29427 2.36255 8.99994 2.36255C8.7057 2.36255 8.4162 2.38159 8.13257 2.41858L8.05951 1.86102L7.987 1.30292C8.31876 1.25965 8.6569 1.23755 8.99994 1.23755Z",fill:"currentColor"})]}),Wn=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M2.2501 15.2999V15.7499H2.7001V16.6499H1.3501V15.2999H2.2501ZM6.3001 15.7499V16.6499H4.5001V15.7499H6.3001ZM9.9001 15.7499V16.6499H8.1001V15.7499H9.9001ZM13.5001 15.7499V16.6499H11.7001V15.7499H13.5001ZM16.6501 15.2999V16.6499H15.3001V15.7499H15.7501V15.2999H16.6501ZM2.2501 11.6999V13.4999H1.3501V11.6999H2.2501ZM16.6501 11.6999V13.4999H15.7501V11.6999H16.6501ZM2.2501 8.09985V9.89985H1.3501V8.09985H2.2501ZM16.6501 8.09985V9.89985H15.7501V8.09985H16.6501ZM2.2501 4.49985V6.29985H1.3501V4.49985H2.2501ZM16.6501 4.49985V6.29985H15.7501V4.49985H16.6501ZM2.7001 1.34985V2.24985H2.2501V2.69985H1.3501V1.34985H2.7001ZM16.6501 1.34985V2.69985H15.7501V2.24985H15.3001V1.34985H16.6501ZM6.3001 1.34985V2.24985H4.5001V1.34985H6.3001ZM9.9001 1.34985V2.24985H8.1001V1.34985H9.9001ZM13.5001 1.34985V2.24985H11.7001V1.34985H13.5001Z",fill:"currentColor"}),t("path",{d:"M17.9999 1.8C17.9999 2.79411 17.194 3.6 16.1999 3.6C15.2058 3.6 14.3999 2.79411 14.3999 1.8C14.3999 0.805887 15.2058 0 16.1999 0C17.194 0 17.9999 0.805887 17.9999 1.8Z",fill:"currentColor"}),t("path",{d:"M17.9999 16.2001C17.9999 17.1943 17.194 18.0001 16.1999 18.0001C15.2058 18.0001 14.3999 17.1943 14.3999 16.2001C14.3999 15.206 15.2058 14.4001 16.1999 14.4001C17.194 14.4001 17.9999 15.206 17.9999 16.2001Z",fill:"currentColor"}),t("path",{d:"M3.6 1.8C3.6 2.79411 2.79411 3.6 1.8 3.6C0.805887 3.6 0 2.79411 0 1.8C0 0.805887 0.805887 0 1.8 0C2.79411 0 3.6 0.805887 3.6 1.8Z",fill:"currentColor"}),t("path",{d:"M3.6 16.2001C3.6 17.1943 2.79411 18.0001 1.8 18.0001C0.805887 18.0001 0 17.1943 0 16.2001C0 15.206 0.805887 14.4001 1.8 14.4001C2.79411 14.4001 3.6 15.206 3.6 16.2001Z",fill:"currentColor"})]}),Gn=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M2.54321 15.0869L2.47839 15.4999L2.89642 15.4219L3.10352 16.5277L1.12158 16.8996L1.43195 14.9133L2.54321 15.0869ZM7.80017 15.0748L7.90344 15.6279L5.50348 16.0778L5.29639 14.972L7.69635 14.5222L7.80017 15.0748ZM12.7039 14.7276L10.3034 15.178L10.2001 14.6249L10.0963 14.0723L12.4963 13.6224L12.7039 14.7276ZM16.7623 12.4315V13.9668L15.1039 14.2777L14.8962 13.1719L15.6373 13.033V12.4315H16.7623ZM3.29303 10.2869L2.9184 12.6869L1.80658 12.5133L2.18176 10.1133L3.29303 10.2869ZM16.7623 8.15613V10.2935H15.6373V8.15613H16.7623ZM4.0434 5.487L3.66821 7.88696L2.55695 7.71338L2.93158 5.31342L4.0434 5.487ZM16.7623 4.51471V6.01874H15.6373V5.38538L15.0462 5.23212L15.3286 4.14282L16.7623 4.51471ZM13.3038 3.61823L13.0214 4.70697L10.9961 4.18182L11.2784 3.09308L13.3038 3.61823ZM9.25366 2.56793L8.97131 3.65723L6.94653 3.13208L7.22888 2.04279L9.25366 2.56793ZM5.20355 1.51819L4.9212 2.60693L4.50977 2.49982L4.41803 3.08704L3.30676 2.9129L3.59021 1.09961L5.20355 1.51819Z",fill:"#424242"}),t("path",{d:"M17.9999 4.9499C17.9999 5.94401 17.194 6.7499 16.1999 6.7499C15.2058 6.7499 14.3999 5.94401 14.3999 4.9499C14.3999 3.95579 15.2058 3.1499 16.1999 3.1499C17.194 3.1499 17.9999 3.95579 17.9999 4.9499Z",fill:"#424242"}),t("path",{d:"M17.9999 13.5C17.9999 14.4941 17.194 15.3 16.1999 15.3C15.2058 15.3 14.3999 14.4941 14.3999 13.5C14.3999 12.5058 15.2058 11.7 16.1999 11.7C17.194 11.7 17.9999 12.5058 17.9999 13.5Z",fill:"#424242"}),t("path",{d:"M5.85 1.8C5.85 2.79411 5.04411 3.6 4.05 3.6C3.05589 3.6 2.25 2.79411 2.25 1.8C2.25 0.805887 3.05589 0 4.05 0C5.04411 0 5.85 0.805887 5.85 1.8Z",fill:"#424242"}),t("path",{d:"M3.6 16.1999C3.6 17.194 2.79411 17.9999 1.8 17.9999C0.805887 17.9999 0 17.194 0 16.1999C0 15.2058 0.805887 14.3999 1.8 14.3999C2.79411 14.3999 3.6 15.2058 3.6 16.1999Z",fill:"#424242"})]}),Yn=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M2.54321 15.0869L2.47839 15.4999L2.89642 15.4219L3.10352 16.5277L1.12158 16.8996L1.43195 14.9133L2.54321 15.0869ZM7.80017 15.0748L7.90344 15.6279L5.50348 16.0778L5.29639 14.972L7.69635 14.5222L7.80017 15.0748ZM12.7039 14.7276L10.3034 15.178L10.2001 14.6249L10.0963 14.0723L12.4963 13.6224L12.7039 14.7276ZM16.7623 12.4315V13.9668L15.1039 14.2777L14.8962 13.1719L15.6373 13.033V12.4315H16.7623ZM3.29303 10.2869L2.9184 12.6869L1.80658 12.5133L2.18176 10.1133L3.29303 10.2869ZM16.7623 8.15613V10.2935H15.6373V8.15613H16.7623ZM4.0434 5.487L3.66821 7.88696L2.55695 7.71338L2.93158 5.31342L4.0434 5.487ZM16.7623 4.51471V6.01874H15.6373V5.38538L15.0462 5.23212L15.3286 4.14282L16.7623 4.51471ZM13.3038 3.61823L13.0214 4.70697L10.9961 4.18182L11.2784 3.09308L13.3038 3.61823ZM9.25366 2.56793L8.97131 3.65723L6.94653 3.13208L7.22888 2.04279L9.25366 2.56793ZM5.20355 1.51819L4.9212 2.60693L4.50977 2.49982L4.41803 3.08704L3.30676 2.9129L3.59021 1.09961L5.20355 1.51819Z",fill:"white"}),t("path",{d:"M18 4.9499C18 5.94401 17.1941 6.7499 16.2 6.7499C15.2059 6.7499 14.4 5.94401 14.4 4.9499C14.4 3.95579 15.2059 3.1499 16.2 3.1499C17.1941 3.1499 18 3.95579 18 4.9499Z",fill:"white"}),t("path",{d:"M18 13.5C18 14.4941 17.1941 15.3 16.2 15.3C15.2059 15.3 14.4 14.4941 14.4 13.5C14.4 12.5058 15.2059 11.7 16.2 11.7C17.1941 11.7 18 12.5058 18 13.5Z",fill:"white"}),t("path",{d:"M5.85 1.8C5.85 2.79411 5.04411 3.6 4.05 3.6C3.05589 3.6 2.25 2.79411 2.25 1.8C2.25 0.805887 3.05589 0 4.05 0C5.04411 0 5.85 0.805887 5.85 1.8Z",fill:"white"}),t("path",{d:"M3.6 16.1999C3.6 17.194 2.79411 17.9999 1.8 17.9999C0.805887 17.9999 0 17.194 0 16.1999C0 15.2058 0.805887 14.3999 1.8 14.3999C2.79411 14.3999 3.6 15.2058 3.6 16.1999Z",fill:"white"})]}),qn=({isOpen:n,onClose:o,filters:r,onFilterChange:a,onResetFilters:l,onDeleteAll:i,onShowAll:s,theme:c="dark",categoryWidth:d="sm",classWidth:u="sm",className:m,onStartCircleDrawing:p,onStartRectangleDrawing:h,onStartPolygonDrawing:f,geometryItems:g=[],onDeleteFilter:b,onToggleFilterVisibility:y,onToggleFilterActive:_,translations:w={}})=>{var C,k,x,N,L,S,T,M,$,O,P,I,A,D,E,V,R,j,H,F;const z=[{label:(null===(C=w.categories)||void 0===C?void 0:C.all)||"All Categories",value:"all"},{label:(null===(k=w.categories)||void 0===k?void 0:k.commercial)||"Commercial",value:"commercial"},{label:(null===(x=w.categories)||void 0===x?void 0:x.unknown)||"Unknown",value:"unknown"},{label:(null===(N=w.categories)||void 0===N?void 0:N.drone)||"Drone",value:"drone"},{label:(null===(L=w.categories)||void 0===L?void 0:L.military)||"Military",value:"military"}],Z=[{label:(null===(S=w.classes)||void 0===S?void 0:S.all)||"All Classes",value:"all"},{label:(null===(T=w.classes)||void 0===T?void 0:T.friendly)||"Friendly",value:"friendly"},{label:(null===(M=w.classes)||void 0===M?void 0:M.hostile)||"Hostile",value:"hostile"},{label:(null===($=w.classes)||void 0===$?void 0:$.neutral)||"Neutral",value:"neutral"},{label:(null===(O=w.classes)||void 0===O?void 0:O.unknown)||"Unknown",value:"unknown"}];return e("div",{className:`${zn.filterOverlay} ${zn[`filterOverlay--${c}`]} ${n?zn.isOpen:""} ${m||""}`,"data-theme":c,children:[e("div",{className:zn.filterHeader,children:[t("h3",{className:zn.filterTitle,children:w.title||"Filter Options"}),t("button",{className:zn.closeButton,onClick:o,children:"×"})]}),e("div",{className:zn.filterContent,children:[e("div",{className:zn.filterSection,children:[t("h4",{className:zn.filterSectionTitle,children:w.attributesFilters||"Attributes Filters"}),e("div",{className:zn.attributesContainer,children:[e("div",{className:zn.leftFilters,children:[t("div",{className:`${zn.dropdownContainer} ${zn[`dropdownContainer--${d}`]}`,children:t(B,{options:z,value:r.categories,placeholder:(null===(P=w.categories)||void 0===P?void 0:P.all)||"All Categories",onChange:e=>{a(Object.assign(Object.assign({},r),{categories:e}))},theme:c,size:"sm"})}),t("div",{className:`${zn.dropdownContainer} ${zn[`dropdownContainer--${u}`]}`,children:t(B,{options:Z,value:r.classes,placeholder:(null===(I=w.classes)||void 0===I?void 0:I.all)||"All Classes",onChange:e=>{a(Object.assign(Object.assign({},r),{classes:e}))},theme:c,size:"sm"})})]}),t(v,{color:"cancel",outline:!0,size:"sm",theme:c,onClick:l,children:w.resetAttributesFilter||"Reset Attributes Filter"})]})]}),e("div",{className:zn.filterSection,children:[t("h4",{className:zn.filterSectionTitle,children:w.geometryFilters||"Geometry Filters"}),e("div",{className:zn.geometryHeader,children:[e("div",{className:zn.geometryActions,children:[t("span",{className:zn.addLabel,children:w.addNew||"Add New"}),p&&t(v,{type:"button",icon:t(Kn,{}),iconOnly:!0,size:"sm",color:"cancel",theme:c,outline:!0,"aria-label":(null===(A=w.buttons)||void 0===A?void 0:A.addCircularFilter)||"Add Circular Filter",onClick:p}),h&&t(v,{type:"button",icon:t(Wn,{}),iconOnly:!0,size:"sm",color:"cancel",theme:c,outline:!0,"aria-label":(null===(D=w.buttons)||void 0===D?void 0:D.addRectangleFilter)||"Add Rectangle Filter",onClick:h}),f&&t(v,{type:"button",icon:t("dark"===c?Yn:Gn,{}),iconOnly:!0,size:"sm",color:"cancel",theme:c,outline:!0,"aria-label":(null===(E=w.buttons)||void 0===E?void 0:E.addFreeformFilter)||"Add Freeform Filter",onClick:f})]}),e("div",{className:zn.geometryActions,children:[t(v,{type:"button",color:"danger",outline:!0,size:"sm",theme:c,onClick:i,children:w.deleteAllGeometryFilters||"Delete All Geometry Filters"}),t(v,{type:"button",color:"primary",outline:!0,size:"sm",theme:c,onClick:s,children:w.showAll||"Show All"})]})]}),e("div",{className:zn.table,children:[e("div",{className:zn.tableHeader,children:[t("div",{className:zn.tableHeaderCell,children:(null===(V=w.table)||void 0===V?void 0:V.name)||"NAME"}),t("div",{className:zn.tableHeaderCell,children:(null===(R=w.table)||void 0===R?void 0:R.properties)||"PROPERTIES"}),t("div",{className:zn.tableHeaderCell,children:(null===(j=w.table)||void 0===j?void 0:j.actions)||"ACTIONS"})]}),g.length>0?g.map(n=>{var o,r,a;return e("div",{className:`${zn.tableRow} ${!1===n.isVisible?zn.rowDisabled:""}`,children:[t("div",{className:zn.geometryName,children:n.name}),t("div",{className:zn.geometryProperties,children:n.properties}),e("div",{className:zn.rowActions,children:[b&&t(v,{type:"button",icon:t(Zn,{}),iconOnly:!0,size:"xs",color:"cancel",outline:!0,theme:c,"aria-label":(null===(o=w.buttons)||void 0===o?void 0:o.delete)||"Delete",onClick:e=>{e.stopPropagation(),b(n.id)}}),(y||_)&&t(v,{type:"button",icon:t(Un,{}),iconOnly:!0,size:"xs",color:"cancel",outline:!0,theme:c,"aria-label":n.isVisible&&n.isActive?(null===(r=w.buttons)||void 0===r?void 0:r.hide)||"Hide":(null===(a=w.buttons)||void 0===a?void 0:a.show)||"Show",onClick:e=>{var t;e.stopPropagation(),t=n.id,null==y||y(t),null==_||_(t)}})]})]},n.id)}):e("div",{className:zn.emptyState,children:[t("p",{children:(null===(H=w.emptyState)||void 0===H?void 0:H.title)||"No geometric filters created yet."}),t("p",{children:(null===(F=w.emptyState)||void 0===F?void 0:F.description)||"Click the shape buttons above to start drawing filters."})]})]})]})]})]})};var Xn={toast:"Toast-module_toast__FLdHz",success:"Toast-module_success__Oy694",error:"Toast-module_error__hrQAA",icon:"Toast-module_icon__VwvE1",content:"Toast-module_content__U6Xwq",title:"Toast-module_title__-H6R2",message:"Toast-module_message__3dP0P",close:"Toast-module_close__i10-s"};const Qn={success:e("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"24",cy:"24",r:"22",stroke:"white",strokeWidth:"4",fill:"none"}),t("path",{d:"M16 24.5L22 30.5L32 18.5",stroke:"white",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]}),error:e("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M24 8L44 40H4L24 8Z",fill:"none",stroke:"white",strokeWidth:"4"}),t("rect",{x:"22",y:"20",width:"4",height:"10",rx:"2",fill:"white"}),t("rect",{x:"22",y:"34",width:"4",height:"4",rx:"2",fill:"white"})]})},Jn=({type:n,title:o,message:r,onClose:a})=>e("div",{className:`${Xn.toast} ${Xn[n]}`,children:[t("div",{className:Xn.icon,children:Qn[n]}),e("div",{className:Xn.content,children:[t("div",{className:Xn.title,children:o}),t("div",{className:Xn.message,children:r})]}),a&&t("button",{className:Xn.close,onClick:a,"aria-label":"Close notification",children:"×"})]}),eo=u(void 0);let to=0;const no=({children:n})=>{const[o,l]=r([]),i=a(e=>{const t=++to;l(n=>[...n,Object.assign(Object.assign({},e),{id:t})]);const n="success"===e.type?5e3:7e3;setTimeout(()=>{l(e=>e.filter(e=>e.id!==t))},n)},[]);return e(eo.Provider,{value:{showToast:i},children:[n,t("div",{style:{position:"fixed",top:24,right:24,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"12px"},children:o.map((e,n)=>t("div",{style:{animation:`slideInRight 0.3s ease-out ${.1*n}s both`},children:t(Jn,{type:e.type,title:e.title,message:e.message,onClose:()=>{return t=e.id,void l(e=>e.filter(e=>e.id!==t));var t}})},e.id))}),t("style",{children:"\n @keyframes slideInRight {\n from {\n transform: translateX(100%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n "})]})};function oo(){const e=d(eo);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}export{v as Button,B as ComboBox,Fn as DeleteModal,qn as FilterPanel,Dn as InfoModal,_ as Input,M as Navbar,O as StatusBadge,L as Table,Jn as Toast,no as ToastProvider,jn as UpdateModal,oo as useToast};
//# sourceMappingURL=index.esm.js.map